微件:Hydrogina/Navbox
<style type="text/css"> /* Default style for navigation boxes from Wikipedia*/ .mobilenavbox { /* Navbox container style */
border: 1px solid #a2a9b1; width: 100%; margin: auto; clear: both; font-size: 88%; text-align: center; padding: 1px;
} .mobilenavbox-inner, .mobilenavbox-subgroup {
width: 100%;
} .mobilenavbox th, .mobilenavbox-title, .mobilenavbox-abovebelow {
text-align: center; /* Title and above/below styles */ padding-left: 1em; padding-right: 1em;
} th.mobilenavbox-group { /* Group style */
white-space: nowrap; /* @noflip */ text-align: right;
} .mobilenavbox, .mobilenavbox-subgroup {
background: #fdfdfd; /* Background color */
} .mobilenavbox-list {
border-color: #fdfdfd; /* Must match background color */
} .mobilenavbox th, .mobilenavbox-title {
background: #4487DF; /* Level 1 color */
}
.mobilenavbox-title a, .mobilenavbox-title div{
color: white;
} .mobilenavbox-abovebelow, th.mobilenavbox-group, .mobilenavbox-subgroup .mobilenavbox-title {
background: #85C1F7; /* Level 2 color */
} .mobilenavbox-subgroup .mobilenavbox-group, .mobilenavbox-subgroup .mobilenavbox-abovebelow {
background: #EBF7FE; /* Level 3 color */
} .mobilenavbox-even {
background: #f7f7f7; /* Even row striping */
} .mobilenavbox-odd {
background: transparent; /* Odd row striping */
} table.mobilenavbox + table.mobilenavbox { /* Single pixel border between adjacent mobilenavboxes */
margin-top: -1px; /* (doesn't work for IE6, but that's okay) */
} .mobilenavbox .hlist td dl, .mobilenavbox .hlist td ol, .mobilenavbox .hlist td ul, .mobilenavbox td.hlist dl, .mobilenavbox td.hlist ol, .mobilenavbox td.hlist ul {
padding: 0.125em 0; /* Adjust hlist padding in mobilenavboxes */
} .mobilenavbox .hlist dd, .mobilenavbox .hlist dt, .mobilenavbox .hlist li {
white-space: nowrap; /* Nowrap list items in mobilenavboxes */ white-space: normal !ie; /* IE<8 no-wraps entire list, so disable it */
} .mobilenavbox .hlist dd dl, .mobilenavbox .hlist dt dl, .mobilenavbox .hlist li ol, .mobilenavbox .hlist li ul {
white-space: normal; /* But allow parent list items to be wrapped */
} ol + table.mobilenavbox, ul + table.mobilenavbox {
margin-top: 0.5em; /* Prevent lists from clinging to mobilenavboxes */
}
/* Default styling for Navbar template */ .navbar {
display: inline; font-weight: normal;
} .navbar ul {
display: inline; white-space: nowrap;
} .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 mobilenavbox */ .mobilenavbox .navbar {
display: block;
} .mobilenavbox-title .navbar {
/* @noflip */ float: left; /* @noflip */ text-align: left; /* @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; font-weight: normal; /* @noflip */ margin-left: 0.5em; /* @noflip */ text-align: right; width: auto;
} /* In mobilenavboxes, the show/hide button balances the v·d·e links
from Template:Navbar, so they need to be the same width. */
.mobilenavbox .collapseButton {
width: 8em;
} </style>