mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
Unnest header.css (native CSS nesting silently broken in browsers without support)
This commit is contained in:
@@ -15,6 +15,52 @@ header {
|
|||||||
var(--gradient-3) 66%,
|
var(--gradient-3) 66%,
|
||||||
var(--gradient-4) 100%
|
var(--gradient-4) 100%
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── Navigation ────────────────────────────────────────────────────── */
|
||||||
|
|
||||||
|
header nav {
|
||||||
|
padding: var(--space-s) var(--space-s);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
font-size: var(--step-0);
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav ul {
|
||||||
|
display: flex;
|
||||||
|
gap: var(--space-l);
|
||||||
|
align-items: center;
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav ul a {
|
||||||
|
font-family: var(--font-display);
|
||||||
|
letter-spacing: 0.12em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--accent-foreground);
|
||||||
|
text-decoration: none;
|
||||||
|
padding: var(--space-3xs) var(--space-xs);
|
||||||
|
border-radius: var(--radius);
|
||||||
|
text-shadow:
|
||||||
|
0 0 16px var(--header-shadow-strong),
|
||||||
|
0 0 32px var(--header-shadow-soft);
|
||||||
|
transition: opacity 0.15s;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav ul a:hover {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav ul a[aria-current="page"] {
|
||||||
|
opacity: 1;
|
||||||
|
border-bottom: 1px solid var(--header-nav-active-border);
|
||||||
|
padding-bottom: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── Logo ───────────────────────────────────────────────────────────── */
|
||||||
|
|
||||||
.nav-logo {
|
.nav-logo {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
@@ -30,50 +76,6 @@ header {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
|
||||||
padding: var(--space-s) var(--space-s);
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
font-size: var(--step-0);
|
|
||||||
|
|
||||||
a {
|
|
||||||
font-family: var(--font-display);
|
|
||||||
letter-spacing: 0.12em;
|
|
||||||
text-transform: uppercase;
|
|
||||||
color: var(--accent-foreground);
|
|
||||||
text-decoration: none;
|
|
||||||
padding: var(--space-3xs) var(--space-xs);
|
|
||||||
border-radius: var(--radius);
|
|
||||||
text-shadow:
|
|
||||||
0 0 16px var(--header-shadow-strong),
|
|
||||||
0 0 32px var(--header-shadow-soft);
|
|
||||||
}
|
|
||||||
|
|
||||||
ul {
|
|
||||||
display: flex;
|
|
||||||
gap: var(--space-l);
|
|
||||||
align-items: center;
|
|
||||||
list-style: none;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul a {
|
|
||||||
transition: opacity 0.15s;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul a:hover {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ul a[aria-current="page"] {
|
|
||||||
opacity: 1;
|
|
||||||
border-bottom: 1px solid var(--header-nav-active-border);
|
|
||||||
padding-bottom: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-top-row {
|
.nav-top-row {
|
||||||
display: contents;
|
display: contents;
|
||||||
}
|
}
|
||||||
@@ -81,7 +83,6 @@ header {
|
|||||||
.nav-mobile-links {
|
.nav-mobile-links {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* ── Hamburger menu (pure CSS, checkbox trick) ──────────────────────── */
|
/* ── Hamburger menu (pure CSS, checkbox trick) ──────────────────────── */
|
||||||
/* DOM order (public only):
|
/* DOM order (public only):
|
||||||
|
|||||||
Reference in New Issue
Block a user