Files
beall-greenhouses/assets/styles/nav.css

108 lines
1.6 KiB
CSS
Raw Normal View History

2025-12-28 11:37:58 -08:00
/* top nav */
nav {
2026-01-02 09:36:44 -08:00
position: relative;
2025-12-28 11:37:58 -08:00
margin: 0 auto 1.5rem;
2025-12-28 11:56:30 -08:00
display: flex;
justify-content: space-between;
2026-01-02 09:36:44 -08:00
align-items: flex-start;
2025-12-28 11:37:58 -08:00
}
nav a {
2026-01-02 09:36:44 -08:00
display: inline-block;
2025-12-28 11:37:58 -08:00
text-decoration: none;
font-size: 1.2rem;
padding: 0 .25rem;
2026-01-02 08:14:32 -08:00
border: solid thin var(--color-accent);
border-radius: .25rem;
outline-offset: .1rem;
2025-12-28 11:37:58 -08:00
}
@media (any-hover: hover) {
nav a:hover {
2026-01-02 08:14:32 -08:00
color: var(--color-bg);
background-color: var(--color-text);
border-color: var(--color-text);
2025-12-28 11:37:58 -08:00
}
}
2026-01-02 08:14:32 -08:00
nav a:focus-visible {
outline: solid .25rem var(--color-accent);
}
2026-01-02 09:36:44 -08:00
#skip {
left: -999px;
position: absolute;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
z-index: -99;
background-color: var(--color-bg);
}
#skip:focus-visible {
left: 3rem;
top: 1.5rem;
width: auto;
height: auto;
overflow: auto;
z-index: 999;
}
2025-12-29 09:29:40 -08:00
nav ul {
display: flex;
justify-content: flex-end;
2026-01-02 07:42:15 -08:00
gap: .5rem;
2026-01-02 09:36:44 -08:00
align-items: flex-end;
}
@media (max-width: 450px) {
nav ul {
flex-flow: column nowrap;
}
}
2025-12-29 09:29:40 -08:00
nav li {
list-style: none;
}
/* this specifically handles the home button
we want it taking up flex container space */
nav > #current-page {
2025-12-28 11:56:30 -08:00
visibility: hidden;
2025-12-28 11:37:58 -08:00
}
nav > div > #current-page {
display: none;
}
2025-12-28 11:37:58 -08:00
header img {
max-height: 25vh;
max-width: 100%;
margin: 0 auto;
}
/* footer */
footer {
width: 95%;
margin: 0 auto;
2026-01-02 16:32:03 -08:00
padding: 1rem 0;
2025-12-28 11:37:58 -08:00
}
footer p {
background-color: var(--color-text);
color: var(--color-bg);
text-align: center;
font-size: .9rem;
2026-01-02 16:32:03 -08:00
padding: .25rem;
2025-12-28 11:37:58 -08:00
}
footer a {
color: var(--color-bg);
text-decoration-color: var(--color-accent-flipped);
}
footer a:focus-visible {
outline-color: var(--color-accent-flipped);
}