refactor: remove redundant themed styles

This commit is contained in:
07akioni 2020-05-29 11:30:29 +08:00
parent c714d8a1de
commit 108c05857c

View File

@ -80,13 +80,14 @@ $block-depth: 0;
$common-css-attrs-generated: false; $common-css-attrs-generated: false;
$theme: null; $theme: null;
$in-themes-mixin: false; $in-themes-mixin: false;
$theme-names: 'dark', 'light'; $theme-names: 'dark';
/** wait for sass to support dynamic @include mixins */ /** wait for sass to support dynamic @include mixins, although it may be impossible */
$default-theme: 'light'; $fallback-theme: 'light';
@mixin themes-mixin() { @mixin themes-mixin() {
$in-themes-mixin: true !global; $in-themes-mixin: true !global;
$theme: 'light' !global; $theme: 'light' !global;
// fallback theme is light
@include setup-light-theme(); @include setup-light-theme();
@content; @content;
$common-css-attrs-generated: true !global; $common-css-attrs-generated: true !global;