Created
March 14, 2015 00:04
-
-
Save aubricus/a088aca3a49d20c2e73a to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
@mixin foo($section){ | |
.foo.#{$section} & { | |
@content; | |
} | |
} | |
.bar { | |
.qux { | |
@include foo('foo-section') { | |
color: red; | |
} | |
} | |
} |
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
.foo.foo-section .bar .qux { | |
color: red; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mixin to: Target a parent selector from a nested declaration.