Skip to content

Instantly share code, notes, and snippets.

@jdlehman
Last active August 29, 2015 14:07
Show Gist options
  • Save jdlehman/a0e18a540232ae341a9e to your computer and use it in GitHub Desktop.
Save jdlehman/a0e18a540232ae341a9e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.6)
// Compass (v1.0.1)
// ----
@mixin desc($names...) {
@each $name in $names {
@at-root &-#{$name} { @content; }
}
}
.Level1 {
parent: 'hi';
#{&}-child {
color: 'test';
}
@include desc(child2) {
color: test2;
}
}
.Level1, .Level2 {
parent: 'hi';
#{&}-child {
color: 'test';
}
@include desc(child2) {
color: test2;
}
}
.Level1 {
parent: 'hi';
}
.Level1 .Level1-child {
color: 'test';
}
.Level1-child2 {
color: test2;
}
.Level1, .Level2 {
parent: 'hi';
}
.Level1 .Level1, .Level1 .Level2-child, .Level2 .Level1, .Level2 .Level2-child {
color: 'test';
}
.Level1-child2, .Level2-child2 {
color: test2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment