css: images: black-on-white utility class

This commit is contained in:
He4eT 2025-04-25 20:57:31 +02:00 committed by Alexey
commit ec8735d6f6
3 changed files with 10 additions and 6 deletions

View file

@ -137,6 +137,15 @@ th, td {
padding-block-end: calc(1.75 * var(--step));
}
/* Images */
img.black-on-white {}
@media (prefers-color-scheme: dark) {
img.black-on-white {
filter: invert(1);
}
}
/* Separators */
hr {