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

From WikiMD's Wellness Encyclopedia
en>Izno
move the margin-left/right to .toc
 
m 1 revision imported
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* {{pp-template}} */
/* {{pp-template}} */
.horizontal-toc-align-right {
.tocnumber {
float: right;
display: none;
}
}
 
#toc ul,
.horizontal-toc-align-left {
.toc ul {
float: left;
line-height: 1.5em;
list-style: none;
margin: .3em 0 0;
padding: 0;
}
}
 
.hlist #toc ul ul,
.horizontal-toc-align-center {
.hlist .toc ul ul {
clear: none;
/* @noflip */
}
margin: 0;
 
.horizontal-toc-align-center .toc {
margin-left: auto;
margin-right: auto;
}
 
.horizontal-toc-clear-right {
clear: right;
}
 
.horizontal-toc-clear-left {
clear: left;
}
 
.horizontal-toc-clear-both {
clear: both;
}
 
.horizontal-toc-clear-none {
clear: none;
}
}

Latest revision as of 00:43, 1 January 2025

/* {{pp-template}} */
.tocnumber {
	display: none;
}
#toc ul,
.toc ul {
	line-height: 1.5em;
	list-style: none;
	margin: .3em 0 0;
	padding: 0;
}
.hlist #toc ul ul,
.hlist .toc ul ul {
	/* @noflip */
	margin: 0;
}