Blame view

public/scss/blocks/_menu.scss 3.69 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
  .menu {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 100;
      display: flex;
      justify-content: flex-end;
      width: 100%;
      height: 100%;
      background-color: rgba(#03090F, .6);
      opacity: 0;
      visibility: hidden;
      transition: .4s;
  
      &.active {
          opacity: 1;
          visibility: visible;
  
          .menu__wrap {
              transform: translate(0);
  
          }
      }
  
      &__wrap {
          position: relative;
          max-width: 280px;
          width: 100%;
          padding: 111px 0 0 0px;
          background-color: #4B4E53;
          transform: translate(100%);
          transition: .4s;
  
          @media (min-width: 1200px) {
              max-width: 530px;
              padding: 126px 0 0 60px;
          }
      }
  
      &__close {
          position: absolute;
          top: 44px;
          right: 20px;
          padding: 0 32px 0 0;
          color: $white;
          font-size: 16px;
          line-height: 22px;
          font-weight: 600;
          fill: $white;
          transition: .3s;
  
          @media (min-width: 1200px) {
              left: 100px;
              right: auto;
              padding: 0 0 0 32px;
          }
  
          svg {
              position: absolute;
              top: 1px;
              right: 0;
              transition: .3s;
  
              @media (min-width: 1200px) {
                  left: 0;
                  right: auto;
              }
          }
  
          &:hover {
              @media (min-width: 1200px) {
                  color: $blue;
              }
  
              svg {
                  @media (min-width: 1200px) {
                      fill: $blue;
                  }
              }
          }
      }
  
      &__inner {
          overflow-y: auto;
          height: 100%;
          padding-bottom: 20px;
      }
  
      &__nav {
          margin-bottom: 80px;
      }
  
      &__list {
          padding-left: 40px;
  
          @media (min-width: 1200px) {
              padding-left: 0;
          }
      }
  
      &__item {
          padding: 20px 20px 20px 40px;
          border-bottom: 1px solid #A0A2A4;
      }
  
      &__link {
          color: $white;
          font-size: 24px;
          line-height: 33px;
          font-weight: 600;
          transition: .3s;
  
          &:hover {
              @media (min-width: 1200px) {
                  color: $blue;
              }
          }
      }
  
      &__link-favorites {
          position: relative;
  
          span {
              position: absolute;
              top: 50%;
              left: -80px;
              transform: translateY(-50%);
              min-width: 30px;
              height: 40px;
              padding: 9px 5px;
              border-radius: 0px 10px 10px 0px;
              font-size: 16px;
              line-height: 22px;
              font-weight: 600;
              text-align: center;
              color: $white;
              background-color: $blue;
              background-color: $blue;
  
              @media (min-width: 1200px) {
                  display: none;
              }
          }
      }
  
      &__contacts {
          margin-bottom: 40px;
          padding-left: 40px;
  
          @media (min-width: 1200px) {
              padding-left: 0;
          }
      }
  
      &__contact {
          display: block;
          width: fit-content;
          color: $white;
          font-size: 12px;
          line-height: 18px;
          font-weight: 700;
  
          &:not(:last-child) {
              margin-bottom: 20px;
          }
  
          span {
              display: block;
              font-size: 16px;
              line-height: 24px;
              font-weight: 500;
              transition: .3s;
          }
  
          &:hover {
              span {
                  @media (min-width: 1200px) {
                      color: $blue;
                  }
              }
          }
      }
  
      &__social {
          padding-left: 40px;
  
          @media (min-width: 1200px) {
              padding-left: 0;
          }
      }
  }