Jump to content

MediaWiki:Common.css: Difference between revisions

From λ LUMENWARD
No edit summary
No edit summary
Line 22: Line 22:
}
}


/* =========================================================
//* =========================================================
   Lumenward search appearance (style only)
   Center ONLY the search area; keep user/login far right
   No layout changes. No display changes.
   Works even if Vector header wrappers differ
   ========================================================= */
   ========================================================= */


/* Search input — light mock look */
/* PROOF (temporary): if you don't see this outline, Common.css isn't applying */
.mw-header input[type="search"],
.mw-header { outline: 2px solid transparent; } /* change to red in debug if needed */
.mw-header #searchInput {
 
   background: #f6f6f6 !important;
/* Make the header a simple 3-part flex row */
  border: 1px solid #e6e6e6 !important;
.mw-header {
   border-radius: 999px !important;
   display: flex !important;
  padding: 10px 14px !important;
   align-items: center !important;
  font-size: 14px !important;
}
  color: #0a0a0a !important;
 
  outline: none !important;
/* Logo stays left */
   box-shadow: none !important;
.mw-header .mw-logo {
   flex: 0 0 auto !important;
}
}


/* Focus: subtle */
/* Search lane takes remaining space and centers its contents */
.mw-header input[type="search"]:focus,
.mw-header [role="search"],
.mw-header #searchInput:focus {
.mw-header form.mw-search,
   background: #ffffff !important;
.mw-header #p-search,
   border-color: #bdbdbd !important;
.mw-header .vector-search-box,
.mw-header .vector-search-box-vue {
  flex: 1 1 auto !important;
   display: flex !important;
   justify-content: center !important;
}
}


/* Placeholder tone */
/* Constrain the search width (centered) */
.mw-header input[type="search"]::placeholder,
.mw-header [role="search"] input[type="search"],
.mw-header #searchInput::placeholder {
.mw-header form.mw-search input[type="search"],
   color: #6a6a6a !important;
.mw-header #searchInput {
  opacity: 1 !important;
   width: min(720px, 100%) !important;
}
}


/* If there is a search button/icon, make it match (no show/hide) */
/* User/login tools forced far right */
.mw-header button,
.mw-header .vector-user-links,
.mw-header .searchButton,
.mw-header #p-personal,
.mw-header .mw-ui-button {
.mw-header .mw-header-user,
   background: transparent !important;
.mw-header .vector-user-menu,
   border-color: transparent !important;
.mw-header .vector-user-menu-container {
   box-shadow: none !important;
   flex: 0 0 auto !important;
   margin-left: auto !important;
   justify-self: end !important;
}
}

Revision as of 19:59, 13 December 2025

/* =========================================================
   Vector 2022: prevent overlapping duplicate search
   Keep normal header search, hide sticky-header duplicate only
   ========================================================= */

/* Hide only the search inside the sticky header (duplicate) */
.vector-sticky-header input[type="search"],
.vector-sticky-header #searchInput,
.vector-sticky-header .vector-search-box,
.vector-sticky-header form.mw-search,
.vector-sticky-header [role="search"] {
  display: none !important;
}

/* Ensure the normal header search stays visible */
.mw-header input[type="search"],
.mw-header #searchInput,
.mw-header .vector-search-box,
.mw-header form.mw-search,
.mw-header [role="search"] {
  display: block !important;
}

//* =========================================================
   Center ONLY the search area; keep user/login far right
   Works even if Vector header wrappers differ
   ========================================================= */

/* PROOF (temporary): if you don't see this outline, Common.css isn't applying */
.mw-header { outline: 2px solid transparent; } /* change to red in debug if needed */

/* Make the header a simple 3-part flex row */
.mw-header {
  display: flex !important;
  align-items: center !important;
}

/* Logo stays left */
.mw-header .mw-logo {
  flex: 0 0 auto !important;
}

/* Search lane takes remaining space and centers its contents */
.mw-header [role="search"],
.mw-header form.mw-search,
.mw-header #p-search,
.mw-header .vector-search-box,
.mw-header .vector-search-box-vue {
  flex: 1 1 auto !important;
  display: flex !important;
  justify-content: center !important;
}

/* Constrain the search width (centered) */
.mw-header [role="search"] input[type="search"],
.mw-header form.mw-search input[type="search"],
.mw-header #searchInput {
  width: min(720px, 100%) !important;
}

/* User/login tools forced far right */
.mw-header .vector-user-links,
.mw-header #p-personal,
.mw-header .mw-header-user,
.mw-header .vector-user-menu,
.mw-header .vector-user-menu-container {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  justify-self: end !important;
}