MediaWiki:Common.css
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)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */
mw.loader.using('mediawiki.util').then(function() {
if (mw.config.get('wgNamespaceNumber') === -1) { // -1 refers to Special pages
var css = `
body { background-color: green !important; }
.mw-wiki-logo {
width: 100px !important;
max-width: 135px !important;
height: auto !important;
max-height: 135px !important;
background-size: contain !important;
background-position: center !important;
background-repeat: no-repeat !important;
}
`;
var style = document.createElement('style');
style.appendChild(document.createTextNode(css));
document.head.appendChild(style);
}
});