MediaWiki:Common.css: Difference between revisions

From Ikwipedia
No edit summary
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 */
#p-logo a {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
#p-logo a img {
    width: 100%;
    height: auto;
    max-width: 135px; /* Set max width as per your layout */
    max-height: 135px; /* Set max height if needed */
    object-fit: contain; /* Scales the logo to fit the space */
}
body.special-page #p-logo a img,
body.login-page #p-logo a img {
    width: 100%;
    max-width: 135px;
    max-height: 135px;
    object-fit: contain;
    object-position: center;
}

Revision as of 02:57, 4 November 2024

/* CSS placed here will be applied to all skins */
#p-logo a {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
#p-logo a img {
    width: 100%;
    height: auto;
    max-width: 135px; /* Set max width as per your layout */
    max-height: 135px; /* Set max height if needed */
    object-fit: contain; /* Scales the logo to fit the space */
}
body.special-page #p-logo a img,
body.login-page #p-logo a img {
    width: 100%;
    max-width: 135px;
    max-height: 135px;
    object-fit: contain;
    object-position: center;
}