mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
34 lines
839 B
SCSS
34 lines
839 B
SCSS
/* Copyright: Ankitects Pty Ltd and contributors
|
|
* License: GNU AGPL, version 3 or later, http://www.gnu.org/licenses/agpl.html */
|
|
|
|
@use "sass:map";
|
|
@use "vars" as *;
|
|
@use "functions" as *;
|
|
|
|
/*! colors */
|
|
:root {
|
|
$colors: map.get($vars, colors);
|
|
@each $name, $val in create-vars-from-map($colors, light) {
|
|
#{$name}: #{$val};
|
|
}
|
|
color-scheme: light;
|
|
&.night-mode {
|
|
@each $name, $val in create-vars-from-map($colors, dark) {
|
|
#{$name}: #{$val};
|
|
}
|
|
color-scheme: dark;
|
|
}
|
|
}
|
|
|
|
/*! props */
|
|
:root {
|
|
$props: map.get($vars, props);
|
|
@each $name, $val in create-vars-from-map($props, light) {
|
|
#{$name}: #{$val}; /*! #{$name} */
|
|
}
|
|
&.night-mode {
|
|
@each $name, $val in create-vars-from-map($props, dark) {
|
|
#{$name}: #{$val};
|
|
}
|
|
}
|
|
}
|