151
edits
m |
m |
||
Line 14: | Line 14: | ||
} | } | ||
/* === | /* === Global Century Gothic + bold page title (Vector 2022 & legacy) === */ | ||
:root{ | |||
/* | /* (Optional) If you use Adobe Fonts, keep this import and swap to your kit URL. */ | ||
-- | |||
--title- | /* 1) Config */ | ||
--title- | :root { | ||
/* Put the EXACT Adobe family first if using a kit (often "century-gothic"). */ | |||
--wiki-font: "century-gothic", "Century Gothic", "URW Gothic L", "Apple Gothic", "Avant Garde", sans-serif; | |||
/* Title look */ | |||
--title-weight: 700; /* make the title actually bold */ | |||
--title-stroke: 0.01em; /* 1% outline – beefier than 0.35% */ | |||
--title-stroke-colour: #000; | |||
} | |||
/* Dark mode contrast */ | |||
@media (prefers-color-scheme: dark) { | |||
:root { --title-stroke-colour: rgba(255,255,255,0.85); } | |||
} | |||
/* 2) Set the font site-wide (content, nav, menus, tables, forms) */ | |||
html, body, | |||
.mw-body, .mw-parser-output, .vector-body, | |||
.vector-header, .vector-toc, .vector-menu, #mw-panel, /* legacy Vector side panel */ | |||
.mw-headline, p, li, td, th, caption, | |||
h1, h2, h3, h4, h5, h6, | |||
input, textarea, select, button, .mw-ui-button { | |||
font-family: var(--wiki-font) !important; | |||
-webkit-font-smoothing: antialiased; | |||
-moz-osx-font-smoothing: grayscale; | |||
} | } | ||
/* Vector 2022 | /* 3) Page title styling (works for Vector 2022 & legacy) */ | ||
.mw-page-title-main, | |||
h1#firstHeading, | h1#firstHeading, | ||
.firstHeading { | .firstHeading { | ||
font- | font-weight: var(--title-weight) !important; | ||
line-height: 1.15; | |||
letter-spacing: 0; | |||
} | |||
/* Real stroke where supported */ | |||
-webkit-text-stroke: var(--title- | @supports (-webkit-text-stroke: 1px black) { | ||
.mw-page-title-main, | |||
h1#firstHeading, | |||
.firstHeading { | |||
-webkit-text-stroke: var(--title-stroke) var(--title-stroke-colour); | |||
text-stroke: var(--title-stroke) var(--title-stroke-colour); | |||
-webkit-text-fill-color: currentColor; /* keep normal fill */ | |||
text-shadow: none; /* avoid double effect */ | |||
} | |||
} | |||
/* Firefox fallback (simulate stroke with shadows) */ | |||
text-shadow: | @supports not (-webkit-text-stroke: 1px black) { | ||
.mw-page-title-main, | |||
h1#firstHeading, | |||
.firstHeading { | |||
text-shadow: | |||
var(--title-stroke) 0 0 var(--title-stroke-colour), | |||
calc(-1 * var(--title-stroke)) 0 0 var(--title-stroke-colour), | |||
0 var(--title-stroke) 0 var(--title-stroke-colour), | |||
0 calc(-1 * var(--title-stroke)) 0 var(--title-stroke-colour), | |||
var(--title-stroke) var(--title-stroke) 0 var(--title-stroke-colour), | |||
calc(-1 * var(--title-stroke)) var(--title-stroke) 0 var(--title-stroke-colour), | |||
var(--title-stroke) calc(-1 * var(--title-stroke)) 0 var(--title-stroke-colour), | |||
calc(-1 * var(--title-stroke)) calc(-1 * var(--title-stroke)) 0 var(--title-stroke-colour); | |||
} | |||
} | } | ||
/* | /* Keep subtitles clean */ | ||
#siteSub, .subtitle { text- | #siteSub, .subtitle { -webkit-text-stroke: 0; text-stroke: 0; text-shadow: none; } |