website: redesign part 13

This commit is contained in:
nym21
2026-06-07 00:54:50 +02:00
parent 6cbe09af23
commit c68d1d1fda
33 changed files with 855 additions and 341 deletions
+17 -6
View File
@@ -1,9 +1,11 @@
main.learn {
> nav {
--nav-offset: calc(var(--offset) + 2rem);
counter-reset: content-theme;
position: sticky;
top: 0;
padding-block: var(--offset);
padding-block: var(--nav-offset) var(--offset);
max-height: 100dvh;
overflow: auto;
scrollbar-width: thin;
@@ -24,16 +26,21 @@ main.learn {
counter-reset: content-topic;
}
> ol > li > ol > li {
counter-increment: content-topic;
counter-reset: content-detail;
}
> ol > li > ol > li > ol > li {
counter-increment: content-detail;
}
ol ol {
margin-top: 0.25rem;
margin-left: 1rem;
color: var(--gray);
}
ol ol > li {
counter-increment: content-topic;
}
li + li {
margin-top: 0.25rem;
}
@@ -76,8 +83,12 @@ main.learn {
content: counter(content-theme, upper-roman) ". ";
}
ol ol > li > a::before {
> ol > li > ol > li > a::before {
content: counter(content-topic) ". ";
}
> ol > li > ol > li > ol > li > a::before {
content: counter(content-detail, lower-alpha) ". ";
}
}
}