website/sass/css/header.scss

95 lines
1.3 KiB
SCSS
Raw Normal View History

2023-03-20 19:06:57 +01:00
@import "defs";
2022-09-26 23:24:15 +02:00
header {
2023-03-26 19:08:30 +02:00
display: flex;
justify-content: space-between;
2022-09-26 23:24:15 +02:00
max-width: 1100px;
margin: 0 auto 16px auto;
padding: 0 4px;
font-size: 24px;
}
#header-logo {
height: 48px;
}
2023-04-09 22:50:40 +02:00
#header-logo:hover, #header-logo:focus {
filter: drop-shadow(1px 2px 1px $violet);
}
2022-09-26 23:24:15 +02:00
#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 {
2023-03-20 19:06:57 +01:00
text-shadow: 1px 2px 1px $violet;
2023-03-21 20:21:53 +01:00
text-decoration: none;
2022-09-26 23:24:15 +02:00
}
2023-04-26 18:58:04 +02:00
@media (prefers-color-scheme: light) {
.header-menu-phone {
background-color: white;
}
}
2023-04-26 18:58:04 +02:00
@media (prefers-color-scheme: dark) {
#header-menu a {
color: white;
}
.header-menu-phone {
background-color: black;
}
2023-04-26 18:58:04 +02:00
}
2023-05-26 17:02:04 +02:00
2023-05-26 17:59:46 +02:00
@media (min-width: 768px) {
2023-05-26 17:02:04 +02:00
.phone-only {
display: none;
}
}
2023-05-26 17:59:46 +02:00
@media (max-width: 767px) {
.header-menu-phone {
2023-05-26 17:02:04 +02:00
position: absolute;
top: 0;
left: 0;
display: flex;
flex-direction: column;
gap: 1em;
padding: 2em;
}
.phone-hidden {
2023-05-26 17:02:04 +02:00
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, .hamburger-menu:focus {
2023-05-26 17:02:04 +02:00
opacity: 100%;
}
.hamburger-menu > summary {
2023-05-26 17:59:46 +02:00
list-style: none;
}