On Thu, 28 Apr 2022 09:38:09 +0200
Страхиња Радић <contact_AT_strahinja.org> wrote:
Dear Страхиња,
> This can be remedied with CSS which applies white background to logos
> (perhaps with some padding: <whatever> to also give a bit of a
> border).
>
> In my opinion, dark mode is unnecessary and favored by mainstream
> "webdevs".
I personally also like dark mode, but understand it's a matter of taste
(and 1 bit of information added to the online-fingerprint).
However, I managed to tweak it such that it now works with dark mode as
well by adding the following CSS-rule to the dark mode section in the
CSS:
#main img[src$=svg] {
filter: invert(1);
}
All <img> within #main that are svg's are inverted in dark mode.
Granted it makes use of a filter, which is not supported everywhere,
but given prefers-color-scheme is also only supported by modern
browsers, this should not be an issue.
I hope everyone's okay with this.
With best regards
Laslo
Received on Thu Apr 28 2022 - 13:06:05 CEST