Skip to content

Instantly share code, notes, and snippets.

@pfulton
Last active January 6, 2016 18:41
Show Gist options
  • Save pfulton/e23f4187939e83f94166 to your computer and use it in GitHub Desktop.
Save pfulton/e23f4187939e83f94166 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.3.2)
// ----
@mixin bg-color($color) {
background-color: $color;
}
.my-thing {
&.theme-red {
$bg-color: red;
.inner-thing {
@include bg-color(red);
}
}
&.theme-blue {
@include bg-color(red);
.inner-thing {
@include bg-color(blue);
}
}
}
.my-thing.theme-red .inner-thing {
background-color: red;
}
.my-thing.theme-blue {
background-color: red;
}
.my-thing.theme-blue .inner-thing {
background-color: blue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment