website/sass/css/header.scss

102 lines
1.5 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 {
position: sticky;
z-index: 10;
top: 0;
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;
height: 48px;
2022-09-26 23:24:15 +02:00
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);
}
#header-menu > ul {
2022-09-26 23:24:15 +02:00
list-style-type: none;
margin: 9px 0 0 0;
}
#header-menu > ul li {
2022-09-26 23:24:15 +02:00
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, .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, .header-menu-phone {
background-color: black;
}
2023-04-26 18:58:04 +02:00
}
2023-05-26 17:02:04 +02:00
@media (min-width: 960px) {
2023-05-26 17:02:04 +02:00
.phone-only {
display: none;
}
}
@media (max-width: 959px) {
.phone-hidden {
2023-05-26 17:02:04 +02:00
display: none;
}
}
.header-menu-phone {
position: fixed;
z-index: 5;
top: 48px;
left: 0;
padding: 16px;
max-height: calc(100vh - 48px);
overflow-y: auto;
margin-top: 0;
box-sizing: border-box;
border-right: 2px solid $violet;
border-bottom: 2px solid $violet;
border-bottom-right-radius: 6px;
list-style: none;
}
2023-05-26 17:02:04 +02:00
.hamburger-menu {
font-size: 150%;
2023-05-26 17:02:04 +02:00
margin: 0.25em;
font-family: LunaSans;
}
.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;
cursor: pointer;
2023-05-26 17:59:46 +02:00
}