style(css): use of new CSS features (@import and nested CSS)

This commit is contained in:
David Bailey 2025-01-06 22:45:37 +01:00
parent 95e3fc0b00
commit d609265862
6 changed files with 464 additions and 276 deletions

41
www/static/styles/toc.css Normal file
View file

@ -0,0 +1,41 @@
.table_of_contents {
position: sticky;
float: left;
top: 3em;
width: 20em;
& a {
display: inline-block;
transition: all 0.5s !important;
line-height: 1em;
text-align: justify;
font-size: 0.9rem;
padding-left: 0.2em;
padding-right: 0.2em;
padding-bottom: 0.2em;
border-radius: 0.2em;
}
& .active {
background-color: var(--highlight_1);
color: var(--bg_1);
}
& ol {
padding-left: 0.5em;
list-style: none;
border-left: 1px solid #FFFFFF44;
}
& li {
margin-bottom: 0.2em;
}
}