mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
refactor: remove redundant themed styles
This commit is contained in:
parent
c714d8a1de
commit
108c05857c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user