website/public/assets/css/snippets/HTMLNavMenuElement.css
vlw 7a8fc36ec0 feat: new website design and update to Vegvisir 3.1 (#2)
Brand new design for the website following the new design language I used for [version 2.0 of my personal website](https://codeberg.org/vlw/vlw.se/releases/tag/2.0.0).

Reviewed-on: https://codeberg.org/vegvisir/website/pulls/2
Co-authored-by: vlw <victor@vlw.se>
Co-committed-by: vlw <victor@vlw.se>
2025-03-05 11:16:54 +00:00

61 lines
No EOL
905 B
CSS

nav-menu {
display: none;
}
@media (max-width: 950px) {
/* # Overrides */
body.menu-open {
overflow: hidden;
}
/* ## Header */
body.menu-open header {
background-color: var(--color-accent);
}
body.menu-open header nav p {
color: white;
}
/* # Nav menu */
nav-menu {
top: var(--running-size);
left: 0;
width: 100%;
overflow-y: scroll;
height: calc(100svh - var(--running-size));
display: none;
position: fixed;
align-items: center;
flex-direction: column;
background-color: white;
}
nav-menu.active {
display: flex;
}
/* ## Sections */
nav-menu nav {
gap: calc(var(--padding) / 2);
width: 100%;
max-width: 600px;
display: flex;
padding: var(--padding);
flex-direction: column;
}
nav-menu nav:last-child {
margin-top: auto;
}
nav-menu nav.horizontal {
gap: var(--padding);
flex-direction: row;
justify-content: center;
}
}