MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
Corni muesli (talk | contribs) Attempt to change darkmode theme |
Corni muesli (talk | contribs) Attempt overwrite enforcement |
||
| Line 5: | Line 5: | ||
--text-color:#DFE0E2; | --text-color:#DFE0E2; | ||
--link-color:#72a7eb; | --link-color:#72a7eb; | ||
--infobox-text:#DFE0E2; | --infobox-text:#DFE0E2 !important; | ||
--infobox-background:# | --infobox-background:#323339 !important | ||
} | } | ||
| Line 14: | Line 14: | ||
--text-color:#DFE0E2; | --text-color:#DFE0E2; | ||
--link-color:#72a7eb; | --link-color:#72a7eb; | ||
--infobox-text:#DFE0E2; | --infobox-text:#DFE0E2 !important; | ||
--infobox-background:# | --infobox-background:#323339 !important | ||
} | } | ||
} | } | ||
/* 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:38, 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 !important;
--infobox-background:#323339 !important
}
@media (prefers-color-scheme:dark) {
:root {
--body-background-color:#323339;
--text-color:#DFE0E2;
--link-color:#72a7eb;
--infobox-text:#DFE0E2 !important;
--infobox-background:#323339 !important
}
}
/* 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 */
}
*/