Berkarar/themes/berkarar/assets/css/components/2-layout/header.scss

738 lines
15 KiB
SCSS
Raw Normal View History

2022-08-28 19:50:26 +00:00
// Header =======================
.header {
2023-07-26 11:44:12 +00:00
padding: 30px 0;
2022-08-28 19:50:26 +00:00
background: $gray;
display: block;
position: relative;
@include transition;
position: relative;
top: 0;
2023-08-11 10:31:54 +00:00
&.fixed {
2022-08-28 19:50:26 +00:00
position: fixed;
top: 0;
left: 0;
width: 100%;
// height: 100%;
2022-09-22 10:35:44 +00:00
z-index: 101;
2022-08-28 19:50:26 +00:00
animation: header .3s linear;
}
&_row {
display: flex;
align-items: center;
justify-content: space-between;
}
&_item {
display: flex;
align-items: center;
&-link {
display: flex;
align-items: center;
padding: 15px 25px;
border: 1px solid #fff;
border-radius: 10px;
cursor: pointer;
font-weight: 700;
font-size: 14px;
2022-09-22 10:35:44 +00:00
line-height: 1.2;
2022-08-28 19:50:26 +00:00
color: #FFFFFF;
@include transition;
&:hover {
background: $yellow;
color: $black;
border-color: $yellow;
span {
path {
fill: $black;
}
}
}
span {
display: block;
width: 20px;
height: 20px;
margin-right: 10px;
svg {
@include ImgCon;
path {
@include transition;
}
}
}
}
}
.burger {
2023-07-29 05:46:55 +00:00
// width: 40px;
2023-07-26 11:44:12 +00:00
height: 40px;
2023-07-29 05:46:55 +00:00
padding: 5px 10px;
border-radius: 10px;
2022-08-28 19:50:26 +00:00
background: #fff;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
@include transition;
&:hover {
background: $yellow;
span {
background: #fff;
&::before,
&::after {
background: #fff;
}
}
2023-07-29 05:46:55 +00:00
p {
color: #FFF;
}
2022-08-28 19:50:26 +00:00
}
2022-09-22 10:35:44 +00:00
&.active {
span {
2022-09-26 04:58:01 +00:00
// transform: rotate(25deg);
background: none;
2022-09-22 10:35:44 +00:00
&::before {
2022-09-26 04:58:01 +00:00
transform: rotate(45deg);
top: 0;
2022-09-22 10:35:44 +00:00
}
&::after {
2022-09-26 04:58:01 +00:00
transform: rotate(-45deg);
bottom: 0;
2022-09-22 10:35:44 +00:00
}
}
2023-07-29 05:46:55 +00:00
p {
color: $black;
}
&:hover {
p {
color: #fff;
}
}
2022-09-22 10:35:44 +00:00
}
2022-08-28 19:50:26 +00:00
span {
display: block;
position: relative;
width: 23px;
height: 2px;
background: $black;
@include transition;
2023-07-29 05:46:55 +00:00
margin-right: 10px;
2022-08-28 19:50:26 +00:00
&::before {
content: '';
position: absolute;
top: -5px;
left: 0;
width: 23px;
height: 2px;
background: $black;
@include transition;
}
&::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 23px;
height: 2px;
background: $black;
@include transition;
}
}
2023-07-29 05:46:55 +00:00
p {
font-size: 12px;
font-weight: 700;
line-height: 1.3;
@include transition;
}
2022-08-28 19:50:26 +00:00
}
.logo {
display: block;
position: relative;
width: 390px;
height: 50px;
cursor: pointer;
img {
@include ImgCon;
}
}
.lang {
display: block;
position: relative;
&_current {
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
2023-08-11 10:31:54 +00:00
padding: 15px 12px;
2022-08-28 19:50:26 +00:00
background: #fff;
border-radius: 10px;
font-weight: 700;
2023-07-26 11:44:12 +00:00
font-size: 13px;
2022-09-22 10:35:44 +00:00
line-height: 1.2;
2022-08-28 19:50:26 +00:00
color: $black;
}
&_flag {
2023-07-26 11:44:12 +00:00
width: 16px;
height: 16px;
2022-08-28 19:50:26 +00:00
margin-right: 10px;
img {
@include ImgCon;
}
}
&_arrow {
2023-07-26 11:44:12 +00:00
width: 12px;
height: 12px;
2022-08-28 19:50:26 +00:00
margin-left: 10px;
svg {
@include ImgCon;
}
}
&_box {
display: none;
width: 100%;
border-radius: 10px;
overflow: hidden;
2022-09-22 10:35:44 +00:00
z-index: 101;
2022-08-28 19:50:26 +00:00
position: absolute;
top: calc(100% + 20px);
left: 0;
z-index: 10;
&.active {
display: block;
}
a {
display: flex;
align-items: center;
justify-content: center;
background: $gray;
padding: 12px 10px;
@include transition;
font-weight: 700;
2023-07-26 11:44:12 +00:00
font-size: 13px;
2022-09-22 10:35:44 +00:00
line-height: 1.2;
2022-08-28 19:50:26 +00:00
color: #fff;
span {
display: block;
2023-07-26 11:44:12 +00:00
width: 16px;
height: 16px;
2022-08-28 19:50:26 +00:00
margin-right: 10px;
img {
@include ImgCon;
}
}
&:hover {
background: #fff;
color: $gray;
}
}
}
}
2022-09-22 10:35:44 +00:00
.user {
position: relative;
display: block;
&_title {
cursor: pointer;
border: 1px solid #fff;
border-radius: 10px;
padding: 15px 25px 15px;
font-weight: 700;
font-size: 14px;
line-height: 1.2;
color: #fff;
@include transition;
width: 50px;
text-overflow: ellipsis;
overflow: hidden;
span {
position: absolute;
top: 50%;
right: 10px;
@include transformY;
display: block;
width: 12px;
// height: 6px;
svg {
@include ImgCon;
path {
@include transition;
}
}
}
&:hover {
border-color: $yellow;
color: $gray;
background: $yellow;
span {
path {
fill: $gray;
}
}
}
}
&_group {
position: absolute;
top: calc(100% + 10px);
left: 0;
width: 100%;
display: none;
&.active {
display: block;
}
a {
background: $black;
color: #fff;
display: block;
padding: 8px 10px;
text-align: center;
border-radius: 4px;
font-weight: 700;
font-size: 14px;
line-height: 1.2;
@include transition;
&:hover {
// color: $gray;
background: $yellow;
}
}
}
}
2022-08-28 19:50:26 +00:00
}
.m-rl {
margin: 0 40px;
}
// Header end ===================
// Nav =======================
.nav {
2023-07-26 11:44:12 +00:00
padding: 20px 0;
2022-08-28 19:50:26 +00:00
background: $black;
2023-08-11 10:31:54 +00:00
&.fixed {
2022-08-28 19:50:26 +00:00
position: fixed;
2023-07-26 11:44:12 +00:00
top: 110px;
2022-08-28 19:50:26 +00:00
left: 0;
width: 100%;
// height: 100%;
z-index: 100;
animation: header .3s linear;
}
&_row {
display: flex;
align-items: center;
justify-content: space-between;
}
&_list {
display: flex;
align-items: center;
li {
display: block;
margin-right: 40px;
// &:last-child {
// margin-right: 0;
// }
2023-08-11 10:31:54 +00:00
a,
h6 {
2022-08-28 19:50:26 +00:00
font-weight: 700;
font-size: 12px;
line-height: 15px;
text-transform: uppercase;
color: #FFFFFF;
cursor: pointer;
2023-07-26 11:44:12 +00:00
display: flex;
align-items: center;
2022-08-28 19:50:26 +00:00
@include transition;
2023-07-26 11:44:12 +00:00
span {
display: block;
width: 20px;
height: 20px;
margin-right: 10px;
svg {
@include ImgCon;
path {
@include transition;
}
}
}
2022-08-28 19:50:26 +00:00
&:hover {
color: $yellow;
2023-07-26 11:44:12 +00:00
path {
fill: $yellow;
}
2022-08-28 19:50:26 +00:00
}
}
.more {
font-weight: 700;
font-size: 12px;
line-height: 15px;
text-transform: uppercase;
color: #FFFFFF;
cursor: pointer;
display: flex;
align-items: center;
@include transition;
&:hover {
color: $yellow;
span {
svg {
circle {
fill: $yellow
}
}
}
}
span {
margin-left: 10px;
width: 18px;
height: 10px;
display: block;
position: relative;
svg {
@include ImgCon;
circle {
@include transition;
}
}
}
}
}
}
.search {
width: 22px;
height: 22px;
cursor: pointer;
display: block;
position: relative;
&:hover {
svg {
path {
fill: $yellow;
}
}
}
svg {
@include ImgCon;
path {
@include transition;
}
}
}
}
@keyframes header {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@-webkit-keyframes header {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
// Nav end ===================
// Menu =======================
.menu {
position: fixed;
top: -150%;
left: 0;
width: 100%;
2023-07-26 11:44:12 +00:00
height: calc(100% - 168px);
2022-08-28 19:50:26 +00:00
background: url("../images/menu-bg.png") no-repeat center;
background-size: cover;
z-index: 100;
overflow-y: auto;
2023-07-26 11:44:12 +00:00
display: flex;
flex-direction: column;
2022-08-28 19:50:26 +00:00
&.active {
2023-07-26 11:44:12 +00:00
top: 169px;
2022-08-28 19:50:26 +00:00
animation: header .3s linear;
2022-09-22 10:35:44 +00:00
}
2022-08-28 19:50:26 +00:00
2023-07-26 11:44:12 +00:00
&_wrap {
margin-bottom: 20px;
}
2022-08-28 19:50:26 +00:00
&::-webkit-scrollbar {
display: none;
}
&_search {
position: relative;
display: flex;
flex-wrap: wrap;
padding-top: 65px;
margin-bottom: 50px;
&-title {
font-weight: 700;
2023-07-26 11:44:12 +00:00
font-size: 26px;
2022-08-28 19:50:26 +00:00
line-height: 1.6;
color: #fff;
width: 100%;
margin-bottom: 25px;
span {
color: $yellow;
}
}
&-input {
2023-07-26 11:44:12 +00:00
width: calc(100% - 176px);
// max-width: 1200px;
2022-08-28 19:50:26 +00:00
margin-right: 30px;
input {
background: #fff;
font-weight: 700;
2023-07-26 11:44:12 +00:00
font-size: 16px;
2022-08-28 19:50:26 +00:00
line-height: 22px;
color: $gray;
2023-07-26 11:44:12 +00:00
padding: 15px 25px;
2022-08-28 19:50:26 +00:00
width: calc(100% - 50px);
border-radius: 5px;
&::placeholder {
color: rgba(23, 23, 23, 0.5);
}
}
}
&-btn {
display: inline-block;
2023-07-26 11:44:12 +00:00
padding: 15px 45px;
2022-08-28 19:50:26 +00:00
background: $yellow;
color: $gray;
font-weight: 700;
2023-07-26 11:44:12 +00:00
font-size: 16px;
2022-08-28 19:50:26 +00:00
line-height: 22px;
color: #000000;
border-radius: 5px;
cursor: pointer;
@include transition;
&:hover {
background: $black;
color: $yellow
}
}
}
&_box {
display: flex;
}
&_col {
2023-08-11 10:31:54 +00:00
width: calc(20% - 64px);
2022-08-28 19:50:26 +00:00
margin-right: 80px;
position: relative;
display: block;
&::after {
content: '';
position: absolute;
top: 0;
right: -40px;
height: 100%;
width: 1px;
2023-08-11 10:31:54 +00:00
background: #8E8E8E;
2022-08-28 19:50:26 +00:00
}
&:last-child {
margin-right: 0;
&::after {
display: none;
}
}
&-group {
margin-bottom: 40px;
&:last-child {
margin-bottom: 0;
}
}
&-title {
font-weight: 700;
2023-08-11 10:31:54 +00:00
font-size: 16px;
2022-08-28 19:50:26 +00:00
line-height: 1.2;
color: $yellow;
margin-bottom: 25px;
}
&-link {
display: block;
margin-bottom: 20px;
font-weight: 700;
2023-08-11 10:31:54 +00:00
font-size: 16px;
2022-08-28 19:50:26 +00:00
line-height: 1.2;
color: #FFFFFF;
@include transition;
&:hover {
color: $yellow;
}
}
}
2023-07-26 11:44:12 +00:00
.footer_navs {
padding-bottom: 40px;
2022-08-28 19:50:26 +00:00
}
&_row {
display: flex;
align-items: center;
justify-content: space-between;
}
&_txt {
font-weight: 400;
font-size: 14px;
line-height: 17px;
color: #FFFFFF;
}
&_info {
display: flex;
align-items: center;
&-item {
display: flex;
align-items: center;
font-weight: 400;
font-size: 14px;
line-height: 17px;
color: #FFFFFF;
margin-right: 50px;
&:last-child {
margin-right: 0;
}
&:hover {
color: $yellow;
span {
path {
fill: $yellow;
}
}
}
span {
width: 24px;
height: 24px;
display: block;
margin-right: 10px;
svg {
@include ImgCon;
path {
@include transition;
}
}
}
}
}
}
2023-08-11 10:31:54 +00:00
// Menu end ===================