Created
December 1, 2015 11:00
-
-
Save csswizardry/327ba6f08cd47460804c 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
<div class="header"> | |
<a href="#0">Link</a> | |
<a href="#0" class="btn foo">Button</a> | |
</div> |
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.14) | |
// Compass (v1.0.3) | |
// ---- | |
@mixin bump() { | |
/** | |
* Increase specificity of `#{&}`. | |
*/ | |
&#{&} { | |
@content; | |
} | |
} | |
.header { | |
background: red; | |
} | |
.header a { | |
color: white; | |
} | |
.btn { | |
background: white; | |
@include bump() { | |
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
.header { | |
background: red; | |
} | |
.header a { | |
color: white; | |
} | |
.btn { | |
background: white; | |
/** | |
* Increase specificity of `.btn`. | |
*/ | |
} | |
.btn.btn { | |
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
<div class="header"> | |
<a href="#0">Link</a> | |
<a href="#0" class="btn foo">Button</a> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment