_header.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. .header {
  2. flex-shrink: 0;
  3. min-height: $header-height;
  4. background-color: #7388ff;
  5. transition: min-height .225s ease;
  6. @include for-laptop-up {
  7. min-height: $header-height-desktop;
  8. }
  9. &__wrapper {
  10. display: flex;
  11. align-items: center;
  12. min-height: $header-height;
  13. transition: min-height .225s ease;
  14. @include for-laptop-up {
  15. min-height: $header-height-desktop;
  16. }
  17. }
  18. &__logo-link {
  19. display: block;
  20. width: 135px;
  21. height: 28px;
  22. }
  23. &__nav {
  24. position: fixed;
  25. top: $header-height;
  26. left: 0;
  27. right: 0;
  28. bottom: 0;
  29. z-index: 1;
  30. overflow: auto;
  31. background-color: transparent;
  32. opacity: 0;
  33. pointer-events: none;
  34. transition: opacity .225s ease;
  35. &.is-opened {
  36. opacity: 1;
  37. transform: translate(0, 0);
  38. pointer-events: auto;
  39. background-color: #ffffff;
  40. .main-header__nav-items {
  41. display: block;
  42. }
  43. }
  44. @include for-laptop-up {
  45. position: static;
  46. padding: 0;
  47. opacity: 1;
  48. pointer-events: auto;
  49. transition: none;
  50. background: transparent;
  51. height: inherit;
  52. overflow: visible;
  53. margin-left: auto;
  54. margin-right: 22px;
  55. }
  56. }
  57. &__nav-items {
  58. display: none;
  59. @include for-laptop-up {
  60. display: flex;
  61. height: inherit;
  62. }
  63. }
  64. &__nav-link {
  65. font-size: 20px;
  66. color: #606060;
  67. text-align: center;
  68. display: flex;
  69. align-items: center;
  70. justify-content: center;
  71. min-height: 78px;
  72. border-bottom: 1px solid rgba(#d8d8d8, .48);
  73. @include for-laptop-up {
  74. font-size: 16px;
  75. color: $header-color;
  76. padding-left: 12px;
  77. padding-right: 12px;
  78. min-height: $header-height-desktop;
  79. border: 0 none;
  80. transition: color .225s ease;
  81. &:hover {
  82. color: lighten($header-color, 30%)
  83. }
  84. }
  85. }
  86. &__lang-select {
  87. margin-left: auto;
  88. margin-right: 10px;
  89. @include for-laptop-up {
  90. margin-left: 0;
  91. margin-right: 0;
  92. }
  93. }
  94. &__hamburger {
  95. width: 40px;
  96. height: 40px;
  97. flex-shrink: 0;
  98. }
  99. @include for-laptop-up {
  100. .hamburger {
  101. display: none;
  102. }
  103. }
  104. }