Skip to content

Instantly share code, notes, and snippets.

View dawidw's full-sized avatar

Dawid Woźniak dawidw

View GitHub Profile
/* _posts_controller.scss */
.posts.show .post {
/* view specific styles */
}
/* _post.scss */
.post {
background: whitesmoke;
}
+-modules
| +-_post.scss
+-view
| +-views.scss
| +-rails_views
| +-_posts_controller.scss
| +-responsive
| +-tablet
| +-mobile
.
/* posts.scss */
.posts{
&.show{
div.posts_list{
div.post{
background: whitesmoke;
p.post_title{
font-size: 16px;
}
}
.block{
.ie7 &.red{
color: green;
}
}
@dawidw
dawidw / example 1a.scss
Last active December 21, 2015 17:38
example 1a
.block {
&.red {
color: red;
}
}
@dawidw
dawidw / SassMeister-output.css
Last active December 21, 2015 16:28
Sass features
/* 1. reference symbol ( & ) */
/* you are probably familiar with reference symbol which allows you
to reference a parent element: */
.block.red {
color: red;
}
/* but you can also put it after some class which can be very usefull while
facing some IE related issues: */
.ie7 .block.red {