Created
September 12, 2011 15:20
-
-
Save imathis/1211531 to your computer and use it in GitHub Desktop.
Beauty in SCSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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