Skip to content

Instantly share code, notes, and snippets.

@imathis
Created September 12, 2011 15:20
Show Gist options
  • Save imathis/1211531 to your computer and use it in GitHub Desktop.
Save imathis/1211531 to your computer and use it in GitHub Desktop.
Beauty in SCSS
// SCSS
nav {
  &.top-nav { li { margin:{ top:0; left:0; }}} // some comment
}
vs.
// Sass
nav
&.top-nav
// some comment
  li a
margin:
top:0
left:0
Beauty is subjective, but I'm pretty sure this is a case of SCSS being prettier than Sass. The inline comment, and the continuous left to right reading is way nicer. Having to digest all those line breaks in Sass in order to processes something so terse is annoying.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment