Template:Horizontal TOC/style.css: Difference between revisions

From Blooncyclopedia, the independent Bloons knowledge base
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
}
}


#toc:not(.show-breaks) li, #toc ul ul {
#toc li, #toc ul ul {
margin: 0;
margin: 0;
display: inline;
display: inline;
}
}


#toc:not(.show-breaks) li::after { content: " • " }
#toc li::after { content: " • " }
#toc li:last-child::after { content: none }
#toc li:last-child::after,
#toc.break-level-1 .toclevel-1::after { content: none }


/* parentheses around nested lists */
/* parentheses around nested lists */
Line 19: Line 20:
content: ")";
content: ")";
font-weight: normal;
font-weight: normal;
}
#toc.break-level-1 .toclevel-1 > :not(ul) .tocnumber {
display: initial;
}
#toc.break-level-1 .toclevel-1 {
margin: initial;
display: initial;
}
}

Revision as of 07:45, 21 March 2026

#toc .tocnumber {
	display: none;
}

#toc li, #toc ul ul	{
	margin: 0;
	display: inline;
}

#toc li::after							{ content: " • " }
#toc li:last-child::after,
#toc.break-level-1 .toclevel-1::after	{ content: none }

/* parentheses around nested lists */
#toc li li:first-child::before {
	content: " (";
	font-weight: normal;
}
#toc li li:last-child::after {
	content: ")";
	font-weight: normal;
}

#toc.break-level-1 .toclevel-1 > :not(ul) .tocnumber {
	display: initial;
}

#toc.break-level-1 .toclevel-1 {
	margin: initial;
	display: initial;
}