mirror of https://github.com/lxndrblz/anatole.git

alexanderdavide
16.00.2022 9e5d138e97cd119226049c02cc31d4ea903eb711
fix: deprecation warning global assignments won't be able to declare new variables in future versions
1 files modified
5 ■■■■■ changed files
assets/scss/modules/_color_theme.scss 5 ●●●●● patch | view | raw | blame | history
assets/scss/modules/_color_theme.scss
@@ -21,10 +21,11 @@
  ),
);
$theme-map: ();
@mixin themed() {
  @each $theme, $map in $themes {
    .theme--#{$theme} & {
      $theme-map: () !global;
      @each $key, $submap in $map {
        $value: map-get(map-get($themes, $theme), '#{$key}');
        $theme-map: map-merge(
@@ -35,7 +36,7 @@
        ) !global;
      }
      @content;
      $theme-map: null !global;
      $theme-map: ();
    }
  }
}