Serialize whole quote
[wolnelektury.git] / src / wolnelektury / static / 2022 / styles / components / _media.scss
1 .c-media {
2     margin: 0 auto;
3
4     .only-s {
5         .l-button--fav {
6             margin-top: -10px;
7         }
8     }
9 }
10
11 .c-media__actions {
12     display: flex;
13     column-gap: 20px;
14     row-gap: 10px;
15 }
16
17 .c-media__btn {
18   width: 100%;
19   text-align: center;
20   align-items: center;
21
22   //&:nth-child(1) { padding-right: 19px; }
23   //&:nth-child(2) { padding-left: 19px; padding-right: 19px; }
24   //&:nth-child(3) { padding-left: 19px; }
25
26   .l-button {
27     width: 100%;
28     display: flex;
29     align-items: center;
30     justify-content: center;
31   }
32 }
33
34 .c-media__player {
35   margin-top: 35px;
36
37   h2 {
38     font-weight: $bold;
39     @include font-size(16px);
40     line-height: 19px;
41     text-align: center;
42     letter-spacing: 0.01em;
43     color: $color-gray;
44     margin: 0;
45   }
46 }
47
48 .c-media__caption {
49   color: #474747;
50   background: #F2F2F2;
51   padding: 15px 24px;
52   border-radius: 0 0 5px 5px;
53   margin: 0 auto;
54   display: flex;
55   gap: 10px;
56   align-items: center;
57   justify-content: space-between;
58   position: relative;
59
60   .icons {}
61   .content {
62     padding-left: 35px;
63     width: calc(100% - 145px);
64   }
65
66   .icon {
67     color: #808080;
68     font-size: 26px;
69     &:not(:last-child) {
70       margin-right: 16px;
71     }
72   }
73
74   p {
75     margin: 0;
76     color: #474747;
77     font-weight: normal;
78     font-size: 12px;
79     line-height: 140%;
80   }
81
82   .c-media__settings {
83       position: absolute;
84       left: 0;
85       right: 0;
86       top: 0;
87       z-index: 5;
88       min-height: 30px;
89       overflow: hidden;
90       
91       .icon {
92           position: absolute;
93           transition: .5s rotate;
94           bottom: 0;
95           right: 0;
96           line-height: 30px;
97           width: 40px;
98           text-align: center;
99           margin: 0;
100       }
101       > div {
102           height: 0;
103           transition: .5s height;
104           overflow: hidden;
105           background: #F2F2F2;
106           border-bottom: 5px solid #D5ECED;
107           margin-top: -5px;
108           > div {
109               padding: 30px;
110           }
111       }
112       &.active {
113           .icon {
114               rotate: 180deg;
115               
116           }
117           > div {
118               height: 150px;
119           }
120       }
121   }
122 }
123
124 .c-media__popup__box {
125     padding: 0;
126     border: 0;
127     background: none;
128     border-radius: 10px;
129
130     @include rwd($break-flow) {
131         min-width: 640px;
132     }
133
134     &::backdrop {
135         background-color: rgba($color-black, 0.35);
136     }
137 }
138
139 .c-media__popup__box__lead {
140   padding: 16px 50px 16px 16px;
141   background: #083F4D;
142
143   @include rwd($break-flow) {
144       padding: 40px;
145   }
146   
147   h2 {
148     margin-top: 0;
149     font-weight: 600;
150     font-size: 25px;
151     line-height: 140%;
152     letter-spacing: -0.01em;
153     color: #FFFFFF;
154   }
155
156   p {
157     letter-spacing: .01em;
158     margin-top: 0;
159     font-weight: normal;
160     font-size: 18px;
161     line-height: 150%;
162     color: #D5ECED;
163   }
164 }
165
166 .c-media__popup__box__items {
167     background: white;
168     padding: 16px;
169   @include rwd($break-flow) {
170       padding: 40px;
171   }
172 }
173
174 .c-media__popup__box__item {
175   display: flex;
176   align-items: center;
177   justify-content: space-between;
178   column-gap: 16px;
179   width: 100%;
180   padding: 20px 0;
181
182   &:not(:last-child) {
183     border-bottom: 1px solid #D9D9D9;
184   }
185
186   h3 {
187     margin-top: 0;
188     font-weight: bold;
189     font-size: 18px;
190     line-height: 166%;
191     letter-spacing: -0.005em;
192     color: #474747;
193     border-bottom: 0;
194     padding: 0;
195   }
196
197   p {
198     margin-top: 10px;
199     max-width: 390px;
200     font-weight: normal;
201     font-size: 15px;
202     line-height: 160%;
203     color: #808080;
204   }
205
206   ul {
207     list-style: none;
208     padding: 0;
209     margin: 10px 0 0;
210
211     li {
212       line-height: 1;
213
214       &:not(:last-child) {
215         margin-bottom: 15px;
216       }
217
218       a {
219         font-weight: normal;
220         font-size: 14px;
221         line-height: 16px;
222         letter-spacing: 0.01em;
223         text-decoration: underline;
224         color: #666666;
225
226         &:hover {
227           text-decoration: none;
228         }
229       }
230     }
231   }
232
233   .l-button {
234     padding: 6px 10px;
235     min-width: 120px;
236     display: block;
237     text-align: center;
238
239     color: $color-white;
240     background: #007880;
241     border: 2px solid #007880;
242
243     &:hover {
244       background: darken(#007880, 2%);
245       border-color: darken(#007880, 2%);
246     }
247   }
248 }
249
250 .c-media__popup__close {
251     --focus-ring: #fff;
252   position: absolute;
253   padding: 0;
254   border: 0;
255   cursor: pointer;
256   font-size: 0;
257   background-color: transparent;
258   top: 15px;
259   right: 20px;
260   transition: all $ease-dynamic 350ms;
261   opacity: 0.75;
262
263   &:hover {
264     opacity: 1;
265   }
266
267   @include rwd($break-flow) {
268       top: 35px;
269       right: 40px;
270   }
271 }
272
273 .book-cover-small img {
274     max-width: calc((100vw - 3 * 16px) / 2);
275 }