Πρότυπο:toc/style.css

Από Βικιλεξικό
Μετάβαση στην πλοήγηση Πήδηση στην αναζήτηση
/* <nowiki> */


/* 	Sarri.greek 2023.11.19.
	Table of Contents with numbered list
	in 2 or 3 columns
	Test at [[Συζήτηση προτύπου:toc/style.css]]
	If used at a page, write
		<noinclude><templatestyles src="toc/style.css " /></noinclude>
	*/

/* Fully numbered nested lists like 1, 1.1, 1,2, 1.2.1, 1.2.2... 
	To reset numbers, write at your page:
	make number 2 <li style="counter-reset: item 1;">
	make number 3 <li style="counter-reset: item 2;">
*/


.tocwikt ol li {display:block;} /* hide original list counter */

.tocwikt li { 
	font-size:13px;
	margin-left:-30px;
} 
.tochor li { 
	display:inline;
} 

/* all lines must have equal height */
.tocwikt ol, li { 
	line-height:1.5em;
	padding-top: 0px;
	padding-bottom: 0px;
	margin-top: 0px;
	margin-bottom: 0px;
}

.tocwikt ol > li:first-child {counter-reset: item; } /* reset counter */
.tocwikt ol > li {counter-increment: item; } /* increment counter */
.tocwikt ol > li:before {content:counters(item, ".") " "; } /* print counter */


/* TO TO
the first ol (is level 2 with ==) {margin-left:0em;}
ol level 3 and more {margin-left:1.5em;}
*/

/* also see column templates like at [[wikt:en:Module:columns]]). 
	
*/

/* </nowiki> */