2016-09-13 20:15:46 +02:00
|
|
|
@mixin themify ($themes: $themes) {
|
|
|
|
@each $theme, $map in $themes {
|
|
|
|
.#{$theme} & {
|
|
|
|
// Define theme color
|
|
|
|
$theme-map : (
|
|
|
|
) !global;
|
|
|
|
|
|
|
|
@each $key, $submap in $map {
|
|
|
|
$value: map-fetch($themes, $theme '#{$key}');
|
|
|
|
$theme-map: map-merge($theme-map, ($key: $value)) !global;
|
2016-09-14 17:55:53 +02:00
|
|
|
}
|
2016-09-13 20:15:46 +02:00
|
|
|
|
|
|
|
@content;
|
|
|
|
|
|
|
|
// reset theme color to null
|
|
|
|
$theme-map: null !global;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|