Files
neuf-www/web/src/components/layout/header.module.scss
2024-05-14 21:32:38 +02:00

141 lines
2.0 KiB
SCSS

.header {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: var(--spacing-sitepadding);
ul {
list-style: none;
}
a {
text-decoration: none;
}
}
.logo {
font-size: 3rem;
text-transform: uppercase;
font-weight: 700;
}
.siteMenu {
display: flex;
gap: var(--spacing-sitepadding);
align-items: flex-start;
a {
font-weight: 500;
}
}
.mainMenu {
list-style: none;
display: flex;
gap: var(--spacing-sitepadding);
}
.toggleMenu {
position: relative;
z-index: 1001;
background: none;
margin-top: .2rem;
}
.menuIcon {
--stroke-width: 0.12rem;
--icon-width: 1.75rem;
display: block;
position: absolute;
left: 50%;
transform: translateX(-50%);
width: var(--icon-width);
height: var(--stroke-width);
background: currentColor;
&:before,
&:after {
content: "";
display: block;
position: absolute;
left: 0;
width: var(--icon-width);
height: var(--stroke-width);
background: currentColor;
}
&:before {
top: -.5rem;
}
&:after {
bottom: -.5rem;
}
}
.fullMenu {
position: fixed;
right: -100%;
top: 0;
bottom: 0;
z-index: 1000;
width: 50%;
background: var(--color-chateauBlue);
color: var(--color-betongGray);
padding: var(--spacing-sitepadding);
transition: all var(--transition-easing);
ul {
display: flex;
flex-direction: column;
justify-content: center;
font-size: 1.4rem;
padding: var(--spacing-sitepadding) 0;
}
}
.menuItemLarge {
font-size: 2rem;
}
.divider {
margin-top: 3rem;
}
.search,
.galtinn {
margin-top: 3rem;
}
.siteMenu[data-show=true] {
.mainMenu {
display: none;
}
.fullMenu {
right: 0;
}
.toggleMenu {
position: fixed;
right: var(--spacing-sitepadding);
}
.menuIcon {
color: var(--color-betongGray);
}
}
@media (max-width: 1200px) {
.mainMenu {
display: none;
}
}
@media (max-width: 800px) {
.fullMenu {
width: 100%;
}
}