Skip to content

Instantly share code, notes, and snippets.

@lunelson
Last active October 5, 2015 18:42
Show Gist options
  • Select an option

  • Save lunelson/1f17a10238e581ef653c to your computer and use it in GitHub Desktop.

Select an option

Save lunelson/1f17a10238e581ef653c to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
@mixin foo($out: false) {
@if $out {
@at-root { @content; }
}
}
@mixin bar() {
@at-root { @content; }
}
@mixin baz($string) {
@at-root .#{$string} { @content; }
}
.test {
@include foo(true) {
.nest1 {
color: red;
}
}
@include bar() {
.nest2 {
color: green;
}
}
@include baz('nest3') {
color: blue;
}
@at-root {
.nest4 {
color: yellow;
}
}
}
.nest1 {
color: red;
}
.nest2 {
color: green;
}
.nest3 {
color: blue;
}
.nest4 {
color: yellow;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment