old-website/css/nav.css

62 lines
1 KiB
CSS
Raw Normal View History

2022-06-15 22:58:50 +00:00
/*
Nav
*/
nav {
margin: auto; padding: 1rem;
width: auto;
position: sticky; top: 1rem;
2022-06-25 13:36:08 +00:00
z-index: 999;
2022-06-15 22:58:50 +00:00
display: flex; flex-direction: row;
justify-content: space-between; align-items: center;
2022-06-17 13:24:35 +00:00
background-color: var(--bg-dark); color: var(--fg);
2022-06-15 22:58:50 +00:00
border-radius: var(--rad);
box-shadow: var(--shadow);
}
nav * {
margin: 0; padding: 0;
}
.nav-logo {
display: flex; flex-direction: row;
}
.nav-logo img {
2022-06-15 22:58:50 +00:00
margin: 0; padding: 0;
height: 2rem; width: auto;
transform: rotate(-25deg) scale(3.2);
2022-06-17 13:24:35 +00:00
filter: drop-shadow(1px 0 0 var(--bg-dark))
drop-shadow(0 1px 0 var(--bg-dark))
drop-shadow(-1px 0 0 var(--bg-dark))
drop-shadow(0 -1px 0 var(--bg-dark));
2022-06-15 22:58:50 +00:00
}
.nav-logo h2 {
margin: 0 0 0 2rem; padding: 0;
font-size: 28px;
font-weight: 900;
}
2022-06-15 22:58:50 +00:00
.nav-links * {
2022-06-15 22:58:50 +00:00
margin: 0 0.2rem; padding: 0;
2022-06-17 13:24:35 +00:00
color: var(--fg);
text-align: right; text-decoration: none;
2022-06-15 22:58:50 +00:00
font-weight: bolder;
}
2022-06-17 13:24:35 +00:00
@media (max-width:569px) {
.nav-logo h2 {
display: none;
}
2022-06-25 13:36:08 +00:00
nav {
position: static;
}
2022-06-17 13:24:35 +00:00
}