MediaWiki:Common.css: Difference between revisions
Appearance
Remove borders: strip h2 underline, table borders, TOC/code/infobox left borders, comprehensive Vector nav border reset |
Match typography to website2/ejfox.com: 1.125rem body, 2.5/2/1.75/1.5rem headings, Monaspace mono font |
||
| Line 1: | Line 1: | ||
/* EJ Fox Archive | /* EJ Fox Archive - Matched to website2 exactly */ | ||
:root { | :root { | ||
/* Typography | /* Typography - Match website2 exactly */ | ||
--font-body: 'Georgia', 'Times New Roman', 'Droid Serif', 'Times', 'Source Serif Pro', serif; | --font-body: 'Georgia', 'Times New Roman', 'Droid Serif', 'Times', 'Source Serif Pro', serif; | ||
--font-mono: | --font-mono: 'Monaspace Neon', 'Monaspace Argon', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace; | ||
/* Colors | /* Colors - Match website2 zinc palette */ | ||
--bg: # | --bg: #fafafa; | ||
--bg-alt: # | --bg-alt: #f4f4f5; | ||
--fg: # | --fg: #1a1a1a; /* warm near-black - exact match */ | ||
--fg-secondary: # | --fg-secondary: #52525b; /* zinc-600 */ | ||
--fg-muted: # | --fg-muted: #71717a; /* zinc-500 */ | ||
--border: #e4e4e7; /* zinc-200 */ | |||
--border: # | --red: #dc2626; | ||
-- | |||
--max-w: 65ch; | |||
--max-w: | |||
} | } | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
:root { | :root { | ||
--bg: # | --bg: #0a0a0a; /* warm near-black - exact match */ | ||
--bg-alt: # | --bg-alt: #18181b; /* zinc-900 */ | ||
--fg: # | --fg: #f5f5f4; /* warmer off-white - exact match */ | ||
--fg-secondary: # | --fg-secondary: #a1a1aa; /* zinc-400 */ | ||
--fg-muted: # | --fg-muted: #71717a; /* zinc-500 */ | ||
- | --border: #3f3f46; /* zinc-700 */ | ||
--border: # | --red: #f87171; | ||
-- | |||
} | } | ||
} | } | ||
| Line 51: | Line 33: | ||
html { | html { | ||
overflow-x: hidden; | overflow-x: hidden; | ||
} | } | ||
| Line 58: | Line 39: | ||
color: var(--fg); | color: var(--fg); | ||
font-family: var(--font-body); | font-family: var(--font-body); | ||
font-size: 1. | font-size: 1.125rem; /* 18px - match website2 */ | ||
line-height: 1. | line-height: 1.75; /* match website2 loose */ | ||
font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'onum' 1; | font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'onum' 1; | ||
font-variant-ligatures: common-ligatures contextual; | font-variant-ligatures: common-ligatures contextual; | ||
font-variant-numeric: oldstyle | font-variant-numeric: oldstyle-nums; | ||
-webkit-font-smoothing: antialiased; | -webkit-font-smoothing: antialiased; | ||
text-rendering: optimizeLegibility; | text-rendering: optimizeLegibility; | ||
| Line 70: | Line 51: | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
body { font-weight: | body { font-weight: 375; } /* match website2 dark mode */ | ||
} | } | ||
/* === LAYOUT === */ | /* === LAYOUT === */ | ||
#p-logo, .mw-wiki-logo, #footer, .printfooter, | #p-search, #p-logo, .mw-wiki-logo, #footer, .printfooter, | ||
#f-poweredbyico, #f-copyrightico, .mw-jump-link, #jump-to-nav { | #f-poweredbyico, #f-copyrightico, .mw-jump-link, #jump-to-nav { | ||
display: none; | display: none; | ||
| Line 82: | Line 63: | ||
max-width: var(--max-w); | max-width: var(--max-w); | ||
margin: 0 auto; | margin: 0 auto; | ||
padding: | padding: 3rem 1rem 1.5rem; | ||
background: transparent; | background: transparent; | ||
border: none; | border: none; | ||
| Line 93: | Line 74: | ||
} | } | ||
/* === TYPOGRAPHY | /* === TYPOGRAPHY - Match website2 scale === */ | ||
h1, h2, h3, h4, h5, h6 { | h1, h2, h3, h4, h5, h6, | ||
.mw-heading, .mw-heading1, .mw-heading2, .mw-heading3, .mw-heading4 { | |||
font-family: var(--font-body); | font-family: var(--font-body); | ||
font-weight: 400; | font-weight: 400; | ||
color: var(--fg); | color: var(--fg); | ||
background: none !important; | background: none !important; | ||
border: none !important; | |||
} | } | ||
.mw-body h1, .firstHeading { | |||
.firstHeading | font-size: 2.5rem; /* 40px - match website2 4xl */ | ||
letter-spacing: -0.035em; /* match website2 tighter */ | |||
font-size: | |||
letter-spacing: -0. | |||
line-height: 1.2; | line-height: 1.2; | ||
margin: 0 0 | margin: 0 0 1.5rem; | ||
border: none; | border: none; | ||
} | } | ||
.mw-body h2, .mw-heading2 h2 { | |||
.mw- | font-size: 2rem; /* 32px - match website2 3xl */ | ||
font-size: | letter-spacing: -0.025em; /* match website2 tight */ | ||
letter-spacing: -0. | |||
line-height: 1.25; | line-height: 1.25; | ||
margin: | margin: 2.5rem 0 0.75rem; | ||
padding: 0; | padding: 0; | ||
border: none; | border: none !important; | ||
background: none; | background: none !important; | ||
} | } | ||
.mw-body h3, .mw-heading3 h3 { | |||
.mw-body | font-size: 1.75rem; /* 28px - match website2 2xl */ | ||
letter-spacing: -0.015em; /* match website2 */ | |||
font- | line-height: 1.3; | ||
font-weight: 400; | font-weight: 400; | ||
margin: 2rem 0 0.5rem; | |||
margin: | |||
} | } | ||
.mw-body h4, .mw-heading4 h4 { | |||
.mw-body | font-size: 1.5rem; /* 24px - match website2 xl */ | ||
letter-spacing: -0.01em; | |||
font- | line-height: 1.35; | ||
font-weight: 400; | font-weight: 400; | ||
margin: 1.5rem 0 0.5rem; | |||
margin: | |||
. | |||
} | } | ||
.mw-body p { | .mw-body p { | ||
margin: | margin-bottom: 1rem; | ||
line-height: 1. | line-height: 1.75; /* match website2 */ | ||
} | } | ||
/* === LINKS | /* === LINKS === */ | ||
.mw-body a { | .mw-body a { | ||
color: var(--fg); | color: var(--fg); | ||
text-decoration: none; | text-decoration: none; | ||
border-bottom: 1px solid var(--border); | |||
transition: border-color 200ms ease-out; | |||
} | } | ||
.mw-body a:hover { | .mw-body a:hover { border-color: var(--fg); } | ||
} | |||
.mw-body a.new { | .mw-body a.new { | ||
color: var(-- | color: var(--red); | ||
border-color: var(--red); | |||
opacity: 0.7; | |||
} | } | ||
.mw-body a.new:hover { | .mw-body a.new:hover { opacity: 1; } | ||
color: var(-- | |||
.mw-body a.external { | |||
color: var(--fg-secondary); | |||
border-color: var(--fg-secondary); | |||
} | } | ||
/* === CODE === */ | |||
code, pre { | |||
font-size: 0. | font-family: var(--font-mono); | ||
font-size: 0.875rem; | |||
font-feature-settings: 'lnum' 1, 'tnum' 1; | |||
background: var(--bg-alt); | |||
border: none; | |||
border-radius: 2px; | |||
} | } | ||
code { | code { | ||
padding: 1px 4px; | |||
word-break: break-word; | |||
} | } | ||
pre { | pre { | ||
padding: 1rem; | |||
margin: 1rem 0; | |||
padding: | |||
margin: | |||
overflow-x: auto; | overflow-x: auto; | ||
-webkit-overflow-scrolling: touch; | -webkit-overflow-scrolling: touch; | ||
line-height: 1.4; | |||
max-width: 100%; | |||
} | } | ||
/* === TABLES === */ | |||
/* === TABLES | |||
.wikitable { | .wikitable { | ||
width: 100%; | width: 100%; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
font-family: var(--font-mono); | font-family: var(--font-mono); | ||
font-size: 0. | font-size: 0.8rem; | ||
font-feature-settings: ' | font-feature-settings: 'lnum' 1, 'tnum' 1; | ||
margin: | margin: 1rem 0; | ||
border: none; | border: none; | ||
} | } | ||
| Line 295: | Line 183: | ||
.wikitable th, .wikitable td { | .wikitable th, .wikitable td { | ||
border: none; | border: none; | ||
border-bottom: 1px solid var(--border); | |||
padding: 0.5rem 0.75rem; | |||
text-align: left; | text-align: left; | ||
word-break: break-word; | |||
} | } | ||
.wikitable th { | .wikitable th { | ||
background: transparent; | |||
font-weight: 600; | font-weight: 600; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
letter-spacing: 0. | letter-spacing: 0.05em; | ||
font-size: 0.7rem; | |||
color: var(--fg-muted); | color: var(--fg-muted); | ||
} | } | ||
| Line 314: | Line 202: | ||
} | } | ||
/* === LISTS === */ | |||
/* === LISTS | |||
.mw-body ul, .mw-body ol { | .mw-body ul, .mw-body ol { | ||
margin: | margin: 0.5rem 0; | ||
padding-left: 1. | padding-left: 1.5rem; | ||
} | } | ||
.mw-body li { | .mw-body li { margin-bottom: 0.25rem; } | ||
. | |||
} | |||
/* === TOC | /* === TOC === */ | ||
#toc, .toc { | #toc, .toc { | ||
display: inline-block; | display: inline-block; | ||
background: transparent; | background: transparent; | ||
border: none; | border: none; | ||
padding: | padding: 0.5rem 0; | ||
margin: | margin: 0.75rem 0; | ||
font-size: 0. | font-size: 0.875rem; | ||
max-width: | max-width: 260px; | ||
} | } | ||
.toctitle | .toctitle h2 { | ||
font-family: var(--font-mono); | |||
font-size: 0.65rem; | |||
font-family: var(--font- | font-weight: 500; | ||
font-size: 0. | |||
font-weight: | |||
text-transform: uppercase; | text-transform: uppercase; | ||
letter-spacing: 0. | letter-spacing: 0.15em; | ||
color: var(--fg-muted); | color: var(--fg-muted); | ||
margin: 0 0 | margin: 0 0 0.5rem; | ||
border: none !important; | border: none !important; | ||
padding: 0 | padding: 0; | ||
background: none !important; | background: none !important; | ||
} | } | ||
.toc ul { | .toc ul { margin: 0; padding-left: 0.75rem; list-style: none; } | ||
} | |||
.tocnumber { | .tocnumber { | ||
font-family: var(--font-mono); | font-family: var(--font-mono); | ||
font-size: 0. | font-size: 0.65rem; | ||
color: var(--fg- | color: var(--fg-muted); | ||
font-feature-settings: 'lnum' 1, 'tnum' 1; | |||
} | } | ||
/* === | /* === EDIT LINKS === */ | ||
#p-views, #p-cactions { | |||
margin: 0.5rem 0; | |||
#p-views, #p-cactions | |||
margin: 0 | |||
background: transparent; | background: transparent; | ||
border: none; | border: none; | ||
} | } | ||
#p-views ul, #p-cactions | #p-views ul, #p-cactions ul { | ||
display: flex; | display: flex; | ||
gap: | gap: 1rem; | ||
list-style: none; | list-style: none; | ||
margin: 0; | margin: 0; | ||
| Line 416: | Line 257: | ||
} | } | ||
#p-views a, #p-cactions a { | |||
#p-views a, #p-cactions | font-family: var(--font-mono); | ||
font-size: 0.7rem; | |||
font-family: var(--font- | |||
font-size: 0. | |||
text-transform: uppercase; | text-transform: uppercase; | ||
letter-spacing: 0. | letter-spacing: 0.1em; | ||
color: var(--fg- | color: var(--fg-muted); | ||
border: none; | border: none; | ||
background: transparent; | |||
} | } | ||
#p-views a:hover, #p-cactions a:hover | #p-views a:hover, #p-cactions a:hover { | ||
color: var(--fg); | |||
color: var(--fg | |||
} | } | ||
.mw-editsection { | .mw-editsection { | ||
font-family: var(--font- | font-family: var(--font-mono); | ||
font-size: 0. | font-size: 0.6rem; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
letter-spacing: 0. | letter-spacing: 0.1em; | ||
opacity: 0.3; | |||
margin-left: | margin-left: 0.5rem; | ||
. | |||
} | } | ||
.mw-editsection | .mw-editsection:hover { opacity: 0.6; } | ||
.mw-editsection a { border: none; color: var(--fg-muted); } | |||
} | |||
/* === CATEGORIES | /* === CATEGORIES === */ | ||
#catlinks { | #catlinks { | ||
margin-top: | display: block; | ||
padding-top: | margin-top: 2.5rem; | ||
padding-top: 0.75rem; | |||
border: none; | border: none; | ||
font-family: var(--font- | font-family: var(--font-mono); | ||
font-size: 0. | font-size: 0.65rem; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
letter-spacing: 0. | letter-spacing: 0.15em; | ||
color: var(--fg- | color: var(--fg-muted); | ||
} | } | ||
#catlinks a { | #catlinks a { | ||
color: var(--fg-muted); | color: var(--fg-muted); | ||
border: none; | border: none; | ||
} | } | ||
#catlinks a:hover { color: var(--fg-secondary); } | |||
# | |||
} | |||
/* === SPECIAL PAGES === */ | /* === SPECIAL PAGES === */ | ||
.ns-special .mw-body { | .ns-special .mw-body { line-height: 1.6; } | ||
} | |||
.mw-changeslist-line { | .mw-changeslist-line { | ||
margin-bottom: | margin-bottom: 0.25rem; | ||
line-height: 1. | line-height: 1.3; | ||
} | } | ||
| Line 605: | Line 314: | ||
font-family: var(--font-mono); | font-family: var(--font-mono); | ||
font-size: 0.75rem; | font-size: 0.75rem; | ||
font-feature-settings: 'lnum' 1, 'tnum' 1; | |||
} | } | ||
.mw-diff-bytes { | .mw-diff-bytes { | ||
font-family: var(--font-mono); | font-family: var(--font-mono); | ||
font-size: 0. | font-size: 0.65rem; | ||
font-feature-settings: 'lnum' 1, 'tnum' 1; | |||
} | } | ||
| Line 616: | Line 326: | ||
font-style: italic; | font-style: italic; | ||
color: var(--fg-muted); | color: var(--fg-muted); | ||
margin-left: | margin-left: 0.25rem; | ||
} | } | ||
/* === VECTOR SKIN CLEANUP | /* === VECTOR SKIN CLEANUP === */ | ||
.vector-page-titlebar, | .vector-page-titlebar, | ||
.vector-page-toolbar, | .vector-page-toolbar, | ||
.vector-menu-tabs, | .vector-menu-tabs, | ||
.vector-menu-content, | .vector-menu-content, | ||
#p-views, #p-namespaces, #p-cactions, | #p-views, #p-namespaces, #p-cactions, | ||
.mw-portlet, .vector-tabs, .vector-menu | .mw-portlet, .vector-tabs, .vector-menu { | ||
border: none; | |||
box-shadow: none; | |||
border: none | |||
box-shadow: none | |||
} | } | ||
.vector-menu-tabs li, .vector-tabs li, #p-views | .vector-menu-tabs li, .vector-tabs li, #p-views li { | ||
border: none; | |||
border: none | |||
background: transparent; | background: transparent; | ||
} | } | ||
/* | /* === NAVBOXES === */ | ||
. | .wikitable[style*="margin-top"] { | ||
font-size: 0.75rem; | |||
. | margin-top: 2rem; | ||
} | |||
.wikitable[style*="margin-top"] th { | |||
font-size: 0.7rem; | |||
} | } | ||
/* | /* === SEARCH === */ | ||
. | #searchInput { | ||
border: | font-family: var(--font-mono); | ||
font-size: 0.875rem; | |||
background: var(--bg-alt); | |||
border: 1px solid var(--border); | |||
padding: 0.25rem 0.5rem; | |||
color: var(--fg); | |||
} | } | ||
# | #searchInput::placeholder { color: var(--fg-muted); } | ||
/* === INFOBOXES === */ | |||
.infobox { | |||
float: right; | |||
width: 240px; | |||
margin: 0 0 1rem 1rem; | |||
border: none; | border: none; | ||
background: var(--bg-alt); | |||
font-size: 0.875rem; | |||
padding: 0.75rem; | |||
} | |||
.infobox th { | |||
font-family: var(--font-mono); | |||
font-size: 0.65rem; | |||
text-transform: uppercase; | |||
letter-spacing: 0.1em; | |||
text-align: left; | |||
padding: 0.25rem; | |||
font-weight: 600; | |||
} | } | ||
/* === | .infobox td { padding: 0.25rem; } | ||
. | |||
font-size: 0. | /* === SUBTITLE/META === */ | ||
#siteSub, #contentSub, .mw-content-subtitle { | |||
font-family: var(--font-mono); | |||
font-size: 0.65rem; | |||
text-transform: uppercase; | |||
letter-spacing: 0.1em; | |||
color: var(--fg-muted); | |||
opacity: 0.6; | |||
} | } | ||
/* Hide on Main Page */ | /* Hide empty catlinks on Main Page */ | ||
body.page-Main_Page #catlinks { display: none; } | body.page-Main_Page #catlinks { display: none; } | ||
/* ============================================ | /* ============================================ | ||
MOBILE | MOBILE STYLES - Fix horizontal scrolling | ||
============================================ */ | ============================================ */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.mw-body { | .mw-body { | ||
padding: | padding: 2rem 0.75rem 1rem; | ||
max-width: 100vw; | max-width: 100vw; | ||
overflow-x: hidden; | overflow-x: hidden; | ||
} | } | ||
.mw-body h1 { font-size: | .mw-body h1 { font-size: 2rem; } | ||
.mw-body h2 { font-size: 1. | .mw-body h2 { font-size: 1.5rem; } | ||
.mw-body h3 { font-size: 1.25rem; } | |||
.mw-body | |||
#p-views ul, #p-cactions ul { | #p-views ul, #p-cactions ul { | ||
flex- | flex-direction: column; | ||
gap: | gap: 0.5rem; | ||
} | } | ||
| Line 714: | Line 427: | ||
} | } | ||
/* Code blocks - contained scroll */ | |||
pre { | pre { | ||
max-width: calc(100vw - | max-width: calc(100vw - 1.5rem); | ||
font-size: 0.75rem; | font-size: 0.75rem; | ||
padding: | padding: 0.75rem; | ||
white-space: pre; | |||
word-break: normal; | |||
overflow-x: auto; | |||
} | } | ||
/* Inline code - allow wrapping */ | |||
code { | code { | ||
word-break: break-all; | word-break: break-all; | ||
} | } | ||
/* Tables - horizontal scroll wrapper */ | |||
.wikitable { | .wikitable { | ||
display: block; | display: block; | ||
max-width: calc(100vw - | max-width: calc(100vw - 1.5rem); | ||
overflow-x: auto; | overflow-x: auto; | ||
-webkit-overflow-scrolling: touch; | -webkit-overflow-scrolling: touch; | ||
} | } | ||
.wikitable th, .wikitable td { | |||
white-space: nowrap; | |||
min-width: 80px; | |||
} | |||
/* Infobox - stack on mobile */ | |||
.infobox { | .infobox { | ||
float: none; | float: none; | ||
width: 100%; | width: 100%; | ||
margin: | margin: 1rem 0; | ||
} | } | ||
} | } | ||
| Line 759: | Line 466: | ||
@media (max-width: 480px) { | @media (max-width: 480px) { | ||
.mw-body { | .mw-body { | ||
padding: | padding: 1.5rem 0.5rem 0.75rem; | ||
} | } | ||
.mw-body h1 { font-size: 1. | .mw-body h1 { font-size: 1.75rem; } | ||
.mw-body h2 { font-size: 1.375rem; } | |||
pre { | pre { | ||
max-width: calc(100vw - | max-width: calc(100vw - 1rem); | ||
font-size: 0. | font-size: 0.7rem; | ||
padding: | padding: 0.5rem; | ||
} | } | ||
.wikitable { | .wikitable { | ||
max-width: calc(100vw - | max-width: calc(100vw - 1rem); | ||
font-size: 0.7rem; | |||
font-size: 0. | |||
} | } | ||
} | } | ||
Revision as of 17:36, 26 January 2026
/* EJ Fox Archive - Matched to website2 exactly */
:root {
/* Typography - Match website2 exactly */
--font-body: 'Georgia', 'Times New Roman', 'Droid Serif', 'Times', 'Source Serif Pro', serif;
--font-mono: 'Monaspace Neon', 'Monaspace Argon', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
/* Colors - Match website2 zinc palette */
--bg: #fafafa;
--bg-alt: #f4f4f5;
--fg: #1a1a1a; /* warm near-black - exact match */
--fg-secondary: #52525b; /* zinc-600 */
--fg-muted: #71717a; /* zinc-500 */
--border: #e4e4e7; /* zinc-200 */
--red: #dc2626;
--max-w: 65ch;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #0a0a0a; /* warm near-black - exact match */
--bg-alt: #18181b; /* zinc-900 */
--fg: #f5f5f4; /* warmer off-white - exact match */
--fg-secondary: #a1a1aa; /* zinc-400 */
--fg-muted: #71717a; /* zinc-500 */
--border: #3f3f46; /* zinc-700 */
--red: #f87171;
}
}
/* === BASE === */
html {
overflow-x: hidden;
}
body {
background: var(--bg);
color: var(--fg);
font-family: var(--font-body);
font-size: 1.125rem; /* 18px - match website2 */
line-height: 1.75; /* match website2 loose */
font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'onum' 1;
font-variant-ligatures: common-ligatures contextual;
font-variant-numeric: oldstyle-nums;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
margin: 0;
overflow-x: hidden;
}
@media (prefers-color-scheme: dark) {
body { font-weight: 375; } /* match website2 dark mode */
}
/* === LAYOUT === */
#p-search, #p-logo, .mw-wiki-logo, #footer, .printfooter,
#f-poweredbyico, #f-copyrightico, .mw-jump-link, #jump-to-nav {
display: none;
}
.mw-body {
max-width: var(--max-w);
margin: 0 auto;
padding: 3rem 1rem 1.5rem;
background: transparent;
border: none;
}
#content {
margin-left: 0;
background: transparent;
border: none;
}
/* === TYPOGRAPHY - Match website2 scale === */
h1, h2, h3, h4, h5, h6,
.mw-heading, .mw-heading1, .mw-heading2, .mw-heading3, .mw-heading4 {
font-family: var(--font-body);
font-weight: 400;
color: var(--fg);
background: none !important;
border: none !important;
}
.mw-body h1, .firstHeading {
font-size: 2.5rem; /* 40px - match website2 4xl */
letter-spacing: -0.035em; /* match website2 tighter */
line-height: 1.2;
margin: 0 0 1.5rem;
border: none;
}
.mw-body h2, .mw-heading2 h2 {
font-size: 2rem; /* 32px - match website2 3xl */
letter-spacing: -0.025em; /* match website2 tight */
line-height: 1.25;
margin: 2.5rem 0 0.75rem;
padding: 0;
border: none !important;
background: none !important;
}
.mw-body h3, .mw-heading3 h3 {
font-size: 1.75rem; /* 28px - match website2 2xl */
letter-spacing: -0.015em; /* match website2 */
line-height: 1.3;
font-weight: 400;
margin: 2rem 0 0.5rem;
}
.mw-body h4, .mw-heading4 h4 {
font-size: 1.5rem; /* 24px - match website2 xl */
letter-spacing: -0.01em;
line-height: 1.35;
font-weight: 400;
margin: 1.5rem 0 0.5rem;
}
.mw-body p {
margin-bottom: 1rem;
line-height: 1.75; /* match website2 */
}
/* === LINKS === */
.mw-body a {
color: var(--fg);
text-decoration: none;
border-bottom: 1px solid var(--border);
transition: border-color 200ms ease-out;
}
.mw-body a:hover { border-color: var(--fg); }
.mw-body a.new {
color: var(--red);
border-color: var(--red);
opacity: 0.7;
}
.mw-body a.new:hover { opacity: 1; }
.mw-body a.external {
color: var(--fg-secondary);
border-color: var(--fg-secondary);
}
/* === CODE === */
code, pre {
font-family: var(--font-mono);
font-size: 0.875rem;
font-feature-settings: 'lnum' 1, 'tnum' 1;
background: var(--bg-alt);
border: none;
border-radius: 2px;
}
code {
padding: 1px 4px;
word-break: break-word;
}
pre {
padding: 1rem;
margin: 1rem 0;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
line-height: 1.4;
max-width: 100%;
}
/* === TABLES === */
.wikitable {
width: 100%;
border-collapse: collapse;
font-family: var(--font-mono);
font-size: 0.8rem;
font-feature-settings: 'lnum' 1, 'tnum' 1;
margin: 1rem 0;
border: none;
}
.wikitable th, .wikitable td {
border: none;
border-bottom: 1px solid var(--border);
padding: 0.5rem 0.75rem;
text-align: left;
word-break: break-word;
}
.wikitable th {
background: transparent;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
font-size: 0.7rem;
color: var(--fg-muted);
}
.wikitable tr:last-child td {
border-bottom: none;
}
/* === LISTS === */
.mw-body ul, .mw-body ol {
margin: 0.5rem 0;
padding-left: 1.5rem;
}
.mw-body li { margin-bottom: 0.25rem; }
/* === TOC === */
#toc, .toc {
display: inline-block;
background: transparent;
border: none;
padding: 0.5rem 0;
margin: 0.75rem 0;
font-size: 0.875rem;
max-width: 260px;
}
.toctitle h2 {
font-family: var(--font-mono);
font-size: 0.65rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.15em;
color: var(--fg-muted);
margin: 0 0 0.5rem;
border: none !important;
padding: 0;
background: none !important;
}
.toc ul { margin: 0; padding-left: 0.75rem; list-style: none; }
.tocnumber {
font-family: var(--font-mono);
font-size: 0.65rem;
color: var(--fg-muted);
font-feature-settings: 'lnum' 1, 'tnum' 1;
}
/* === EDIT LINKS === */
#p-views, #p-cactions {
margin: 0.5rem 0;
background: transparent;
border: none;
}
#p-views ul, #p-cactions ul {
display: flex;
gap: 1rem;
list-style: none;
margin: 0;
padding: 0;
}
#p-views a, #p-cactions a {
font-family: var(--font-mono);
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--fg-muted);
border: none;
background: transparent;
}
#p-views a:hover, #p-cactions a:hover {
color: var(--fg);
}
.mw-editsection {
font-family: var(--font-mono);
font-size: 0.6rem;
text-transform: uppercase;
letter-spacing: 0.1em;
opacity: 0.3;
margin-left: 0.5rem;
}
.mw-editsection:hover { opacity: 0.6; }
.mw-editsection a { border: none; color: var(--fg-muted); }
/* === CATEGORIES === */
#catlinks {
display: block;
margin-top: 2.5rem;
padding-top: 0.75rem;
border: none;
font-family: var(--font-mono);
font-size: 0.65rem;
text-transform: uppercase;
letter-spacing: 0.15em;
color: var(--fg-muted);
}
#catlinks a {
color: var(--fg-muted);
border: none;
}
#catlinks a:hover { color: var(--fg-secondary); }
/* === SPECIAL PAGES === */
.ns-special .mw-body { line-height: 1.6; }
.mw-changeslist-line {
margin-bottom: 0.25rem;
line-height: 1.3;
}
.mw-changeslist-time {
font-family: var(--font-mono);
font-size: 0.75rem;
font-feature-settings: 'lnum' 1, 'tnum' 1;
}
.mw-diff-bytes {
font-family: var(--font-mono);
font-size: 0.65rem;
font-feature-settings: 'lnum' 1, 'tnum' 1;
}
.comment {
font-style: italic;
color: var(--fg-muted);
margin-left: 0.25rem;
}
/* === VECTOR SKIN CLEANUP === */
.vector-page-titlebar,
.vector-page-toolbar,
.vector-menu-tabs,
.vector-menu-content,
#p-views, #p-namespaces, #p-cactions,
.mw-portlet, .vector-tabs, .vector-menu {
border: none;
box-shadow: none;
}
.vector-menu-tabs li, .vector-tabs li, #p-views li {
border: none;
background: transparent;
}
/* === NAVBOXES === */
.wikitable[style*="margin-top"] {
font-size: 0.75rem;
margin-top: 2rem;
}
.wikitable[style*="margin-top"] th {
font-size: 0.7rem;
}
/* === SEARCH === */
#searchInput {
font-family: var(--font-mono);
font-size: 0.875rem;
background: var(--bg-alt);
border: 1px solid var(--border);
padding: 0.25rem 0.5rem;
color: var(--fg);
}
#searchInput::placeholder { color: var(--fg-muted); }
/* === INFOBOXES === */
.infobox {
float: right;
width: 240px;
margin: 0 0 1rem 1rem;
border: none;
background: var(--bg-alt);
font-size: 0.875rem;
padding: 0.75rem;
}
.infobox th {
font-family: var(--font-mono);
font-size: 0.65rem;
text-transform: uppercase;
letter-spacing: 0.1em;
text-align: left;
padding: 0.25rem;
font-weight: 600;
}
.infobox td { padding: 0.25rem; }
/* === SUBTITLE/META === */
#siteSub, #contentSub, .mw-content-subtitle {
font-family: var(--font-mono);
font-size: 0.65rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--fg-muted);
opacity: 0.6;
}
/* Hide empty catlinks on Main Page */
body.page-Main_Page #catlinks { display: none; }
/* ============================================
MOBILE STYLES - Fix horizontal scrolling
============================================ */
@media (max-width: 768px) {
.mw-body {
padding: 2rem 0.75rem 1rem;
max-width: 100vw;
overflow-x: hidden;
}
.mw-body h1 { font-size: 2rem; }
.mw-body h2 { font-size: 1.5rem; }
.mw-body h3 { font-size: 1.25rem; }
#p-views ul, #p-cactions ul {
flex-direction: column;
gap: 0.5rem;
}
#toc, .toc {
max-width: 100%;
display: block;
}
/* Code blocks - contained scroll */
pre {
max-width: calc(100vw - 1.5rem);
font-size: 0.75rem;
padding: 0.75rem;
white-space: pre;
word-break: normal;
overflow-x: auto;
}
/* Inline code - allow wrapping */
code {
word-break: break-all;
}
/* Tables - horizontal scroll wrapper */
.wikitable {
display: block;
max-width: calc(100vw - 1.5rem);
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.wikitable th, .wikitable td {
white-space: nowrap;
min-width: 80px;
}
/* Infobox - stack on mobile */
.infobox {
float: none;
width: 100%;
margin: 1rem 0;
}
}
/* Extra small screens */
@media (max-width: 480px) {
.mw-body {
padding: 1.5rem 0.5rem 0.75rem;
}
.mw-body h1 { font-size: 1.75rem; }
.mw-body h2 { font-size: 1.375rem; }
pre {
max-width: calc(100vw - 1rem);
font-size: 0.7rem;
padding: 0.5rem;
}
.wikitable {
max-width: calc(100vw - 1rem);
font-size: 0.7rem;
}
}