Files
profile/template-parts/critical-styles/styles-header.php
Andrey Kuvshinov 8fc8cbae32 add files
2025-07-09 21:21:17 +03:00

519 lines
14 KiB
PHP

<!--[critical-styles/styles-header]-->
<style>
#menuD {
width: 20px;
height: 18px;
position: absolute;
top: 20px;
left: 12px;
cursor: pointer;
z-index: 17;
}
header {
z-index: 2;
}
.header__widgets {
z-index: 500;
}
.header__currency__item > span + .header__currency__item > span {
margin-left: 0.3125rem;
}
.header.isSticky > .container-fluid > .row > .col-12:first-child {
z-index: 16!important;
}
.icon--network {
max-height: 32px;
}
.icon--network img {
max-height: 32px;
}
.header__nav {
background: #fff;
}
.header__nav__stick {
z-index: 15!important;
}
.header__widgets {
max-height: 30px;
}
.logo {
width: 15.5625rem;
max-width: 100%;
bottom: 0;
}
.header__social {
padding: 1.25rem 0 0;
}
.header__currency__item>span:first-child {
margin-right: 0.625rem;
}
.header .logo {
width: 15.5625rem;
}
.header__widgets {
background: #303030;
padding: 0.4375rem 0;
white-space: nowrap;
z-index: 100;
}
.header__widgets,
.header__widgets a {
color: #fff;
}
.header__widgets > .row > .col-12 {
transition: all 0.35s;
}
.header__currency .up {
color: #45C707;
}
.header__currency .down {
color: #B61D1D;
}
.header__currency__item > span + .header__currency__item > span {
margin-left: 0.3125rem;
}
.header__currency__item > span:first-child {
margin-right: 0.625rem;
}
.header__weather > span {
margin: 0 0.3125rem;
}
.header__delimiter {
border-width: 0 1px 0 0;
border-style: solid;
}
@media (max-width: 767.98px) {
.header__network .icon--network {
display: none;
}
.header__widgets {
display: none;
}
.header__store {
max-width: 5.625rem;
max-height: 1.625rem;
margin: 0 0 1.75rem;
}
.header__store:last-child {
max-width: 6rem;
}
.header__network {
margin-bottom: 3.125rem;
}
.header__network ul {
display: flex;
flex-wrap: wrap;
}
.header__network ul li {
margin:0 1.5625rem 0.9375rem 0;
}
.header .header__nav .float-md-left {
flex: 1;
overflow: hidden;
}
.header .nav-link--feedback {
position: relative;
display: inline-block;
vertical-align: middle;
padding-right: 1.5625rem;
font-family: 'PT Sans', sans-serif;
font-style: normal;
font-weight: 700;
font-size: 1rem;
line-height: 1.3;
}
.header .nav-link--feedback:before {
content: '';
position: absolute;
border: 1px solid;
width: 0.5rem;
height: 0.5rem;
right: 0.9375rem;
top: 55%;
transform: translate(0, -50%) rotate(135deg);
border-color: #000 transparent transparent #000;
}
.header .header__nav .float-md-right {
display: none!important;
}
.header .header__nav .nav {
font-size: 0;
height: 3.75rem;
white-space: nowrap;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
.header .header__nav .nav .nav-link {
font-size: 0.875rem;
font-weight: 500;
line-height: 1.2;
padding: 0.9375rem 1.5625rem 0.9375rem 0;
}
.header .header__nav .nav .nav-item {
display: inline-block;
vertical-align: middle;
}
.header {
background: white;
position: fixed!important;
top: 0;
left: 0;
right: 0;
}
.header .row {
display: block;
margin: 0 -1.875rem;
}
.header .logo {
margin-top: 0;
margin-bottom: 0;
}
.header .row > .col-12:nth-child(2) {
border-top: 1px solid #C0C0C0;
border-width: 1px 0 0;
}
.header .row > .col-12:last-child,
.header .rubric,
.header .searchform {
display: none!important;
}
.header .header__nav {
padding-top: 0;
height: 3.125rem;
overflow: hidden;
}
.logo {
max-width: 8.125rem;
max-height: 1.75rem;
z-index: 12;
}
#menuM:checked ~ .burger,
#menuM:checked ~ .burger-body {
display: block;
}
#menuM:checked ~ .toggle-menu::after {
top: 0;
left: 0;
background: #f6f6f6;
width: 100%;
height: 49px;
right: unset;
border: none;
z-index: 8;
}
#sub_burgerM:checked ~ .burger-body__sub {
display: block;
}
#sub_burgerM:checked ~ .toggleSubmenu .arrow {
transform: rotate(-135deg);
}
}
@media (min-width: 768px) {
.header__nav::-webkit-scrollbar {
display: none;
}
.header__nav {
overflow-x: scroll;
overflow-y: hidden;
}
.header > .container-fluid {
padding-top: 1.875rem;
padding-bottom: 1.875rem;
}
.header.isSticky .nav .nav-item:first-child {
margin-right: 170px;
}
.header__nav .nav-link:before {
content: '';
position: absolute;
left: 0;
top: 0;
right: 0;
border-width: 3px 0 0;
border-style: solid;
transition: all 0.25s;
}
.header__nav .nav-link {
text-align: center;
border-color: transparent;
position: relative;
padding: 1.25rem 0.75rem 1rem;
font-weight: 700;
line-height: 1.4;
overflow: hidden;
color: #000;
}
.header__social {
float: right;
transition: all 0.30s;
}
.header__store + .header__store {
margin-left: 0.625rem;
}
.header__nav {
font-size: .875rem;
text-transform: uppercase;
border-bottom: 1px solid #000;
}
.header__nav:before {
content: '';
position: absolute;
border-top: 3px solid #000;
height: 3px;
left: 0;
top: 0;
right: 0;
}
.header__network {
position: relative;
width: 6.625rem;
max-width: 6.625rem;
padding-left: 10px;
display: inline-table;
border-radius: 5px;
transform-style: preserve-3d;
perspective: 200px;
z-index: 4;
}
.header__network .icon {
display: block;
}
.header__network .icon--network {
min-width: 111px;
}
.header__network > li {
cursor: pointer;
list-style: none;
}
.header__network > li:hover > ul {
transition:all 200ms ease-in-out 0ms;
transform:rotateX(0deg);
box-shadow: 4px 6px 10px rgba(0, 0, 0, 0.1);
opacity: 1.0;
}
.header__network ul {
background: #ececec;
position: absolute;
right: 0;
width: 9.375rem;
max-width: 9.375rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
opacity: 0.0;
z-index: 10;
padding: 0.4375rem 0.5625rem 0.625rem;
transition: all 200ms ease-in-out 200ms;
transform: rotateX(-90deg);
transform-origin: 0% 0%;
backface-visibility: hidden;
box-shadow: 0 -50px 250px rgba(0, 0, 0, 0);
}
.header__network ul li {
display: flex;
justify-content: center;
margin: 0 7px 0;
}
.header__network ul li .icon {
margin: 0.5rem 0 0.4375rem;
}
.header .isSticky .logo {
width: 144px;
height: auto;
position: absolute;
left: 60px;
bottom: -75px;
max-width: none;
}
}
@media (max-width: 991.98px) {
.header__network {
padding: 0;
}
.header__network li ul {
margin-top: 15px;
}
.header__network ul {
padding: 0;
}
.header__network li,
.header__network ul {
list-style: none;
}
.header__social .icon {
position: relative;
}
.icon {
display: inline-block;
vertical-align: middle;
border-radius: 4px;
width: 1.875rem;
height: 1.875rem;
text-align: center;
}
.header {
z-index: 200;
position: relative;
}
.header > .container-fluid {
padding-left: 15px;
padding-right: 15px;
}
.header > .row {
padding-left: -15px;
padding-right: -15px;
}
.header__social {
float: right;
padding-top: 0.9375rem;
}
.header__widgets {
font-size: 12px;
line-height: 1.5;
}
.header__nav .nav-link {
text-align: left;
color: #000;
font-size: 0.75rem;
padding-left: 0.25rem;
padding-right: 0.25rem;
}
.header__currency__item + .header__currency__item {
margin-left: 0.625rem;
}
}
@media (min-width: 992px) {
.header__title {
position: relative;
font-size: 24px;
line-height: 1.08;
margin-left: 35px;
padding: 5px 0 2px 0;
white-space: nowrap;
}
.header__title a {
position: relative;
margin-right: 20px;
}
.header__title a:before {
content: '';
position: absolute;
top: 50%;
left: -15px;
width: 3px;
height: 80%;
border-left: 3px solid;
transform: translate(0, -40%);
}
.logo {
margin: .625rem 0 .1875rem;
}
.header__nav .nav-link {
text-align: center;
border-color: transparent;
position: relative;
padding: 1.0625rem 0.75rem 1rem;
font-weight: 700;
line-height: 1.4;
overflow: hidden;
color: #000;
}
}
@media (max-width: 1199.98px) {
.header__title {
display: none;
}
body.branding .header__widgets {
max-width: 882px;
}
}
@media (min-width: 768px) and (max-width: 1199.98px) {
.burger {
overflow-y: scroll;
max-height: calc(100vh - 120px);
}
.isSticky .burger {
overflow-y: scroll;
max-height: calc(100vh - 40px);
}
#menuD:checked ~ .toggle-menu {
width: 100%;
height: 47px;
background: #f6f6f6;
z-index: 8;
padding-right: 272px;
position: relative;
top: 3px;
left: 6px;
}
.p-none:hover .burger-body__sub {
box-shadow: none;
border: none;
}
#sub_burgerM:checked ~ .toggleSubmenu .arrow {
transform: rotate(135deg);
}
#sub_burgerM ~ .burger-body__sub {
position: relative!important;
top: 0!important;
left: 0!important;
border: none!important;
box-shadow: none!important;
margin: 0!important;
padding: 0!important;
max-width: 250px;
}
}
@media (min-width: 576px) and (max-width: 1199.98px) {
#sub_burgerD {
opacity: 0;
}
.header__nav .nav-item:first-child {
width: 42px;
}
}
@media (min-width: 768px) and (max-width: 991.98px) {
.header__network {
margin-bottom: 12px;
}
.logo {
height: 60px;
}
.header > .container-fluid {
padding-top: 10px;
}
.header__nav > div:first-child {
height: 3.3125rem
}
.header__nav > div:first-child .nav {
white-space: nowrap
}
.header__nav > div:first-child .nav .nav-item {
display: inline-block
}
.header > .container-fluid {
padding-left: 15px;
padding-right: 15px
}
.header .nav {
flex-wrap: nowrap
}
}
</style>
<!--[/critical-styles/styles-header]-->