Created
February 10, 2015 14:16
-
-
Save csswizardry/ae8889db9b2a57d57e48 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="box"><a href="#0" class="btn">Foo</a></div> | |
<p class="foo" id="foo">Lorem ipsum</p> |
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.11) | |
// Compass (v1.0.3) | |
// ---- | |
// Hack specificity up | |
.btn.btn { | |
color: red; | |
background: white; | |
} | |
.box { | |
color: white; | |
background: red; | |
} | |
.box a { | |
color: white; | |
} | |
// Hack specificity down | |
[id="foo"] { | |
color: blue; | |
} | |
.foo { | |
color: green; | |
} |
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
.btn.btn { | |
color: red; | |
background: white; | |
} | |
.box { | |
color: white; | |
background: red; | |
} | |
.box a { | |
color: white; | |
} | |
[id="foo"] { | |
color: blue; | |
} | |
.foo { | |
color: green; | |
} |
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="box"><a href="#0" class="btn">Foo</a></div> | |
<p class="foo" id="foo">Lorem ipsum</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment