@comicrelief/component-library 8.77.2 → 8.77.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +999 -1081
- package/dist/index.es.js +14155 -15016
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Organisms/RichtextCarousel/RichtextCarousel.js +43 -76
- package/src/components/Organisms/RichtextCarousel/RichtextCarousel.style.js +88 -157
- package/src/components/Organisms/RichtextCarousel/RichtextCarousel.test.js +167 -382
- package/src/components/Organisms/RichtextCarousel/RichtextCarouselExample.jsx +2 -2
- package/src/components/Organisms/WYMDCarousel/WYMDCarousel.js +29 -5
- package/src/components/Organisms/WYMDCarousel/WYMDCarousel.style.js +1 -13
- package/src/components/Organisms/WYMDCarousel/WYMDCarouselExample.jsx +2 -1
- package/src/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +38 -22
- package/src/data/data.js +13 -12
|
@@ -18,6 +18,16 @@ it('renders default padding version correctly', () => {
|
|
|
18
18
|
text-align: center;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
.c2 * {
|
|
22
|
+
margin-top: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.c2 h1,
|
|
26
|
+
.c2 h2,
|
|
27
|
+
.c2 h3 {
|
|
28
|
+
margin-bottom: 1.5rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
21
31
|
.c1 {
|
|
22
32
|
height: 100%;
|
|
23
33
|
background: #FFFFFF;
|
|
@@ -28,100 +38,73 @@ it('renders default padding version correctly', () => {
|
|
|
28
38
|
box-shadow: rgba(0,0,0,0.15) 0px 0px 1rem;
|
|
29
39
|
}
|
|
30
40
|
|
|
31
|
-
.c1
|
|
32
|
-
margin-top: 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.c1 >div:first-child h1,
|
|
36
|
-
.c1 >div:first-child h2,
|
|
37
|
-
.c1 >div:first-child h3 {
|
|
38
|
-
margin-bottom: 1.5rem;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.c1 .carousel {
|
|
41
|
+
.c1 .splide {
|
|
42
42
|
position: relative;
|
|
43
43
|
margin: 0 auto;
|
|
44
44
|
padding-top: 2rem;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
.c1 .
|
|
48
|
-
|
|
47
|
+
.c1 .splide .splide__arrows {
|
|
48
|
+
width: 100%;
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: 0;
|
|
51
|
+
left: 0;
|
|
52
|
+
height: 100%;
|
|
53
|
+
width: 100%;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.c1 .splide button.splide__arrow {
|
|
49
57
|
position: absolute;
|
|
50
58
|
left: 0;
|
|
51
59
|
top: 0;
|
|
52
|
-
width: 33
|
|
60
|
+
width: 33.3%;
|
|
53
61
|
height: 100%;
|
|
54
|
-
padding: 0
|
|
62
|
+
padding: 0;
|
|
55
63
|
box-shadow: none;
|
|
56
64
|
text-indent: -9999px;
|
|
57
65
|
background-color: transparent;
|
|
58
|
-
|
|
66
|
+
transform: none;
|
|
67
|
+
border-radius: 0;
|
|
68
|
+
opacity: 1;
|
|
59
69
|
}
|
|
60
70
|
|
|
61
|
-
.c1 .
|
|
62
|
-
.c1 .carousel button.carousel__next-button:after {
|
|
71
|
+
.c1 .splide button.splide__arrow:after {
|
|
63
72
|
content: "";
|
|
64
73
|
position: absolute;
|
|
65
74
|
top: 0;
|
|
66
75
|
left: 0;
|
|
67
|
-
width:
|
|
76
|
+
width: 100%;
|
|
68
77
|
height: 100%;
|
|
69
78
|
transition: opacity 0.2s linear;
|
|
70
79
|
background: linear-gradient(90deg,#FFFFFF,#FFFFFF7a,#FFFFFF00);
|
|
71
80
|
}
|
|
72
81
|
|
|
73
|
-
.c1 .
|
|
74
|
-
.c1 .carousel button.carousel__next-button:hover:after {
|
|
75
|
-
opacity: 0.5;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.c1 .carousel button.carousel__next-button {
|
|
82
|
+
.c1 .splide button.splide__arrow.splide__arrow--next {
|
|
79
83
|
left: auto;
|
|
80
84
|
right: 0;
|
|
81
85
|
}
|
|
82
86
|
|
|
83
|
-
.c1 .
|
|
84
|
-
transform: translate(0,-50%) rotate(-90deg);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.c1 .carousel button.carousel__next-button:after {
|
|
87
|
+
.c1 .splide button.splide__arrow.splide__arrow--next:after {
|
|
88
88
|
left: auto;
|
|
89
89
|
right: 0;
|
|
90
90
|
background: linear-gradient(90deg,#FFFFFF00,#FFFFFF7a,#FFFFFF);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
.c1 .
|
|
94
|
-
|
|
95
|
-
-o-transition: transform 0.75s;
|
|
96
|
-
transition: transform 0.75s;
|
|
97
|
-
-webkit-transform: 0.75s;
|
|
98
|
-
will-change: transform;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.c1 .carousel .richtext-carousel .last-slide .slide-copy-wrapper:after {
|
|
102
|
-
content: none;
|
|
93
|
+
.c1 .splide button.splide__arrow:hover:after {
|
|
94
|
+
opacity: 0.5;
|
|
103
95
|
}
|
|
104
96
|
|
|
105
|
-
.c1 .
|
|
106
|
-
|
|
97
|
+
.c1 .splide button.splide__arrow svg {
|
|
98
|
+
display: none;
|
|
107
99
|
}
|
|
108
100
|
|
|
109
|
-
.c1 .
|
|
101
|
+
.c1 .splide.richtext-carousel .splide__slide {
|
|
110
102
|
text-align: center;
|
|
111
103
|
display: inline-flex;
|
|
112
104
|
align-items: center;
|
|
113
105
|
justify-content: flex-start;
|
|
114
106
|
flex-direction: column;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
.c1 .carousel .richtext-carousel .carousel__slide .carousel__inner-slide .slide-copy-wrapper {
|
|
118
|
-
font-size: 0.9rem;
|
|
119
|
-
line-height: 0.9rem;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.c1 .carousel .richtext-carousel .carousel__slide .carousel__inner-slide .slide-copy-wrapper * {
|
|
123
|
-
font-size: inherit;
|
|
124
|
-
line-height: inherit;
|
|
107
|
+
height: 300px;
|
|
125
108
|
}
|
|
126
109
|
|
|
127
110
|
.c0 {
|
|
@@ -130,82 +113,29 @@ it('renders default padding version correctly', () => {
|
|
|
130
113
|
}
|
|
131
114
|
|
|
132
115
|
@media (min-width: 740px) {
|
|
133
|
-
.c1 .carousel
|
|
134
|
-
|
|
135
|
-
width: 33.3%!important;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.c1 .carousel button.carousel__back-button:after,
|
|
139
|
-
.c1 .carousel button.carousel__next-button:after {
|
|
140
|
-
width: 100%;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
@media (min-width: 740px) {
|
|
145
|
-
.c1 .carousel .richtext-carousel .carousel__slide {
|
|
146
|
-
padding-bottom: 350px!important;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.c1 .carousel .richtext-carousel .carousel__slide .carousel__inner-slide >div:first-child {
|
|
150
|
-
transition: transform 0.75s ease;
|
|
151
|
-
transform-origin: center;
|
|
152
|
-
transform: scale(0.8);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.c1 .carousel .richtext-carousel .carousel__slide .carousel__inner-slide >div:first-child:after {
|
|
156
|
-
transition: transform 0.75s ease,width 0.75s ease,right 0.75s ease;
|
|
157
|
-
width: 100%;
|
|
158
|
-
right: calc(-100% - 6px);
|
|
159
|
-
transform: scale(1);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.c1 .carousel .richtext-carousel .carousel__slide.carousel__slide--visible .carousel__inner-slide >div:first-child:after {
|
|
163
|
-
width: 33%;
|
|
164
|
-
right: calc(-33% - 3px);
|
|
165
|
-
transform: scale(1);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.c1 .carousel .richtext-carousel .carousel__slide.carousel__slide--visible +.carousel__slide--visible .carousel__inner-slide >div:first-child {
|
|
169
|
-
transform: scale(1);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.c1 .carousel .richtext-carousel .carousel__slide.carousel__slide--visible +.carousel__slide--visible .carousel__inner-slide >div:first-child:after {
|
|
173
|
-
width: 33%;
|
|
174
|
-
right: calc(-33% + 3px);
|
|
175
|
-
transform: scale(0.8);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.c1 .carousel .richtext-carousel .carousel__slide.carousel__slide--visible +.carousel__slide--visible +.carousel__slide--visible >div>div:first-child {
|
|
179
|
-
transform: scale(0.8);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.c1 .carousel .richtext-carousel .carousel__slide.carousel__slide--visible +.carousel__slide--visible +.carousel__slide--visible >div>div:first-child:after {
|
|
183
|
-
width: 50%;
|
|
184
|
-
right: calc(-50% - 6px);
|
|
185
|
-
transform: scale(1);
|
|
116
|
+
.c1 .splide.richtext-carousel .splide__slide {
|
|
117
|
+
height: 350px;
|
|
186
118
|
}
|
|
187
119
|
}
|
|
188
120
|
|
|
189
121
|
@media (min-width: 1024px) {
|
|
190
|
-
.c1 .
|
|
191
|
-
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.c1 .carousel .richtext-carousel .carousel__slide.carousel__slide--visible +.carousel__slide--visible +.carousel__slide--visible .carousel__inner-slide >div:first-child:after {
|
|
195
|
-
right: calc(-125% - 5px);
|
|
196
|
-
width: 125%;
|
|
122
|
+
.c1 .splide.richtext-carousel .splide__slide {
|
|
123
|
+
height: 350px;
|
|
197
124
|
}
|
|
198
125
|
}
|
|
199
126
|
|
|
200
127
|
<div
|
|
201
128
|
className="c0"
|
|
129
|
+
data-testid="richtext-carousel--container"
|
|
202
130
|
>
|
|
203
131
|
<div
|
|
204
132
|
className="c1 CarouselWrapper"
|
|
133
|
+
data-testid="richtext-carousel--wrapper"
|
|
205
134
|
id="nqIEHjiYE8Yd2A2a5cI3O"
|
|
206
135
|
>
|
|
207
136
|
<div
|
|
208
137
|
className="c2"
|
|
138
|
+
data-testid="richtext-carousel--heading"
|
|
209
139
|
>
|
|
210
140
|
Some heading copy that will be nicely constructed in-situ
|
|
211
141
|
</div>
|
|
@@ -220,7 +150,7 @@ it('renders custom padding + background colour version correctly', () => {
|
|
|
220
150
|
).toJSON();
|
|
221
151
|
|
|
222
152
|
expect(tree).toMatchInlineSnapshot(`
|
|
223
|
-
.
|
|
153
|
+
.c4 {
|
|
224
154
|
background: #FFFFFF;
|
|
225
155
|
height: 300px;
|
|
226
156
|
width: 75%;
|
|
@@ -233,9 +163,16 @@ it('renders custom padding + background colour version correctly', () => {
|
|
|
233
163
|
position: relative;
|
|
234
164
|
overflow: visible;
|
|
235
165
|
word-wrap: break-word;
|
|
166
|
+
font-size: 0.9rem;
|
|
167
|
+
line-height: 0.9rem;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.c4 * {
|
|
171
|
+
font-size: inherit;
|
|
172
|
+
line-height: inherit;
|
|
236
173
|
}
|
|
237
174
|
|
|
238
|
-
.
|
|
175
|
+
.c4:after {
|
|
239
176
|
position: absolute;
|
|
240
177
|
content: '';
|
|
241
178
|
top: 50%;
|
|
@@ -249,9 +186,19 @@ it('renders custom padding + background colour version correctly', () => {
|
|
|
249
186
|
text-align: center;
|
|
250
187
|
}
|
|
251
188
|
|
|
189
|
+
.c2 * {
|
|
190
|
+
margin-top: 0;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.c2 h1,
|
|
194
|
+
.c2 h2,
|
|
195
|
+
.c2 h3 {
|
|
196
|
+
margin-bottom: 1.5rem;
|
|
197
|
+
}
|
|
198
|
+
|
|
252
199
|
.c1 {
|
|
253
200
|
height: 100%;
|
|
254
|
-
background: #
|
|
201
|
+
background: #F4F3F5;
|
|
255
202
|
max-width: 760px;
|
|
256
203
|
padding: 2.5rem 2rem 3.5rem;
|
|
257
204
|
margin: 0 auto;
|
|
@@ -259,100 +206,81 @@ it('renders custom padding + background colour version correctly', () => {
|
|
|
259
206
|
box-shadow: rgba(0,0,0,0.15) 0px 0px 1rem;
|
|
260
207
|
}
|
|
261
208
|
|
|
262
|
-
.c1
|
|
263
|
-
margin-top: 0;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.c1 >div:first-child h1,
|
|
267
|
-
.c1 >div:first-child h2,
|
|
268
|
-
.c1 >div:first-child h3 {
|
|
269
|
-
margin-bottom: 1.5rem;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
.c1 .carousel {
|
|
209
|
+
.c1 .splide {
|
|
273
210
|
position: relative;
|
|
274
211
|
margin: 0 auto;
|
|
275
212
|
padding-top: 2rem;
|
|
276
213
|
}
|
|
277
214
|
|
|
278
|
-
.c1 .
|
|
279
|
-
|
|
215
|
+
.c1 .splide .splide__arrows {
|
|
216
|
+
width: 100%;
|
|
217
|
+
position: absolute;
|
|
218
|
+
top: 0;
|
|
219
|
+
left: 0;
|
|
220
|
+
height: 100%;
|
|
221
|
+
width: 100%;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.c1 .splide button.splide__arrow {
|
|
280
225
|
position: absolute;
|
|
281
226
|
left: 0;
|
|
282
227
|
top: 0;
|
|
283
|
-
width: 33
|
|
228
|
+
width: 33.3%;
|
|
284
229
|
height: 100%;
|
|
285
|
-
padding: 0
|
|
230
|
+
padding: 0;
|
|
286
231
|
box-shadow: none;
|
|
287
232
|
text-indent: -9999px;
|
|
288
233
|
background-color: transparent;
|
|
289
|
-
|
|
234
|
+
transform: none;
|
|
235
|
+
border-radius: 0;
|
|
236
|
+
opacity: 1;
|
|
290
237
|
}
|
|
291
238
|
|
|
292
|
-
.c1 .
|
|
293
|
-
.c1 .carousel button.carousel__next-button:after {
|
|
239
|
+
.c1 .splide button.splide__arrow:after {
|
|
294
240
|
content: "";
|
|
295
241
|
position: absolute;
|
|
296
242
|
top: 0;
|
|
297
243
|
left: 0;
|
|
298
|
-
width:
|
|
244
|
+
width: 100%;
|
|
299
245
|
height: 100%;
|
|
300
246
|
transition: opacity 0.2s linear;
|
|
301
|
-
background: linear-gradient(90deg,#
|
|
247
|
+
background: linear-gradient(90deg,#F4F3F5,#F4F3F57a,#F4F3F500);
|
|
302
248
|
}
|
|
303
249
|
|
|
304
|
-
.c1 .
|
|
305
|
-
.c1 .carousel button.carousel__next-button:hover:after {
|
|
306
|
-
opacity: 0.5;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.c1 .carousel button.carousel__next-button {
|
|
250
|
+
.c1 .splide button.splide__arrow.splide__arrow--next {
|
|
310
251
|
left: auto;
|
|
311
252
|
right: 0;
|
|
312
253
|
}
|
|
313
254
|
|
|
314
|
-
.c1 .
|
|
315
|
-
transform: translate(0,-50%) rotate(-90deg);
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
.c1 .carousel button.carousel__next-button:after {
|
|
255
|
+
.c1 .splide button.splide__arrow.splide__arrow--next:after {
|
|
319
256
|
left: auto;
|
|
320
257
|
right: 0;
|
|
321
|
-
background: linear-gradient(90deg,#
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
.c1 .carousel .richtext-carousel {
|
|
325
|
-
transition: -webkit-transform 0.75s;
|
|
326
|
-
-o-transition: transform 0.75s;
|
|
327
|
-
transition: transform 0.75s;
|
|
328
|
-
-webkit-transform: 0.75s;
|
|
329
|
-
will-change: transform;
|
|
258
|
+
background: linear-gradient(90deg,#F4F3F500,#F4F3F57a,#F4F3F5);
|
|
330
259
|
}
|
|
331
260
|
|
|
332
|
-
.c1 .
|
|
333
|
-
|
|
261
|
+
.c1 .splide button.splide__arrow:hover:after {
|
|
262
|
+
opacity: 0.5;
|
|
334
263
|
}
|
|
335
264
|
|
|
336
|
-
.c1 .
|
|
337
|
-
|
|
265
|
+
.c1 .splide button.splide__arrow svg {
|
|
266
|
+
display: none;
|
|
338
267
|
}
|
|
339
268
|
|
|
340
|
-
.c1 .
|
|
269
|
+
.c1 .splide.richtext-carousel .splide__slide {
|
|
341
270
|
text-align: center;
|
|
342
271
|
display: inline-flex;
|
|
343
272
|
align-items: center;
|
|
344
273
|
justify-content: flex-start;
|
|
345
274
|
flex-direction: column;
|
|
275
|
+
height: 300px;
|
|
346
276
|
}
|
|
347
277
|
|
|
348
|
-
.c1 .
|
|
349
|
-
|
|
350
|
-
line-height: 0.9rem;
|
|
278
|
+
.c1 .splide.richtext-carousel .splide__slide.last-slide .c3:after {
|
|
279
|
+
content: none!important;
|
|
351
280
|
}
|
|
352
281
|
|
|
353
|
-
.
|
|
354
|
-
|
|
355
|
-
line-height: inherit;
|
|
282
|
+
.c5 .splide.richtext-carousel .splide__slide.last-slide .c3:after {
|
|
283
|
+
content: none!important;
|
|
356
284
|
}
|
|
357
285
|
|
|
358
286
|
.c0 {
|
|
@@ -361,288 +289,145 @@ it('renders custom padding + background colour version correctly', () => {
|
|
|
361
289
|
}
|
|
362
290
|
|
|
363
291
|
@media (min-width: 740px) {
|
|
364
|
-
.
|
|
292
|
+
.c4 {
|
|
365
293
|
height: 350px;
|
|
366
294
|
width: 85%;
|
|
367
295
|
}
|
|
368
296
|
}
|
|
369
297
|
|
|
370
298
|
@media (min-width: 1024px) {
|
|
371
|
-
.
|
|
299
|
+
.c4 {
|
|
372
300
|
height: 350px;
|
|
373
301
|
}
|
|
374
302
|
}
|
|
375
303
|
|
|
376
304
|
@media (min-width: 740px) {
|
|
377
|
-
.c1 .carousel
|
|
378
|
-
|
|
379
|
-
width: 33.3%!important;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.c1 .carousel button.carousel__back-button:after,
|
|
383
|
-
.c1 .carousel button.carousel__next-button:after {
|
|
384
|
-
width: 100%;
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
@media (min-width: 740px) {
|
|
389
|
-
.c1 .carousel .richtext-carousel .carousel__slide {
|
|
390
|
-
padding-bottom: 350px!important;
|
|
305
|
+
.c1 .splide.richtext-carousel .splide__slide {
|
|
306
|
+
height: 350px;
|
|
391
307
|
}
|
|
392
308
|
|
|
393
|
-
.c1 .
|
|
309
|
+
.c1 .splide.richtext-carousel .splide__slide .c3 {
|
|
394
310
|
transition: transform 0.75s ease;
|
|
395
311
|
transform-origin: center;
|
|
396
312
|
transform: scale(0.8);
|
|
397
313
|
}
|
|
398
314
|
|
|
399
|
-
.c1 .
|
|
315
|
+
.c1 .splide.richtext-carousel .splide__slide .c3:after {
|
|
400
316
|
transition: transform 0.75s ease,width 0.75s ease,right 0.75s ease;
|
|
401
|
-
width:
|
|
402
|
-
right: calc(-
|
|
403
|
-
transform: scale(1);
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
.c1 .carousel .richtext-carousel .carousel__slide.carousel__slide--visible .carousel__inner-slide >div:first-child:after {
|
|
407
|
-
width: 33%;
|
|
408
|
-
right: calc(-33% - 3px);
|
|
317
|
+
width: 50%;
|
|
318
|
+
right: calc(-50% - 1px);
|
|
409
319
|
transform: scale(1);
|
|
410
320
|
}
|
|
411
321
|
|
|
412
|
-
.c1 .
|
|
413
|
-
transform: scale(1);
|
|
322
|
+
.c1 .splide.richtext-carousel .splide__slide.is-active .c3 {
|
|
323
|
+
transform: scale(1.0);
|
|
414
324
|
}
|
|
325
|
+
}
|
|
415
326
|
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
transform: scale(0.8);
|
|
327
|
+
@media (min-width: 1024px) {
|
|
328
|
+
.c1 .splide.richtext-carousel .splide__slide {
|
|
329
|
+
height: 350px;
|
|
420
330
|
}
|
|
331
|
+
}
|
|
421
332
|
|
|
422
|
-
|
|
333
|
+
@media (min-width: 740px) {
|
|
334
|
+
.c5 .splide.richtext-carousel .splide__slide .c3 {
|
|
335
|
+
transition: transform 0.75s ease;
|
|
336
|
+
transform-origin: center;
|
|
423
337
|
transform: scale(0.8);
|
|
424
338
|
}
|
|
425
339
|
|
|
426
|
-
.
|
|
340
|
+
.c5 .splide.richtext-carousel .splide__slide .c3:after {
|
|
341
|
+
transition: transform 0.75s ease,width 0.75s ease,right 0.75s ease;
|
|
427
342
|
width: 50%;
|
|
428
|
-
right: calc(-50% -
|
|
343
|
+
right: calc(-50% - 1px);
|
|
429
344
|
transform: scale(1);
|
|
430
345
|
}
|
|
431
|
-
}
|
|
432
346
|
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
padding-bottom: 350px!important;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
.c1 .carousel .richtext-carousel .carousel__slide.carousel__slide--visible +.carousel__slide--visible +.carousel__slide--visible .carousel__inner-slide >div:first-child:after {
|
|
439
|
-
right: calc(-125% - 5px);
|
|
440
|
-
width: 125%;
|
|
347
|
+
.c5 .splide.richtext-carousel .splide__slide.is-active .c3 {
|
|
348
|
+
transform: scale(1.0);
|
|
441
349
|
}
|
|
442
350
|
}
|
|
443
351
|
|
|
444
352
|
<div
|
|
445
353
|
className="c0"
|
|
354
|
+
data-testid="richtext-carousel--container"
|
|
446
355
|
>
|
|
447
356
|
<div
|
|
448
357
|
className="c1 CarouselWrapper"
|
|
358
|
+
data-testid="richtext-carousel--wrapper"
|
|
449
359
|
id="nqIEHjiYE8Yd2A2a5cI31"
|
|
450
360
|
>
|
|
451
361
|
<div
|
|
452
362
|
className="c2"
|
|
363
|
+
data-testid="richtext-carousel--heading"
|
|
453
364
|
>
|
|
454
365
|
Some heading copy that will be nicely constructed in-situ
|
|
455
366
|
</div>
|
|
456
367
|
<div
|
|
457
|
-
className="carousel"
|
|
368
|
+
className="splide richtext-carousel"
|
|
369
|
+
data-testid="richtext-carousel--splide"
|
|
458
370
|
>
|
|
459
371
|
<div
|
|
460
|
-
|
|
461
|
-
aria-live="polite"
|
|
462
|
-
className="horizontalSlider___281Ls carousel__slider carousel__slider--horizontal"
|
|
463
|
-
onKeyDown={[Function]}
|
|
464
|
-
role="listbox"
|
|
465
|
-
style={{}}
|
|
372
|
+
className="splide__track"
|
|
466
373
|
>
|
|
467
|
-
<
|
|
468
|
-
className="
|
|
469
|
-
style={{}}
|
|
374
|
+
<ul
|
|
375
|
+
className="splide__list"
|
|
470
376
|
>
|
|
471
|
-
<
|
|
472
|
-
className="
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
onTouchEnd={[Function]}
|
|
477
|
-
onTouchMove={[Function]}
|
|
478
|
-
onTouchStart={[Function]}
|
|
479
|
-
style={
|
|
480
|
-
{
|
|
481
|
-
"flexDirection": "row",
|
|
482
|
-
"transform": "translateX(0%) translateX(0px)",
|
|
483
|
-
"width": "200%",
|
|
484
|
-
}
|
|
485
|
-
}
|
|
377
|
+
<li
|
|
378
|
+
className="splide__slide"
|
|
379
|
+
data-index={0}
|
|
380
|
+
data-testid="richtext-carousel--slide"
|
|
381
|
+
index={0}
|
|
486
382
|
>
|
|
487
383
|
<div
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
className="slide___3-Nqo slideHorizontal___1NzNV carousel__slide carousel__slide--visible"
|
|
491
|
-
onBlur={[Function]}
|
|
492
|
-
onFocus={[Function]}
|
|
493
|
-
role="option"
|
|
494
|
-
style={
|
|
495
|
-
{
|
|
496
|
-
"paddingBottom": "66.66666666666667%",
|
|
497
|
-
"width": "16.666666666666668%",
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
>
|
|
501
|
-
<div
|
|
502
|
-
className="slideInner___2mfX9 carousel__inner-slide"
|
|
503
|
-
style={{}}
|
|
504
|
-
/>
|
|
505
|
-
</div>
|
|
506
|
-
<div
|
|
507
|
-
aria-label="slide"
|
|
508
|
-
aria-selected={true}
|
|
509
|
-
className="slide___3-Nqo slideHorizontal___1NzNV carousel__slide carousel__slide--visible"
|
|
510
|
-
onBlur={[Function]}
|
|
511
|
-
onFocus={[Function]}
|
|
512
|
-
role="option"
|
|
513
|
-
style={
|
|
514
|
-
{
|
|
515
|
-
"paddingBottom": "66.66666666666667%",
|
|
516
|
-
"width": "16.666666666666668%",
|
|
517
|
-
}
|
|
518
|
-
}
|
|
384
|
+
className="c3 c4 slide-copy-wrapper"
|
|
385
|
+
data-testid="richtext-carousel--copy"
|
|
519
386
|
>
|
|
520
|
-
|
|
521
|
-
className="slideInner___2mfX9 carousel__inner-slide"
|
|
522
|
-
style={{}}
|
|
523
|
-
>
|
|
524
|
-
<div
|
|
525
|
-
className="c3 slide-copy-wrapper"
|
|
526
|
-
>
|
|
527
|
-
Some other longside but not really all that long copy, who knows, it could be this long or LESS.
|
|
528
|
-
</div>
|
|
529
|
-
</div>
|
|
530
|
-
</div>
|
|
531
|
-
<div
|
|
532
|
-
aria-label="slide"
|
|
533
|
-
aria-selected={true}
|
|
534
|
-
className="slide___3-Nqo slideHorizontal___1NzNV carousel__slide carousel__slide--visible"
|
|
535
|
-
onBlur={[Function]}
|
|
536
|
-
onFocus={[Function]}
|
|
537
|
-
role="option"
|
|
538
|
-
style={
|
|
539
|
-
{
|
|
540
|
-
"paddingBottom": "66.66666666666667%",
|
|
541
|
-
"width": "16.666666666666668%",
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
>
|
|
545
|
-
<div
|
|
546
|
-
className="slideInner___2mfX9 carousel__inner-slide"
|
|
547
|
-
style={{}}
|
|
548
|
-
>
|
|
549
|
-
<div
|
|
550
|
-
className="c3 slide-copy-wrapper"
|
|
551
|
-
>
|
|
552
|
-
140 character count limit imposed in messages to fix the design height of each container and restrict anomalies. This is based on Twitters character limit for tweets.
|
|
553
|
-
</div>
|
|
554
|
-
</div>
|
|
387
|
+
Some other longside but not really all that long copy, who knows, it could be this long or LESS.
|
|
555
388
|
</div>
|
|
389
|
+
</li>
|
|
390
|
+
<li
|
|
391
|
+
className="splide__slide"
|
|
392
|
+
data-index={1}
|
|
393
|
+
data-testid="richtext-carousel--slide"
|
|
394
|
+
index={1}
|
|
395
|
+
>
|
|
556
396
|
<div
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
className="slide___3-Nqo slideHorizontal___1NzNV carousel__slide carousel__slide--hidden"
|
|
560
|
-
onBlur={[Function]}
|
|
561
|
-
onFocus={[Function]}
|
|
562
|
-
role="option"
|
|
563
|
-
style={
|
|
564
|
-
{
|
|
565
|
-
"paddingBottom": "66.66666666666667%",
|
|
566
|
-
"width": "16.666666666666668%",
|
|
567
|
-
}
|
|
568
|
-
}
|
|
397
|
+
className="c3 c4 slide-copy-wrapper"
|
|
398
|
+
data-testid="richtext-carousel--copy"
|
|
569
399
|
>
|
|
570
|
-
|
|
571
|
-
className="slideInner___2mfX9 carousel__inner-slide"
|
|
572
|
-
style={{}}
|
|
573
|
-
>
|
|
574
|
-
<div
|
|
575
|
-
className="c3 slide-copy-wrapper"
|
|
576
|
-
>
|
|
577
|
-
Some other longside but not really all that long copy, who knows, it could be this long or LESS
|
|
578
|
-
</div>
|
|
579
|
-
</div>
|
|
400
|
+
140 character count limit imposed in messages to fix the design height of each container and restrict anomalies. This is based on Twitters character limit for tweets.
|
|
580
401
|
</div>
|
|
402
|
+
</li>
|
|
403
|
+
<li
|
|
404
|
+
className="splide__slide"
|
|
405
|
+
data-index={2}
|
|
406
|
+
data-testid="richtext-carousel--slide"
|
|
407
|
+
index={2}
|
|
408
|
+
>
|
|
581
409
|
<div
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
className="slide___3-Nqo slideHorizontal___1NzNV carousel__slide carousel__slide--hidden last-slide"
|
|
585
|
-
onBlur={[Function]}
|
|
586
|
-
onFocus={[Function]}
|
|
587
|
-
role="option"
|
|
588
|
-
style={
|
|
589
|
-
{
|
|
590
|
-
"paddingBottom": "66.66666666666667%",
|
|
591
|
-
"width": "16.666666666666668%",
|
|
592
|
-
}
|
|
593
|
-
}
|
|
410
|
+
className="c3 c4 slide-copy-wrapper"
|
|
411
|
+
data-testid="richtext-carousel--copy"
|
|
594
412
|
>
|
|
595
|
-
|
|
596
|
-
className="slideInner___2mfX9 carousel__inner-slide"
|
|
597
|
-
style={{}}
|
|
598
|
-
>
|
|
599
|
-
<div
|
|
600
|
-
className="c3 slide-copy-wrapper"
|
|
601
|
-
>
|
|
602
|
-
140 character count limit imposed in messages to fix the design height of each container and restrict anomalies. This is based on Twitters character limit for tweets. ABIGLONGLINETOFORCEONTOANEWONE
|
|
603
|
-
</div>
|
|
604
|
-
</div>
|
|
413
|
+
Some other longside but not really all that long copy, who knows, it could be this long or LESS
|
|
605
414
|
</div>
|
|
415
|
+
</li>
|
|
416
|
+
<li
|
|
417
|
+
className="splide__slide last-slide"
|
|
418
|
+
data-index={3}
|
|
419
|
+
data-testid="richtext-carousel--slide"
|
|
420
|
+
index={3}
|
|
421
|
+
>
|
|
606
422
|
<div
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
className="slide___3-Nqo slideHorizontal___1NzNV carousel__slide carousel__slide--hidden"
|
|
610
|
-
onBlur={[Function]}
|
|
611
|
-
onFocus={[Function]}
|
|
612
|
-
role="option"
|
|
613
|
-
style={
|
|
614
|
-
{
|
|
615
|
-
"paddingBottom": "66.66666666666667%",
|
|
616
|
-
"width": "16.666666666666668%",
|
|
617
|
-
}
|
|
618
|
-
}
|
|
423
|
+
className="c3 c4 slide-copy-wrapper"
|
|
424
|
+
data-testid="richtext-carousel--copy"
|
|
619
425
|
>
|
|
620
|
-
|
|
621
|
-
className="slideInner___2mfX9 carousel__inner-slide"
|
|
622
|
-
style={{}}
|
|
623
|
-
/>
|
|
426
|
+
140 character count limit imposed in messages to fix the design height of each container and restrict anomalies. This is based on Twitters character limit for tweets. ABIGLONGLINETOFORCEONTOANEWONE
|
|
624
427
|
</div>
|
|
625
|
-
</
|
|
626
|
-
</
|
|
428
|
+
</li>
|
|
429
|
+
</ul>
|
|
627
430
|
</div>
|
|
628
|
-
<button
|
|
629
|
-
aria-label="previous"
|
|
630
|
-
className="buttonBack___1mlaL carousel__back-button"
|
|
631
|
-
disabled={false}
|
|
632
|
-
onClick={[Function]}
|
|
633
|
-
type="button"
|
|
634
|
-
>
|
|
635
|
-
Back
|
|
636
|
-
</button>
|
|
637
|
-
<button
|
|
638
|
-
aria-label="next"
|
|
639
|
-
className="buttonNext___2mOCa carousel__next-button"
|
|
640
|
-
disabled={false}
|
|
641
|
-
onClick={[Function]}
|
|
642
|
-
type="button"
|
|
643
|
-
>
|
|
644
|
-
Next
|
|
645
|
-
</button>
|
|
646
431
|
</div>
|
|
647
432
|
</div>
|
|
648
433
|
</div>
|