76 lines
1.7 KiB
SCSS
76 lines
1.7 KiB
SCSS
|
|
// ============================================================================
|
||
|
|
// Bottom Navigation Bar — Mobile Navigation
|
||
|
|
// Per spec Section 3.2: M3 NavigationBar pattern
|
||
|
|
// Visible only on compact breakpoint (< 600px)
|
||
|
|
// ============================================================================
|
||
|
|
|
||
|
|
.bottom-nav {
|
||
|
|
display: none; // Hidden on desktop, shown on mobile via media query
|
||
|
|
position: fixed;
|
||
|
|
bottom: 0;
|
||
|
|
left: 0;
|
||
|
|
right: 0;
|
||
|
|
height: var(--cc-bottom-nav-height);
|
||
|
|
background-color: var(--cc-surface-container-high);
|
||
|
|
border-top: 1px solid var(--cc-outline);
|
||
|
|
z-index: 50;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-around;
|
||
|
|
padding: 0 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.bottom-nav__item {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 4px;
|
||
|
|
min-width: 48px;
|
||
|
|
min-height: 48px;
|
||
|
|
padding: 8px 0;
|
||
|
|
text-decoration: none;
|
||
|
|
color: var(--cc-on-surface-variant);
|
||
|
|
border-radius: 16px;
|
||
|
|
transition: color 150ms ease, background-color 150ms ease;
|
||
|
|
|
||
|
|
&:hover {
|
||
|
|
color: var(--cc-on-surface);
|
||
|
|
background-color: rgba(255, 255, 255, 0.06);
|
||
|
|
}
|
||
|
|
|
||
|
|
&--active {
|
||
|
|
color: var(--status-active);
|
||
|
|
background-color: var(--status-active-bg);
|
||
|
|
|
||
|
|
.bottom-nav__label {
|
||
|
|
font-weight: 500;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.bottom-nav__icon-wrapper {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
width: 32px;
|
||
|
|
height: 32px;
|
||
|
|
border-radius: 16px;
|
||
|
|
|
||
|
|
.bottom-nav__item--active & {
|
||
|
|
background-color: var(--status-active-bg);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.bottom-nav__label {
|
||
|
|
font-size: 12px;
|
||
|
|
font-weight: 400;
|
||
|
|
letter-spacing: 0.02em;
|
||
|
|
white-space: nowrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
// Show bottom nav only on compact breakpoint
|
||
|
|
@media (max-width: 599px) {
|
||
|
|
.bottom-nav {
|
||
|
|
display: flex;
|
||
|
|
}
|
||
|
|
}
|