Created
December 28, 2012 16:29
-
-
Save laurakalbag/4399354 to your computer and use it in GitHub Desktop.
Example of nesting selectors in Sass to make your stylesheet easier to read.
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
/* written in plain old CSS */ | |
.module h3 { | |
font-weight: bold; | |
} | |
.module p { | |
padding-bottom: 10px; | |
} | |
/* written in Sass */ | |
.module { | |
h3 { | |
font-weight: bold; | |
} | |
p { | |
padding-bottom: 10px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment