MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
Logo: top center |
Align nav to logo bottom |
||
| Line 16: | Line 16: | ||
display: block; | display: block; | ||
} | } | ||
/* | /* Align everything to the bottom of the logo (5px + 75px = 80px) */ | ||
#mw-head { | #mw-head { | ||
top: | top: 80px; | ||
} | } | ||
#mw-head-base { | #mw-head-base { | ||
height: | height: 80px; | ||
} | } | ||
#mw-page-base { | #mw-page-base { | ||
padding-top: | padding-top: 80px; | ||
} | } | ||
@media screen and (max-width: 720px) { | @media screen and (max-width: 720px) { | ||
.mw-wiki-logo { width: 130px !important; height: 50px !important; } | .mw-wiki-logo { width: 130px !important; height: 50px !important; } | ||
#mw-head | #mw-head { top: 55px; } | ||
#mw-head-base { height: 55px; } | |||
#mw-page-base { padding-top: 55px; } | |||
} | } | ||
Revision as of 23:41, 23 March 2026
/* Logo: top center, responsive */
#p-logo {
position: fixed;
left: 50%;
transform: translateX(-50%);
top: 5px;
z-index: 1000;
width: auto;
}
.mw-wiki-logo {
background-size: contain !important;
background-repeat: no-repeat !important;
background-position: center !important;
width: 200px !important;
height: 75px !important;
display: block;
}
/* Align everything to the bottom of the logo (5px + 75px = 80px) */
#mw-head {
top: 80px;
}
#mw-head-base {
height: 80px;
}
#mw-page-base {
padding-top: 80px;
}
@media screen and (max-width: 720px) {
.mw-wiki-logo { width: 130px !important; height: 50px !important; }
#mw-head { top: 55px; }
#mw-head-base { height: 55px; }
#mw-page-base { padding-top: 55px; }
}