Jump to content

MediaWiki:Common.css: Difference between revisions

From λ LUMENWARD
No edit summary
No edit summary
Line 29: Line 29:


/* ---------------------------------------------------------
/* ---------------------------------------------------------
   Search bar positioning
   Header layout (Vector 2022)
  - True center, nudged slightly right (~80px)
   Keep: logo left · search middle · user tools right
   - Does NOT affect login/user icons or logo
   --------------------------------------------------------- */
   --------------------------------------------------------- */
.mw-header .vector-header-container {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}


/* Make header a positioning context */
.mw-header .vector-header-start {
.mw-header {
   flex: 0 0 auto !important;
   position: relative !important;
}
}


/* Position search bar */
.mw-header .vector-header-middle {
.mw-header .vector-search-box,
   flex: 1 1 auto !important;
.mw-header #p-search {
   display: flex !important;
   position: absolute !important;
   justify-content: center !important;
   left: calc(50% + 80px) !important; /* ~5 spacebars to the right */
}
   top: 50% !important;
  transform: translate(-50%, -50%) !important;


   width: min(720px, calc(100vw - 520px)) !important;
.mw-header .vector-header-end {
   margin: 0 !important;
   flex: 0 0 auto !important;
  margin-left: auto !important;
   display: flex !important;
  justify-content: flex-end !important;
}
}


/* Mobile safety: revert to normal flow */
@media (max-width: 900px) {
  .mw-header .vector-search-box,
  .mw-header #p-search {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;


    width: 100% !important;
/* ---------------------------------------------------------
    margin: 12px 0 0 !important;
  Move ONLY the search bar slightly to the right
  }
  (about ~5 spacebar widths ≈ 80px)
  --------------------------------------------------------- */
.mw-header .vector-header-middle .vector-search-box,
.mw-header .vector-header-middle #p-search {
  width: min(720px, 100%) !important;
  transform: translateX(80px) !important; /* move right */
}
}

Revision as of 19:33, 13 December 2025

/* =========================================================
   Lumenward — minimal, stable global adjustments
   Skin: Vector 2022
   ========================================================= */


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


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


/* ---------------------------------------------------------
   Header layout (Vector 2022)
   Keep: logo left · search middle · user tools right
   --------------------------------------------------------- */
.mw-header .vector-header-container {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.mw-header .vector-header-start {
  flex: 0 0 auto !important;
}

.mw-header .vector-header-middle {
  flex: 1 1 auto !important;
  display: flex !important;
  justify-content: center !important;
}

.mw-header .vector-header-end {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  display: flex !important;
  justify-content: flex-end !important;
}


/* ---------------------------------------------------------
   Move ONLY the search bar slightly to the right
   (about ~5 spacebar widths ≈ 80px)
   --------------------------------------------------------- */
.mw-header .vector-header-middle .vector-search-box,
.mw-header .vector-header-middle #p-search {
  width: min(720px, 100%) !important;
  transform: translateX(80px) !important; /* move right */
}