| 1 |
@import "variables.scss"; |
| 2 |
.wtotem_header { |
| 3 |
position: relative; |
| 4 |
z-index: 4; |
| 5 |
width: 100%; |
| 6 |
top: 0; |
| 7 |
left: 0; |
| 8 |
&__body { |
| 9 |
display: flex; |
| 10 |
justify-content: space-between; |
| 11 |
align-items: center; |
| 12 |
} |
| 13 |
&:before { |
| 14 |
content: ""; |
| 15 |
position: absolute; |
| 16 |
top: 0; |
| 17 |
left: 0; |
| 18 |
width: 100%; |
| 19 |
height: 100%; |
| 20 |
background: #fff; |
| 21 |
z-index: 2; |
| 22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
.wtotem_version { |
| 26 |
position: relative; |
| 27 |
z-index: 100; |
| 28 |
display: flex; |
| 29 |
align-items: center; |
| 30 |
&__count { |
| 31 |
width: 28px; |
| 32 |
height: 18px; |
| 33 |
display: flex; |
| 34 |
justify-content: center; |
| 35 |
align-items: center; |
| 36 |
font-size: 10px; |
| 37 |
font-weight: 500; |
| 38 |
border: 1px solid $c-blue; |
| 39 |
border-radius: 4px; |
| 40 |
margin-left: 8px; |
| 41 |
} |
| 42 |
} |
| 43 |
.wtotem_logo { |
| 44 |
width: 113px; |
| 45 |
height: 24px; |
| 46 |
background: url("../img/logo.svg") no-repeat center center / cover; |
| 47 |
} |
| 48 |
.wtotem_nav { |
| 49 |
position: relative; |
| 50 |
z-index: 3; |
| 51 |
height: 70px; |
| 52 |
&__menu { |
| 53 |
display: flex; |
| 54 |
height: 100%; |
| 55 |
} |
| 56 |
&__item { |
| 57 |
} |
| 58 |
&__link { |
| 59 |
position: relative; |
| 60 |
display: flex; |
| 61 |
align-items: center; |
| 62 |
height: 100%; |
| 63 |
font-size: 14px; |
| 64 |
color: $c-titles; |
| 65 |
font-weight: 500; |
| 66 |
padding: 0 16px; |
| 67 |
} |
| 68 |
&__link_active { |
| 69 |
color: $c-blue; |
| 70 |
&:before { |
| 71 |
content: ""; |
| 72 |
position: absolute; |
| 73 |
bottom: 0; |
| 74 |
right: 0; |
| 75 |
left: 0; |
| 76 |
background: $c-blue; |
| 77 |
height: 3px; |
| 78 |
} |
| 79 |
} |
| 80 |
} |
| 81 |
|
| 82 |
/* 576-768px sm Small */ |
| 83 |
@media screen and (max-width: 768px) { |
| 84 |
body.lock { |
| 85 |
overflow: hidden; |
| 86 |
} |
| 87 |
.wtotem_version { |
| 88 |
position: relative; |
| 89 |
z-index: 3; |
| 90 |
} |
| 91 |
.wtotem_header { |
| 92 |
&__body { |
| 93 |
height: 65px; |
| 94 |
} |
| 95 |
} |
| 96 |
.wtotem_nav { |
| 97 |
position: fixed; |
| 98 |
top: -100%; |
| 99 |
left: 0; |
| 100 |
width: 100%; |
| 101 |
height: 100%; |
| 102 |
background: #f3f5f6; |
| 103 |
display: block; |
| 104 |
padding-top: 65px; |
| 105 |
transition: all 0.3s ease-in-out; |
| 106 |
overflow: auto; |
| 107 |
z-index: 1; |
| 108 |
&__menu { |
| 109 |
display: block; |
| 110 |
} |
| 111 |
&__item { |
| 112 |
border-bottom: 1px solid #eceff4; |
| 113 |
} |
| 114 |
&__link { |
| 115 |
height: auto; |
| 116 |
display: block; |
| 117 |
color: #1d293f; |
| 118 |
font-size: 24px; |
| 119 |
padding: 22px 0; |
| 120 |
width: 540px; |
| 121 |
margin: 0 auto; |
| 122 |
} |
| 123 |
&__link_active { |
| 124 |
color: $c-blue; |
| 125 |
&:before { |
| 126 |
display: none; |
| 127 |
} |
| 128 |
} |
| 129 |
&.active { |
| 130 |
top: 0; |
| 131 |
} |
| 132 |
} |
| 133 |
.wtotem_burger { |
| 134 |
position: relative; |
| 135 |
width: 23px; |
| 136 |
height: 18px; |
| 137 |
display: flex; |
| 138 |
align-items: center; |
| 139 |
justify-content: flex-end; |
| 140 |
cursor: pointer; |
| 141 |
z-index: 3; |
| 142 |
&:before, |
| 143 |
&__middle-line, |
| 144 |
&:after { |
| 145 |
content: ""; |
| 146 |
background: $c-blue; |
| 147 |
height: 2px; |
| 148 |
display: block; |
| 149 |
right: 0; |
| 150 |
border-radius: 100px; |
| 151 |
transition: all 0.3s ease-in-out; |
| 152 |
} |
| 153 |
|
| 154 |
&:before { |
| 155 |
position: absolute; |
| 156 |
width: 23px; |
| 157 |
top: 0; |
| 158 |
} |
| 159 |
&__middle-line { |
| 160 |
width: 18px; |
| 161 |
} |
| 162 |
&:after { |
| 163 |
position: absolute; |
| 164 |
width: 14px; |
| 165 |
bottom: 0; |
| 166 |
} |
| 167 |
&.active &__middle-line { |
| 168 |
transform: scale(0); |
| 169 |
} |
| 170 |
&.active:before { |
| 171 |
transform: rotate(45deg); |
| 172 |
top: 8px; |
| 173 |
} |
| 174 |
&.active:after { |
| 175 |
transform: rotate(-45deg); |
| 176 |
width: 100%; |
| 177 |
bottom: 8px; |
| 178 |
} |
| 179 |
} |
| 180 |
} |
| 181 |
/* 320-576px Extra small */ |
| 182 |
@media screen and (max-width: 576px) { |
| 183 |
.wtotem_nav { |
| 184 |
&__menu { |
| 185 |
} |
| 186 |
&__item { |
| 187 |
} |
| 188 |
&__link { |
| 189 |
width: 345px; |
| 190 |
margin: 0 auto; |
| 191 |
} |
| 192 |
} |
| 193 |
} |
| 194 |
|
| 195 |
/* 320-375px Extra small */ |
| 196 |
@media screen and (max-width: 375px) { |
| 197 |
.wtotem_nav { |
| 198 |
&__link { |
| 199 |
padding-left: 10px; |
| 200 |
} |
| 201 |
} |
| 202 |
} |
| 203 |
|
| 204 |
@media screen and (max-width: 768px) { |
| 205 |
.wtotem_theme—dark .wtotem_nav { |
| 206 |
background: #191919; |
| 207 |
} |
| 208 |
|
| 209 |
.wtotem_theme—dark .wtotem_nav__item { |
| 210 |
border-bottom: 1px solid #3c3c3d; |
| 211 |
} |
| 212 |
} |
| 213 |
|