Last active
August 29, 2015 14:19
-
-
Save esseb/e75cd2c7bb156f7cc91f to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
$themes: "default", "privatmegleren"; | |
$theme-default: blue; | |
$theme-privatmegleren: lime; | |
$color: red; | |
@mixin theme() { | |
@each $theme in $themes { | |
$color: yellow; // TODO: Read theme color | |
.theme-#{$theme} & { | |
@content; | |
} | |
} | |
$color: blue; | |
} | |
.button { | |
display: block; | |
@include theme() { | |
color: $color; | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.button { | |
display: block; | |
} | |
.theme-default .button { | |
color: red; | |
} | |
.theme-privatmegleren .button { | |
color: red; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment