MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
Corni muesli (talk | contribs) Attempt to change darkmode theme |
||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
:root.skin-theme-clientpref-night { | |||
--body-background-color:#323339; | |||
--text-color:#DFE0E2; | |||
--link-color:#72a7eb; | |||
--infobox-text:#DFE0E2; | |||
--infobox-background:#353748 | |||
} | |||
@media (prefers-color-scheme:dark) { | |||
:root { | |||
--body-background-color:#323339; | |||
--text-color:#DFE0E2; | |||
--link-color:#72a7eb; | |||
--infobox-text:#DFE0E2; | |||
--infobox-background:#353748 | |||
} | |||
} | |||
/* Copied from https://en.wikipedia.org/w/index.php?action=edit&title=MediaWiki:Common.css */ | /* Copied from https://en.wikipedia.org/w/index.php?action=edit&title=MediaWiki:Common.css */ | ||
Revision as of 11:16, 22 October 2025
/* CSS placed here will be applied to all skins */
:root.skin-theme-clientpref-night {
--body-background-color:#323339;
--text-color:#DFE0E2;
--link-color:#72a7eb;
--infobox-text:#DFE0E2;
--infobox-background:#353748
}
@media (prefers-color-scheme:dark) {
:root {
--body-background-color:#323339;
--text-color:#DFE0E2;
--link-color:#72a7eb;
--infobox-text:#DFE0E2;
--infobox-background:#353748
}
}
/* Copied from https://en.wikipedia.org/w/index.php?action=edit&title=MediaWiki:Common.css */
/*
* BELOW HERE THERE BE SOONTOBE TEMPLATESTYLES THINGS;
* SEE [[MediaWiki talk:Common.css/to do]]
* CSS is separated by component (which is why media queries are not joined)
*/
/* for background of specific page
.page-Main_Page {
background-image: url('YOUR_IMAGE_URL');
background-size: cover; /* Optional: adjust as needed */
background-repeat: no-repeat; /* Optional: adjust as needed */
}
*/