From WikiChip
Difference between revisions of "MediaWiki:Common.css"

Line 2: Line 2:
 
div.portal {
 
div.portal {
 
     padding-bottom: .5em !important;
 
     padding-bottom: .5em !important;
 +
}
 +
 +
 +
/* Temporary(!) fix for horizontal TOC in Blink (Chrone/Opera) */
 +
.hlist .tocnumber,
 +
.hlist .toctext {
 +
    display: inline;
 +
}
 +
/* 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 none;
 +
    margin: .3em 0 0;
 +
    padding: 0;
 +
}
 +
.hlist.nonumtoc #toc ul ul,
 +
.hlist.nonumtoc .toc ul ul {
 +
    /* @noflip */
 +
    margin: 0;
 +
}
 +
/* 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-1 ul,
 +
.toclimit-3 .toclevel-2 ul,
 +
.toclimit-4 .toclevel-3 ul,
 +
.toclimit-5 .toclevel-4 ul,
 +
.toclimit-6 .toclevel-5 ul,
 +
.toclimit-7 .toclevel-6 ul {
 +
    display: none;
 
}
 
}

Revision as of 17:30, 29 December 2015

/* CSS placed here will be applied to all skins */
div.portal {
    padding-bottom: .5em !important;
}


/* Temporary(!) fix for horizontal TOC in Blink (Chrone/Opera) */
.hlist .tocnumber,
.hlist .toctext {
    display: inline;
}
/* 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 none;
    margin: .3em 0 0;
    padding: 0;
}
.hlist.nonumtoc #toc ul ul,
.hlist.nonumtoc .toc ul ul {
    /* @noflip */
    margin: 0;
}
/* 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-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
    display: none;
}