2022-10-29 02:48:53 +02:00
|
|
|
/* 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 *;
|
2022-11-23 07:50:15 +01:00
|
|
|
@use "scrollbar";
|
2022-10-29 02:48:53 +02:00
|
|
|
|
|
|
|
/*! colors */
|
|
|
|
:root {
|
|
|
|
$colors: map.get($vars, colors);
|
2022-11-02 11:39:30 +01:00
|
|
|
|
2022-10-29 02:48:53 +02:00
|
|
|
@each $name, $val in create-vars-from-map($colors, light) {
|
|
|
|
@if str-index($name, "comment") == 1 {
|
|
|
|
/*! #{$val} */
|
|
|
|
} @else {
|
|
|
|
#{$name}: #{$val};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
color-scheme: light;
|
2022-11-02 11:39:30 +01:00
|
|
|
|
2022-10-29 02:48:53 +02:00
|
|
|
&.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};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-11-23 07:50:15 +01:00
|
|
|
|
|
|
|
/*! rest */
|
2022-11-28 11:52:19 +01:00
|
|
|
html {
|
2022-11-23 07:50:15 +01:00
|
|
|
font-size: prop(font-size);
|
|
|
|
body {
|
|
|
|
overscroll-behavior: none;
|
|
|
|
&:not(.isMac),
|
|
|
|
&:not(.isMac) * {
|
|
|
|
@include scrollbar.custom;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|