MediaWiki:Common.css: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
(Added css to experiment with)
(Also hide title on Main_Page)
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:


/**
/**
  * Class "noautonum" to suppress automatic section numbering in table of contents.
  * Use prefix "tcw-" for all newly introduced classes and ids.
  * Use template {{TOC noautonum}} to insert a table of contents without numbering.
*
* 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; }


/**
/**
  * Experimental css
  * Class "tcw-noautonum" - Suppress automatic section numbering in a contained
* table of contents.
*
* Templates:
*  {{TOC noautonum}} - Insert a table of contents without numbering.
  */
  */
.tcw_clearfix:before,
.tcw-noautonum .tocnumber { display: none; }
.tcw_clearfix:after {
    content: "";
    display: table;
}
.tcw_clearfix:after {
    clear: both;
}
.tcw_clearfix { display: inline-block; } /* This and next line to fix IE6/7 */
.tcw_clearfix { display: block; }


.tcw_dlfloat dt {
/**
float: left;
* Hide page title for [[Main_Page]] and [[TotalcmdWiki:Privacy_policy]]
clear: left;
*/
}
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; }
.tcw_dlfloat dd {
body.page-TotalcmdWiki_Privacy_policy.action-view h1.firstHeading, body.page-TotalcmdWiki_Privacy_policy.action-submit h1.firstHeading { display: none; }
float: left;
}
.tcw_dlfloat dd+dd {
    clear: left; /* Prevent multiple dd next to each other */
}
 
.tcw_dlalign_17_5em dl {
margin-left: 17.5em;
}
.tcw_dlalign_17_5em dt {
margin-left: -17.5em;
width: 16.5em; /* Width+padding+border must not exceed margin-left value */
}
.tcw_dlalign_17_5em dd {
    margin-left: 0; /* Remove default margin-left */
}

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; }