MediaWiki:Common.css: Difference between revisions

moved TOC limit and no-num markup to MediaWiki:Vector.css where it always should have been
(updated TODO comments, moving some to NOTEs; removed my Vector 2022 "update" to TOClimit which will never work; renamed section containing our homegrown modifications)
(moved TOC limit and no-num markup to MediaWiki:Vector.css where it always should have been)
Line 88: Line 88:
span[ rel="mw:referencedBy" ]::before {
span[ rel="mw:referencedBy" ]::before {
content: "^ ";
content: "^ ";
}
/* NOTE: Not applicable in Vector 2022 because TOC does not use numbers */
/* 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;
}
/* NOTE: Only works in Vector, not Vector 2022 */
/* 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;
}
}