MediaWiki:Common.css: Difference between revisions

From COLLADA Public Wiki
Jump to navigation Jump to search
Elf (talk | contribs)
test adding lines for limiting TOC levels from http://en.wikipedia.org/wiki/MediaWiki:Common.css
 
Elf (talk | contribs)
ref template
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* <source lang="css"> */
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */


/* Allow limiting of which header levels are shown in a TOC; <div class="toclimit-3">, for
/* 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
   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). */
   there are no =headings= on the page, which there shouldn't be according to the MoS)
  template:TOClevel uses these settings. */
.toclimit-2 .toclevel-2 {display:none;}
.toclimit-2 .toclevel-2 {display:none;}
.toclimit-3 .toclevel-3 {display:none;}
.toclimit-3 .toclevel-3 {display:none;}
Line 10: Line 12:
.toclimit-6 .toclevel-6 {display:none;}
.toclimit-6 .toclevel-6 {display:none;}
.toclimit-7 .toclevel-7 {display:none;}
.toclimit-7 .toclevel-7 {display:none;}
/* </source> */

Latest revision as of 22:36, 18 March 2009

/* <source lang="css"> */
/* CSS placed here will be applied to all skins */

/* 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).  
   template:TOClevel uses these settings. */
.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;}
.toclimit-7 .toclevel-7 {display:none;}
/* </source> */