baseline & toc

This commit is contained in:
Julie Blanc 2026-04-14 18:18:10 +02:00
parent 831d276d41
commit 79b2753fdb
16 changed files with 385 additions and 16 deletions

View file

@ -0,0 +1,13 @@
#list-toc-generated{
--before-page: "";
}
.toc-element a.toc-page-after::after{
content: var(--before-page) target-counter(attr(href), page);
float: right; /* put number at the right of the page */
}
.toc-element a.toc-page-before::before{
content: var(--before-page) target-counter(attr(href), page);
margin-right: 1ch; /* space after number */
}