Move comment and Vector navigation UI into upgrade-safe ResourceLoader module |
Unify typography across authenticated and anonymous sessions |
||
| 第60行: | 第60行: | ||
/* === TYZX black curtain: END === */ | /* === TYZX black curtain: END === */ | ||
/* | /* | ||
* Use Wikipedia/Vector's typography independently of login state or UI | |||
* language. Do not attach fonts to :lang(), because a user's interface | |||
: | * language is stored in account preferences while anonymous visitors use the | ||
* site default; doing so makes the same article change typeface after login. | |||
font-family: " | */ | ||
" | :root { | ||
--font-family-system-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", | |||
Roboto, Lato, Helvetica, Arial, sans-serif; | |||
--font-family-serif: "Linux Libertine", Georgia, Times, | |||
"Source Serif Pro", serif; | |||
} | } | ||
html | html body, | ||
button, | |||
font-family: | input, | ||
select, | |||
textarea { | |||
font-family: var(--font-family-system-sans); | |||
} | } | ||
.mw-body h1, | |||
.mw-body-content h1, | |||
.mw-body-content h2 { | |||
font-family: var(--font-family-serif); | |||
font-family: | |||
} | } | ||
/* Keep the existing create InputBox inside narrow article viewports. */ | /* Keep the existing create InputBox inside narrow article viewports. */ | ||