Commit 3624dad5 authored by bperraud's avatar bperraud

Rework of ToC styling

parent 5df50c1e
...@@ -146,27 +146,32 @@ ul.toc > li { ...@@ -146,27 +146,32 @@ ul.toc > li {
ul.toc > li::before { ul.toc > li::before {
left: 0; left: 0;
position: absolute; position: absolute;
content: counters(toc, ".") ". "; content: counters(toc, ".") "\A0";
counter-increment: toc; counter-increment: toc;
} }
ul.toc.level2 > li {padding-left: 8mm;} ul.toc.level2 > li {
ul.toc.level3 > li {padding-left: 11mm;} padding-left: 8mm;
ul.toc.level4 > li {padding-left: 13mm;} font-family: "CMU Serif Extra";
ul.toc.level5 > li {padding-left: 15mm;} }
ul.toc.level6 > li {padding-left: 17mm;}
ul.toc.level3 > li {padding-left: 11mm}
ul.toc.level4 > li {padding-left: 13mm}
ul.toc > li > a::after { ul.toc > li > a {
content: leader(dotted);
text-decoration: none; text-decoration: none;
color: black; color: black;
} }
ul.toc.level3 > li > a::after, ul.toc.level4 > li > a::after {content: leader(dotted)}
ul.toc > li > span { ul.toc > li > span {
position: absolute; position: absolute;
right: -10mm; right: -10mm;
} }
ul.toc.level2 > li > span {font-family: "CMU Serif Extra"}
ul.toc > li > span::after { ul.toc > li > span::after {
content: target-counter(attr(href), page); 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