Jump to content

MediaWiki talk:Gadget-PageNumbers-core.css

Page contents not supported in other languages.
Add topic
From Wikisource
Latest comment: 1 month ago by Alien333 in topic Dark mode fix for sidenotes

Dark mode fix for sidenotes

[edit]

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)Reply

@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)Reply
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)Reply