Created
January 22, 2016 00:08
-
-
Save xzyfer/360a676b9ab83446c88f to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.4.20) | |
// Compass (v1.0.3) | |
// ---- | |
@mixin using-at($parent) { | |
#{$parent}[data-foo] & { | |
foo: bar | |
} | |
} | |
button__inner { | |
@include using-at("button"); | |
} | |
/* | |
* produces | |
* button[data-foo] button--jumbo button__inner | |
* you want | |
* button[data-foo]button--jumbo button__inner | |
*/ | |
button--jumbo { | |
button__inner { | |
@include using-at("button"); | |
} | |
} |
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
button[data-foo] button__inner { | |
foo: bar; | |
} | |
/* | |
* produces | |
* button[data-foo] button--jumbo button__inner | |
* you want | |
* button[data-foo]button--jumbo button__inner | |
*/ | |
button[data-foo] button--jumbo button__inner { | |
foo: bar; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment