Jump to content

MediaWiki:Common.css: Difference between revisions

From λ LUMENWARD
No edit summary
No edit summary
Line 1: Line 1:
/* =========================
/* =========================================================
   Main Page as Light Wiki Mock (WAF-safe: styling only)
   Lumenward — Light Wiki Mock (GLOBAL, WAF-safe, no wildcards)
   ========================= */
  Target: Vector 2022 (but mostly safe across skins)
   ========================================================= */


/* Target only Main Page */
/* --- Base colors & typography --- */
.page-Main_Page .mw-page-title-main { display: none; } /* hide default big title */
html, body {
  background: #ffffff !important;
  color: #0a0a0a !important;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
  line-height: 1.55 !important;
}
 
/* Make the header wordmark 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; }
 
/* Links: restrained, not "Wikipedia-blue loud" */
a { text-decoration: none; }
a:hover { text-decoration: underline; }
 
/* --- Page width & centering (uniform) --- */
.mw-page-container-inner,
.mw-content-container,
#content {
  max-width: 1220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
 
/* --- Remove visual clutter safely (keep functionality) --- */
/* Keep sidebar logic but hide it visually for a clean mock look */
#mw-panel,
.mw-sidebar,
.mw-sidebar-container,
.vector-sidebar,
.vector-sidebar-container {
  display: none !important;
}
 
/* Avoid left offset when sidebar is gone */
.mw-page-container-inner {
  grid-template-columns: 1fr !important;
}


/* Create a centered "article card" */
/* --- Article card look on ALL pages --- */
.page-Main_Page #mw-content-text {
/* The main content surface */
   max-width: 1100px;
.mw-body,
   margin: 18px auto !important;
.mw-content-ltr,
.mw-content-rtl,
#content,
#mw-content-text {
   background: transparent !important;
}
 
/* Card wrapper: apply to content area */
#mw-content-text {
   margin: 18px auto 28px !important;
   padding: 0 !important;
   padding: 0 !important;
  max-width: 1100px !important;
}
}


.page-Main_Page .mw-parser-output {
/* Card surface: parser output is the article "paper" */
   background: #f6f6f6;
.mw-parser-output {
   border: 1px solid #e6e6e6;
   background: #f6f6f6 !important;
   border-radius: 10px;
   border: 1px solid #e6e6e6 !important;
   box-shadow: 0 10px 30px rgba(0,0,0,.08);
   border-radius: 10px !important;
   overflow: hidden;
   box-shadow: 0 10px 30px rgba(0,0,0,.08) !important;
   overflow: hidden !important;
}
}


/* Header strip */
/* Header strip: page title area */
.page-Main_Page .mw-parser-output > h1 {
.mw-page-title-main {
   margin: 0;
   font-size: 26px !important;
   padding: 18px 18px 12px;
   font-weight: 900 !important;
   background: #f0f0f0;
  letter-spacing: .02em !important;
   border-bottom: 1px solid #e6e6e6;
}
   font-size: 26px;
.mw-page-title {
   font-weight: 900;
   background: #f0f0f0 !important;
  letter-spacing: .02em;
   border-bottom: 1px solid #e6e6e6 !important;
   margin: 0 !important;
   padding: 18px 18px 12px !important;
}
}


/* Subtitle line right under the heading */
/* Remove extra spacing above the title area */
.page-Main_Page .mw-parser-output > p:first-of-type {
.mw-body-content {
   margin: 0;
   margin-top: 0 !important;
  padding: 0 18px 16px;
  background: #f0f0f0;
  border-bottom: 1px solid #e6e6e6;
  color: #3a3a3a;
  font-size: 13px;
}
}


/* Body padding */
/* Article body padding */
.page-Main_Page .mw-parser-output > *:not(h1):not(p:first-of-type) {
.mw-parser-output > * {
   padding-left: 18px;
   padding-left: 18px;
   padding-right: 18px;
   padding-right: 18px;
}
.mw-parser-output > *:first-child {
  padding-top: 16px;
}
.mw-parser-output > *:last-child {
  padding-bottom: 18px;
}
/* Section headers like your mock (small uppercase) */
.mw-parser-output h2 {
  margin: 22px 0 10px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: #3a3a3a !important;
  border: 0 !important;
}
.mw-parser-output h3 {
  margin: 18px 0 8px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: .10em !important;
  text-transform: uppercase !important;
  color: #3a3a3a !important;
}
/* Paragraphs */
.mw-parser-output p {
  margin: 10px 0 !important;
}
/* Tables and infoboxes: soften */
.mw-parser-output table {
  border-color: #e6e6e6 !important;
}
/* Make edit-section links less prominent (but not removed) */
.mw-editsection,
.mw-editsection a {
  font-size: 12px !important;
  color: #777 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
}
}


