mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 00:36:38 -04:00

Inside darker inputs, some colors like dark blue will be hard to read, so we could try to improve text-color contrast with global adjustments depending on the theme.
32 lines
485 B
SCSS
32 lines
485 B
SCSS
@use "sass/scrollbar";
|
|
|
|
* {
|
|
max-width: 100%;
|
|
}
|
|
|
|
p {
|
|
margin-top: 0;
|
|
margin-bottom: 1rem;
|
|
|
|
&:empty::after {
|
|
content: "\a";
|
|
white-space: pre;
|
|
}
|
|
}
|
|
|
|
[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
/* Nudge users towards using brighter colors,
|
|
so they are more readable in dark themes */
|
|
span[style*="color"] {
|
|
filter: brightness(0.8);
|
|
}
|
|
|
|
:host(.night-mode) {
|
|
@include scrollbar.night-mode;
|
|
span[style*="color"] {
|
|
filter: brightness(1.2);
|
|
}
|
|
}
|