2016-09-13 18:15:46 +00: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 15:55:53 +00:00
|
|
|
}
|
2016-09-13 18:15:46 +00:00
|
|
|
|
|
|
|
@content;
|
|
|
|
|
|
|
|
// reset theme color to null
|
|
|
|
$theme-map: null !global;
|
|
|
|
}
|
|
|
|
}
|
2017-06-26 21:46:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin icon() {
|
|
|
|
@include themify() {
|
|
|
|
color: getThemifyVariable('icon-color');
|
2020-04-29 22:34:37 +00:00
|
|
|
& g, & polygon, & path {
|
2020-04-21 21:49:02 +00:00
|
|
|
opacity: 1;
|
2017-06-26 21:46:47 +00:00
|
|
|
fill: getThemifyVariable('icon-color');
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
color: getThemifyVariable('icon-hover-color');
|
2020-04-29 22:34:37 +00:00
|
|
|
& g, & polygon, & path {
|
2017-06-26 21:46:47 +00:00
|
|
|
opacity: 1;
|
|
|
|
fill: getThemifyVariable('icon-hover-color');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
|
|
|
cursor: pointer;
|
|
|
|
padding: 0;
|
2016-09-13 18:15:46 +00:00
|
|
|
}
|