_sass/dash/_mixins.scss in jekyll-dash-1.2.0 vs _sass/dash/_mixins.scss in jekyll-dash-1.3.0

- old
+ new

@@ -7,5 +7,23 @@ font-weight: 900; display: none; -webkit-font-smoothing: antialiased; } + +@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($theme-map, ($key: $value)) !global; + } + @content; + $theme-map: null !global; + } + } +} + +@function t($key) { + @return map-get($theme-map, $key); +}