139 lines
2.7 KiB
CSS
139 lines
2.7 KiB
CSS
#navbar-main {
|
|
width: 100%;
|
|
height: var(--nav-height);
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 100;
|
|
background: rgba(4, 0, 10, 0.75);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid var(--surface-line);
|
|
}
|
|
|
|
#navbar-inner {
|
|
max-width: 1200px;
|
|
height: 100%;
|
|
margin: 0 auto;
|
|
padding: 0 clamp(16px, 4vw, 40px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 20px;
|
|
}
|
|
|
|
.navbar-brand {
|
|
font-family: 'Inter', system-ui, sans-serif;
|
|
font-weight: 600;
|
|
letter-spacing: -0.01em;
|
|
font-size: 1.2rem;
|
|
text-decoration: none;
|
|
color: var(--text);
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.navbar-brand:hover {
|
|
color: var(--surface);
|
|
}
|
|
|
|
#navbar-links {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.navbar-item {
|
|
text-decoration: none;
|
|
color: var(--text-dim);
|
|
padding: 8px 16px;
|
|
border-radius: 20px;
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
white-space: nowrap;
|
|
transition: background-color 0.15s, color 0.15s;
|
|
}
|
|
|
|
.navbar-item:hover {
|
|
color: var(--text);
|
|
background-color: var(--surface-dim);
|
|
}
|
|
|
|
.navbar-item.active {
|
|
color: black;
|
|
background-color: var(--surface);
|
|
}
|
|
|
|
#navbar-toggle {
|
|
display: none;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 5px;
|
|
width: 40px;
|
|
height: 40px;
|
|
padding: 0;
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
z-index: 101;
|
|
}
|
|
|
|
#navbar-toggle .bar {
|
|
width: 22px;
|
|
height: 2px;
|
|
background: var(--text);
|
|
border-radius: 2px;
|
|
transition: transform 0.2s ease, opacity 0.2s ease;
|
|
}
|
|
|
|
#navbar-toggle .bar-1.open {
|
|
transform: translateY(7px) rotate(45deg);
|
|
}
|
|
|
|
#navbar-toggle .bar-2.open {
|
|
opacity: 0;
|
|
}
|
|
|
|
#navbar-toggle .bar-3.open {
|
|
transform: translateY(-7px) rotate(-45deg);
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
#navbar-toggle {
|
|
display: flex;
|
|
}
|
|
|
|
#navbar-links {
|
|
position: fixed;
|
|
top: var(--nav-height);
|
|
left: 0;
|
|
width: 100%;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 0;
|
|
background: rgba(4, 0, 10, 0.97);
|
|
backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid var(--surface-line);
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: max-height 0.25s ease;
|
|
}
|
|
|
|
#navbar-links.open {
|
|
max-height: 320px;
|
|
}
|
|
|
|
.navbar-item {
|
|
border-radius: 0;
|
|
padding: 16px 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.navbar-item.active {
|
|
background-color: var(--surface-dim);
|
|
color: var(--surface);
|
|
}
|
|
}
|