website/sass/css/header.scss
2023-05-26 17:02:04 +02:00

84 lines
1.1 KiB
SCSS

@import "defs";
header {
display: flex;
justify-content: space-between;
max-width: 1100px;
margin: 0 auto 16px auto;
padding: 0 4px;
font-size: 24px;
}
#header-logo {
height: 48px;
}
#header-logo:hover, #header-logo:focus {
filter: drop-shadow(1px 2px 1px $violet);
}
#header-menu ul {
list-style-type: none;
margin: 9px 0 0 0;
}
#header-menu li {
display: inline-block;
margin: 0 8px;
}
#header-menu a {
padding: 8px 8px;
color: black;
}
#header-menu a:hover, #header-menu a:focus {
text-shadow: 1px 2px 1px $violet;
text-decoration: none;
}
@media (prefers-color-scheme: dark) {
#header-menu a {
color: white;
}
}
@media (min-width: 1024px) {
.phone-only {
display: none;
}
}
@media (max-width: 1023px) {
.menu-phone {
position: absolute;
top: 0;
left: 0;
display: flex;
flex-direction: column;
gap: 1em;
padding: 2em;
background-color: white;
}
.hidden-phone {
display: none;
}
}
.hamburger-menu {
font-size: 1.5em;
margin: 0.25em;
font-family: LunaSans;
border: none;
background-color: transparent;
cursor: pointer;
opacity: 65%;
}
.hamburger-menu:hover {
opacity: 100%;
}