Skip to content

Instantly share code, notes, and snippets.

@robertlyall
Created February 6, 2014 15:36
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 robertlyall/8846542 to your computer and use it in GitHub Desktop.
Save robertlyall/8846542 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
= e($name)
@at-root #{&}__#{$name}
@content
= m($name)
@at-root #{&}--#{$name}
@content
%block
// %block
color: red
// %block--large
+m(large)
background: blue
// %block--small
+m(small)
background: green
.articles
@extend %block
h1
@extend %block--large
.profile
@extend %block
h2
@extend %block--small
.articles, .profile {
color: red; }
.articles h1 {
background: blue; }
.profile h2 {
background: green; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment