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 */ | ||
/* Enforce logo size and containment across all pages */ | |||
#p-logo a { | |||
background-size: contain !important; /* Ensure the background scales to fit */ | |||
background-position: center center !important; /* Center the logo */ | |||
width: 135px !important; /* Explicit width for consistency */ | |||
height: 135px !important; /* Explicit height for consistency */ | |||
} | |||
.mw-wiki-logo { | .mw-wiki-logo { | ||
max-width: 135px !important; /* Limit max width */ | max-width: 135px !important; /* Limit max width */ |
Revision as of 03:13, 4 November 2024
/* CSS placed here will be applied to all skins */
/* Enforce logo size and containment across all pages */
#p-logo a {
background-size: contain !important; /* Ensure the background scales to fit */
background-position: center center !important; /* Center the logo */
width: 135px !important; /* Explicit width for consistency */
height: 135px !important; /* Explicit height for consistency */
}
.mw-wiki-logo {
max-width: 135px !important; /* Limit max width */
max-height: 135px !important; /* Limit max height */
object-fit: contain; /* Ensure the image scales to fit within bounds */
}