feat: combine mobile navigation and account menu

Replace the mobile profile card with a compact page header, account menu, and
contextual dashboard toolbar while preserving desktop behavior.
This commit is contained in:
2026-08-05 19:30:10 +02:00
parent 45bb566530
commit bc0c4c750c
7 changed files with 276 additions and 122 deletions

View File

@@ -0,0 +1,150 @@
.app-navigation {
margin-bottom: 1rem;
}
.app-navigation__mobile-header,
.app-navigation__mobile-menu {
display: none;
}
.app-navigation__desktop {
display: flex;
gap: 0.5rem;
align-items: center;
padding: 0.5rem 0.75rem;
border: 1px solid #dbe4ee;
border-radius: 6px;
background: #fff;
}
.app-navigation__desktop-link {
border-radius: 4px;
padding: 0.45rem 0.65rem;
color: #475569;
font-size: 0.875rem;
font-weight: 600;
text-decoration: none;
}
.app-navigation__desktop-link:hover,
.app-navigation__desktop-link.is-active {
background: #eff6ff;
color: #1d4ed8;
}
@media (max-width: 767px) {
.app-navigation {
margin: 0 -0.25rem 0.75rem;
}
.app-navigation__desktop {
display: none;
}
.app-navigation__mobile-header {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 2.9rem;
padding: 0 0.25rem 0 0.5rem;
border-bottom: 1px solid #cbd5e1;
}
.app-navigation__current-page {
overflow: hidden;
color: #1f2937;
font-size: 1rem;
font-weight: 650;
text-overflow: ellipsis;
white-space: nowrap;
}
.app-navigation__menu-toggle {
display: grid;
flex: 0 0 auto;
width: 2.5rem;
height: 2.5rem;
place-items: center;
border: 1px solid #cbd5e1;
border-radius: 5px;
background: #fff;
color: #334155;
}
.app-navigation__menu-toggle svg {
width: 1.2rem;
height: 1.2rem;
}
.app-navigation__mobile-menu {
display: grid;
gap: 0.75rem;
margin-top: 0.6rem;
padding: 0.75rem;
border: 1px solid #cbd5e1;
border-radius: 6px;
background: #fff;
}
.app-navigation__mobile-links {
display: grid;
gap: 0.35rem;
}
.app-navigation__mobile-link {
padding: 0.7rem 0.75rem;
border: 1px solid #dbe4ee;
border-radius: 5px;
color: #334155;
font-size: 0.9rem;
font-weight: 500;
text-decoration: none;
}
.app-navigation__mobile-link.is-active {
border-color: #2563eb;
background: #eff6ff;
color: #1d4ed8;
font-weight: 600;
}
.app-navigation__account {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
padding-top: 0.75rem;
border-top: 1px solid #dbe4ee;
}
.app-navigation__account div {
display: grid;
min-width: 0;
gap: 0.1rem;
}
.app-navigation__account span {
color: #64748b;
font-size: 0.75rem;
}
.app-navigation__account strong {
overflow: hidden;
color: #1f2937;
font-size: 0.875rem;
font-weight: 600;
text-overflow: ellipsis;
white-space: nowrap;
}
.app-navigation__account button {
flex: 0 0 auto;
min-height: 2.25rem;
border: 1px solid #cbd5e1;
border-radius: 5px;
padding: 0.4rem 0.65rem;
background: #fff;
color: #475569;
font-size: 0.8125rem;
}
}