MediaWiki:Common.css
MediaWiki interface page
More actions
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* 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 */
}
*/