Infra: Only invert image brightness, not hue (#2949)
Since inversion doesn’t just affect brightness, but also hue, there’s a problem: Some background colors have perceptually less contrast with their text when hue rotated. This rotates their hue back, fixing the contrast issue.
This commit is contained in:
parent
32c692b214
commit
631ee6ce60
|
@ -53,7 +53,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
img.invert-in-dark-mode {
|
img.invert-in-dark-mode {
|
||||||
filter: var(--dark, invert(1));
|
filter: var(--dark, invert(1) hue-rotate(.5turn));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set master rules */
|
/* Set master rules */
|
||||||
|
|
Loading…
Reference in New Issue