feat(web): add responsive sidebar CSS breakpoints for mobile

This commit is contained in:
saravanakumardb1 2026-03-28 23:30:01 -07:00
parent 947c93d10b
commit 72651ceff1

View File

@ -207,6 +207,27 @@ button:active:not(:disabled), [role="button"]:active:not(:disabled) {
border: 2px solid var(--cm-accent); border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none;
}
/* Responsive sidebar */
@media (max-width: 768px) {
.app-sidebar {
position: fixed;
left: -260px;
top: 0;
z-index: 40;
width: 240px;
height: 100vh;
transition: left 0.2s ease;
}
.app-sidebar.open { left: 0; }
.sidebar-overlay { display: none; position: fixed; inset: 0; z-index: 39; background: rgba(0,0,0,0.5); }
.sidebar-overlay.open { display: block; }
.sidebar-toggle { display: flex; }
}
@media (min-width: 769px) {
.sidebar-toggle { display: none; }
.sidebar-overlay { display: none; }
}
/* Respect user motion preference */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {