MediaWiki:Vector.less/toc.less
//
/* ======================== Template:ToC ======================== */ :root { --toc-bg: @BODY_LIGHT; --toc-title-bg: @infobox-header-color; --toc-border-color: @infobox-border-color; --toc-subheader-left-border-color: #c7b67b; } .toc { font-size: .9em; background: var(--toc-bg); margin-top: .75em; padding: 0; border-color: var(--toc-border-color); box-shadow: @box-shadow; clear: left; .toctitle { background: var(--toc-title-bg); padding: .25em 1em; h2, a { font-family: inherit; } } .toctogglespan { padding-left: .2em; } // are these actually useful? .tocnumber { display: none; } // entire group of headings > ul { line-height: 1.8em; padding: .75em 1.75em; margin: 0; } // subheadings only ul ul { border-left: 1px dotted var(--toc-subheader-left-border-color); padding-left: .5em; } } // Match the "hide" label of ToC .toctogglelabel { color: var(--link-color); } .toclimit-2 #toc .toclevel-2, .toclimit-3 #toc .toclevel-3, .toclimit-4 #toc .toclevel-4, .toclimit-5 #toc .toclevel-5, .toclimit-6 #toc .toclevel-6, .toclimit-7 #toc .toclevel-7 { display: none; }