107 lines
2.3 KiB
CSS
107 lines
2.3 KiB
CSS
/* ==========================================================
|
||
CATEGORY BAR – Modern Pill Navigation
|
||
========================================================== */
|
||
|
||
.home-nav {
|
||
width: 100%;
|
||
background: var(--bg-surface);
|
||
border-bottom: 1px solid var(--border-subtle);
|
||
padding: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.home-nav__inner {
|
||
flex: 1;
|
||
width: 100%;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
padding: 0.5rem 1rem;
|
||
}
|
||
|
||
.home-nav__list {
|
||
width: 100%;
|
||
display: flex;
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 0;
|
||
gap: 0.35rem;
|
||
justify-content: center;
|
||
}
|
||
|
||
.home-nav__list li {
|
||
flex: 0 1 auto;
|
||
position: relative;
|
||
}
|
||
|
||
.home-nav__list li a {
|
||
padding: 0.55rem 1.5rem;
|
||
background: transparent;
|
||
color: var(--text-secondary);
|
||
font-weight: 500;
|
||
font-size: 0.88rem;
|
||
font-family: var(--font-family);
|
||
text-decoration: none;
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border-radius: var(--radius-full);
|
||
transition: color var(--transition-fast),
|
||
background var(--transition-fast);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.home-nav__list li a:hover {
|
||
color: var(--text-invert);
|
||
background: rgba(255, 255, 255, 0.08);
|
||
}
|
||
|
||
.home-nav__list li a:active {
|
||
background: rgba(255, 255, 255, 0.12);
|
||
}
|
||
|
||
.home-nav__list li a:focus-visible {
|
||
outline: none;
|
||
box-shadow: 0 0 0 2px var(--color-primary);
|
||
}
|
||
|
||
.home-nav__list li a.active {
|
||
color: var(--color-primary);
|
||
background: var(--color-primary-soft);
|
||
font-weight: 600;
|
||
}
|
||
|
||
/* ─── Responsive: horizontal scroll on mobile ─── */
|
||
@media (max-width: 768px) {
|
||
.home-nav__inner {
|
||
justify-content: flex-start;
|
||
padding: 0.5rem 0.75rem;
|
||
}
|
||
|
||
.home-nav__list {
|
||
overflow-x: auto;
|
||
overflow-y: hidden;
|
||
scroll-snap-type: x mandatory;
|
||
-webkit-overflow-scrolling: touch;
|
||
scrollbar-width: none;
|
||
gap: 0.25rem;
|
||
flex-wrap: nowrap;
|
||
justify-content: flex-start;
|
||
}
|
||
|
||
.home-nav__list::-webkit-scrollbar {
|
||
display: none;
|
||
}
|
||
|
||
.home-nav__list li {
|
||
flex: 0 0 auto;
|
||
scroll-snap-align: start;
|
||
}
|
||
|
||
.home-nav__list li a {
|
||
padding: 0.5rem 1.1rem;
|
||
font-size: 0.82rem;
|
||
}
|
||
}
|