Difference between revisions of "Common.css"
From LRDE
Line 35: | Line 35: | ||
margin-left: 1em; |
margin-left: 1em; |
||
overflow: hidden; |
overflow: hidden; |
||
+ | } |
||
+ | |||
+ | /** |
||
+ | * 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 17:17, 7 January 2014
/* CSS placed here will be applied to all skins */
/* Add border to block of code (syntaxhighlight) */
div.mw-geshi {
padding: 1em;
margin: 1em 0;
border: 1px dashed #2f6fab;
background-color: #f9f9f9;
}
/* Remove Home title */
body.page-Home h1.firstHeading {
display:none;
}
table.people {
padding-left: 10px;
}
table.people td {
border-bottom: 1px grey dashed;
padding-top: 4px;
padding-left: 4px;
padding-right: 4px;
padding-bottom: 0px;
}
.sideBox {
position: relative;
float: right;
clear: right;
border: 1px solid gray;
padding: 0.3em;
width: 200px;
background: white;
margin-left: 1em;
overflow: hidden;
}
/**
* 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;
}