MediaWiki:Common.css: Difference between revisions

From Ikwipedia
No edit summary
Tag: Reverted
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 */
}


/* CSS for consistent logo size and positioning across all pages */
.mw-wiki-logo {
.mw-wiki-logo {
     max-width: 135px !important; /* Limit max width */
    width: 100%; /* Scale the logo to fit container width */
     max-height: 135px !important; /* Limit max height */
     max-width: 135px; /* Limit maximum width */
     object-fit: contain; /* Ensure the image scales to fit within bounds */
    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 */
}