diff --git a/webui/html/index.html b/webui/html/index.html index eae509c..ff8b87c 100644 --- a/webui/html/index.html +++ b/webui/html/index.html @@ -284,7 +284,103 @@ .menuItem.ok{ border-color: rgba(45,212,191,.35); } .menuItem.warn{ border-color: rgba(251,191,36,.35); } - .menuItem.bad{ border-color: rgba(251,113,133,.35); } + .menuItem.bad{ border-color: rgba(251,113,133,.35); } + + /* ========================= + Layout: Sidebar + Main + ========================= */ + .layout { + display: flex; + gap: 0; + align-items: stretch; + } + + /* Sidebar links (onder header) */ + .sidebar { + width: 220px; + flex: 0 0 220px; + border-right: 1px solid rgba(36,52,95,.7); + background: rgba(11,18,32,.55); + backdrop-filter: blur(10px); + min-height: calc(100vh - 72px); /* header hoogte approx; mag iets afwijken */ + position: sticky; + top: 72px; /* start direct onder header */ + align-self: flex-start; + padding: 12px; + } + + .sidebar.collapsed { + width: 64px; + flex-basis: 64px; + } + + /* Toggle button bovenaan in sidebar */ + .sidebarTop { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 10px; + } + + .sidebarToggle { + width: 100%; + display: inline-flex; + align-items: center; + justify-content: center; + gap: 8px; + } + + /* Verticale tabs */ + .sidebar .tabs { + display: flex; + flex-direction: column; + gap: 8px; + margin-top: 0; /* override jouw header margin-top */ + } + + /* Tab als menu item (zelfde element, andere layout) */ + .sidebar .tab { + width: 100%; + display: flex; + align-items: center; + gap: 10px; + border-radius: 12px; + padding: 10px 12px; + } + + /* Icon + label */ + .navIcon { + width: 22px; + text-align: center; + font-size: 16px; + line-height: 1; + } + + .navLabel { + white-space: nowrap; + } + + /* Collapsed: alleen icon zichtbaar */ + .sidebar.collapsed .navLabel { + display: none; + } + .sidebar.collapsed .tab { + justify-content: center; + padding: 10px 10px; + } + + /* Main content: behoud jouw wrap look, maar laat het rechts groeien */ + .main { + flex: 1 1 auto; + min-width: 0; + } + + /* Op small screens: standaard collapsed (optioneel maar praktisch) */ + @media (max-width: 980px){ + .sidebar { width: 64px; flex-basis: 64px; } + .sidebar .navLabel { display: none; } + .sidebar .tab { justify-content: center; } + } @@ -305,19 +401,39 @@ - -