Created
August 29, 2012 20:26
-
-
Save jordanstephens/3518425 to your computer and use it in GitHub Desktop.
Using the parent selector (&) in a SASS mixin
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
Pleasantly surprised to find that this works with SASS, saved me a lot of typing. | |
@mixin foo { | |
& bar { | |
//... | |
} | |
} | |
baz { | |
@include foo; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment