Added mobile hamburger.
This commit is contained in:
parent
ec5b5192da
commit
4461adfa7a
3 changed files with 47 additions and 4 deletions
|
|
@ -170,8 +170,39 @@ tr:hover td { background: rgba(255,255,255,0.02); }
|
|||
|
||||
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
|
||||
|
||||
/* Mobile header — hidden on desktop */
|
||||
.mobile-header { display: none; }
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.sidebar { display: none; }
|
||||
.mobile-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0.75rem 1rem;
|
||||
background: var(--c-surface);
|
||||
border-bottom: 1px solid var(--c-border);
|
||||
}
|
||||
.mobile-brand { font-weight: 700; font-size: 1rem; }
|
||||
.mobile-brand .accent { color: var(--c-accent); }
|
||||
.hamburger {
|
||||
display: flex; flex-direction: column; gap: 4px;
|
||||
background: none; border: none; padding: 4px; cursor: pointer;
|
||||
}
|
||||
.hamburger span {
|
||||
display: block; width: 20px; height: 2px;
|
||||
background: var(--c-text); border-radius: 1px;
|
||||
transition: transform var(--transition), opacity var(--transition);
|
||||
}
|
||||
.sidebar {
|
||||
position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
|
||||
transform: translateX(-100%);
|
||||
transition: transform 200ms ease;
|
||||
}
|
||||
.sidebar.open { transform: translateX(0); }
|
||||
.nav-overlay {
|
||||
position: fixed; inset: 0; z-index: 99;
|
||||
background: rgba(0,0,0,0.5);
|
||||
}
|
||||
.page { padding: 1rem; }
|
||||
.stats { grid-template-columns: repeat(2, 1fr); }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue