Jump to content

MediaWiki:Common.css

From λ LUMENWARD
Revision as of 19:11, 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.
/* SAFE BASELINE */

/* Text logo black */
.mw-logo,
.mw-logo a,
.mw-logo a:visited,
.mw-logo a:hover,
.mw-logo a:active {
  color: #000 !important;
}
.mw-logo a:hover { text-decoration: none !important; }

/* Remove Powered by MediaWiki safely */
#footer-poweredby,
#footer-poweredbyico,
.mw-poweredby {
  display: none !important;
}

/* =========================================================
   Center the MediaWiki search bar (Vector 2022)
   Applies to all pages
   ========================================================= */

/* Make header layout allow centering */
.mw-header {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
}

/* Center the search container */
.mw-header #p-search,
.mw-header .vector-search-box {
  grid-column: 2 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Prevent search from stretching oddly */
.mw-header .vector-search-box {
  max-width: 720px !important;
  width: 100% !important;
}

/* Keep logo on the left */
.mw-header .mw-logo {
  grid-column: 1 !important;
}

/* Keep user tools on the right */
.mw-header .vector-user-links,
.mw-header .mw-header-user {
  grid-column: 3 !important;
  justify-self: end !important;
}