“MediaWiki:Common.css”的版本间的差异
来自「荏苒之境」
小 |
|||
第40行: | 第40行: | ||
width: 300px; | width: 300px; | ||
} | } | ||
.infobox | .infobox tbody:only-child { | ||
display: none; | display: none; | ||
} | } |
2021年9月4日 (六) 09:36的版本
/* 这里放置的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: 10px;
margin-bottom: 10px;
}
.infobox table {
border-collapse: collapse;
width: 300px;
}
.infobox tbody:only-child {
display: none;
}
@media screen and (max-width: 851px) {
.infobox {
font-size: 0.9em;
}
}
.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;
}