aboutsummaryrefslogtreecommitdiff
path: root/docs/gen
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-11-18 14:48:58 +0100
committerlonkaars <loek@pipeframe.xyz>2022-11-18 14:48:58 +0100
commite47b1ddefa9989594bb81bd872b88c085cd777bc (patch)
tree288cee427d326814766a0f54a56601dfe1b6dffd /docs/gen
parenta1b15467c49cea4080898b970cbc90e4fd4a32fd (diff)
WIP table of contents
Diffstat (limited to 'docs/gen')
-rw-r--r--docs/gen/style.css47
1 files changed, 34 insertions, 13 deletions
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;
+ }
}