MediaWiki:Common.css: Difference between revisions
EnWikiAdmin (talk | contribs) No edit summary Tag: Reverted |
EnWikiAdmin (talk | contribs) No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* CSS for consistent logo size and positioning across all pages */ | |||
.mw-wiki-logo { | .mw-wiki-logo { | ||
max-width: 135px | width: 100%; /* Scale the logo to fit container width */ | ||
max-height: 135px | max-width: 135px; /* 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 */ | |||
} | } |
Revision as of 03:15, 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; /* 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 */
}