MediaWiki:Common.css

来自中國法律百科 | China Law Wiki | ChinaLaw.Wiki
Liulingbowen留言 | 贡献2021年5月13日 (四) 15:03的版本

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

  • 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 會套用至所有的介面外觀 */
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 */
}


/* cell spacing for navbox cells */
tr + tr > .navbox-abovebelow,
tr + tr > .navbox-group,
tr + tr > .navbox-image,
tr + tr > .navbox-list {    /* Borders above 2nd, 3rd, etc. rows */
	border-top: 2px solid #fdfdfd; /* Must match background color */
}

.navbox th,
.navbox-title {
	background-color: #ccccff;      /* Level 1 color */
}

.navbox-abovebelow,
th.navbox-group,
.navbox-subgroup .navbox-title {
	background-color: #ddddff;      /* Level 2 color */
}

.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
	background-color: #e6e6ff;      /* Level 3 color */
}

.navbox-even {
	background-color: #f7f7f7;      /* Even row striping */
}

.navbox-odd {
	background-color: transparent;  /* Odd row striping */
}

.navbox .hlist td dl,
.navbox .hlist td ol,
.navbox .hlist td ul,
.navbox td.hlist dl,
.navbox td.hlist ol,
.navbox td.hlist ul {
	padding: 0.125em 0;       /* Adjust hlist padding in navboxes */
}

/* 20210513 */

.mw-parser-output .navbox-title .navbar {
    float: left;
    text-align: left;
    margin-right: 0.5em;
}

.mw-parser-output .navbox .navbar {
    display: block;
    font-size: 100%;
}

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