Files
website/components/Header.module.css
T

435 lines
6.5 KiB
CSS

.header {
position: sticky;
top: 0;
z-index: 50;
background: var(--color-white);
overflow: visible;
}
.inner {
max-width: var(--container-width);
margin: 0 auto;
padding: 14px var(--page-pad);
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
}
.brand {
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.logo {
width: 40px;
height: 40px;
object-fit: contain;
}
.brandText {
display: flex;
flex-direction: column;
gap: 1px;
}
.brandName {
font-size: 15px;
font-weight: 400;
letter-spacing: 4px;
text-transform: uppercase;
line-height: 1.15;
}
.brandTag {
font-size: 8px;
font-weight: 300;
letter-spacing: 1.6px;
text-transform: uppercase;
}
.nav {
display: flex;
align-items: center;
gap: 22px;
flex: 1;
justify-content: center;
min-width: 0;
}
.navLink,
.menuTrigger {
font-size: 12px;
font-weight: 300;
letter-spacing: 1.6px;
text-transform: uppercase;
display: inline-flex;
align-items: center;
gap: 4px;
color: var(--color-black);
white-space: nowrap;
}
.homeIcon {
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.homeIcon img {
width: 16px;
height: 16px;
}
.dropdown {
position: relative;
}
.menuTrigger {
background: none;
position: relative;
}
.menuTriggerOpen::after {
content: "";
position: absolute;
left: 0;
right: 16px;
bottom: -14px;
height: 1px;
background: var(--color-black);
}
.chevron {
width: 7px;
height: 12px;
object-fit: contain;
transform: rotate(90deg);
}
.headerMega {
overflow: visible;
}
.megaHost {
position: static;
}
.actions {
display: flex;
align-items: center;
gap: 14px;
flex-shrink: 0;
}
.actionsDivider {
width: 1px;
height: 18px;
background: #d8d8d8;
margin: 0 2px;
}
.lang {
position: relative;
display: flex;
align-items: center;
height: 18px;
}
.langTrigger {
display: inline-flex;
align-items: center;
gap: 6px;
height: 18px;
padding: 0;
font-size: 14px;
font-weight: 300;
line-height: 18px;
letter-spacing: 2.4px;
text-transform: uppercase;
color: var(--color-black);
background: none;
border: 0;
}
.langChevron {
width: 8px;
height: 12px;
object-fit: contain;
transform: rotate(90deg);
opacity: 0.7;
transition: transform 0.2s ease;
}
.langChevronOpen {
transform: rotate(-90deg);
}
.langMenu {
position: absolute;
top: calc(100% + 10px);
right: 0;
z-index: 60;
min-width: 72px;
margin: 0;
padding: 6px 0;
list-style: none;
background: var(--color-white);
border: 1px solid #eee;
border-radius: 5px;
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}
.langOption,
.langOptionActive {
width: 100%;
padding: 8px 14px;
font-size: 12px;
font-weight: 300;
letter-spacing: 2.4px;
text-transform: uppercase;
text-align: left;
color: var(--color-soft);
background: none;
border: 0;
}
.langOption:hover,
.langOptionActive {
color: var(--color-black);
background: #f6f6f6;
}
.iconBtn {
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.iconBtn img {
width: 18px;
height: 18px;
object-fit: contain;
}
.iconBtn img.userIcon {
width: 16px;
height: 16px;
}
.account {
position: relative;
display: flex;
align-items: center;
gap: 10px;
}
.accountName {
display: inline-flex;
align-items: center;
gap: 6px;
max-width: 140px;
padding: 0;
border: 0;
background: none;
font-size: 12px;
font-weight: 400;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--color-black);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
}
.accountChevron {
width: 7px;
height: 10px;
object-fit: contain;
transform: rotate(90deg);
opacity: 0.65;
flex-shrink: 0;
transition: transform 0.2s ease;
}
.accountChevronOpen {
transform: rotate(-90deg);
}
.accountTrigger {
width: 28px;
height: 28px;
border-radius: 5px;
background: #f1f1f1;
}
.accountMenu {
position: absolute;
top: calc(100% + 10px);
right: 0;
z-index: 60;
min-width: 196px;
padding: 8px 0;
background: var(--color-white);
border: 1px solid #eee;
border-radius: 5px;
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}
.accountItem {
display: block;
width: 100%;
padding: 10px 16px;
border: 0;
background: none;
font-size: 11px;
font-weight: 400;
letter-spacing: 0.14em;
text-transform: uppercase;
text-align: left;
color: var(--color-soft);
cursor: pointer;
}
.accountItem:hover,
.accountItem:focus-visible {
color: var(--color-black);
background: #f6f6f6;
}
.accountItemDanger {
color: #8e8e8e;
}
.mobileAccount {
display: flex;
flex-direction: column;
gap: 10px;
padding-top: 8px;
border-top: 1px solid var(--color-card);
}
.mobileAccountName {
margin: 0;
font-size: 12px;
font-weight: 400;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--color-black);
}
.burger {
display: none;
width: 30px;
height: 30px;
align-items: center;
justify-content: center;
}
.burger img {
width: 22px;
height: 22px;
}
.mobileNav {
display: none;
max-width: var(--container-width);
margin: 0 auto;
}
@media (max-width: 980px) {
.nav,
.actions {
display: none;
}
.burger {
display: flex;
}
.inner {
padding: 12px var(--page-pad);
}
.logo {
width: 36px;
height: 36px;
}
.mobileNav {
display: flex;
flex-direction: column;
gap: 16px;
padding: 8px var(--page-pad) 24px;
border-top: 1px solid var(--color-card);
}
.mobileNav a,
.mobileNav button {
font-size: 14px;
font-weight: 300;
letter-spacing: 2.4px;
text-transform: uppercase;
text-align: left;
}
.mobileActions {
display: flex;
gap: 20px;
padding-top: 8px;
}
.mobileLang {
display: flex;
flex-direction: column;
gap: 10px;
padding-top: 4px;
}
.mobileLang > span {
font-size: 12px;
letter-spacing: 2px;
text-transform: uppercase;
color: var(--color-soft);
}
.mobileLangOptions {
display: flex;
gap: 8px;
}
.mobileLangOptions .langOption,
.mobileLangOptions .langOptionActive {
width: auto;
min-width: 48px;
border-radius: 5px;
text-align: center;
}
.mobileMega {
display: grid;
gap: 16px;
}
.mobileMega p {
font-size: 12px;
letter-spacing: 2px;
margin-bottom: 6px;
}
.mobileMega a {
display: block;
padding: 4px 0;
font-size: 13px;
}
}