8209a3bb6b60bc51372516bd0a7465c276b8547a
[wolnelektury.git] / src / wolnelektury / static / 2022 / styles / layout / _navigation.scss
1 .l-navigation {
2   max-width: 100%;
3   margin: 0 auto;
4   background-color: #083F4D;
5   padding: 12px 0;
6   display: flex;
7   align-items: center;
8   justify-content: space-between;
9   flex-direction: column;
10
11   .l-container {
12     display: flex;
13     align-items: center;
14     justify-content: space-between;
15   }
16
17   &.is-open {
18     position: fixed;
19     top: 0; left: 0;
20     width: 100%;
21     z-index: $master-layer;
22     .l-navigation__menu {
23       opacity: 1;
24       pointer-events: all;
25     }
26
27     .c-lang {
28       opacity: 1;
29       .c-lang__button {
30         pointer-events: all;
31       }
32     }
33   }
34 }
35
36 .l-navigation__logo {
37   position: relative;
38   z-index: $master-layer + 1;
39
40   @include rwd(tablet) {
41     img {
42       width: 153px;
43     }
44   }
45 }
46
47 .l-navigation__button {
48   appearance: none;
49   border: 0;
50   background: 0;
51   padding: 0;
52   margin: 0;
53   outline: 0;
54   position: relative;
55   z-index: $master-layer + 1;
56 }
57
58 .l-naviagion__search {
59   width: 60%;
60   max-width: 580px;
61   margin-left: 60px;
62   margin-right: auto;
63
64   @include rwd(tablet) {
65     margin-left: 20px;
66     margin-right: 20px;
67   }
68
69   input {
70     font-family: $base-font;
71     font-size: 18px;
72     font-style: italic;
73     border: 0;
74     padding: 10px 20px;
75     border-radius: 52px;
76     width: 100%;
77     max-width: 580px;
78     outline: 0;
79   }
80 }
81
82 .l-navigation__actions {
83   display: flex;
84   align-items: center;
85   justify-content: center;
86
87   .icon-liked {
88     color: #85C7CC;
89     font-size: 30px;
90     margin-right: 25px;
91   }
92   
93   @include rwd(tablet) {
94     a {
95       display: none;
96     }
97   }
98 }
99
100 .l-change-pop {
101   align-items: center;
102   max-width: 1140px;
103   border-radius: 10px;
104   padding: 10px 50px;
105   width: 100%;
106   margin-bottom: 10px;
107   background-color: #FBC40F;
108   position: relative;
109   display: none;
110
111   &.show {
112     display: flex;
113   }
114
115   h3 {
116     font-style: italic;
117     font-weight: normal;
118     font-size: 32px;
119     line-height: 100%;
120     letter-spacing: -0.02em;
121     color: #333333;
122     margin: 0;
123     min-width: 189px;
124     margin-right: 48px;
125   }
126
127   p {
128     font-weight: normal;
129     font-size: 15px;
130     line-height: 150%;
131     color: #333333;
132     margin: 0;
133     max-width: 590px;
134   }
135 }
136
137 .l-change-pop__close {
138   border: 0;
139   background: transparent;
140   color: #333333;
141   outline: 0;
142   position: absolute;
143   right: 26px;
144   top: 0;
145   bottom: 0;
146   margin: auto;
147   cursor: pointer;
148 }
149
150 .l-navigation__menu {
151   position: fixed;
152   top: 0; left: 0;
153   width: 100%; height: 100%;
154   background-color: #083F4D;
155   z-index: $master-layer;
156   padding-top: 93px;
157   opacity: 0;
158   pointer-events: none;
159   transition: opacity 350ms $ease-out;
160
161   .l-container {
162     display: flex;
163     flex-direction: column;
164   }
165 }
166
167 .l-navigation__menu__links {
168   width: 100%;
169   display: flex;
170   justify-content: space-between;
171
172   @include rwd(tablet) {
173     flex-wrap: wrap;
174     max-height: calc(100vh - 120px);
175     overflow-y: scroll;
176   }
177
178   ul {
179     margin: 0;
180     padding: 0;
181     list-style: none;
182     max-width: 212px;
183
184     @include rwd(tablet) {
185       width: 100%;
186       max-width: 100%;
187       margin-bottom: 20px;
188     }
189
190     li {
191       font-weight: $regular;
192       @include font-size(18px);
193       line-height: 100%;
194       padding-top: 16px;
195
196       strong {
197         color: #92BD39;
198         font-weight: $semibold;
199         @include font-size(21px);
200         line-height: 140%;
201         letter-spacing: -0.01em;
202       }
203
204       a {
205         color: $color-white;
206         &:hover {
207           text-decoration: underline;
208         }
209       }
210
211       hr {
212         width: 34px;
213         height: 1px;
214         background: #007880;
215         margin-left: 0;
216         border: 0;
217       }
218     }
219   }
220 }
221
222 .l-navigation__menu__info {
223   display: flex;
224   width: 100%;
225   padding-top: 58px;
226   justify-content: space-between;
227   align-items: flex-end;
228 }
229
230 .l-navigation__menu__book {
231   p {
232     color: $color-white;
233     @include font-size(21px);
234     line-height: 140%;
235     strong {
236       color: #92BD39;
237       letter-spacing: -0.01em;
238       font-weight: $semibold;
239     }
240   }
241 }
242
243 .l-navigation__menu__book__info {
244   display: flex;
245   margin-top: 20px;
246   align-items: flex-start;
247   padding: 12px;
248   background-color: $color-white;
249   border-radius: 6px;
250   color: #808080;
251
252   img {
253     margin-right: 10px;
254   }
255
256   h3 {
257     margin: 0;
258     font-weight: $regular;
259     @include font-size(15px);
260     line-height: 120%;
261     width: 150px;
262     strong {
263       display: block;
264       font-weight: $semibold;
265       @include font-size(18px);
266       line-height: 130%;
267     }
268   }
269
270   p {
271     margin: 0;
272     width: 427px;
273     font-weight: $regular;
274     @include font-size(15px);
275     line-height: 130%;
276     color: #808080;
277   }
278 }
279
280 .l-navigation__menu__social {
281   ul {
282     display: flex;
283     list-style: none;
284     padding: 0;
285     margin: 0;
286     li {
287       &:not(:last-child) {
288         margin-right: 36px;
289       }
290       a {
291         color: $color-white;
292         &:hover {
293           color: #92BD39;
294         }
295       }
296       .icon {
297         @include font-size(28px);
298       }
299     }
300   }
301 }