Created
April 1, 2012 04:14
-
-
Save jeffsebring/2271137 to your computer and use it in GitHub Desktop.
Nested Modernizr Classes with Compass
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
.textshadow { | |
.widget h3 { | |
text-shadow: -1px -1px 0 #aaa, 2px 2px 5px #3a3a3a; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great point in that post, IE7 has a hard enough time, no use in making it suffer more. One tip I'd add is to utilize Sass's parent selector with
&
. This is super useful when you have non-css3 styles on the element and want to reduce repetition. It'd look like this:which compiles to this:
*Edit for Sass Reference - http://thesassway.com/intermediate/referencing-parent-selectors-using-ampersand