Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
(Created page with "→CSS placed here will be applied to all skins: table.infobox { width:22em; float:right; clear:right; border-collapse:collapse; border:1px solid #aaaaaa; background-color:#...") |
|||
| Line 39: | Line 39: | ||
.references-small { font-size: 0.85em; } | .references-small { font-size: 0.85em; } | ||
| + | |||
| + | /* | ||
| + | * Allow limiting of which header levels are shown in a TOC; | ||
| + | * <div class="toclimit-3">, for instance, will limit to | ||
| + | * showing ==headings== and ===headings=== but no further. | ||
| + | * Used in [[Template:TOC]] | ||
| + | */ | ||
| + | .toclimit-2 .toclevel-1 ul, | ||
| + | .toclimit-3 .toclevel-2 ul, | ||
| + | .toclimit-4 .toclevel-3 ul, | ||
| + | .toclimit-5 .toclevel-4 ul, | ||
| + | .toclimit-6 .toclevel-5 ul, | ||
| + | .toclimit-7 .toclevel-6 ul { | ||
| + | display: none; | ||
| + | } | ||
Revision as of 15:17, 24 October 2021
/* CSS placed here will be applied to all skins */
table.infobox {
width:22em;
float:right;
clear:right;
border-collapse:collapse;
border:1px solid #aaaaaa;
background-color:#f9f9f9;
color:#000000;
margin:0.5em 0 0.5em 1em;
padding:0.2em;
text-align:left;
font-size:88%;
line-height:1.2em;
table-layout: fixed;
}
table.infobox th, table.infobox td {
padding: 0.4em 0.6em 0.4em 0.6em;
vertical-align: top;
}
table.infobox tr {
border-bottom:1px solid #aaaaaa;
}
table.infobox tr.cont {
border-bottom: none;
}
table.infobox tr.cont td, table.infobox tr.cont th {
padding-bottom: 0;
margin-bottom: 0;
}
table.infobox th {
font-size:1.25em;
}
.references-small { font-size: 0.85em; }
/*
* Allow limiting of which header levels are shown in a TOC;
* <div class="toclimit-3">, for instance, will limit to
* showing ==headings== and ===headings=== but no further.
* Used in [[Template:TOC]]
*/
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
display: none;
}