Commit 3624dad5 authored by bperraud's avatar bperraud

Rework of ToC styling

parent 5df50c1e
......@@ -146,27 +146,32 @@ ul.toc > li {
ul.toc > li::before {
left: 0;
position: absolute;
content: counters(toc, ".") ". ";
content: counters(toc, ".") "\A0";
counter-increment: toc;
}
ul.toc.level2 > li {padding-left: 8mm;}
ul.toc.level3 > li {padding-left: 11mm;}
ul.toc.level4 > li {padding-left: 13mm;}
ul.toc.level5 > li {padding-left: 15mm;}
ul.toc.level6 > li {padding-left: 17mm;}
ul.toc.level2 > li {
padding-left: 8mm;
font-family: "CMU Serif Extra";
}
ul.toc.level3 > li {padding-left: 11mm}
ul.toc.level4 > li {padding-left: 13mm}
ul.toc > li > a::after {
content: leader(dotted);
ul.toc > li > a {
text-decoration: none;
color: black;
}
ul.toc.level3 > li > a::after, ul.toc.level4 > li > a::after {content: leader(dotted)}
ul.toc > li > span {
position: absolute;
right: -10mm;
}
ul.toc.level2 > li > span {font-family: "CMU Serif Extra"}
ul.toc > li > span::after {
content: target-counter(attr(href), page);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment