Replace sidebar with responsive app shell

This commit is contained in:
2026-03-21 13:16:19 +01:00
parent 4f1ef770c7
commit b3c846d1ef
8 changed files with 268 additions and 47 deletions

View File

@@ -0,0 +1,133 @@
.app-shell {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.app-shell-header {
position: sticky;
top: 0;
z-index: 40;
padding: 0.9rem 1rem 0;
}
.app-shell-bar {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
gap: 1rem;
padding: 0.75rem 1rem;
border: 1px solid var(--border-default);
border-radius: 24px;
background: color-mix(in srgb, var(--bg-elevated) 78%, transparent);
box-shadow: var(--shadow-1);
backdrop-filter: blur(18px);
}
.app-shell-brand {
display: inline-flex;
align-items: center;
gap: 0.85rem;
color: inherit;
text-decoration: none;
}
.app-shell-brand:hover {
color: inherit;
}
.app-shell-brand-mark {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.75rem;
height: 2.75rem;
border-radius: 18px;
background: linear-gradient(145deg, var(--accent-3), var(--accent-5));
color: var(--text-on-accent);
font-family: var(--font-ui);
font-size: 0.85rem;
letter-spacing: 0.12em;
text-transform: uppercase;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.app-shell-brand-copy {
display: grid;
gap: 0.1rem;
}
.app-shell-brand-copy strong {
font-family: var(--font-display);
font-size: 1rem;
font-weight: 600;
line-height: 1.1;
}
.app-shell-brand-copy span {
color: var(--text-secondary);
font-size: 0.82rem;
}
.app-shell-header-nav {
min-width: 0;
}
.app-shell-header-actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 0.75rem;
min-height: 2.75rem;
}
.app-shell-main {
flex: 1 1 auto;
min-width: 0;
padding: 1rem 0 5.75rem;
}
.content-shell {
width: min(1600px, 100%);
margin: 0 auto;
padding: 0 1rem;
box-sizing: border-box;
}
.app-shell-mobile-nav {
position: sticky;
bottom: 0;
z-index: 35;
padding: 0 0.75rem 0.75rem;
margin-top: auto;
}
@media (max-width: 767.98px) {
.app-shell-header {
padding: 0.65rem 0.75rem 0;
}
.app-shell-bar {
grid-template-columns: minmax(0, 1fr) auto;
gap: 0.75rem;
padding: 0.7rem 0.85rem;
}
.app-shell-brand-copy span {
display: none;
}
.app-shell-header-nav {
display: none;
}
}
@media (min-width: 768px) {
.app-shell-main {
padding-bottom: 1.25rem;
}
.app-shell-mobile-nav {
display: none;
}
}