MediaWiki:Common.css: Difference between revisions
From Stunts Wiki
No edit summary |
Tag: Undo |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 40: | Line 40: | ||
width: auto; | width: auto; | ||
} | } | ||
/* https://en.wikibooks.org/w/index.php?title=MediaWiki:Common.css/toc.css&oldid=1598195 */ | |||
/* When <div class="nonumtoc"> is used on the table of contents, the ToC will display without numbers */ | |||
.toclimit-count .tocnumber, .nonumtoc .tocnumber { display:none; } | |||
/* 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 (as long as | |||
there are no =headings= on the page, which there shouldn't be according to the MoS). */ | |||
.toclimit-2 .toclevel-2 {display:none;} | |||
.toclimit-3 .toclevel-3 {display:none;} | |||
.toclimit-4 .toclevel-4 {display:none;} | |||
.toclimit-5 .toclevel-5 {display:none;} | |||
.toclimit-6 .toclevel-6 {display:none;} | |||
Latest revision as of 14:27, 6 January 2024
/* <pre><nowiki> */
/** CSS placed here will be applied to all skins */
/* wikitable class */
table.wikitable {
margin: 1em;
padding: 0.5em;
background: #fafafa;
border: 1px solid gray;
color: black;
text-align: left;
}
table.wikitable th,
table.wikitable td {
padding-right: 1em;
}
table.wikitable th {
background: #e9e9e9;
color: black;
}
/* Pseudo code syntax highlighting classes */
.hlC { color: #777; font-style: italic } /* Comment */
.hlP { color: #933 } /* Primitive type */
.hlB { color: #6c6 } /* Bracket/operator */
.hlN { color: #c6c } /* Numeric */
.hlS { color: #f00 } /* String */
/* </nowiki></pre> */
/* Taken from MediaWiki - http://www.mediawiki.org/wiki/Manual:Collapsible_tables */
.collapseButton { /* 'show'/'hide' buttons created dynamically by the */
float: right; /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
font-weight: normal; /* are styled here so they can be customised. */
text-align: right;
width: auto;
}
/* https://en.wikibooks.org/w/index.php?title=MediaWiki:Common.css/toc.css&oldid=1598195 */
/* When <div class="nonumtoc"> is used on the table of contents, the ToC will display without numbers */
.toclimit-count .tocnumber, .nonumtoc .tocnumber { display:none; }
/* 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 (as long as
there are no =headings= on the page, which there shouldn't be according to the MoS). */
.toclimit-2 .toclevel-2 {display:none;}
.toclimit-3 .toclevel-3 {display:none;}
.toclimit-4 .toclevel-4 {display:none;}
.toclimit-5 .toclevel-5 {display:none;}
.toclimit-6 .toclevel-6 {display:none;}
