-
-
Save kyleknighted/13df1e96185a1406d6f6 to your computer and use it in GitHub Desktop.
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="block"> | |
<div class="block__element">Stuff</div> | |
<div class="block__element--modifier">Red Stuff</div> | |
<div class="block__element--and-another">Yellow Stuff</div> | |
<div class="block__element--modifier block__element--and-another">Blue Stuff</div> | |
</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.3.9) | |
// Compass (v1.0.0.alpha.20) | |
// ---- | |
.block { | |
&__element { | |
background-color: #000; | |
color: #fff; | |
&--modifier { | |
color: #f00; | |
} | |
&--and-another { | |
color: #ff0; | |
} | |
&--modifier + &--and-another { | |
color: #00f; | |
} | |
} | |
} |
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
.block__element { | |
background-color: #000; | |
color: #fff; | |
} | |
.block__element--modifier { | |
color: #f00; | |
} | |
.block__element--and-another { | |
color: #ff0; | |
} | |
.block__element--modifier + .block__element--and-another { | |
color: #00f; | |
} |
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="block"> | |
<div class="block__element">Stuff</div> | |
<div class="block__element--modifier">Red Stuff</div> | |
<div class="block__element--and-another">Yellow Stuff</div> | |
<div class="block__element--modifier block__element--and-another">Blue Stuff</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment