/home/bdqbpbxa/demo-subdomains/billine.goodface.com.ua/css/header.css
.header {
position: fixed;
z-index: 10;
top: 0;
left: 0;
right: 0;
background-color: transparent;
-webkit-transition: background-color 0.4s, box-shadow 0.4s;
transition: background-color 0.4s, box-shadow 0.4s;
}
.header-container {
position: relative;
display: flex;
align-items: center;
padding: 30px 0;
}
.header .header__logo {
height: 28px;
margin-top: -4px;
}
.header .header__logo img,
.header .header__logo svg {
display: block;
height: 100%;
width: auto;
}
.header .header__menu {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
margin-left: 30px;
}
.header .header__menu-nav {
position: absolute;
left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
display: flex;
align-items: center;
justify-content: center;
gap: 32px;
}
.header .header__nav {
white-space: nowrap;
}
.header .header__nav:before {
content: "";
position: absolute;
top: calc(100% + 12px);
left: 50%;
display: block;
width: 70%;
min-width: 26px;
height: 3px;
background: var(--default-gradient);
-webkit-user-select: none;
user-select: none;
pointer-events: none;
-webkit-transform: translateX(-50%) scaleX(0);
transform: translateX(-50%) scaleX(0);
opacity: 0;
-webkit-transition: transform 0.4s, opacity 0.4s;
transition: transform 0.4s, opacity 0.4s;
}
.header .header__nav.-current {
pointer-events: none;
}
.header .header__nav.-current:before {
opacity: 1;
-webkit-transform: translateX(-50%) scale(1);
transform: translateX(-50%) scale(1);
}
.header .header__button-box {
display: flex;
align-items: stretch;
justify-content: flex-end;
gap: 8px;
}
.header .header__open-menu-button {
display: none;
}
/* Extra styles */
.header.-scrolled {
background-color: var(--shades-50);
box-shadow: 0 16px 40px rgba(61, 62, 64, 0.04);
}
.header.-menu-opened.-scrolled,
.header.-menu-opened {
background-color: var(--shades-50);
box-shadow: none;
}
@media screen and (max-width: 1200px) {
.header .header__menu-nav {
gap: 16px;
}
}
@media screen and (max-width: 1100px) {
.header-container {
position: static;
justify-content: space-between;
padding: 20px 0;
}
.header .header__menu {
position: absolute;
top: 100%;
left: 0;
right: 0;
padding: 16px 30px 40px;
align-items: flex-start;
justify-content: space-between;
flex-direction: column-reverse;
margin-left: 0;
overflow-y: auto;
height: calc(var(--window-inner-height) - 81px);
background-color: var(--shades-50);
pointer-events: none;
opacity: 0;
-webkit-transition: opacity 0.4s;
transition: opacity 0.4s;
}
.header .header__menu-nav {
position: static;
align-items: flex-start;
flex-direction: column;
justify-content: flex-start;
flex-grow: 1;
margin-top: 40px;
margin-bottom: 40px;
gap: 32px;
-webkit-transform: none;
transform: none;
}
.header .header__nav:before {
top: calc(100% + 8px);
left: 0;
display: block;
width: 85%;
-webkit-transform: translateX(0) scaleX(0);
transform: translateX(0) scaleX(0);
}
.header .header__nav.-current:before {
-webkit-transform: translateX(0) scale(1);
transform: translateX(0) scale(1);
}
.header .header__button-box {
flex-direction: row-reverse;
gap: 8px;
}
.header .header__open-menu-button {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 0;
}
.header .header__open-menu-button div {
width: 16px;
height: 3px;
background-color: var(--shades-600);
-webkit-transition: opacity 0.4s, transform 0.4s;
transition: opacity 0.4s, transform 0.4s;
}
.header .localization-dropdown .--dropdown__list {
top: auto;
bottom: calc(100% + 14px);
}
.header .localization-dropdown .--dropdown__list:before {
top: auto;
bottom: -5px;
}
.header .localization-dropdown .--dropdown__list:after {
top: 100%;
bottom: auto;
}
.header .header__open-menu-button div:nth-child(2) {
margin: 3px 0;
}
.header .header__open-menu-button.-active div:nth-child(1) {
-webkit-transform: translate(0, 6px) rotate(45deg);
transform: translate(0, 6px) rotate(45deg);
}
.header .header__open-menu-button.-active div:nth-child(2) {
opacity: 0;
}
.header .header__open-menu-button.-active div:nth-child(3) {
-webkit-transform: translate(0, -6px) rotate(-45deg);
transform: translate(0, -6px) rotate(-45deg);
}
.header .header__menu.-active {
opacity: 1;
pointer-events: auto;
}
}
@media screen and (max-width: 759px) {
.header .header__menu {
padding-left: 12px;
padding-right: 12px;
}
}