Skip to content

Instantly share code, notes, and snippets.

Created July 7, 2014 20:26
Show Gist options
  • Save anonymous/90c0b3f2687dddec0852 to your computer and use it in GitHub Desktop.
Save anonymous/90c0b3f2687dddec0852 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="block">
<div class="block__element">Stuff</div>
<div class="block__element--modifier">Red Stuff</div>
<div class="block__element--modifier block__element--and-another">And Another</div>
</div>
// ----
// 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;
}
}
}
Invalid CSS after " &--modifier": expected "{", was "&--and-another {"
"&--and-another" may only be used at the beginning of a compound selector.
<div class="block">
<div class="block__element">Stuff</div>
<div class="block__element--modifier">Red Stuff</div>
<div class="block__element--modifier block__element--and-another">And Another</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment