mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
Experiment with CSS filter for inline-colors
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.
This commit is contained in:
parent
bcf8992a9d
commit
d480e5ce5a
1 changed files with 9 additions and 0 deletions
|
@ -18,6 +18,15 @@ p {
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue