Skip to content

Instantly share code, notes, and snippets.

@Ivanopalas
Last active August 29, 2015 14:26
Show Gist options
  • Save Ivanopalas/fd75cc6f57ecb337f260 to your computer and use it in GitHub Desktop.
Save Ivanopalas/fd75cc6f57ecb337f260 to your computer and use it in GitHub Desktop.
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
=e($name)
@at-root &_#{$name}
@content
=m($name)
@at-root &-#{$name}
@content
.block
color: red
+e(element)
color: green
+m(modifier)
color: blue
.block {
color: red;
}
.block_element {
color: green;
}
.block_element-modifier {
color: blue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment