aboutsummaryrefslogtreecommitdiff
path: root/docs/gen/style.css
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-11-19 15:31:59 +0100
committerlonkaars <loek@pipeframe.xyz>2022-11-19 15:31:59 +0100
commite4966d5a01ef5aef24527fb713232d152f057fef (patch)
tree83984afe64d6bafb892221dd9e422c4c7bae58e9 /docs/gen/style.css
parente52d0d34a3e30bfda68b3e3deb383c7e47ffe682 (diff)
fix table of contents numbering and add hyphenation
Diffstat (limited to 'docs/gen/style.css')
-rw-r--r--docs/gen/style.css22
1 files changed, 15 insertions, 7 deletions
diff --git a/docs/gen/style.css b/docs/gen/style.css
index ac5c18a..7474846 100644
--- a/docs/gen/style.css
+++ b/docs/gen/style.css
@@ -7,6 +7,7 @@
content: counter(page);
}
}
+
html, body {
width: 100%;
margin: 0;
@@ -17,6 +18,12 @@
font-size: 11pt;
}
+ a {
+ text-decoration: none;
+ color: unset;
+ font-style: italic;
+ }
+
pre, code {
font-family: "JetBrainsMono Nerd Font";
font-size: 9pt;
@@ -29,6 +36,7 @@
figcaption, p {
text-align: justify;
text-justify: auto;
+ hyphens: auto;
}
table {
@@ -66,20 +74,20 @@
break-before: page;
}
- #TOC ol {
+ nav ol {
counter-reset: item;
+ list-style-type: none;
}
- #TOC li {
- display: block;
+ nav li {
position: relative;
+ counter-increment: item;
}
- #TOC li::before {
+ nav li::before {
position: absolute;
- left: 0;
- content: counters(item, ".") " ";
transform: translateX(-100%) translateX(-5pt);
- counter-increment: item;
+ left: 0;
+ content: attr(heading-num-fix);
}
}