website/sass/css/header.scss

90 lines
1.2 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 {
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;
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);
}
2022-09-26 21:24:15 +00: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 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: dark) {
#header-menu a {
color: white;
}
}
2023-05-26 15:02:04 +00:00
2023-05-26 15:59:46 +00:00
@media (min-width: 768px) {
2023-05-26 15:02:04 +00:00
.phone-only {
display: none;
}
}
2023-05-26 15:59:46 +00:00
@media (max-width: 767px) {
2023-05-26 15:02:04 +00:00
.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%;
}
2023-05-26 15:59:46 +00:00
summary {
list-style: none;
}
2023-05-26 15:02:04 +00:00