MediaWiki:Common.css

来自「荏苒之境」
Sicusa讨论 | 贡献2021年9月7日 (二) 11:14的版本

注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer / Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:Ctrl-F5
/* 这里放置的CSS将应用于所有皮肤 */

@import url(https://googlefonts.wp-china-yes.net/css?family=Noto+Serif+SC);

@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: "Noto Serif SC", "DoulosSIL-Regular", "Shohna";
	font-size: 1em;
}

.mw-body h1, .mw-body h2, .mw-body h3, .mw-body h4, .mw-body h5, .mw-body h6, .mw-body dt,
#p-logo-text a, #personal h2 {
	font-family: "Noto Serif SC", "DoulosSIL-Regular", "Shohna" !important;
}

.wikiEditor-ui-text textarea.mw-editfont-monospace, .screenplay, code, tt, kbd, pre, samp, .skin-timeless .monospace {
	font-family: 'Menlo','Consolas','Monaco','Noto Mono','Nimbus Mono L', "Noto Serif SC", "Shohna" !important;
}

.infobox {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    float: right;
    font-size: 0.77em;
    margin-left: 15px;
    margin-bottom: 15px;
    width: 300px;
}
.infobox table {
	border-collapse: collapse;
	width: 100%;
}
.infobox tr:only-child {
	display: none;
}
@media screen and (max-width: 660px) {
	.infobox {
		font-size: 0.9em;
		width: 100%;
	}
}
.infobox th {
	padding-top: 0.45em;
	padding-bottom: 0.45em;
	padding-left: 0.7em;
	text-align: left;
    vertical-align: top;
    width: 35%;
    border-top: 1px solid #d4d4d4;
}
.infobox td {
	width: 65%;
	padding-top: 0.45em;
	padding-bottom: 0.45em;
	padding-right: 0.7em;
    vertical-align: top;
    border-top: 1px solid #d4d4d4;
}
.infobox tr:last-child > th { padding-bottom: 0.53em; }
.infobox tr:last-child > td { padding-bottom: 0.53em; }
th.infobox-title {
	border-top: none;
	padding-left: 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    padding-top: 0.7em;
    padding-bottom: 0.7em;
}
th.infobox-header {
	padding-left: 0;
	text-align: center;
    font-weight: bold;
    font-size: 1em;
    margin-top: 0.5em;
    padding-top: 0.7em;
	padding-bottom: 0.7em;
}
th.infobox-image {
	padding-left: 0;
	border-top: none;
	text-align: center;
	padding-top: 0;
	padding-bottom: 0;
}
th.infobox-caption {
	border-top: none;
	font-size: 1em;
	font-weight: lighter;
    text-align: center;
    color: #999999;
    padding-right: 0;
}