Szablon:Spis treści/styles.css

Z Wikipedii, wolnej encyklopedii
/* Style dla wariantów "left" i "right"; "none" to stan domyślny */
.template-toc-container.left {
	float: left;
	clear: left;
	margin: 0 1em 1em 0;
	padding: 0.5em 1.4em 0.8em 0;
}

.template-toc-container.right {
	float: right;
	clear: right;
	margin: 0 0 1em 1em;
	padding: 0.5em 0 0.8em 1.4em;
}

/* Wyświetlanie fragmentów spisu treści */
.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;
}

/*
 Ukryj kontener spisu treści w sytuacjach, kiedy będzie pusty.
 Wektor 2022 wyświetla spis zawsze z lewej strony, poza szpaltą.
 W Minervie spis pokazywany jest tylko, jeśli szerokość ekranu >= 720px.
*/
body.skin-vector-2022 .template-toc-container {display:none;}
@media screen and (max-width:719px) {
	body.skin-minerva .template-toc-container {display:none;}
}