MediaWiki:Common.css: Difference between revisions

From Librarian Chick
Jump to navigation Jump to search
Logo: natural size, responsive scaling
Logo: align left edge to sidebar boundary
Line 1: Line 1:
/* Logo: top center, natural size (416x100), responsive */
/* Logo: left edge aligned with sidebar/content boundary */
#p-logo {
#p-logo {
     position: fixed;
     position: fixed;
     left: 50%;
     left: 160px;
    transform: translateX(-50%);
     top: 5px;
     top: 5px;
     z-index: 1000;
     z-index: 1000;
Line 10: Line 9:
     background-size: contain !important;
     background-size: contain !important;
     background-repeat: no-repeat !important;
     background-repeat: no-repeat !important;
     background-position: center !important;
     background-position: left center !important;
     width: 416px !important;
     width: 416px !important;
     height: 100px !important;
     height: 100px !important;
Line 21: Line 20:


@media (max-width: 900px) {
@media (max-width: 900px) {
    #p-logo { left: 160px; }
     .mw-wiki-logo { width: 300px !important; height: 72px !important; }
     .mw-wiki-logo { width: 300px !important; height: 72px !important; }
     #mw-head, #mw-head-base { top: 82px; height: 82px; }
     #mw-head, #mw-head-base { top: 82px; height: 82px; }
Line 27: Line 27:
}
}
@media (max-width: 600px) {
@media (max-width: 600px) {
    #p-logo { left: 0; }
     .mw-wiki-logo { width: 200px !important; height: 48px !important; }
     .mw-wiki-logo { width: 200px !important; height: 48px !important; }
     #mw-head, #mw-head-base { top: 58px; height: 58px; }
     #mw-head, #mw-head-base { top: 58px; height: 58px; }

Revision as of 23:46, 23 March 2026

/* Logo: left edge aligned with sidebar/content boundary */
#p-logo {
    position: fixed;
    left: 160px;
    top: 5px;
    z-index: 1000;
}
.mw-wiki-logo {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    width: 416px !important;
    height: 100px !important;
    display: block;
}
#mw-head      { top: 110px; }
#mw-head-base { height: 110px; }
#mw-page-base { padding-top: 110px; }
#mw-panel     { padding-top: 110px; }

@media (max-width: 900px) {
    #p-logo { left: 160px; }
    .mw-wiki-logo { width: 300px !important; height: 72px !important; }
    #mw-head, #mw-head-base { top: 82px; height: 82px; }
    #mw-page-base { padding-top: 82px; }
    #mw-panel     { padding-top: 82px; }
}
@media (max-width: 600px) {
    #p-logo { left: 0; }
    .mw-wiki-logo { width: 200px !important; height: 48px !important; }
    #mw-head, #mw-head-base { top: 58px; height: 58px; }
    #mw-page-base { padding-top: 58px; }
    #mw-panel     { padding-top: 58px; }
}