Anki/ts/editable/editable-base.scss
Matthias Metelka d480e5ce5a 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.
2022-08-18 11:20:58 +02:00

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);
}
}