MediaWiki:Common.css:修订间差异
外观
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. */ | ||
2026年8月24日 (一) 22:16的最新版本
/* === TYZX black curtain: BEGIN === */
.tyzx-black-curtain {
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
background-color: #000;
color: #000;
cursor: pointer;
box-shadow: inset 0 0 0.08em #000;
text-shadow: 0 0 0.35em #000;
transition:
color 220ms ease,
background-color 220ms ease,
box-shadow 220ms ease,
text-shadow 220ms ease;
}
.tyzx-black-curtain:hover,
.tyzx-black-curtain:focus,
.tyzx-black-curtain:focus-visible,
.tyzx-black-curtain:active {
background-color: #000;
color: #fff;
box-shadow: 0 0 0.2em rgba(0, 0, 0, 0.35);
text-shadow: 0 0 0.12em rgba(255, 255, 255, 0.25);
}
.tyzx-black-curtain:focus-visible {
outline: 2px solid var(--color-progressive, #36c);
outline-offset: 2px;
}
.tyzx-black-curtain::selection {
background-color: #000;
color: #fff;
}
.tyzx-black-curtain::-moz-selection {
background-color: #000;
color: #fff;
}
@media (prefers-color-scheme: dark) {
.tyzx-black-curtain:hover,
.tyzx-black-curtain:focus,
.tyzx-black-curtain:focus-visible,
.tyzx-black-curtain:active,
.tyzx-black-curtain::selection {
background-color: #000;
color: #fff;
box-shadow: 0 0 0.25em rgba(255, 255, 255, 0.2);
text-shadow: 0 0 0.12em rgba(255, 255, 255, 0.3);
}
}
@media (prefers-reduced-motion: reduce) {
.tyzx-black-curtain {
transition: none;
}
}
/* === 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.
*/
: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 body,
button,
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);
}
/* Keep the existing create InputBox inside narrow article viewports. */
@media screen and (max-width: 720px) {
.mw-parser-output .mw-inputbox-form .cdx-text-input,
.mw-parser-output .mw-inputbox-form .mw-inputbox-createbox {
box-sizing: border-box;
width: 100%;
max-width: 100%;
min-width: 0;
}
}