2023-03-31 22:14:22 +00:00
|
|
|
$header-height: 6rem;
|
2022-09-29 17:00:28 +00:00
|
|
|
|
|
|
|
.site-header {
|
|
|
|
background: $background;
|
|
|
|
color: white;
|
|
|
|
height: $header-height;
|
2024-02-26 12:01:42 +00:00
|
|
|
|
|
|
|
position: sticky;
|
2024-03-03 11:50:58 +00:00
|
|
|
// pay attention to not have overflow-x: hidden on one of the parent
|
2024-02-26 12:01:42 +00:00
|
|
|
top: 0;
|
|
|
|
z-index: 90;
|
2022-09-29 17:00:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.site-header__content {
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2023-04-10 19:55:40 +00:00
|
|
|
.inline-menu-list {
|
|
|
|
display: flex;
|
|
|
|
list-style-type: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
li {
|
|
|
|
margin-right: 1.5rem;
|
2024-03-10 16:33:41 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2023-04-10 19:55:40 +00:00
|
|
|
}
|
|
|
|
li:last-of-type {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-10 16:33:41 +00:00
|
|
|
.membership-header-button {
|
|
|
|
font-size: 1rem;
|
|
|
|
padding: .5rem 2rem;
|
|
|
|
min-width: initial;
|
|
|
|
}
|
|
|
|
|
2022-09-29 17:00:28 +00:00
|
|
|
.site-header__nav {
|
|
|
|
a {
|
|
|
|
color: white;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
a:hover {
|
|
|
|
opacity: 0.8;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.site-header__title {
|
|
|
|
height: 100%;
|
2023-05-21 20:39:56 +00:00
|
|
|
width: auto;
|
2022-09-29 17:00:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.site-header__logo {
|
2023-05-21 20:39:56 +00:00
|
|
|
width: auto;
|
2022-09-29 17:00:28 +00:00
|
|
|
height: 100%;
|
2023-05-26 19:44:22 +00:00
|
|
|
transition: all 0.5s ease;
|
2022-09-29 17:00:28 +00:00
|
|
|
}
|
|
|
|
|
2023-05-26 19:44:22 +00:00
|
|
|
// .site-header__logo:hover {
|
|
|
|
// transform: scale3d(1, 1, 1);
|
|
|
|
// }
|
|
|
|
|
2022-09-29 17:00:28 +00:00
|
|
|
@media (max-width: $md-breakpoint) {
|
|
|
|
.site-header__title {
|
|
|
|
padding-right: 1rem;
|
|
|
|
}
|
|
|
|
.site-header__nav {
|
|
|
|
line-height: 2rem;
|
|
|
|
}
|
2022-09-28 20:49:59 +00:00
|
|
|
}
|
2023-04-10 17:25:39 +00:00
|
|
|
|
2024-03-03 11:50:58 +00:00
|
|
|
$burger-menu-size: 4rem;
|
2023-04-10 17:25:39 +00:00
|
|
|
|
|
|
|
.burger-menu {
|
|
|
|
display: none;
|
2024-03-03 11:50:58 +00:00
|
|
|
height: $burger-menu-size;
|
|
|
|
width: $burger-menu-size;
|
2023-04-10 17:25:39 +00:00
|
|
|
position: relative;
|
|
|
|
bottom: -50%;
|
|
|
|
margin-right: 2em;
|
|
|
|
z-index: 200;
|
|
|
|
|
|
|
|
.checkbox {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.burger-button {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
min-width: initial;
|
|
|
|
background-color: white;
|
2024-03-03 11:50:58 +00:00
|
|
|
height: $burger-menu-size;
|
|
|
|
width: $burger-menu-size;
|
2023-04-10 17:25:39 +00:00
|
|
|
padding: 1rem 1rem;
|
|
|
|
border-radius: 50%;
|
2024-03-03 11:50:58 +00:00
|
|
|
box-shadow: 0 0rem ($burger-menu-size - 2rem) rgba(0, 0, 0, 0.5);
|
2023-04-10 17:25:39 +00:00
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
|
|
z-index: 1200;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.background {
|
|
|
|
position: absolute;
|
2024-03-03 11:50:58 +00:00
|
|
|
height: $burger-menu-size - 1rem;
|
|
|
|
width: $burger-menu-size - 1rem;
|
2023-04-10 17:25:39 +00:00
|
|
|
margin: .5rem;
|
|
|
|
border-radius: 50%;
|
|
|
|
background-image: radial-gradient($background, black);
|
|
|
|
transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
|
|
|
|
z-index: 1000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav {
|
|
|
|
display: none;
|
|
|
|
opacity: 0;
|
|
|
|
position: fixed;
|
2024-03-11 06:49:04 +00:00
|
|
|
top: 8rem;
|
2024-03-12 14:18:14 +00:00
|
|
|
left: 20%;
|
2023-04-10 17:25:39 +00:00
|
|
|
z-index: 1000;
|
|
|
|
// transition: all 0.8s;
|
|
|
|
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
font-size: 2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav ul {
|
|
|
|
list-style-type: none;
|
|
|
|
padding: 0;
|
|
|
|
position: relative;
|
|
|
|
left: -1rem;
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
li a {
|
|
|
|
text-transform: uppercase;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* functionality */
|
|
|
|
.checkbox:checked ~ .background {
|
|
|
|
transform: scale(41);
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes navin {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.checkbox:checked ~ .nav {
|
|
|
|
display: flex;
|
|
|
|
opacity: 1;
|
|
|
|
// transition: opacity 0.8s ease-in-out;
|
2024-02-26 12:01:42 +00:00
|
|
|
animation: navin .5s ease-in-out;
|
2023-04-10 17:25:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* */
|
|
|
|
/* styling hamb ICON */
|
|
|
|
.icon {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon,
|
|
|
|
.icon::before,
|
|
|
|
.icon::after {
|
2024-03-03 11:50:58 +00:00
|
|
|
width: $burger-menu-size - 1.6rem;
|
2023-04-10 17:25:39 +00:00
|
|
|
height: 2px;
|
|
|
|
background-color: gray;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon::before,
|
|
|
|
.icon::after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
transition: all 0.2s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon::before {
|
|
|
|
top: -0.8rem;
|
|
|
|
}
|
|
|
|
.icon::after {
|
|
|
|
top: 0.8rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.burger-button:hover icon:before {
|
|
|
|
top: -1rem;
|
|
|
|
}
|
|
|
|
.burger-button:hover icon::after {
|
|
|
|
top: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.checkbox:checked + .burger-button {
|
|
|
|
z-index: 2000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.checkbox:checked + .burger-button .icon {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.checkbox:checked + .burger-button .icon::before {
|
|
|
|
top: 0;
|
|
|
|
transform: rotate(135deg);
|
|
|
|
}
|
|
|
|
.checkbox:checked + .burger-button .icon::after {
|
|
|
|
top: 0;
|
|
|
|
transform: rotate(-135deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: $md-breakpoint) {
|
|
|
|
// still not supported in firefox in 2023! I can't believe it
|
|
|
|
body:has(.checkbox:checked) {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
.desktop-nav {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.burger-menu {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|