Created
November 24, 2014 18:46
-
-
Save raulghm/38be6e1459ecabdb2c61 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com. http://sassmeister.com/gist/38be6e1459ecabdb2c61
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 | |
.block__element | |
p Lorem ipsum | |
.block__element--modifier | |
p Lorem ipsum | |
.block__element.block__element--modifier | |
p Lorem ipsum |
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.7) | |
// Compass (v1.0.1) | |
// ---- | |
$module: 'block'; | |
.#{$module} { | |
&__element { | |
color: red; | |
&--modifier { | |
color: green; | |
} | |
} | |
&--modifier { | |
.#{$module}__element { | |
color: blue; | |
} | |
} | |
} |
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 { | |
color: red; | |
} | |
.block__element--modifier { | |
color: green; | |
} | |
.block--modifier .block__element { | |
color: blue; | |
} |
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"> | |
<p>Lorem ipsum</p> | |
</div> | |
<div class="block__element--modifier"> | |
<p>Lorem ipsum</p> | |
</div> | |
<div class="block__element block__element--modifier"> | |
<p>Lorem ipsum</p> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment