Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Is this the best way to do a "apply this except for this parent class" in Sass? Still required declaring twice, though the parent selector targeting thingy is really cool.
.hentry.featured {
border-bottom: 15px solid #f6f6f6;
padding-bottom: 1em;
.singular & {
border-bottom: 0;
padding-bottom: 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment