Skip to content

Instantly share code, notes, and snippets.

@Gaya
Created June 17, 2014 13:34
Show Gist options
  • Save Gaya/ea377f4c059e3511d888 to your computer and use it in GitHub Desktop.
Save Gaya/ea377f4c059e3511d888 to your computer and use it in GitHub Desktop.
Extending compound selectors
//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