跳转到内容

天一学子免费网站托管计划: 面向全体天一在校学生及校友,提供免费网站托管、二级域名分发及付费制作服务。详见 公告页面。

立即参与贡献🎉 天一中学维基现在严重缺少词条,希望大家踊跃参与编辑。

警告⚠️: 严禁公开他人的私人信息,违者永久封杀

成为管理员: 若你是图灵社社员或是对天一维基作出重大贡献,便有机会成为管理员

MediaWiki:Common.css:修订间差异

来自江苏省天一中学非官方维基
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. */

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;
	}
}