Blame view

public/scss/blocks/_header.scss 3.44 KB
242debab8   thesolarwind   Первый коммит в п...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
  .header {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 50;
      width: 100%;
      background-color: $white;
      box-shadow: 0px 2px 16px rgba(14, 56, 94, 0.08);
  
      &.fixed {
          .header__wrap {
              @media (min-width: 1200px) {
                  min-height: 90px;
              }
          }
      }
  
      &__wrap {
          display: flex;
          align-items: center;
          justify-content: space-between;
          min-height: 80px;
          padding: 10px 0;
          transition: .2s;
  
          @media (min-width: 1200px) {
              min-height: 110px;
          }
      }
  
      &__logo {
          img {
              max-width: 175px;
              max-height: 50px;
  
              @media (min-width: 1200px) {
                  max-height: 70px;
              }
          }
      }
  
      &__nav {
          margin: 0 30px;
      }
  
      &__buttons {
          display: flex;
          align-items: center;
      }
  
      &__contacts {
          display: none;
  
          @media (min-width: 1200px) {
              display: flex;
              margin-right: 30px;
          }
      }
  
      &__btn-phone {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 40px;
          height: 40px;
          margin-right: 5px;
  
          @media (min-width: 1200px) {
              display: none;
          }
      }
  
      &__col {
          position: relative;
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          justify-content: center;
          flex-shrink: 0;
  
          &:not(:last-child) {
              margin-right: 26px;
  
              &::after {
                  content: '';
                  position: absolute;
                  top: 0;
                  right: -14px;
                  bottom: 0;
                  width: 2px;
                  pointer-events: none;
                  background-color: $blue;
              }
          }
      }
  
      &__contact {
          display: block;
          font-size: 18px;
          line-height: 24px;
          font-weight: 500;
          transition: .3s;
  
          &:hover {
              @media (min-width: 1200px) {
                  color: $blue;
              }
          }
      }
  
      &__btn-callback {
          margin-top: 1px;
          font-size: 14px;
          line-height: 22px;
          font-weight: 500;
          border-bottom: 2px dotted $black;
          transition: .3s;
  
          &:hover {
              @media (min-width: 1200px) {
                  color: $blue;
                  border-color: $blue;
              }
          }
      }
  
      &__burger {
          position: relative;
          margin-right: -6px;
          width: 40px;
          height: 40px;
          font-size: 0;
          line-height: 0;
          transition: .3s;
  
          @media (min-width: 1200px) {
              margin-right: 0;
              padding-left: 40px;
              width: auto;
              height: auto;
              color: $black;
              font-size: 16px;
              line-height: 40px;
              font-weight: 600;
          }
  
          svg {
              position: absolute;
              top: 50%;
              left: 50%;
              transform: translate(-50%, -50%);
              fill: $black;
              transition: .3s;
  
              @media (min-width: 1200px) {
                  left: 0;
                  transform: translateY(-50%);
              }
          }
  
          &:hover {
              @media (min-width: 1200px) {
                  color: $blue;
              }
  
              svg {
                  @media (min-width: 1200px) {
                      fill: $blue;
                  }
              }
          }
      }
  }