模板:模板样式/doc

来自「荏苒之境」
Sicusa留言 | 贡献2025年8月8日 (五) 07:30的版本
此模板使用的样式:MediaWiki:Common.css
/* 这里放置的CSS将应用于所有皮肤 */

@import url(https://fonts.googleapis.com/css?family=Noto+Serif+SC%3A200%2C300%2Cregular%2C500%2C600%2C700%2C800%2C900%7CNoto+Serif+SC%3Aregular);
@import url(https://fonts.googleapis.com/css?family=Noto+Serif);
@import url(https://fonts.googleapis.com/css?family=Hedvig+Letters+Serif);

@font-face {
   font-family: Shohna;
   src: url(https://gilatod.art/wp-content/uploads/custom_fonts/Shohna.ttf);
   font-weight: normal;
}
@font-face {
   font-family: DoulosSIL-Regular;
   src: url(https://gilatod.art/wp-content/uploads/custom_fonts/DoulosSIL-Regular.ttf);
   font-weight: normal;
}

body {
	font-family: "Hedvig Letters Serif", "Noto Serif", "Noto Serif SC", "SimSun", "DoulosSIL-Regular", "Shohna";
	-webkit-font-smoothing: antialiased;
	tab-size: 4;
}

.overflowed {
	margin: 0;
	position: inherit;
}

.mw-body h1 {
	font-family: "Noto Serif SC", "Noto Serif", "SimSun", "DoulosSIL-Regular", "Shohna" !important;
}

.mw-body h2, .mw-body h3, .mw-body h4, .mw-body h5, .mw-body h6, .mw-body dt,
#p-logo-text a, #personal h2, .mw-body .toctitle h2, input {
	font-family: "Hedvig Letters Serif", "Noto Serif", "Noto Serif SC", "SimSun", "DoulosSIL-Regular", "Shohna";
}

#mw-site-navigation h2, #mw-related-navigation h2 {
	font-family: "Noto Serif SC", "SimSun", "DoulosSIL-Regular", "Shohna";
	font-size: 1.1em;
}

#mw-content-text {
	font-size: 1.1em;
	line-height: 1.7em;
}
.wikiEditor-ui-text textarea.mw-editfont-monospace, .screenplay, code, tt, kbd, pre, samp, .skin-timeless .monospace {
	font-size: 13px;
	line-height: 1.5em;
}

.quote {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	background: #FFFFFF;
	font-size: 15px;
	color: #444444;
	border-left: 4px solid #AAAAAA;
	padding:14px 20px 14px 20px
}

示例代码:

{{模板样式
| MediaWiki:Common.css
}}