Template:SimpleTOC/styles.css
Jump to navigation
Jump to search
.stoc-line {
display: grid;
grid-template-columns: auto max-content;
grid-template-areas: "chapter page";
align-items: end;
gap: 0 .25em; /* customize the gap to your needs */
}
.stoc-chap {
grid-area: chapter;
position: relative;
overflow: hidden;
}
.stoc-chap::after {
position: absolute;
padding-left: .5em; /* customise the padding to your needs */
/* adjust the amount of dots to your needs */
content: " . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . . . . ";
text-align: right; /* optional, can be removed */
}
.stoc-chap.stoc-nodots::after {
content: "";
}
.stoc-page {
grid-area: page;
}