Jump to content

MediaWiki:Common.css: Difference between revisions

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


/* =========================================================
/* =========================================================
   Lumenward Infobox: clean, modern, site-matching frame
   Lumenward Infobox: top alignment + tighter image placement
   ========================================================= */
   ========================================================= */


.infobox{
/* Pull the whole infobox up so it aligns with the first paragraph */
  background: #ffffff;
.mw-parser-output .infobox{
  border: 1px solid #e6e6e6;
   margin-top: 0 !important;
  border-radius: 10px;
  overflow: hidden;            /* makes header + image clip nicely */
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
   color: #0a0a0a;
}
}


/* Title/header row */
/* If Vector adds any clearing/offset, this helps keep it snug */
.infobox > tbody > tr:first-child > td,
.mw-parser-output .infobox{
.infobox > tbody > tr:first-child > th{
   float: right;
   background: #f6f6f6;
   clear: right;
   border-bottom: 1px solid #e6e6e6;
  padding: 10px 12px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.2px;
}
}


/* Image row (your template uses colspan=2 for image) */
/* Tighter image row: remove excess padding and make it feel attached */
.infobox > tbody > tr:nth-child(2) > td{
.infobox > tbody > tr:nth-child(2) > td{
   background: #fafafa;
   padding: 8px !important;
   border-bottom: 1px solid #e6e6e6;
   background: #ffffff !important;
  padding: 12px;
}
}


/* Make the image feel “framed” but modern */
/* Keep the image centered but not "floating" */
.infobox img{
.infobox img{
   display: block;
   margin: 0 auto !important;
  max-width: 100%;
  height: auto;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
}
}


/* Rows */
/* Optional: reduce the "double frame" look around the image */
.infobox td,
.infobox img{
.infobox th{
   border-radius: 8px;
   padding: 7px 10px;
  vertical-align: top;
}
}


/* Subtle separators between rows */
/* If you still see too much vertical gap above the first row */
.infobox > tbody > tr + tr td{
.infobox > tbody > tr:first-child > td,
  border-top: 1px solid #f0f0f0;
.infobox > tbody > tr:first-child > th{
}
   padding-top: 8px !important;
 
   padding-bottom: 8px !important;
/* Labels (left column): bold, muted */
.infobox td:first-child{
  width: 40%;
  font-weight: 700;
  color: #3a3a3a;
  white-space: nowrap;
}
 
/* Values (right column): normal, dark */
.infobox td:last-child{
   font-weight: 400;
  color: #0a0a0a;
}
 
/* Links inside infobox: match your “neutral link” style */
.infobox a,
.infobox a:visited{
  color: #111 !important;
   text-decoration: underline;
}
.infobox a:hover{
  color: #111 !important;
  text-decoration: underline;
}
}

Revision as of 14:17, 15 December 2025

/* =========================================================
   Vector 2022: Center header search WITHOUT moving user tools
   ========================================================= */

/* Use Vector's real header row as the layout context */
.vector-header {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

/* Force the right-side tools to remain FAR RIGHT */
.vector-header-end {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

/* Center ONLY the actual search box (do NOT touch wrappers like [role="search"]) */
.vector-header .vector-search-box,
.vector-header .vector-search-box-vue,
.vector-header #p-search {
  position: absolute !important;
  left: 38.7% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  z-index: 1 !important;

  width: min(620px, calc(100vw - 760px)) !important;
}

/* Keep user tools clickable above any overlap */
.vector-header-end,
.vector-user-links,
.vector-user-menu,
#p-personal {
  position: relative !important;
  z-index: 2 !important;
}

/* Mobile: revert to normal flow */
@media (max-width: 900px) {
  .vector-header .vector-search-box,
  .vector-header .vector-search-box-vue,
  .vector-header #p-search {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    margin-top: 8px !important;
  }
}

/* =========================================================
   Lumenward visual policy (grayscale-only)
   ========================================================= */

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

/* Links: grayscale only */
a { color: #111 !important; }
a:visited { color: #333 !important; }

a:hover,
a:focus {
  color: #111 !important;
  text-decoration: underline !important;
}

/* TOC links specifically */
.vector-toc a,
.vector-toc a:visited,
#toc a,
#toc a:visited {
  color: #111 !important;
}

/* Footer centered on every page */
#footer { text-align: center !important; }

#footer ul,
#footer-info,
#footer-places,
#footer-icons {
  float: none !important;
  display: inline-block !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#footer li {
  float: none !important;
  display: inline !important;
  margin: 0 8px !important;
}

/* =========================================================
   Lumenward Infobox: top alignment + tighter image placement
   ========================================================= */

/* Pull the whole infobox up so it aligns with the first paragraph */
.mw-parser-output .infobox{
  margin-top: 0 !important;
}

/* If Vector adds any clearing/offset, this helps keep it snug */
.mw-parser-output .infobox{
  float: right;
  clear: right;
}

/* Tighter image row: remove excess padding and make it feel attached */
.infobox > tbody > tr:nth-child(2) > td{
  padding: 8px !important;
  background: #ffffff !important;
}

/* Keep the image centered but not "floating" */
.infobox img{
  margin: 0 auto !important;
}

/* Optional: reduce the "double frame" look around the image */
.infobox img{
  border-radius: 8px;
}

/* If you still see too much vertical gap above the first row */
.infobox > tbody > tr:first-child > td,
.infobox > tbody > tr:first-child > th{
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}