diff --git a/web/src/styles.css b/web/src/styles.css index 2a64ca3..57190ec 100644 --- a/web/src/styles.css +++ b/web/src/styles.css @@ -113,6 +113,24 @@ html[data-env] .navbar-vertical[data-bs-theme="dark"] .btn-outline-secondary { position: relative; } +/* On a wide screen the menu scrolls inside the sidebar; the foot (who is signed in, narrow/widen) stays at the bottom of the screen instead of scrolling away with it. */ +.navbar-vertical { + --hlm-sidebar-bg: var(--tblr-navbar-bg); +} + +html[data-env] .navbar-vertical { + --hlm-sidebar-bg: var(--hlm-env-color); +} + +@media (min-width: 992px) { + .navbar-vertical .navbar-footer { + position: sticky; + bottom: 0; + z-index: 1035; /* above Tabler's open submenus (1030), which would otherwise show through */ + background-color: var(--hlm-sidebar-bg); + } +} + .user-menu-toggle { display: flex; align-items: center;