Serialize whole quote
[wolnelektury.git] / src / wolnelektury / static / 2022 / styles / layout / _books.scss
1 .l-books__wrapper {
2   margin-top: 27px;
3   width: 100%;
4   background-color: #F2F2F2;
5   padding-top: 38px;
6   position: relative;
7   padding-bottom: 80px;
8
9   h2 {
10     font-weight: 600;
11     font-size: 31px;
12     line-height: 140%;
13     letter-spacing: -0.01em;
14     color: #474747;
15     margin-top: 0;
16   }
17 }
18
19 .l-books {
20   display: flex;
21   flex-wrap: wrap;
22   margin-top: 36px;
23 }
24
25 .l-books__item {
26   background: #FFFFFF;
27   border-radius: 9px;
28   padding: 21px;
29   box-shadow: 0 4px 10px rgba(0, 0, 0, 0);
30   transition: all $ease-dynamic 350ms;
31   margin: 5px;
32
33   &.l-books__item--placeholder {
34     opacity: 0;
35     visibility: hidden;
36   }
37
38   &:hover {
39     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
40   }
41
42   &.l-books__item--link {
43     width: 212px;
44     height: 350px;
45
46     background-color: #007880;
47
48     font-weight: 600;
49     font-size: 21.5px;
50     line-height: 140%;
51     letter-spacing: -0.01em;
52     color: #FFFFFF;
53     --focus-ring: #fff;
54
55     display: flex;
56     flex-direction: column;
57     justify-content: space-between;
58
59     .icon-link {
60       margin-left: auto;
61       margin-right: 0;
62       &:hover {
63         text-decoration: none;
64       }
65     }
66
67     a {
68       &:hover {
69         color: white;
70       }
71     }
72   }
73
74   a {
75       color: currentColor;
76     &:hover {
77         text-decoration: underline;
78         color: $color-primary;
79     }
80   }
81
82   h2 {
83     font-weight: normal;
84     font-size: 18px;
85     line-height: 150%;
86     color: #474747;
87     margin: 0;
88   }
89   h3 {
90     font-weight: normal;
91     font-size: 15px;
92     line-height: 160%;
93     color: #808080;
94     margin: 0;
95   }
96   .other-info {
97       display: none;
98   }
99 }
100
101 .l-books__item__img {
102   font-size: 0;
103   margin: 0 0 11px;
104
105   a {
106       display: block;
107       img {
108           width: 100%;
109       }
110   }
111 }
112
113 .l-books__item__actions {
114   display: flex;
115   align-content: center;
116   justify-content: flex-start;
117   margin-bottom: 5px;
118
119   .icon {
120     color: #083F4D;
121     margin-right: 10px;
122     @include font-size(16px);
123
124     &.icon-like,
125     &.icon-liked {
126       color: #FF4C54;
127       @include font-size(19px);
128       margin-right: 0;
129       margin-left: auto;
130     }
131
132     &:hover {
133       text-decoration: none;
134     }
135   }
136 }
137
138 .l-books__header {
139   width: 100%;
140   display: flex;
141   gap: 16px;
142   flex-direction: column;
143   margin-top: 34px;
144   align-items: center;
145   justify-content: space-between;
146   align-items: stretch;
147
148   @include rwd($break-flow) {
149       flex-direction: row;
150   }
151 }
152
153 .l-books__input {
154   position: relative;
155   display: flex;
156   align-content: center;
157   @include rwd($break-flow) {
158       width: 560px;
159   }
160
161   .icon {
162     @include font-size(22px);
163     color: #083F4D;
164     position: absolute;
165     margin: auto;
166     top: 0;
167     bottom: 0;
168     left: 19px;
169     display: flex;
170     align-items: center;
171     justify-content: center;
172     pointer-events: none;
173   }
174
175   input {
176     font-family: $base-font;
177     font-size: 18px;
178     font-style: italic;
179     padding: 10px 20px 10px 50px;
180     border-radius: 52px;
181     border: 1px solid #D9D9D9;
182     width: 100%;
183     transition: border $ease-out 350ms;
184
185     @input rwd($break-flow) {
186         max-width: 580px;
187     }
188     
189     &:focus {
190       border-color: #007880;
191     }
192   }
193 }
194
195 .l-books__sorting {
196   display: flex;
197   align-content: center;
198   align-items: center;
199   justify-content: center;
200
201   span {
202     font-weight: $bold;
203     @include font-size(18px);
204     line-height: 150%;
205     color: #083F4D;
206   }
207
208   div {
209     display: flex;
210     align-content: center;
211     flex-direction: column;
212
213     @include rwd($break-flow) {
214         flex-direction: row;
215     }
216
217     select {
218         margin-left: 30px;
219         @include rwd($break-flow) {
220             display: none;
221         }
222     }
223     
224     button {
225       display: none;
226       border: 0;
227       padding: 0;
228       margin: 0 0 0 30px;
229       background-color: transparent;
230       font-weight: $regular;
231       @include font-size(18px);
232       line-height: 150%;
233       color: #808080;
234       cursor: pointer;
235
236       @include rwd($break-flow) {
237           display: block;
238       }
239       
240       &.is-active {
241         color: #083F4D;
242         font-weight: $semibold;
243       }
244     }
245   }
246 }
247
248 .l-books__grid {
249   display: flex;
250   flex-wrap: wrap;
251   margin-top: 34px;
252
253   .l-books__item {
254     border: 1px solid #D9D9D9;
255     margin-bottom: 17px;
256
257     &:nth-child(5n + 5) {
258       margin-right: 0;
259     }
260   }
261 }
262
263 .l-books__col {
264   display: flex;
265   flex-direction: column;
266   margin-top: 34px;
267
268   .l-books__item {
269       width: calc(100% - 10px);
270     border: 1px solid #D9D9D9;
271     margin-bottom: 17px;
272     display: flex;
273     position: relative;
274     @include rwd($break-flow) {
275         width: 705px;
276     }
277
278     .l-books__item__img {
279         margin-bottom: 0;
280     }
281
282     .l-books__item__actions {
283         margin-top: 16px;
284         @include rwd($break-flow) {
285             position: absolute;
286             top: 21px;
287             left: auto;
288             right: 11px;
289         }
290     }
291   }
292 }
293
294 .l-books__item__content {
295     padding-left: 16px;
296     @include rwd($break-flow) {
297         padding-left: 40px;
298     }
299
300   h2 {
301     font-weight: $semibold;
302     @include font-size(21px);
303     line-height: 140%;
304     letter-spacing: -0.01em;
305   }
306
307   p {
308     max-width: 390px;
309     margin-top: 20px;
310     font-weight: $regular;
311     @include font-size(18px);
312     line-height: 150%;
313     color: #474747;
314   }
315
316   & > a {
317     display: block;
318     margin-top: 20px;
319     font-weight: $regular;
320     @include font-size(18px);
321     line-height: 150%;
322     color: #007880;
323   }
324 }
325
326
327 .l-art__preview {
328     width: 100%;
329 }