From 7e2fce8b14928846f9d980f8e507cb768b233ca6 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Wed, 15 Apr 2026 20:56:03 +0200 Subject: [PATCH] style: add section group, spacer, content, and scrollbar CSS classes --- .../layout/Sidebar/Sidebar.module.css | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/src/design-system/layout/Sidebar/Sidebar.module.css b/src/design-system/layout/Sidebar/Sidebar.module.css index 90dd339..e6e0546 100644 --- a/src/design-system/layout/Sidebar/Sidebar.module.css +++ b/src/design-system/layout/Sidebar/Sidebar.module.css @@ -389,6 +389,62 @@ color: var(--amber); } +/* ── Section groups (top/bottom positioning) ───────────────────────────── */ + +.sectionGroup { + flex: 0 1 auto; + overflow-y: auto; + min-height: 0; + scrollbar-width: thin; + scrollbar-color: rgba(255, 255, 255, 0.15) transparent; +} + +.sectionGroup::-webkit-scrollbar { + width: 4px; +} + +.sectionGroup::-webkit-scrollbar-track { + background: transparent; +} + +.sectionGroup::-webkit-scrollbar-thumb { + background: rgba(255, 255, 255, 0.15); + border-radius: 2px; +} + +.sectionGroup::-webkit-scrollbar-thumb:hover { + background: rgba(255, 255, 255, 0.3); +} + +.sectionSpacer { + flex: 1 0 0; +} + +/* ── Section content (scrollable maxHeight) ────────────────────────────── */ + +.sectionContent { + overflow-y: auto; + scrollbar-width: thin; + scrollbar-color: rgba(255, 255, 255, 0.15) transparent; +} + +.sectionContent::-webkit-scrollbar { + width: 4px; +} + +.sectionContent::-webkit-scrollbar-track { + background: transparent; +} + +.sectionContent::-webkit-scrollbar-thumb { + background: rgba(255, 255, 255, 0.15); + border-radius: 2px; +} + +.sectionContent::-webkit-scrollbar-thumb:hover { + background: rgba(255, 255, 255, 0.3); +} + /* ── Bottom links ────────────────────────────────────────────────────────── */ .bottom {