mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00

* Reduce font size of answer button indicators * Increase padding of browser rows with ResizeToContents on vertical header * Remove 0.8 scale factor for dropdown item font-size * Remove font-size prop entirely from DropdownItem * Revert "Remove font-size prop entirely from DropdownItem" This reverts commitbb0a158f96
. * Remove hard-coded Python font sizes * Move font size and scrollbar into _root-vars.scss * Revert editor size variable to 1.6 * Fix icon alignment * Fix checkbox alignment for dropdown items * Remove unused classes from Tag.svelte * Revert "Increase padding of browser rows with ResizeToContents on vertical header" This reverts commit77bfc854ba
. * Remove option to set font size of browser entries * Add setting for browser row padding to preferences * Revert "Add setting for browser row padding to preferences" This reverts commit75c59da65a
. * Revert "Remove option to set font size of browser entries" This reverts commita543783d8e
.
65 lines
1.5 KiB
SCSS
65 lines
1.5 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 *;
|
|
@use "scrollbar";
|
|
|
|
/*! 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};
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/*! rest */
|
|
:root {
|
|
font-size: prop(font-size);
|
|
body {
|
|
overscroll-behavior: none;
|
|
&:not(.isMac),
|
|
&:not(.isMac) * {
|
|
@include scrollbar.custom;
|
|
}
|
|
}
|
|
}
|