_header.scss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. // Header
  2. .header {
  3. position: fixed;
  4. width: 100%;
  5. top: 0;
  6. left: 0;
  7. height: 70px;
  8. z-index: 1000;
  9. // background will be set dynamically via styles.php
  10. .container {
  11. @include flex(space-between, center);
  12. height: 100%;
  13. gap: 20px;
  14. }
  15. // Logo
  16. &__logo {
  17. width: 190px;
  18. height: 44px;
  19. flex-shrink: 0;
  20. @include flex(center, center);
  21. z-index: 1001;
  22. &-link {
  23. display: inline-block;
  24. line-height: 0;
  25. }
  26. img {
  27. width: 190px;
  28. height: 44px;
  29. display: block;
  30. cursor: pointer;
  31. object-fit: contain;
  32. transition: opacity 0.3s ease;
  33. }
  34. }
  35. // Navigation
  36. &__nav {
  37. flex: 1;
  38. @include flex(center);
  39. }
  40. &__menu {
  41. list-style: none;
  42. margin: 0;
  43. padding: 0;
  44. @include flex(null, center, null, 40px);
  45. &-link {
  46. // color will be set dynamically
  47. text-decoration: none;
  48. font-size: 16px;
  49. font-weight: 500;
  50. transition: opacity 0.3s ease;
  51. color:#fff;
  52. white-space: nowrap;
  53. opacity: 0.9;
  54. &:hover {
  55. opacity: 1;
  56. color:#fff;
  57. }
  58. }
  59. }
  60. // Actions (buttons)
  61. &__actions {
  62. @include flex(null, center, null, 12px);
  63. flex-shrink: 0;
  64. }
  65. &__btn {
  66. border-radius: 6px;
  67. border: 1px solid #FFF;
  68. display: flex;
  69. height: 42px;
  70. padding: 8px 32px;
  71. justify-content: center;
  72. align-items: center;
  73. gap: 8px;
  74. color: #FFF;
  75. font-size: 14px;
  76. font-style: normal;
  77. font-weight: 600;
  78. line-height: normal;
  79. text-transform: uppercase;
  80. background:none;
  81. cursor:pointer;
  82. &--primary {
  83. // background and color will be set dynamically
  84. &:hover {
  85. transform: translateY(-1px);
  86. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  87. }
  88. }
  89. &--secondary {
  90. // background and color will be set dynamically
  91. &:hover {
  92. transform: translateY(-1px);
  93. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  94. }
  95. }
  96. }
  97. // Burger menu button
  98. &__burger {
  99. display: none;
  100. flex-direction: column;
  101. justify-content: space-between;
  102. width: 30px;
  103. height: 24px;
  104. background: transparent;
  105. border: none;
  106. cursor: pointer;
  107. padding: 0;
  108. z-index: 1001;
  109. transition: transform 0.3s ease;
  110. &:hover {
  111. transform: scale(1.1);
  112. }
  113. &-line {
  114. width: 100%;
  115. height: 3px;
  116. border-radius: 2px;
  117. // background will be set dynamically
  118. transition: all 0.3s ease;
  119. }
  120. // Active state (menu open)
  121. &.active {
  122. .header__burger-line {
  123. &:nth-child(1) {
  124. transform: translateY(10.5px) rotate(45deg);
  125. }
  126. &:nth-child(2) {
  127. opacity: 0;
  128. }
  129. &:nth-child(3) {
  130. transform: translateY(-10.5px) rotate(-45deg);
  131. }
  132. }
  133. }
  134. }
  135. // Tablet styles
  136. @include tablet {
  137. &__menu {
  138. gap: 24px;
  139. }
  140. &__btn {
  141. padding: 8px 16px;
  142. font-size: 13px;
  143. }
  144. }
  145. // Mobile styles
  146. @include mobile {
  147. height: 60px;
  148. &__logo {
  149. width: 150px;
  150. height: 35px;
  151. img {
  152. width: 150px;
  153. height: 35px;
  154. }
  155. }
  156. // Show burger menu
  157. &__burger {
  158. display: flex;
  159. }
  160. // Mobile navigation
  161. &__nav {
  162. position: fixed;
  163. top: 60px;
  164. left: 0;
  165. width: 100%;
  166. height: calc(100vh - 60px);
  167. // background will be set dynamically
  168. transform: translateX(-100%);
  169. transition: transform 0.3s ease;
  170. padding: 40px 20px;
  171. overflow-y: auto;
  172. backdrop-filter: blur(10px);
  173. &.active {
  174. transform: translateX(0);
  175. }
  176. }
  177. &__menu {
  178. flex-direction: column;
  179. align-items: flex-start;
  180. gap: 24px;
  181. &-link {
  182. font-size: 18px;
  183. }
  184. }
  185. &__actions {
  186. gap: 8px;
  187. }
  188. &__btn {
  189. display: none;
  190. }
  191. // Mobile buttons in menu
  192. &__nav.active {
  193. .header__btn {
  194. display: block;
  195. width: calc(100% - 40px);
  196. margin: 0 20px 16px;
  197. }
  198. }
  199. }
  200. }