From e47b1ddefa9989594bb81bd872b88c085cd777bc Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 18 Nov 2022 14:48:58 +0100 Subject: WIP table of contents --- docs/gen/style.css | 47 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 34 insertions(+), 13 deletions(-) (limited to 'docs/gen') diff --git a/docs/gen/style.css b/docs/gen/style.css index 601cbc6..fe107da 100644 --- a/docs/gen/style.css +++ b/docs/gen/style.css @@ -46,19 +46,40 @@ border-bottom: 1pt solid black; } - .docintro p { - display: flex; - flex-direction: row; - justify-content: space-between; - margin: 0; - } + .docintro p { + display: flex; + flex-direction: row; + justify-content: space-between; + margin: 0; + } + + .docintro .left, + .docintro .right { + display: block; + } + + .docintro .right { + text-align: right; + } - .docintro .left, - .docintro .right { - display: block; - } + .pagebr { + break-before: page; + } + + ol { + counter-reset: item; + } - .docintro .right { - text-align: right; - } + li { + display: block; + position: relative; + } + + li::before { + position: absolute; + left: 0; + content: counters(item, ".") " "; + transform: translateX(-100%) translateX(-5pt); + counter-increment: item; + } } -- cgit v1.2.3