MediaWiki:Common.css

Revision as of 18:11, 13 July 2025 by Gvihar (talk | contribs)

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.
/* ===== Final Fix: Remove top white space above logo in Vector 2022 ===== */

/* Remove all padding and margin in header */
.vector-header,
.vector-header-container,
.vector-sticky-header {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

/* Hide site title text */
.vector-header .vector-header-start .mw-logo-wordmark,
.vector-header .vector-header-start .vector-header-wiki-name {
    display: none !important;
}

/* Ensure logo container aligns logo to very top */
.vector-header-start {
    display: flex !important;
    align-items: flex-start !important;  /* Align logo to top */
    justify-content: center !important;
    padding: 0 !important;               /* KEY: remove top padding */
    margin: 0 !important;
    height: auto !important;
}

/* Adjust logo to touch the top and scale correctly */
.vector-header-logo,
.mw-logo-icon {
    width: 120px !important;                   /* Adjust width if needed */
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: top center !important; /* Align to top */
    display: flex !important;
    align-items: flex-start !important;         /* Align image to top */
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
}


/* Hide site title in Vector 2022 */
.vector-header .vector-header-start .mw-logo-wordmark,
.vector-header .vector-header-start .mw-logo-wiki-name {
    display: none !important;
}