MediaWiki:Common.css: Difference between revisions

From Ikwipedia
No edit summary
Tag: Reverted
Tags: Replaced Manual revert
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* 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);
    }
});

Revision as of 03:42, 4 November 2024

/* CSS placed here will be applied to all skins */