Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

204 строки
3.9 KiB

  1. header {
  2. position: fixed;
  3. top: 0;
  4. left: 0;
  5. right: 0;
  6. width: 100%;
  7. z-index: 99;
  8. .inside {
  9. width: 100%;
  10. margin: 0 auto;
  11. padding: 2rem 15px;
  12. background: #fff;
  13. height: 7rem;
  14. .node_wrapper {
  15. display: flex;
  16. justify-content: space-between;
  17. max-width: 1050px;
  18. margin: auto;
  19. }
  20. .logo {
  21. svg {
  22. max-width: 265px;
  23. @media (min-width: 576px) {
  24. max-width: 343px;
  25. }
  26. }
  27. }
  28. .mod_changelanguage {
  29. margin-right: 4rem;
  30. ul {
  31. margin: 0;
  32. padding: 0;
  33. li {
  34. list-style-type: none;
  35. display: inline-block;
  36. margin: 0 0.5rem;
  37. color: $main-color;
  38. a {
  39. color: #000;
  40. &:hover {
  41. text-decoration: none;
  42. }
  43. }
  44. &.active {
  45. position: relative;
  46. &:after {
  47. content: "";
  48. display: block;
  49. position: absolute;
  50. left: 0;
  51. bottom: 2px;
  52. width: 100%;
  53. height: 3px;
  54. background: $main-color;
  55. }
  56. }
  57. }
  58. }
  59. }
  60. .hamburg {
  61. display: block;
  62. position: relative;
  63. width: 27px;
  64. height: 20px;
  65. cursor: pointer;
  66. }
  67. .line {
  68. position: absolute;
  69. left:10px;
  70. width: 27px;
  71. display: block;
  72. transition: 0.5s;
  73. transform-origin: center;
  74. border: 2px solid $main-color;
  75. border-radius: 8px;
  76. }
  77. .line:nth-child(1) { top: 0; }
  78. .line:nth-child(2) { top: 8px; }
  79. .line:nth-child(3) { top: 16px; }
  80. .hamburg.checked .line:nth-child(1){
  81. transform: translateY(12px) rotate(-45deg);
  82. }
  83. .hamburg.checked .line:nth-child(2){
  84. opacity:0;
  85. }
  86. .hamburg.checked .line:nth-child(3){
  87. transform: translateY(-12px) rotate(45deg);
  88. }
  89. }
  90. }
  91. .nav-icon {
  92. cursor: pointer;
  93. width: 27px;
  94. height: 20px;
  95. margin-left: 1rem;
  96. div,
  97. &:before,
  98. &:after {
  99. background-color: $main-color;
  100. content: '';
  101. display: block;
  102. height: 4px;
  103. margin: 4px 0;
  104. transition: all .2s ease-in-out;
  105. border-radius: 2px;
  106. }
  107. }
  108. .overlay {
  109. height: 0%;
  110. width: 100%;
  111. position: fixed;
  112. z-index: -1;
  113. top: 0;
  114. left: 0;
  115. background-color: $newClassic;
  116. overflow-y: auto;
  117. transition: 0.5s;
  118. nav {
  119. ul {
  120. margin: 0;
  121. padding: 0;
  122. li {
  123. list-style-type: none;
  124. a, strong {
  125. display: block;
  126. @include futura-bold;
  127. font-size: size(36);
  128. text-align: right;
  129. text-transform: uppercase;
  130. line-height: size(48);
  131. color: #fff;
  132. }
  133. strong {
  134. color: $bg-color;
  135. }
  136. }
  137. }
  138. &.mod_customnav {
  139. margin-top: 5rem;
  140. ul {
  141. li {
  142. a, strong {
  143. font-size: size(14);
  144. line-height: size(19);
  145. }
  146. }
  147. }
  148. }
  149. }
  150. }
  151. body.nav-open {
  152. .overlay {
  153. height: 100%;
  154. nav {
  155. ul li {
  156. }
  157. ul.level_2 li {
  158. animation: none;
  159. }
  160. }
  161. }
  162. .nav-icon:before {
  163. transform: translateY(8px) rotate(135deg);
  164. }
  165. .nav-icon:after {
  166. transform: translateY(-8px) rotate(-135deg);
  167. }
  168. .nav-icon div {
  169. transform: scale(0);
  170. }
  171. }
  172. .overlay-content {
  173. position: relative;
  174. top: 100px;
  175. width: 100%;
  176. text-align: center;
  177. padding-top: 35px;
  178. max-width: 810px;
  179. margin: auto;
  180. padding-right: 25px;
  181. @media (min-width: 992px) {
  182. padding-right: 0;
  183. }
  184. }
  185. .overlay a {
  186. text-decoration: none;
  187. font-size: size(18);
  188. font-weight: 400;
  189. color: #fff;
  190. display: block;
  191. transition: 0.3s;
  192. }
  193. .overlay a:hover, .overlay a:focus {
  194. color: $bg-color;
  195. }