MediaWiki:Common.css: Difference between revisions
EnWikiAdmin (talk | contribs) No edit summary Tags: Manual revert Reverted |
EnWikiAdmin (talk | contribs) No edit summary Tag: Reverted |
||
Line 4: | Line 4: | ||
.mw-wiki-logo { | .mw-wiki-logo { | ||
width: 100%; /* Scale the logo to fit container width */ | width: 100%; /* Scale the logo to fit container width */ | ||
max-width: 135px; /* Limit maximum width */ | max-width: 135px !important; /* Limit maximum width */ | ||
height: auto; /* Preserve aspect ratio */ | height: auto; /* Preserve aspect ratio */ | ||
max-height: 135px; /* Limit maximum height */ | max-height: 135px; /* Limit maximum height */ |
Revision as of 03:30, 4 November 2024
/* CSS placed here will be applied to all skins */
/* CSS for consistent logo size and positioning across all pages */
.mw-wiki-logo {
width: 100%; /* Scale the logo to fit container width */
max-width: 135px !important; /* Limit maximum width */
height: auto; /* Preserve aspect ratio */
max-height: 135px; /* Limit maximum height */
background-size: contain; /* Ensure logo scales to fit */
background-position: center; /* Center the logo */
background-repeat: no-repeat; /* Avoid tiling */
}