Skip to content

Instantly share code, notes, and snippets.

@piscis
Last active August 29, 2015 13:57
Show Gist options
  • Save piscis/9386266 to your computer and use it in GitHub Desktop.
Save piscis/9386266 to your computer and use it in GitHub Desktop.
Compare SASS/SCSS/CSS base syntax
.block-content img.img-thumbnail {
width: 35%;
}
.block-content img.img-thumbnail.pull-left {
margin-right: 8px;
}
.block-content img.img-thumbnail.pull-rigth {
margin-left: 8px;
}
.block-content
img
&.img-thumbnail
width: 35%
&.pull-left
margin-right: 8px
&.pull-rigth
margin-left: 8px
.block-content {
img {
&.img-thumbnail {
width: 35%;
&.pull-left {
margin-right: 8px;
}
&.pull-rigth {
margin-left: 8px;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment