MediaWiki:Vector.less/toc.less

From Brighter Shores Wiki
Jump to navigation Jump to search
/* ========================
       [[Template:ToC]]
   ======================== */
   
:root {
	--toc-bg: @BODY_LIGHT;
	--toc-title-bg: @infobox-header-color;
	--toc-border-color: @infobox-border-color;
	--toc-list-border-color: @infobox-border-color;
}

.toc {
	font-size: .9em;
	background: var(--toc-bg);
	margin-top: 1em;
	padding: 0;
	border-color: var(--toc-border-color);
	box-shadow: @box-shadow;
	clear: left;

	.toctitle {
		background: var(--toc-title-bg);
		padding: .25em 1em;

		h2 {
			font-family: inherit;
		}
	}

	// 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-list-border-color);
		padding-left: .5em;
	}
}

// are these actually useful?
.tocnumber {
	display: none;
}

// [hide]/[show] button
.toctogglespan {
	// small spacing
	padding-left: .2em;
	// match navbox's button
	font-size: 0.9em;
}

// change the actual label to link-color
.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;
}