MediaWiki:Common.css: Difference between revisions
From Step Mods | Change The Game
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
/* | <source lang="css" line> | ||
/* CSS placed here will be applied to all skins */ | |||
/* Hides the Main Page's title */ | |||
body.page-Main_Page h1.firstHeading { display:none; } | |||
/** Collapsible tables ********************************************************* | |||
* | |||
* Description: Allows tables to be collapsed, showing only the header. See | |||
* https://www.mediawiki.org/wiki/Manual:Collapsible_tables. | |||
* Maintainers: [[en:User:R. Koot]] | |||
*/ | |||
table.collapsed tr.collapsible { | |||
display: none; | |||
} | |||
.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; | |||
margin: 0px 5px; | |||
} | |||
/* When <div class="nonumtoc"> is used on the table of contents, | |||
the ToC will display without numbers */ | |||
.nonumtoc .tocnumber { display: none; } | |||
.nonumtoc #toc ul, | |||
.nonumtoc .toc ul { | |||
line-height: 1.5em; | |||
list-style: none; | |||
margin: .3em 0 0; | |||
padding: 0; | |||
} | |||
.nonumtoc #toc ul ul, | |||
.nonumtoc .toc ul ul { | |||
margin: 0 0 0 2em; | |||
} | |||
</source> |
Revision as of 22:28, November 27, 2020
<source lang="css" line>
/* CSS placed here will be applied to all skins */
/* Hides the Main Page's title */
body.page-Main_Page h1.firstHeading { display:none; }
/** Collapsible tables *********************************************************
*
* Description: Allows tables to be collapsed, showing only the header. See
* https://www.mediawiki.org/wiki/Manual:Collapsible_tables.
* Maintainers: [[en:User:R. Koot]]
*/
table.collapsed tr.collapsible {
display: none;
}
.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;
margin: 0px 5px;
}
/* When <div class="nonumtoc"> is used on the table of contents,
the ToC will display without numbers */
.nonumtoc .tocnumber { display: none; }
.nonumtoc #toc ul,
.nonumtoc .toc ul {
line-height: 1.5em;
list-style: none;
margin: .3em 0 0;
padding: 0;
}
.nonumtoc #toc ul ul,
.nonumtoc .toc ul ul {
margin: 0 0 0 2em;
}
</source>