更改

跳转至: 导航搜索

MediaWiki:Common.css

添加1,902字节, 6年前
Update code
/* Default style for navigation boxes */
.navbox { /* Navbox container style */
box-sizing: border-box; border: 1px solid #aaaa2a9b1; width: 100%; margin: auto;
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,
width: 100%;
}
.navbox th-group,
.navbox-title,
.navbox-abovebelow {
text-alignpadding: center0.25em 1em; /* Title , group and above/below styles */ paddingline-leftheight: 1em1.5em; paddingtext-rightalign: 1emcenter;
}
th.navbox-group { /* Group style */
}
.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-odd {
background: transparent; /* Odd row striping */
}
table.navbox + table.navbox { /* Single pixel border between adjacent navboxes */
margin-top: -1px; /* (doesn't work for IE6, but that's okay) */
}
.navbox .hlist td dl,
.navbox td.hlist ul {
padding: 0.125em 0; /* Adjust hlist padding in navboxes */
}
.navbox .hlist dd,
.navbox .hlist dt,
.navbox .hlist li {
white-space: nowrap; /* Nowrap list items in navboxes */
white-space: normal !ie; /* IE < 8 no-wraps entire list, so disable it */
}
.navbox .hlist dd dl,
.navbox .hlist dt dl,
.navbox .hlist li ol,
.navbox .hlist li ul {
white-space: normal; /* But allow parent list items to be wrapped */
}
ol + table.navbox,
ul + table.navbox {
margin-top: 0.5em; /* Prevent lists from clinging to navboxes */
}
.navbar {
display: inline;
font-size: 8088%;
font-weight: normal;
}
display: inline;
white-space: nowrap;
}
.mw-body-content .navbar ul {
line-height: inherit;
}
.navbar li {
word-spacing: -0.125em;
}
.navbar.mini li abbr[title] { font-variant: small-caps; border-bottom: none; text-decoration: none; cursor: inherit;}/* Navbar styling when nested in infobox and navbox */.infobox .navbar { font-size: 100%;}
.navbox .navbar {
display: block;
font-size: 80100%;
}
.navbox-title .navbar {
/* @noflip */
margin-right: 0.5em;
width: 8em;
}
/* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript
in [[MediaWiki:Common.js]] are styled here so they can be customised. */
.collapseButton {
/* @noflip */
float: right;
/* @noflip */
text-align: right;
width: 6emauto;
}
 /* In navboxesStyling for JQuery makeCollapsible, the showmatching that of collapseButton */hide button balances the v·d·e links from [[Template.mw-parser-output .mw-collapsible-toggle { font-weight:Navbar]], so they need to be the same width. normal; /* @noflip */ text-align: right; padding-right: 0.navbox 2em; padding-left: 0.2em;}.mw-collapsible-leftside-toggle .collapseButton mw-collapsible-toggle { /* @noflip */ float: left; /* @noflip */ widthtext-align: 8emleft;
}
/* Infobox template style */
.infobox {
border: 1px solid #a2a9b1;
border-spacing: 3px;
background-color: #f8f9fa;
color: black;
/* @noflip */
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
font-size: 88%;
line-height: 1.5em;
}
.infobox caption {
font-size: 125%;
font-weight: bold;
padding: 0.2em;
text-align: center;
}
.infobox td,
.infobox th {
vertical-align: top;
/* @noflip */
text-align: left;
}
.infobox.bordered {
border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
border: 1px solid #a2a9b1;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
border: 0;
}
 
.infobox.sisterproject {
width: 20em;
font-size: 90%;
}
 
.infobox.standard-talk {
border: 1px solid #c0c090;
background-color: #f8eaba;
}
.infobox.standard-talk.bordered td,
.infobox.standard-talk.bordered th {
border: 1px solid #c0c090;
}
 
/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
border: 0;
border-top: 1px solid #a2a9b1;
/* @noflip */
border-right: 1px solid #a2a9b1;
}
/** Collapsible tables ********************************************************* * * Description: Allows tables to be collapsed.infobox.bordered .mergedrow td, showing only the header. See * http://www.mediawikiinfobox.org/wiki/Manual:Collapsible_tablesbordered .mergedrow th { * Maintainers: [[en:User border:R. Koot]]0; /* @noflip */ table.collapsed tr.collapsible { display border-right: none1px solid #a2a9b1;
}
.collapseButton { /* 'show'/'hide' buttons created dynamically by the Styles for geography infoboxes, eg countries, country subdivisions, cities, etc. */ float.infobox.geography { border-collapse: rightcollapse; /* CollapsibleTables JavaScript in [[MediaWiki line-height:Common1.js]] */2em; font-weightsize: normal90%; /* are styled here so they can be customised} .infobox.geography td,.infobox.geography th { border-top: 1px solid #a2a9b1; padding: 0.4em 0.6em 0.4em 0.6em;}.infobox.geography .mergedtoprow td,.infobox.geography .mergedtoprow th { border-top: 1px solid #a2a9b1; padding: 0.4em 0.6em 0.2em 0.6em;} .infobox.geography .mergedrow td,.infobox.geography .mergedrow th { border: 0; padding: 0 0.6em 0.2em 0.6em;} .infobox.geography .mergedbottomrow td,.infobox.geography . */mergedbottomrow th { border-top: 0; text border-alignbottom: 1px solid #a2a9b1; padding: 0 0.6em 0.4em 0.6em;} .infobox.geography .maptable td,.infobox.geography .maptable th { border: right0; width padding: auto0;
}

导航菜单