Skip to content

Instantly share code, notes, and snippets.

@laurakalbag
Created December 28, 2012 16:29
Show Gist options
  • Save laurakalbag/4399354 to your computer and use it in GitHub Desktop.
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.
/* 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