Created
October 13, 2015 18:41
-
-
Save mikemcalister/4a113a687a257c9f9d65 to your computer and use it in GitHub Desktop.
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
/** | |
* When nesting selectors (conservatively, mind you), you can add & after a selector to apply it as a parent selector. | |
*/ | |
.widget-title { | |
font-size: 20px; | |
.wf-active & { | |
font-size: 22px; | |
} | |
} | |
/** | |
* This will compile to this: | |
*/ | |
.widget-title { font-size: 20px; } | |
.wf-active .widget-title { font-size: 22px; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment