Skip to content

Commit e1c39d4

Browse files
committed
Sidebar: Make sticky, Add scrollbar
1 parent 969d12f commit e1c39d4

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

assets/css/v2/style.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,6 @@ nav {
456456
z-index: 2;
457457
border-right: 1px solid var(--color-divider);
458458
min-height: 100vh;
459-
overflow-y: auto;
460459
}
461460

462461
#searchbox {
@@ -759,6 +758,19 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
759758
/* MARK: Sidebar
760759
*/
761760

761+
.sidebar {
762+
display: flex;
763+
flex-direction: column;
764+
width: 22rem;
765+
max-height: 100vh;
766+
position: sticky;
767+
top: 0;
768+
margin-top: 0rem;
769+
padding-top: 1rem;
770+
align-items: start;
771+
overflow-y: auto;
772+
}
773+
762774
/* Reset/Renormalize lists to remove default browser styling */
763775
.sidebar__container,
764776
.sidebar__container button,

0 commit comments

Comments
 (0)