Jump to content

MediaWiki:Common.css

From λ LUMENWARD
Revision as of 19:16, 13 December 2025 by Kauku (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.
/* =========================================================
   TRUE center search (independent of left/right header content)
   Vector 2022
   ========================================================= */

/* Make header positioning context */
.mw-header {
  position: relative !important;
}

/* Absolutely center the search box */
.mw-header .vector-search-box,
.mw-header #p-search {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(720px, calc(100vw - 520px)) !important; /* leaves room for left+right UI */
  margin: 0 !important;
}

/* Keep the search vertically aligned */
.mw-header .vector-search-box {
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}

/* Ensure user tools stay right and above any overlap */
.mw-header .vector-user-links,
.mw-header .mw-header-user,
.mw-header .vector-user-menu,
.mw-header .vector-user-menu-container {
  position: relative !important;
  z-index: 2 !important;
}

/* Ensure logo/menu stays left and above any overlap */
.mw-header .mw-logo,
.mw-header .mw-header-start,
.mw-header .vector-header-start {
  position: relative !important;
  z-index: 2 !important;
}