MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
(Added comment for "noautonum" class) |
(Also hide title on Main_Page) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
/** | /** | ||
* | * Use prefix "tcw-" for all newly introduced classes and ids. | ||
* | * | ||
* | * Preferably use templates instead of using styles directly. This way it's | ||
* | * easy to track down where a style is used. | ||
*/ | */ | ||
.noautonum .tocnumber { display: none; } | |||
/** | |||
* Class "tcw-noautonum" - Suppress automatic section numbering in a contained | |||
* table of contents. | |||
* | |||
* Templates: | |||
* {{TOC noautonum}} - Insert a table of contents without numbering. | |||
*/ | |||
.tcw-noautonum .tocnumber { display: none; } | |||
/** | |||
* Hide page title for [[Main_Page]] and [[TotalcmdWiki:Privacy_policy]] | |||
*/ | |||
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; } | |||
body.page-TotalcmdWiki_Privacy_policy.action-view h1.firstHeading, body.page-TotalcmdWiki_Privacy_policy.action-submit h1.firstHeading { display: none; } |
Latest revision as of 15:59, 26 January 2023
/* CSS placed here will be applied to all skins */ /** * Use prefix "tcw-" for all newly introduced classes and ids. * * Preferably use templates instead of using styles directly. This way it's * easy to track down where a style is used. */ /** * Class "tcw-noautonum" - Suppress automatic section numbering in a contained * table of contents. * * Templates: * {{TOC noautonum}} - Insert a table of contents without numbering. */ .tcw-noautonum .tocnumber { display: none; } /** * Hide page title for [[Main_Page]] and [[TotalcmdWiki:Privacy_policy]] */ body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; } body.page-TotalcmdWiki_Privacy_policy.action-view h1.firstHeading, body.page-TotalcmdWiki_Privacy_policy.action-submit h1.firstHeading { display: none; }