Skip to content

Instantly share code, notes, and snippets.

@mikemcalister
Created October 13, 2015 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikemcalister/4a113a687a257c9f9d65 to your computer and use it in GitHub Desktop.
Save mikemcalister/4a113a687a257c9f9d65 to your computer and use it in GitHub Desktop.
/**
* 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