Skip to content

Instantly share code, notes, and snippets.

@miketierney
Created August 11, 2014 01:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miketierney/688345d974b90c406bc2 to your computer and use it in GitHub Desktop.
Save miketierney/688345d974b90c406bc2 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
=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