.page-Main_Page .mw-parser-output > h2 {
/* --- Footer cleanup (safe) --- */
  margin-top: 22px;
#footer-poweredby,
  font-size: 14px;
#footer-poweredbyico,
  font-weight: 900;
.mw-poweredby {
  letter-spacing: .12em;
   display: none !important;
  text-transform: uppercase;
   color: #3a3a3a;
}
}


/* Make the Search link look like a pill button */
/* Keep footer but make it quiet */
.page-Main_Page a[href*="Special:Search"] {
#footer {
   display: inline-block;
   color: #666 !important;
   padding: 10px 14px;
   font-size: 12px !important;
   border: 1px solid #e6e6e6;
   border-top: 1px solid #e6e6e6 !important;
   border-radius: 999px;
   margin-top: 22px !important;
  background: #fff;
}
  text-decoration: none !important;
 
  font-weight: 800;
/* --- Make Special pages visually consistent too --- */
  letter-spacing: .06em;
.mw-specialpage #mw-content-text {
  text-transform: uppercase;
   max-width: 1100px !important;
   font-size: 12px;
  color: #0a0a0a !important;
}
}

Revision as of 18:54, 13 December 2025

/* =========================================================
   Lumenward — Light Wiki Mock (GLOBAL, WAF-safe, no wildcards)
   Target: Vector 2022 (but mostly safe across skins)
   ========================================================= */

/* --- Base colors & typography --- */
html, body {
  background: #ffffff !important;
  color: #0a0a0a !important;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
  line-height: 1.55 !important;
}

/* Make the header wordmark 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; }

/* Links: restrained, not "Wikipedia-blue loud" */
a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Page width & centering (uniform) --- */
.mw-page-container-inner,
.mw-content-container,
#content {
  max-width: 1220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* --- Remove visual clutter safely (keep functionality) --- */
/* Keep sidebar logic but hide it visually for a clean mock look */
#mw-panel,
.mw-sidebar,
.mw-sidebar-container,
.vector-sidebar,
.vector-sidebar-container {
  display: none !important;
}

/* Avoid left offset when sidebar is gone */
.mw-page-container-inner {
  grid-template-columns: 1fr !important;
}

/* --- Article card look on ALL pages --- */
/* The main content surface */
.mw-body,
.mw-content-ltr,
.mw-content-rtl,
#content,
#mw-content-text {
  background: transparent !important;
}

/* Card wrapper: apply to content area */
#mw-content-text {
  margin: 18px auto 28px !important;
  padding: 0 !important;
  max-width: 1100px !important;
}

/* Card surface: parser output is the article "paper" */
.mw-parser-output {
  background: #f6f6f6 !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.08) !important;
  overflow: hidden !important;
}

/* Header strip: page title area */
.mw-page-title-main {
  font-size: 26px !important;
  font-weight: 900 !important;
  letter-spacing: .02em !important;
}
.mw-page-title {
  background: #f0f0f0 !important;
  border-bottom: 1px solid #e6e6e6 !important;
  margin: 0 !important;
  padding: 18px 18px 12px !important;
}

/* Remove extra spacing above the title area */
.mw-body-content {
  margin-top: 0 !important;
}

/* Article body padding */
.mw-parser-output > * {
  padding-left: 18px;
  padding-right: 18px;
}
.mw-parser-output > *:first-child {
  padding-top: 16px;
}
.mw-parser-output > *:last-child {
  padding-bottom: 18px;
}

/* Section headers like your mock (small uppercase) */
.mw-parser-output h2 {
  margin: 22px 0 10px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: #3a3a3a !important;
  border: 0 !important;
}
.mw-parser-output h3 {
  margin: 18px 0 8px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: .10em !important;
  text-transform: uppercase !important;
  color: #3a3a3a !important;
}

/* Paragraphs */
.mw-parser-output p {
  margin: 10px 0 !important;
}

/* Tables and infoboxes: soften */
.mw-parser-output table {
  border-color: #e6e6e6 !important;
}

/* Make edit-section links less prominent (but not removed) */
.mw-editsection,
.mw-editsection a {
  font-size: 12px !important;
  color: #777 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
}

/* --- Footer cleanup (safe) --- */
#footer-poweredby,
#footer-poweredbyico,
.mw-poweredby {
  display: none !important;
}

/* Keep footer but make it quiet */
#footer {
  color: #666 !important;
  font-size: 12px !important;
  border-top: 1px solid #e6e6e6 !important;
  margin-top: 22px !important;
}

/* --- Make Special pages visually consistent too --- */
.mw-specialpage #mw-content-text {
  max-width: 1100px !important;
}