2024-02-06 13:30:47 +01:00
|
|
|
header {
|
|
|
|
width: 100%;
|
2024-02-06 18:03:51 +01:00
|
|
|
padding: 0;
|
2024-02-06 13:30:47 +01:00
|
|
|
margin: 0;
|
|
|
|
background-color: var(--_translucent);
|
|
|
|
color: var(--_font-color);
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2024-02-06 18:03:51 +01:00
|
|
|
header div {
|
|
|
|
max-width: var(--_wide-screen);
|
|
|
|
margin: auto;
|
|
|
|
padding: var(--_gap);
|
|
|
|
display: flex;
|
|
|
|
gap: var(--_gap);
|
|
|
|
}
|
|
|
|
|
2024-02-06 13:30:47 +01:00
|
|
|
header span {
|
|
|
|
text-wrap: nowrap;
|
|
|
|
padding: var(--_gap);
|
|
|
|
font-size: large;
|
|
|
|
font-weight: bolder;
|
|
|
|
|
|
|
|
& a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
header nav {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
gap: var(--_gap);
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
& > li {
|
|
|
|
list-style: none;
|
|
|
|
transition: border var(--_transition-delay) ease;
|
2024-02-08 13:50:11 +01:00
|
|
|
border: var(--_border-size) solid transparent;
|
2024-02-06 13:30:47 +01:00
|
|
|
|
|
|
|
& > a {
|
2024-02-08 13:50:11 +01:00
|
|
|
display: inline-block;
|
2024-02-06 13:30:47 +01:00
|
|
|
text-decoration: none;
|
2024-02-14 11:13:07 +01:00
|
|
|
outline: none;
|
2024-02-06 13:30:47 +01:00
|
|
|
}
|
2024-02-08 13:50:11 +01:00
|
|
|
|
|
|
|
& > * {
|
|
|
|
padding: var(--_gap-half) var(--_gap);
|
|
|
|
}
|
2024-02-06 13:30:47 +01:00
|
|
|
}
|
|
|
|
|
2024-02-14 11:13:07 +01:00
|
|
|
& > li:hover,
|
|
|
|
& > li:has(a:focus-visible),
|
|
|
|
& > li:has(summary:focus-visible),
|
2024-02-06 13:30:47 +01:00
|
|
|
& > li:has(details[open]) {
|
|
|
|
border: var(--_border-size) solid currentColor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
header details {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
& summary {
|
|
|
|
display: flex;
|
|
|
|
gap: var(--_gap);
|
|
|
|
list-style: none;
|
2024-02-14 11:13:07 +01:00
|
|
|
outline: none;
|
2024-02-06 13:30:47 +01:00
|
|
|
|
|
|
|
&::after {
|
|
|
|
display: inline-block;
|
|
|
|
content: '▽';
|
|
|
|
transition: all var(--_transition-delay) ease;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&[open] summary::after {
|
|
|
|
transform: rotate(60deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
& ul {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
position: absolute;
|
|
|
|
background-color: var(--_translucent);
|
|
|
|
backdrop-filter: blur(var(--_blur));
|
|
|
|
border: var(--_border-size) solid currentColor;
|
|
|
|
border-top: none;
|
|
|
|
transform: translate(
|
|
|
|
calc(-1 * var(--_gap) - 2px),
|
|
|
|
calc(var(--_gap-half) + 2px)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
& li {
|
|
|
|
list-style: none;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
2024-02-14 11:13:07 +01:00
|
|
|
& li:hover,
|
|
|
|
& li:has(a:focus-visible) {
|
2024-02-06 13:30:47 +01:00
|
|
|
background-color: var(--_translucent);
|
|
|
|
}
|
2024-02-08 13:16:37 +01:00
|
|
|
|
|
|
|
& a {
|
|
|
|
text-decoration: none;
|
2024-02-13 17:21:39 +01:00
|
|
|
padding: var(--_gap) calc(var(--_gap) + 0.24rem);
|
2024-02-08 13:50:11 +01:00
|
|
|
display: inline-block;
|
2024-02-14 11:13:07 +01:00
|
|
|
outline: none;
|
2024-02-08 13:16:37 +01:00
|
|
|
}
|
2024-02-06 13:30:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
header input {
|
|
|
|
padding: var(--_gap-half) var(--_gap);
|
|
|
|
align-self: center;
|
|
|
|
border: none;
|
|
|
|
background-color: var(--_translucent);
|
|
|
|
}
|