Files
rglkart/css/nav.css
T

144 lines
2.3 KiB
CSS
Raw Normal View History

2026-10-04 20:30:22 -07:00
nav {
background: var(--color-nav-dark);
a {
font-family: "Elegant Typewriter", serif;
text-decoration: none;
color: var(--color-nav-light);
}
a[aria-current="page"] {
text-decoration: underline solid .2em var(--color-title-bg);
}
2026-10-04 21:10:20 -07:00
a[aria-current="page"]:focus-visible {
text-decoration: none;
}
2026-10-04 20:30:22 -07:00
}
header nav {
2026-10-04 21:10:20 -07:00
--font-size: 1.4rem;
--header-height: 12vh;
2026-10-04 20:30:22 -07:00
display: flex;
justify-content: space-between;
align-items: center;
2026-10-04 21:10:20 -07:00
font-size: var(--font-size);
line-height: 1;
2026-10-04 20:30:22 -07:00
2026-10-04 21:10:20 -07:00
#skip {
position: absolute;
left: -999px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
z-index: -99;
background: var(--color-nav-dark);
2026-10-04 20:30:22 -07:00
}
2026-10-04 21:10:20 -07:00
#skip:focus-visible {
display: inline-block;
left: 10%;
top: calc((var(--header-height) - var(--font-size)) / 2);
2026-10-04 20:30:22 -07:00
width: auto;
2026-10-04 21:10:20 -07:00
height: auto;
overflow: auto;
z-index: 99;
}
a:has(img) {
height: calc(var(--header-height) - 1rem);
margin: .5rem;
border-radius: .5em;
img {
height: 100%;
width: auto;
}
2026-10-04 20:30:22 -07:00
}
ul {
display: flex;
flex-flow: row wrap;
list-style: none;
padding: 0;
margin-inline: 1rem;
gap: 2rem;
}
button {
display: none;
}
}
@media (max-width: 650px) {
header nav {
display: grid;
grid-template-areas:
"home button"
"links links";
padding: 0;
2026-10-04 21:10:20 -07:00
a:has(img) {
2026-10-04 20:30:22 -07:00
grid-area: home;
2026-10-04 21:10:20 -07:00
height: calc(var(--header-height) - 1rem);
margin: .5rem;
2026-10-04 20:30:22 -07:00
}
button {
grid-area: button;
display: unset;
margin-inline: 1rem;
2026-10-04 21:10:20 -07:00
padding: .5rem .75rem;
2026-10-04 20:30:22 -07:00
border: none;
background: var(--color-nav-dark);
color: var(--color-nav-light);
cursor: pointer;
2026-10-04 21:10:20 -07:00
border-radius: .5em;
}
button:focus-visible {
outline: .1em solid var(--color-title-bg);
2026-10-04 20:30:22 -07:00
}
ul[aria-hidden="true"] {
display: none;
}
ul {
grid-area: links;
flex-flow: column;
align-items: center;
background: var(--color-nav-light);
margin: 0;
padding-block: 1rem;
border-top: .5rem solid var(--color-title-bg);
border-bottom: .5rem solid var(--color-title-bg);
position: absolute;
2026-10-04 21:10:20 -07:00
top: var(--header-height);
2026-10-04 20:30:22 -07:00
width: 100%;
a {
color: var(--color-nav-dark);
}
}
}
}
footer nav {
padding-block: 1rem;
border-top: .5rem solid var(--color-title-bg);
ul {
list-style: none;
font-size: 1.1rem;
text-align: center;
}
}
@media (max-width: 650px) {
footer nav ul {
font-size: .95rem;
}
}