Created
June 17, 2014 13:34
-
-
Save Gaya/ea377f4c059e3511d888 to your computer and use it in GitHub Desktop.
Extending compound selectors
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
//Is it possible to extend placeholder classes and their nested compound selectors? | |
%list { | |
margin: 12px 0; | |
&__item { | |
padding: 0 5px; | |
} | |
} | |
.main { | |
&__list { | |
@extend %list; | |
//I also have to do this now: | |
&__item { | |
@extend %list__item; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment