MediaWiki talk:Gadget-PageNumbers-core.css
Add topicAppearance
Latest comment: 1 month ago by Alien333 in topic Dark mode fix for sidenotes
Dark mode fix for sidenotes
[edit]![]() | A request has been made for an edit to this protected page. (protection log) This template should be accompanied by a specific description of the request. Please disable this template (via {{tl}} or nowiki tags) when the request is handled. |
Replace
div.dynlayout-layout_3 .wst-sidenote { position:absolute; right:0; width:9.00em; background-color:#eeeeee;
by
div.dynlayout-layout_3 .wst-sidenote { position:absolute; right:0; width:9.00em; background-color:var(--background-color-neutral, #eeeeee);
(use variable to prevent white text on white in dark mode). — Alien 3
3 3 15:30, 2 March 2025 (UTC)
- @Alien333:
--background-color-neutral
(#27292d) is pretty far from#eeeeee
. Are you sure this change does what you think it does? Xover (talk) 17:42, 2 March 2025 (UTC)- In light mode it's #eaecf0. It's only #27292d when dark mode is activated. So yes, this is intentional; when the user shifts to dark mode, what used to be light becomes dark, so that when at the same time the text goes from dark to light, we don't end up with light on light, but light on dark. — Alien 3
3 3 20:09, 2 March 2025 (UTC)
- In light mode it's #eaecf0. It's only #27292d when dark mode is activated. So yes, this is intentional; when the user shifts to dark mode, what used to be light becomes dark, so that when at the same time the text goes from dark to light, we don't end up with light on light, but light on dark. — Alien 3