MediaWiki:Common.css:修订间差异
Liulingbowen(留言 | 贡献) 小无编辑摘要 |
Liulingbowen(留言 | 贡献) 无编辑摘要 |
||
第67行: | 第67行: | ||
color: #3366BB; | color: #3366BB; | ||
} | } | ||
/*** Default style for navigation boxes ***/ | |||
.navbox { /* Navbox container style */ | |||
box-sizing: border-box; | |||
border: 1px solid #a2a9b1; | |||
width: 100%; | |||
clear: both; | |||
font-size: 88%; | |||
text-align: center; | |||
padding: 1px; | |||
margin: 1em auto 0; /* Prevent preceding content from clinging to navboxes */ | |||
} | |||
.navbox .navbox { | |||
margin-top: 0; /* No top margin for nested navboxes */ | |||
} | |||
.navbox + .navbox { | |||
margin-top: -1px; /* Single pixel border between adjacent navboxes */ | |||
} | |||
.navbox-inner, | |||
.navbox-subgroup { | |||
width: 100%; | |||
} | |||
.navbox-group, | |||
.navbox-title, | |||
.navbox-abovebelow { | |||
padding: 0.25em 1em; /* Title, group and above/below styles */ | |||
line-height: 1.5em; | |||
text-align: center; | |||
} | |||
th.navbox-group { /* Group style */ | |||
white-space: nowrap; | |||
/* @noflip */ | |||
text-align: right; | |||
} | |||
.navbox, | |||
.navbox-subgroup { | |||
background-color: #fdfdfd; /* Background color */ | |||
} | |||
.navbox-list { | |||
line-height: 1.5em; | |||
border-color: #fdfdfd; /* Must match background color */ | |||
} | |||
/*****For Template:Quote*****/ | /*****For Template:Quote*****/ |
2021年5月13日 (四) 14:40的版本
/* 此 CSS 會套用至所有的介面外觀 */
body {
font-family: sans-serif;
}
.mw-body-content {
font-size: 0.938em;
}
.mw-body-content p:first-child {
margin-top: 2.5em;
}
.mw-body-content .mw-parser-output > h2 {
font-family: sans-serif;
font-weight: bold;
border: none;
background-color: #f0f0f0;
padding: .3em;
margin-top: 1.5em;
}
.mw-body-content .mw-parser-output #toc + h2 {
margin-top: 1.5em;
}
.mw-body-content .mw-parser-output > h3 {
border-bottom: 1px solid #a2a9b1;
}
.mw-body h2 {
overflow:hidden;
}
#mw-content-text > blockquote {
border-left: 2px solid #e9e9e9;
padding-left: .5em;
}
.sidebar {
float: right;
clear: right;
margin: 0 0 1em 1em;
background: #f8f9fa;
border: 1px solid #aaa;
padding: .2em;
border-spacing: .4em;
font-size: 88%;
}
ol.references {
font-size: 90%;
}
/***** Links *****/
a:visited {
color:#0645ad;
}
.mw-body-content a.extiw {
color: #3366BB;
}
.mw-body-content a.extiw:visited {
color: #3366BB;
}
.mw-body-content a.extiw:active {
color: #3366BB;
}
/*** Default style for navigation boxes ***/
.navbox { /* Navbox container style */
box-sizing: border-box;
border: 1px solid #a2a9b1;
width: 100%;
clear: both;
font-size: 88%;
text-align: center;
padding: 1px;
margin: 1em auto 0; /* Prevent preceding content from clinging to navboxes */
}
.navbox .navbox {
margin-top: 0; /* No top margin for nested navboxes */
}
.navbox + .navbox {
margin-top: -1px; /* Single pixel border between adjacent navboxes */
}
.navbox-inner,
.navbox-subgroup {
width: 100%;
}
.navbox-group,
.navbox-title,
.navbox-abovebelow {
padding: 0.25em 1em; /* Title, group and above/below styles */
line-height: 1.5em;
text-align: center;
}
th.navbox-group { /* Group style */
white-space: nowrap;
/* @noflip */
text-align: right;
}
.navbox,
.navbox-subgroup {
background-color: #fdfdfd; /* Background color */
}
.navbox-list {
line-height: 1.5em;
border-color: #fdfdfd; /* Must match background color */
}
/*****For Template:Quote*****/
.templatequote {
font-family:SimSun;
background: #f9f9f9;
border-left: 10px solid #ccc;
padding: 0.5em 10px;
}
/*****For Template:Sidebar*****/
.hlist ul {
list-style: none;
margin: 0;
}
.hlist ul li {
display: inline;
white-space: nowrap;
line-height: 1.6em;
}
.hlist dd:after, .hlist li:after {
content: " ·";
font-weight: bold;
}
.hlist dd:last-child:after, .hlist li:last-child:after {
content: none;
}
.vlist ul {
list-style: none;
margin-left: 0;
}
.vlist ol {
margin-left: 1em;
}
/***** TEMPLATE: CategoryTree *****/
#mw-content-text .CategoryTreeTag a.CategoryTreeLabelCategory {
font-weight: bold;
}
#mw-content-text .CategoryTreeTag a.CategoryTreeLabelPage {
font-style: normal;
}
#mw-content-text .CategoryTreeTag > .CategoryTreeSection > .CategoryTreeItem {
text-align: center;
}
#mw-content-text .CategoryTreeTag .CategoryTreeChildren .CategoryTreeChildren {
border-left: 1px solid lightgray;
margin-left: 1.3em;
}
#mw-content-text .CategoryTreeTag .CategoryTreeChildren {
margin-left: 0;
}
/* For Template: Sidebar with collapsible lists */
.horizontal-list .mw-collapsible {
padding: 0 .1em .4em;
}
.horizontal-list caption a {
color: #000;
font-size: 150%;
}
.mw-body-content .horizontal-list .mw-collapsible-content p:first-child,
.mw-body-content .mw-collapsible-content p:first-child {
margin-top: .5em;
}
.horizontal-list ul {
margin: 0;
}
.horizontal-list li {
display: inline;
}
.horizontal-list li:after {
content: " · ";
font-weight: bold;
font-size: 100%;
}
.horizontal-list li:last-child:after {
content: none;
}
.horizontal-list .hl-heading:first-child {
padding: 0;
border-top: 0;
}
.horizontal-list .hl-heading {
font-size: larger;
padding: .5em 0 0;
margin: .5em 0;
border-top: 1px solid #aaa;
}