Created
February 24, 2014 17:50
-
-
Save krogsgard/9193228 to your computer and use it in GitHub Desktop.
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.
This file contains hidden or 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
.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