More a11y: dialogs on book page
[wolnelektury.git] / src / wolnelektury / static / 2022 / more.scss
1 @import "styles/utils/mixins";
2
3 .l-collections .l-books {
4     width: 100%;
5 }
6 .l-books, .l-books__grid {
7     @include rwd($break-wide) {
8         //justify-content: space-between;
9         gap: 20px;
10         .l-books__item {
11             margin: 0;
12         }
13     }
14 }
15
16 .slick-track {
17     margin: 0;
18
19     .l-books__item {
20         @include rwd($break-wide) {
21
22             width: 214.4px;
23             margin-left: 17px;
24             margin-right: 0;
25             &:first-of-type {
26                 margin-left: 0px;
27             }
28         }
29     }
30 }
31
32
33
34 .l-books__item {
35     //transition: opacity .1s, all cubic-bezier(0.25, 1, 0.5, 1) 350ms;
36
37     width: 100%;
38     padding: 5.28vw;
39
40     @include rwd($B2) {
41         width: calc(50vw - 32px/2 - 10px);
42         padding: 3.8vw;
43     }
44     @include rwd($B3) {
45         width: calc(33.33vw - 32px/3 - 10px);
46         padding: 2.73vw;
47     }
48     @include rwd($B4) {
49         width: calc(25vw - 32px/4 - 10px);
50         padding: 2.1vw;
51     }
52
53     @include rwd($B5) {
54         width: calc(20vw - 32px/5 - 10px);
55         padding: 1.63vw;
56     }
57
58     @include rwd($break-wide) {
59         width: 212px;
60         padding: 21px;
61     }
62 }
63
64
65
66
67
68 .by-popularity {
69     .l-books__item {
70         order: attr(data-pop);
71     }
72 }
73
74
75
76 .toggle-input {
77     left: calc(50% - 77px/2);
78     opacity: 0;
79     position: absolute;
80     //top: 0;
81     height: 26px;
82     width: 77px;
83     z-index: 2;
84
85     &:checked {
86         z-index: 0;
87     }
88 }
89
90 .l-checkout__box {
91     position: relative;
92 }
93
94
95 .l-checkout__footer__content__item > div ul {
96   font-weight: normal;
97   font-size: 15px;
98   line-height: 150%;
99   color: #808080;
100 }
101
102
103 .l-checkout__form__row {
104     .iframe {
105         margin-bottom: 16px;
106     }
107 }
108
109
110
111 .l-books__item__content {
112     width: 100%;
113    
114     .fragment-text {
115         max-width: 390px;
116         margin-top: 20px;
117         font-weight: 400;
118         font-size: 18px;
119         font-size: 1.125rem;
120         line-height: 150%;
121         color: #474747;
122         
123         h1, h2, h3, h4 {
124             font-size: 1em;
125         }
126     }
127 }
128
129
130
131 #user-menu {
132     --focus-ring: #083F4D;
133     position-area: bottom span-right;
134     position:absolute;
135     width: 186px;
136     top: 8px;
137
138     /* yellow 900 */
139     background: #F7BA00;
140     border: none;
141     box-shadow: 0px 0px 20px rgba(1, 129, 137, 0.2);
142     border-radius: 10px;
143     overflow: hidden;
144
145     opacity:0;
146     transition: all 350ms cubic-bezier(.0, 0, .2, 1), // $ease-out
147               display 350ms allow-discrete,
148               overlay 350ms allow-discrete;
149     
150     &:popover-open {
151         opacity: 100%;
152     }
153
154     ul {
155         margin: 0;
156         padding: 0;
157         list-style: none;
158
159         li {
160             a {
161                 color: #474747;
162                 display: block;
163                 line-height: 27px;
164                 padding: 8px 21px;
165                 &:hover {
166                     color: #474747;
167                     background: #EDAA00;
168                 }
169
170                 strong {
171                     font-weight: 600;
172                 }
173             }
174         }
175     }
176 }
177
178 @starting-style {
179   #user-menu:popover-open {
180     opacity: 0;
181     transform: translateY(-10px);
182   }
183 }
184
185
186 form {
187     label.required:before {
188         content: "* ";
189         color: #FF4C54;
190     }
191     .helptext {
192         color: #808080;
193         font-size: 15px;
194         line-height: 150%;
195         margin-bottom: 30px;
196     }
197
198 }
199
200 .socialaccount_providers {
201     list-style: none;
202     padding: 0;
203
204     li {
205         display: inline-block;
206         margin-right: 10px;
207     }
208 }
209
210
211
212
213
214 .experiment {
215     display: flex;
216     margin: 1em 16px;
217     font-size: 1.5em;
218     align-items: center;
219     flex-direction: column;
220     margin-top: 2em;
221     @include rwd($break-flow) {
222         flex-direction: row;
223         align-items: flex-end;
224     }
225
226     > span, > div {
227        text-align: center;
228        @include rwd($break-flow) {
229            width: 50%;
230        }
231     }        
232 }
233
234
235 .legend {
236     margin: 1em 16px;
237     font-size: .7em;
238     color: #777;
239     text-align:right;
240     font-style:italic;
241 }
242
243
244 .funding-promo-bar {
245     margin: auto;
246
247     .l-checkout__support {
248         margin: 18px 0;
249         a {
250             display: flex;
251             align-items: start;
252             gap: 0 10px;
253
254             flex-wrap: wrap;
255             @include rwd($B4) {
256                 flex-wrap: nowrap;
257             }
258
259             .buttonlike {
260                 background: #FFA500;
261                 //color: #083F4D;
262                 color: black;
263                 border-radius: 5px;
264                 font-size: 1.125rem;
265                 line-height: 50px;
266                 letter-spacing: -0.01em;
267                 padding: 0 20px;
268                 font-weight: 600;
269                 transition: all cubic-bezier(0.25, 1, 0.5, 1) 350ms;
270                 &:hover {
271                     background: #92BD39;
272                 }
273             }
274             .funding-bar-container {
275                 flex-grow: 1;
276
277                 display: contents;
278                 @include rwd($B4) {
279                     display: block;
280                 }
281             }
282         }
283     }
284 }
285
286 .l-checkout__support__bar {
287     overflow: hidden;
288 }
289
290 .poll-bar {
291     height: 10px;
292     width: 100%;
293     display: block;
294     border-radius: 5px;
295     position: relative;
296     overflow: hidden;
297
298     .poll-bar-inner {
299       height: 100%;
300       position: absolute;
301       border-radius: 5px;
302       background-color: #006066;
303       top: 0; left: 0;
304     }
305 }