8,282
edits
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
* Styling inside .mw-parser-output should generally use TemplateStyles. | * Styling inside .mw-parser-output should generally use TemplateStyles. | ||
*/ | */ | ||
/** Template stylings **/ | |||
/* [[Template:Navbox]] */ | |||
.navbox { | |||
background: #FFF; | |||
border: 1px solid #CCC; | |||
margin: 1em auto 0; | |||
width: 100%; | |||
} | |||
.navbox table { | |||
background: #FFF; | |||
margin-left: -4px; | |||
margin-right: -2px; | |||
} | |||
.navbox table:first-child { | |||
margin-top: -2px; | |||
} | |||
.navbox table:last-child { | |||
margin-bottom: -2px; | |||
} | |||
.navbox .navbox-top { | |||
white-space: nowrap; | |||
background-color: #CCC; | |||
padding: 0 3px; | |||
text-align: center; | |||
} | |||
.navbox-navbar, | |||
.navbox-navbar-mini { | |||
float: left; | |||
font-size: 80%; | |||
} | |||
.navbox-title { | |||
padding: 0 10px; | |||
font-size: 110%; | |||
} | |||
.navbox th { | |||
background-color: #EEE; | |||
padding: 0 10px; | |||
white-space: nowrap; | |||
text-align: right; | |||
} | |||
.navbox td { | |||
width: 100%; | |||
padding: 0 0 0 2px; | |||
} | |||
body.wgl-theme-dark .navbox, | |||
body.wgl-theme-dark .historybox { | |||
background-color: #2f2f2f; | |||
border-color: #444; | |||
} | |||
body.wgl-theme-dark .navbox table, | |||
body.wgl-theme-dark .historybox table { | |||
background-color: #2f2f2f; | |||
} | |||
body.wgl-theme-dark .navbox .navbox-top, | |||
body.wgl-theme-dark .historybox .historybox-top { | |||
background-color: #111 !important; | |||
} | |||
body.wgl-theme-dark .navbox th, | |||
body.wgl-theme-dark .historybox th { | |||
background-color: #222; | |||
} | |||
/* [[Template:LoadBox]]*/ | |||
.load-page { | |||
background-color: rgba(255, 255, 255, .5); | |||
border: 1px solid #CCC; | |||
margin-bottom: 0.5em; | |||
padding: 0 0.5em; | |||
} | |||
body.wgl-theme-dark .load-page { | |||
background-color: #222; | |||
border-color: #111; | |||
} | |||
/* [[Template:LoadBox]] with navbox */ | |||
.loadbox-navbox { | |||
padding: 2px !important; | |||
margin: 1em 0 0 !important; | |||
clear: both; | |||
} | |||
#content .loadbox-navbox > p { | |||
background-color: #CCC; | |||
text-align: center; | |||
margin: 0; | |||
padding: 0 3px; | |||
} | |||
body.wgl-theme-dark #content .loadbox-navbox > p { | |||
background-color: #111; | |||
} | |||
.loadbox-navbox > p > b { | |||
font-size: 110%; | |||
} | |||
.loadbox-navbox .navbox { | |||
margin: 0 -2px -2px; | |||
border: 0; | |||
} | |||
.loadbox-navbox > .load-page-content > .mw-parser-output > .navbox > tbody > tr:first-child { | |||
display: none; | |||
} | |||
/* Reset italic styling set by user agent */ | /* Reset italic styling set by user agent */ | ||
cite, | cite, |