feat(web): add responsive sidebar CSS breakpoints for mobile
This commit is contained in:
parent
7ee0c6d481
commit
e362f2aefe
@ -236,6 +236,27 @@ button:active:not(:disabled), [role="button"]:active:not(:disabled) {
|
|||||||
border: 2px solid var(--nl-accent); border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none;
|
border: 2px solid var(--nl-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 */
|
/* Respect user motion preference */
|
||||||
@media (prefers-reduced-motion: reduce) {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
*, *::before, *::after {
|
*, *::before, *::after {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user