mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00

* Use button gradient only on hover
* Apply hover effect to main window buttons
* Apply arbitrary change to force recreation of colors.py
* Undo arbitrary change to fix props not being created
* Remember that the comments are used for regex matching
* Yet another try
* Revert "Yet another try"
This reverts commit eaef4805c1
.
* Update _root-vars.scss
52 lines
1.3 KiB
SCSS
52 lines
1.3 KiB
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) {
|
|
@if str-index($name, "comment") == 1 {
|
|
/*! #{$val} */
|
|
} @else {
|
|
#{$name}: #{$val};
|
|
}
|
|
}
|
|
color-scheme: light;
|
|
|
|
&.night-mode {
|
|
@each $name, $val in create-vars-from-map($colors, dark) {
|
|
@if str-index($name, "comment") == 1 {
|
|
/*! #{$val} */
|
|
} @else {
|
|
#{$name}: #{$val};
|
|
}
|
|
}
|
|
color-scheme: dark;
|
|
}
|
|
}
|
|
|
|
/*! props */
|
|
:root {
|
|
$props: map.get($vars, props);
|
|
@each $name, $val in create-vars-from-map($props, light) {
|
|
@if str-index($name, "comment") == 1 {
|
|
/*! #{$val} */
|
|
} @else {
|
|
#{$name}: #{$val};
|
|
}
|
|
}
|
|
&.night-mode {
|
|
@each $name, $val in create-vars-from-map($props, dark) {
|
|
@if str-index($name, "comment") == 1 {
|
|
/*! #{$val} */
|
|
} @else {
|
|
#{$name}: #{$val};
|
|
}
|
|
}
|
|
}
|
|
}
|