MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary Tag: Reverted |
||
| Line 349: | Line 349: | ||
} | } | ||
})(); | })(); | ||
mw.hook('wikipage.content').add(function () { | |||
const style = document.createElement('style'); | |||
style.textContent = ` | |||
@media screen and (prefers-color-scheme: dark) { | |||
html.skin-theme-clientpref-os .vector-header .vector-dropdown-content { | |||
background:#101418 !important; | |||
background-color:#101418 !important; | |||
} | |||
html.skin-theme-clientpref-os .vector-header .vector-dropdown-content, | |||
html.skin-theme-clientpref-os .vector-header .vector-dropdown-content * { | |||
color:#f8f9fa !important; | |||
} | |||
}`; | |||
document.head.appendChild(style); | |||
}); | |||