Template:User:Sarri.greek/toc2-hor/style.css
Jump to navigation
Jump to search
/* <nowiki> */
/*
Table of Contents with numbered list
in 2 or 3 columns
If used at a page, write
<noinclude><templatestyles src=".../style.css " /></noinclude>
source
https://stackoverflow.com/questions/4098195/can-ordered-list-produce-result-that-looks-like-1-1-1-2-1-3-instead-of-just-1
help.
*/
/* 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:inline;} /* */
/* display:inline ONLY for horizontal TOC else display:block;*/
.tocwikt li {
font-size:13px;
}
/* For full tocs all lines must have equal height */
.tocwikt ol, li {
line-height:1.5em;
padding-top: 0;
padding-bottom: 0;
margin-top: 0;
margin-bottom: 0;
}
.tocwikt ol {
margin-left: 0;
padding: 5px;
}
.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 */
/* </nowiki> */