MediaWiki:Common.css

From Librarian Chick
Revision as of 23:44, 23 March 2026 by Maintenance script (talk | contribs) (Logo: natural size, responsive scaling)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Logo: top center, natural size (416x100), responsive */
#p-logo {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 5px;
    z-index: 1000;
}
.mw-wiki-logo {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: 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) {
    .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) {
    .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; }
}