ADD table of contents

This commit is contained in:
Hoernschen 2024-01-09 22:51:52 +01:00
parent c1594f153b
commit 4ab9bdab6e
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
5 changed files with 85 additions and 1 deletions

View file

@ -241,6 +241,75 @@ a {
/* Sections */
.table-of-contents {
position: fixed;
left: 0px;
top: 0px;
height: 100%;
display: flex;
flex-direction: row;
.extend {
margin: auto;
padding-block: 1rem;
padding-inline: 0.4rem;
border-radius: 0rem 0.5rem 0.5rem 0rem;
background-color: black;
cursor: pointer;
}
}
#TableOfContents {
display: none;
margin: auto;
padding-inline: 20px;
border-radius: 0rem 0.5rem 0.5rem 0rem;
background-color: black;
font-size: larger;
ul {
counter-reset:toc1;
list-style-type:none;
padding-inline-start: 0rem;
padding-block: 0.5rem;
}
li {
list-style-type:none;
ul {
counter-reset:toc2;
li {
list-style-type:none;
ul {
counter-reset:toc3;
li:before {
counter-increment:toc3;
content:counter(toc1) "." counter(toc2) "." counter(toc3) " ";
}
}
}
li:before {
counter-increment:toc2;
content:counter(toc1) "." counter(toc2) " ";
}
}
}
li:before {
counter-increment:toc1;
content:counter(toc1) ". ";
}
}
#TableOfContents.show {
display: block;
}
#content {
flex-grow: 1;
display: flex;
@ -248,7 +317,8 @@ a {
}
.title h1 {
font-size: xx-large;
font-size: xxx-large;
padding-block-end: 3rem;
}
.content {