Working TOC

This commit is contained in:
Adrian Rumpold
2025-04-23 12:11:53 +02:00
parent 54a3aba531
commit 6dcf39dc58
6 changed files with 195 additions and 14 deletions

View File

@@ -0,0 +1,54 @@
.toc {
font-size: 0.8rem;
min-width: 25vw;
flex: 1 auto;
&.hidden {
flex: 0 0;
min-width: 0;
}
transition: width 0.3s ease-in-out;
overflow: scroll;
max-height: 100vh;
.division-list {
list-style: none;
ul {
margin-block: 1rem;
}
}
.selected {
font-weight: bold;
}
.article {
cursor: pointer;
}
}
.toggle-button {
position: fixed;
top: 16px;
left: 16px;
width: 32px;
height: 32px;
padding: 0;
border: none;
border-radius: 50%;
background-color: #007bff;
color: white;
font-size: 16px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
z-index: 1000;
}
.toggle-button:hover {
background-color: #0056b3;
}