THDeb​(留言 | 贡献)
Move comment and Vector navigation UI into upgrade-safe ResourceLoader module
THDeb​(留言 | 贡献)
Unify typography across authenticated and anonymous sessions
 
第60行: 第60行:
/* === TYZX black curtain: END === */
/* === TYZX black curtain: END === */


/* Regional CJK font stacks; interface/content language determines the stack. */
/*
html:lang(zh-cn) body,
* Use Wikipedia/Vector's typography independently of login state or UI
html:lang(zh-hans) body,
* language. Do not attach fonts to :lang(), because a user's interface
:lang(zh-cn),
* language is stored in account preferences while anonymous visitors use the
:lang(zh-hans) {
* site default; doing so makes the same article change typeface after login.
font-family: "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC",
*/
"Microsoft YaHei", "Heiti SC", system-ui, sans-serif;
: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:lang(zh-tw) body,
html body,
:lang(zh-tw) {
button,
font-family: "Noto Sans CJK TC", "Source Han Sans TC", "PingFang TC",
input,
"Microsoft JhengHei", "Heiti TC", system-ui, sans-serif;
select,
textarea {
font-family: var(--font-family-system-sans);
}
}


html:lang(zh-hk) body,
.mw-body h1,
html:lang(zh-hant) body,
.mw-body-content h1,
:lang(zh-hk),
.mw-body-content h2 {
:lang(zh-hant) {
font-family: var(--font-family-serif);
font-family: "Noto Sans CJK HK", "Source Han Sans HC", "PingFang HK",
"Microsoft JhengHei", "Heiti TC", system-ui, sans-serif;
}
}
html:lang(ja) body,
:lang(ja) {
font-family: "Noto Sans CJK JP", "Source Han Sans JP",
"Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
html:lang(ko) body,
:lang(ko) {
font-family: "Noto Sans CJK KR", "Source Han Sans KR",
"Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}


/* Keep the existing create InputBox inside narrow article viewports. */
/* Keep the existing create InputBox inside narrow article viewports. */