Skip to content

Instantly share code, notes, and snippets.

@sturobson
Created October 26, 2013 21:20
Show Gist options
  • Save sturobson/7174681 to your computer and use it in GitHub Desktop.
Save sturobson/7174681 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
//elements get appended with "__" and the $name
@mixin e($name) {
@at-root #{&}__#{$name} {
@content;
}
}
//modifiers get appended with "--" and the $name
@mixin m($name) {
@at-root #{&}--#{$name} {
@content;
}
}
.link {
background: red;
@include m(test) {
background: blue;
}
@include e(tester) {
background: orange;
}
}
.link {
background: red;
}
.link--test {
background: blue;
}
.link__tester {
background: orange;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment