website/sass/css/header.scss

105 lines
1.5 KiB
SCSS
Raw Normal View History

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