Fixed bottom gradient (gradient-active of OverflowList) not working for TOC

This commit is contained in:
Stephen Tse 2025-03-30 17:16:02 -07:00
parent 9ff6c7a3f5
commit 093f6d7790

View File

@ -7,6 +7,13 @@
overflow-y: hidden; overflow-y: hidden;
min-height: 4rem; min-height: 4rem;
flex: 0 1 auto; flex: 0 1 auto;
&.desktop-only {
@media all and not ($mobile) {
display: flex;
}
}
&:has(button.toc-header.collapsed) { &:has(button.toc-header.collapsed) {
flex: 0 1 1.2rem; flex: 0 1 1.2rem;
} }
@ -46,12 +53,14 @@ button.toc-header {
} }
.toc-content { .toc-content {
margin-top: 0.5rem;
list-style: none; list-style: none;
position: relative; overflow: hidden;
overflow-y: auto;
& ul { & ul {
list-style: none; list-style: none;
margin: 0.5rem 0; margin: 0;
padding: 0; padding: 0;
& > li > a { & > li > a {
color: var(--dark); color: var(--dark);