Skip to content

Instantly share code, notes, and snippets.

@aoussarmustapha
Created May 5, 2015 13:06
Show Gist options
  • Save aoussarmustapha/a827a73a089001dd6fb1 to your computer and use it in GitHub Desktop.
Save aoussarmustapha/a827a73a089001dd6fb1 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
$color: null ;
$a: 1;
@mixin getMixin {
.foreground {
background: $a;
@if variable-exists(color) {
background: $color;
}
}
}
$color-scheme: blue;
@if $color-scheme == blue {
.blue {
$a: 2;
$color: #000;
@include getMixin;
}
}
$color-scheme: red;
@if $color-scheme == red {
.red {
$a: 3;
$color: null;
@include getMixin;
}
}
.blue .foreground {
background: 2;
background: #000;
}
.red .foreground {
background: 3;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment