@primer/brand-css 0.80.0-rc.4bfa3a79 → 0.80.0-rc.b232dc70
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/components/CarouselPagination/CarouselPagination.css +118 -0
- package/components/IconButton/IconButton.css +1 -1
- package/components/Tabs/Tabs.css +1 -30
- package/components/Testimonial/Testimonial.css +114 -87
- package/components/TestimonialGroup/TestimonialGroup.css +111 -0
- package/package.json +1 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
.CarouselPagination {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
flex: 0 1 auto;
|
|
4
|
+
min-width: 0;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: calc(var(--base-size-8) + var(--base-size-2));
|
|
7
|
+
width: -moz-max-content;
|
|
8
|
+
width: max-content;
|
|
9
|
+
max-width: 100%;
|
|
10
|
+
padding: var(--base-size-6);
|
|
11
|
+
border-radius: var(--brand-borderRadius-full);
|
|
12
|
+
background: var(--brand-CarouselPagination-bgColor);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.CarouselPagination .CarouselPagination__arrowButton {
|
|
16
|
+
width: calc(var(--base-size-28) + var(--base-size-2));
|
|
17
|
+
min-width: calc(var(--base-size-28) + var(--base-size-2));
|
|
18
|
+
height: calc(var(--base-size-28) + var(--base-size-2));
|
|
19
|
+
min-height: calc(var(--base-size-28) + var(--base-size-2));
|
|
20
|
+
padding: 0;
|
|
21
|
+
color: var(--brand-CarouselPagination-arrowButton-fgColor);
|
|
22
|
+
background: var(--brand-color-canvas-default);
|
|
23
|
+
border: var(--brand-borderWidth-thin) solid var(--brand-CarouselPagination-arrowButton-borderColor);
|
|
24
|
+
box-shadow: none;
|
|
25
|
+
backdrop-filter: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.CarouselPagination .CarouselPagination__arrowButton--inactive,
|
|
29
|
+
.CarouselPagination .CarouselPagination__arrowButton--inactive:hover {
|
|
30
|
+
color: var(--brand-CarouselPagination-arrowButton-inactive-fgColor);
|
|
31
|
+
background: var(--brand-color-canvas-default);
|
|
32
|
+
border-color: transparent;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.CarouselPagination .CarouselPagination__arrowButton svg {
|
|
36
|
+
width: var(--base-size-16);
|
|
37
|
+
height: var(--base-size-16);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (hover: hover) and (pointer: fine) {
|
|
41
|
+
.CarouselPagination .CarouselPagination__arrowButton--available:hover {
|
|
42
|
+
background: var(--brand-CarouselPagination-bgColor);
|
|
43
|
+
border-color: var(--brand-CarouselPagination-arrowButton-borderColor);
|
|
44
|
+
box-shadow: none;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.CarouselPagination__indicators {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
gap: var(--base-size-6);
|
|
52
|
+
width: calc(var(--base-size-6) * (var(--carousel-pagination-item-count) * 2 + 0.5));
|
|
53
|
+
min-width: 0;
|
|
54
|
+
height: calc(var(--base-size-28) + var(--base-size-2));
|
|
55
|
+
overflow-x: auto;
|
|
56
|
+
scroll-behavior: smooth;
|
|
57
|
+
scrollbar-width: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.CarouselPagination__indicator {
|
|
61
|
+
position: relative;
|
|
62
|
+
flex: none;
|
|
63
|
+
width: var(--base-size-6);
|
|
64
|
+
height: var(--base-size-6);
|
|
65
|
+
padding: 0;
|
|
66
|
+
border: 0;
|
|
67
|
+
border-radius: var(--brand-borderRadius-full);
|
|
68
|
+
background: var(--brand-CarouselPagination-indicator-bgColor);
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
transition: width var(--brand-animation-duration-fast) cubic-bezier(0.4, 0, 0.2, 1),
|
|
71
|
+
background-color var(--brand-animation-duration-fast) cubic-bezier(0.4, 0, 0.2, 1);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.CarouselPagination__indicator::before {
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: 50%;
|
|
77
|
+
left: 50%;
|
|
78
|
+
width: calc(100% + var(--base-size-6));
|
|
79
|
+
height: calc(var(--base-size-28) + var(--base-size-2));
|
|
80
|
+
content: '';
|
|
81
|
+
transform: translate(-50%, -50%);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.CarouselPagination__indicator--active {
|
|
85
|
+
width: calc(var(--base-size-6) * 2.5);
|
|
86
|
+
background: var(--brand-CarouselPagination-indicator-active-bgColor);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.CarouselPagination__indicator:focus-visible {
|
|
90
|
+
outline: var(--brand-borderWidth-thick) solid var(--brand-color-focus);
|
|
91
|
+
outline-offset: var(--base-size-4);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.CarouselPagination__arrowButton:focus-visible {
|
|
95
|
+
outline: var(--brand-borderWidth-thick) solid var(--brand-color-focus);
|
|
96
|
+
outline-offset: var(--base-size-2);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@media (prefers-reduced-motion: reduce) {
|
|
100
|
+
.CarouselPagination__indicators {
|
|
101
|
+
scroll-behavior: auto;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.CarouselPagination__indicator {
|
|
105
|
+
transition: none;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@media (forced-colors: active) {
|
|
110
|
+
.CarouselPagination__indicator {
|
|
111
|
+
background: ButtonText;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.CarouselPagination__indicator--active {
|
|
115
|
+
background: Highlight;
|
|
116
|
+
forced-color-adjust: none;
|
|
117
|
+
}
|
|
118
|
+
}
|
package/components/Tabs/Tabs.css
CHANGED
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
.Tabs__panelContainer {
|
|
171
|
-
margin-
|
|
171
|
+
margin-block-start: var(--base-size-16);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
.Tabs__panel {
|
|
@@ -179,35 +179,6 @@
|
|
|
179
179
|
margin-block-end: var(--base-size-12);
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
.Tabs__indicator {
|
|
183
|
-
width: var(--base-size-6);
|
|
184
|
-
border-radius: var(--brand-borderRadius-full);
|
|
185
|
-
background-color: var(--brand-color-text-muted);
|
|
186
|
-
height: var(--base-size-6);
|
|
187
|
-
transition: width var(--brand-animation-duration-default) var(--brand-animation-easing-default);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.Tabs__indicator--active {
|
|
191
|
-
background-color: var(--brand-color-text-default);
|
|
192
|
-
width: var(--base-size-24);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.Tabs__control {
|
|
196
|
-
background-color: transparent;
|
|
197
|
-
border: none;
|
|
198
|
-
cursor: pointer;
|
|
199
|
-
height: var(--base-size-24);
|
|
200
|
-
width: var(--base-size-24);
|
|
201
|
-
display: flex;
|
|
202
|
-
align-content: center;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.Tabs__control-icon {
|
|
206
|
-
vertical-align: middle !important; /* Required to override dotcom styles */
|
|
207
|
-
position: relative;
|
|
208
|
-
top: calc(var(--base-size-2) / -2);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
182
|
@media screen and (min-width: 48rem) {
|
|
212
183
|
.Tabs__controls {
|
|
213
184
|
display: none;
|
|
@@ -35,10 +35,7 @@
|
|
|
35
35
|
.Testimonial--variant-subtle::before,
|
|
36
36
|
.Testimonial--variant-default::before {
|
|
37
37
|
position: absolute;
|
|
38
|
-
|
|
39
|
-
right: 0;
|
|
40
|
-
bottom: 0;
|
|
41
|
-
left: 0;
|
|
38
|
+
inset: 0;
|
|
42
39
|
pointer-events: none;
|
|
43
40
|
content: '';
|
|
44
41
|
border-radius: inherit;
|
|
@@ -56,55 +53,46 @@
|
|
|
56
53
|
border: var(--brand-borderWidth-thin) solid var(--brand-color-border-default);
|
|
57
54
|
}
|
|
58
55
|
|
|
59
|
-
.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
);
|
|
65
|
-
--brand-Testimonial-quoteMarkColor-background: var(
|
|
66
|
-
--brand-Testimonial-quoteMarkColor-gradient,
|
|
67
|
-
var(--brand-Testimonial-quoteMarkColor, currentColor)
|
|
68
|
-
);
|
|
69
|
-
color: var(--brand-Testimonial-quoteMarkColor-start, var(--brand-Testimonial-quoteMarkColor, currentColor));
|
|
70
|
-
font-size: var(--base-size-48);
|
|
71
|
-
line-height: var(--base-size-48);
|
|
72
|
-
font-weight: var(--base-text-weight-extrabold);
|
|
73
|
-
position: relative;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.Testimonial__quoteMark::before {
|
|
77
|
-
content: '';
|
|
78
|
-
position: absolute;
|
|
79
|
-
inset: 0;
|
|
80
|
-
background: var(--brand-Testimonial-quoteMarkColor-background);
|
|
81
|
-
-webkit-mask: linear-gradient(var(--brand-color-canvas-default), var(--brand-color-canvas-default)) content-box,
|
|
82
|
-
linear-gradient(var(--brand-color-canvas-default), var(--brand-color-canvas-default));
|
|
83
|
-
mask: linear-gradient(var(--brand-color-canvas-default), var(--brand-color-canvas-default)) content-box,
|
|
84
|
-
linear-gradient(var(--brand-color-canvas-default), var(--brand-color-canvas-default));
|
|
85
|
-
-webkit-mask-composite: xor;
|
|
86
|
-
mask-composite: exclude;
|
|
56
|
+
.Testimonial--variant-subtle .Testimonial__quoteWrapper,
|
|
57
|
+
.Testimonial--variant-default .Testimonial__quoteWrapper {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
gap: calc(var(--base-size-24) + var(--base-size-16));
|
|
87
61
|
}
|
|
88
62
|
|
|
89
|
-
.Testimonial__quoteMark
|
|
63
|
+
.Testimonial__quoteMark {
|
|
64
|
+
position: relative;
|
|
90
65
|
display: inline-flex;
|
|
66
|
+
flex: none;
|
|
91
67
|
align-items: center;
|
|
92
68
|
justify-content: center;
|
|
93
69
|
width: calc(var(--base-size-48) + var(--base-size-8));
|
|
94
70
|
height: calc(var(--base-size-48) + var(--base-size-8));
|
|
95
71
|
border-radius: var(--base-size-12);
|
|
72
|
+
color: var(--brand-Testimonial-quoteMarkColor, currentColor);
|
|
96
73
|
background-color: var(--brand-Testimonial-quoteMarkBackground, var(--base-color-scale-gray-0));
|
|
97
|
-
font-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
.Testimonial--size-large .Testimonial__quoteMark:not(.Testimonial__quoteMark--hasBackground) {
|
|
102
|
-
font-size: 7.5rem; /* 120px */
|
|
74
|
+
font-family: var(--brand-fontStack-monospace);
|
|
75
|
+
font-size: 4rem;
|
|
76
|
+
font-weight: var(--base-text-weight-normal);
|
|
103
77
|
line-height: 1;
|
|
104
78
|
}
|
|
105
79
|
|
|
106
80
|
.Testimonial__quoteMarkGlyph {
|
|
107
81
|
display: block;
|
|
82
|
+
transform: translateY(var(--base-size-12));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.Testimonial--variant-default .Testimonial__quoteMark,
|
|
86
|
+
.Testimonial--variant-subtle .Testimonial__quoteMark {
|
|
87
|
+
width: var(--base-size-40);
|
|
88
|
+
height: var(--base-size-40);
|
|
89
|
+
border-radius: var(--base-size-8);
|
|
90
|
+
font-size: 3rem;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.Testimonial--variant-default .Testimonial__quoteMarkGlyph,
|
|
94
|
+
.Testimonial--variant-subtle .Testimonial__quoteMarkGlyph {
|
|
95
|
+
transform: translateY(var(--base-size-8));
|
|
108
96
|
}
|
|
109
97
|
|
|
110
98
|
.Testimonial-quote {
|
|
@@ -133,7 +121,7 @@
|
|
|
133
121
|
display: flex;
|
|
134
122
|
gap: var(--base-size-16);
|
|
135
123
|
align-items: center;
|
|
136
|
-
margin-
|
|
124
|
+
margin-block-start: var(--base-size-24);
|
|
137
125
|
}
|
|
138
126
|
|
|
139
127
|
.Testimonial-logo-image {
|
|
@@ -141,7 +129,7 @@
|
|
|
141
129
|
}
|
|
142
130
|
|
|
143
131
|
.Testimonial--size-large .Testimonial__media {
|
|
144
|
-
margin-
|
|
132
|
+
margin-block-start: var(--base-size-64);
|
|
145
133
|
}
|
|
146
134
|
|
|
147
135
|
.Testimonial-caption {
|
|
@@ -225,19 +213,6 @@
|
|
|
225
213
|
letter-spacing: 0.01em;
|
|
226
214
|
}
|
|
227
215
|
|
|
228
|
-
.Testimonial--variant-expressive .Testimonial__quoteMark {
|
|
229
|
-
font-family: var(--brand-fontStack-monospace);
|
|
230
|
-
font-weight: var(--brand-fontWeight-300);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.Testimonial--variant-expressive .Testimonial__quoteMarkGlyph {
|
|
234
|
-
transform: translateY(var(--base-size-12));
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.Testimonial--variant-expressive .Testimonial__quoteMark:not(.Testimonial__quoteMark--hasBackground) {
|
|
238
|
-
margin-left: -0.18em;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
216
|
.Testimonial--variant-expressive .Testimonial-quote {
|
|
242
217
|
font-family: var(--brand-fontStack-monospace);
|
|
243
218
|
font-size: 1.5rem;
|
|
@@ -300,7 +275,7 @@
|
|
|
300
275
|
}
|
|
301
276
|
|
|
302
277
|
.Testimonial--variant-expressive .Testimonial-quote {
|
|
303
|
-
font-size:
|
|
278
|
+
font-size: 2rem;
|
|
304
279
|
}
|
|
305
280
|
|
|
306
281
|
.Testimonial--variant-expressive .Testimonial-link {
|
|
@@ -321,14 +296,14 @@
|
|
|
321
296
|
}
|
|
322
297
|
|
|
323
298
|
.Testimonial-link {
|
|
324
|
-
margin-
|
|
299
|
+
margin-block-start: var(--base-size-8);
|
|
325
300
|
}
|
|
326
301
|
|
|
327
302
|
.Testimonial--variant-expressive .Testimonial-link {
|
|
328
303
|
align-self: flex-start;
|
|
329
304
|
width: -moz-fit-content;
|
|
330
305
|
width: fit-content;
|
|
331
|
-
margin-
|
|
306
|
+
margin-block-start: 0;
|
|
332
307
|
}
|
|
333
308
|
|
|
334
309
|
.Testimonial__quoteMark--default {
|
|
@@ -341,12 +316,6 @@
|
|
|
341
316
|
--brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-blue);
|
|
342
317
|
}
|
|
343
318
|
|
|
344
|
-
.Testimonial__quoteMark--blue-purple {
|
|
345
|
-
--brand-Testimonial-quoteMarkColor-start: var(--brand-Testimonial-quoteMarkColor-blue-purple-start);
|
|
346
|
-
--brand-Testimonial-quoteMarkColor-end: var(--brand-Testimonial-quoteMarkColor-blue-purple-end);
|
|
347
|
-
--brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-blue-purple);
|
|
348
|
-
}
|
|
349
|
-
|
|
350
319
|
.Testimonial__quoteMark--coral {
|
|
351
320
|
--brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-coral);
|
|
352
321
|
--brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-coral);
|
|
@@ -357,12 +326,6 @@
|
|
|
357
326
|
--brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-green);
|
|
358
327
|
}
|
|
359
328
|
|
|
360
|
-
.Testimonial__quoteMark--green-blue {
|
|
361
|
-
--brand-Testimonial-quoteMarkColor-start: var(--brand-Testimonial-quoteMarkColor-green-blue-start);
|
|
362
|
-
--brand-Testimonial-quoteMarkColor-end: var(--brand-Testimonial-quoteMarkColor-green-blue-end);
|
|
363
|
-
--brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-green-blue);
|
|
364
|
-
}
|
|
365
|
-
|
|
366
329
|
.Testimonial__quoteMark--gray {
|
|
367
330
|
--brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-gray);
|
|
368
331
|
--brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-gray);
|
|
@@ -393,34 +356,16 @@
|
|
|
393
356
|
--brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-pink);
|
|
394
357
|
}
|
|
395
358
|
|
|
396
|
-
.Testimonial__quoteMark--pink-blue {
|
|
397
|
-
--brand-Testimonial-quoteMarkColor-start: var(--brand-Testimonial-quoteMarkColor-pink-blue-start);
|
|
398
|
-
--brand-Testimonial-quoteMarkColor-end: var(--brand-Testimonial-quoteMarkColor-pink-blue-end);
|
|
399
|
-
--brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-pink-blue);
|
|
400
|
-
}
|
|
401
|
-
|
|
402
359
|
.Testimonial__quoteMark--purple {
|
|
403
360
|
--brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-purple);
|
|
404
361
|
--brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-purple);
|
|
405
362
|
}
|
|
406
363
|
|
|
407
|
-
.Testimonial__quoteMark--purple-red {
|
|
408
|
-
--brand-Testimonial-quoteMarkColor-start: var(--brand-Testimonial-quoteMarkColor-purple-red-start);
|
|
409
|
-
--brand-Testimonial-quoteMarkColor-end: var(--brand-Testimonial-quoteMarkColor-purple-red-end);
|
|
410
|
-
--brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-purple-red);
|
|
411
|
-
}
|
|
412
|
-
|
|
413
364
|
.Testimonial__quoteMark--red {
|
|
414
365
|
--brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-red);
|
|
415
366
|
--brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-red);
|
|
416
367
|
}
|
|
417
368
|
|
|
418
|
-
.Testimonial__quoteMark--red-orange {
|
|
419
|
-
--brand-Testimonial-quoteMarkColor-start: var(--brand-Testimonial-quoteMarkColor-red-orange-start);
|
|
420
|
-
--brand-Testimonial-quoteMarkColor-end: var(--brand-Testimonial-quoteMarkColor-red-orange-end);
|
|
421
|
-
--brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-red-orange);
|
|
422
|
-
}
|
|
423
|
-
|
|
424
369
|
.Testimonial__quoteMark--teal {
|
|
425
370
|
--brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-teal);
|
|
426
371
|
--brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-teal);
|
|
@@ -430,3 +375,85 @@
|
|
|
430
375
|
--brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-yellow);
|
|
431
376
|
--brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-yellow);
|
|
432
377
|
}
|
|
378
|
+
|
|
379
|
+
.Testimonial--variant-minimal {
|
|
380
|
+
margin: 0;
|
|
381
|
+
width: 100%;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.Testimonial--variant-minimal .Testimonial__quoteWrapper {
|
|
385
|
+
display: flex;
|
|
386
|
+
flex-direction: column;
|
|
387
|
+
align-items: flex-start;
|
|
388
|
+
gap: calc(var(--base-size-24) + var(--base-size-16));
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.Testimonial--variant-minimal.Testimonial--size-large .Testimonial__quoteWrapper {
|
|
392
|
+
gap: var(--base-size-48);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.Testimonial--variant-minimal blockquote {
|
|
396
|
+
margin: 0;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.Testimonial--variant-minimal .Testimonial-quote {
|
|
400
|
+
font-size: var(--brand-Testimonial-quote-fontSize-default);
|
|
401
|
+
font-weight: var(--brand-Testimonial-quote-fontWeight-default);
|
|
402
|
+
line-height: 1.2;
|
|
403
|
+
letter-spacing: 0;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.Testimonial--variant-minimal.Testimonial--size-large .Testimonial-quote {
|
|
407
|
+
font-size: var(--brand-text-size-600);
|
|
408
|
+
font-weight: var(--brand-heading-weight-500);
|
|
409
|
+
line-height: var(--brand-Testimonial-minimal-quote-lineHeight);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.Testimonial--variant-minimal .Testimonial__media {
|
|
413
|
+
gap: var(--base-size-16);
|
|
414
|
+
margin-block-start: calc(var(--base-size-32) + var(--base-size-8));
|
|
415
|
+
padding-block-start: 0;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.Testimonial--variant-minimal.Testimonial--size-large .Testimonial__media {
|
|
419
|
+
margin-block-start: var(--base-size-32);
|
|
420
|
+
padding-block-start: var(--base-size-8);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.Testimonial--variant-minimal .Testimonial-caption {
|
|
424
|
+
min-width: 0;
|
|
425
|
+
gap: var(--base-size-2);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.Testimonial--variant-minimal .Testimonial-from,
|
|
429
|
+
.Testimonial--variant-minimal .Testimonial-position {
|
|
430
|
+
font-family: var(--brand-fontStack-sansSerif);
|
|
431
|
+
font-size: var(--brand-text-size-200);
|
|
432
|
+
font-weight: var(--base-text-weight-normal);
|
|
433
|
+
line-height: var(--brand-text-lineHeight-200);
|
|
434
|
+
letter-spacing: var(--brand-text-letterSpacing-200);
|
|
435
|
+
text-transform: none;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.Testimonial--variant-minimal .Testimonial-avatar {
|
|
439
|
+
width: var(--base-size-64);
|
|
440
|
+
height: var(--base-size-64);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
@media screen and (min-width: 63.25rem) {
|
|
444
|
+
.Testimonial--variant-subtle .Testimonial__quoteWrapper,
|
|
445
|
+
.Testimonial--variant-default .Testimonial__quoteWrapper,
|
|
446
|
+
.Testimonial--variant-minimal .Testimonial__quoteWrapper {
|
|
447
|
+
gap: var(--base-size-48);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.Testimonial--variant-minimal.Testimonial--size-large .Testimonial-quote {
|
|
451
|
+
font-size: var(--brand-Testimonial-minimal-quote-fontSize-large);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
@media screen and (min-width: 34rem) and (max-width: 47.99rem) {
|
|
456
|
+
.Testimonial--variant-minimal.Testimonial--size-large .Testimonial-quote {
|
|
457
|
+
font-size: var(--brand-text-size-700);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
.TestimonialGroup {
|
|
2
|
+
width: 100%;
|
|
3
|
+
min-width: 0;
|
|
4
|
+
padding-block: calc(var(--base-size-48) + var(--base-size-8));
|
|
5
|
+
padding-inline: var(--base-size-32);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.TestimonialGroup__content {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
width: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.TestimonialGroup__slides {
|
|
15
|
+
position: relative;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.TestimonialGroup__slide {
|
|
23
|
+
position: absolute;
|
|
24
|
+
width: 100%;
|
|
25
|
+
visibility: hidden;
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.TestimonialGroup__slide--active {
|
|
30
|
+
position: relative;
|
|
31
|
+
visibility: visible;
|
|
32
|
+
pointer-events: auto;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.TestimonialGroup__avatar {
|
|
36
|
+
flex: none;
|
|
37
|
+
border: var(--base-size-2) solid var(--brand-Testimonial-quoteMarkColor-green);
|
|
38
|
+
border-radius: 50%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.TestimonialGroup__avatar.TestimonialGroup__avatar--size-large {
|
|
42
|
+
width: var(--base-size-48);
|
|
43
|
+
height: var(--base-size-48);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.TestimonialGroup__quoteMark,
|
|
47
|
+
.TestimonialGroup__quote,
|
|
48
|
+
.TestimonialGroup__media {
|
|
49
|
+
transition: opacity var(--brand-TestimonialGroup-fadeInDuration) ease-in-out;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.TestimonialGroup__testimonial--out .TestimonialGroup__quoteMark {
|
|
53
|
+
opacity: 0;
|
|
54
|
+
transition: opacity var(--brand-TestimonialGroup-fadeOutDuration) ease-in-out 120ms;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.TestimonialGroup__testimonial--out .TestimonialGroup__quote {
|
|
58
|
+
opacity: 0;
|
|
59
|
+
transition: opacity var(--brand-TestimonialGroup-fadeOutDuration) ease-in-out 80ms;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.TestimonialGroup__testimonial--out .TestimonialGroup__media {
|
|
63
|
+
opacity: 0;
|
|
64
|
+
transition: opacity var(--brand-TestimonialGroup-fadeOutDuration) ease-in-out 40ms;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.TestimonialGroup__testimonial--in .TestimonialGroup__quote {
|
|
68
|
+
transition-delay: 100ms;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.TestimonialGroup__testimonial--in .TestimonialGroup__media {
|
|
72
|
+
transition-delay: var(--brand-animation-duration-faster);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.TestimonialGroup__controls {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex: none;
|
|
78
|
+
order: 1;
|
|
79
|
+
align-items: center;
|
|
80
|
+
margin-block-start: var(--base-size-32);
|
|
81
|
+
padding-block-start: var(--base-size-16);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.TestimonialGroup__content--expressive .TestimonialGroup__controls {
|
|
85
|
+
margin-block-start: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.TestimonialGroup__announcement {
|
|
89
|
+
position: absolute;
|
|
90
|
+
width: var(--brand-borderWidth-thin);
|
|
91
|
+
height: var(--brand-borderWidth-thin);
|
|
92
|
+
padding: 0;
|
|
93
|
+
overflow: hidden;
|
|
94
|
+
clip-path: inset(50%);
|
|
95
|
+
white-space: nowrap;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@media (prefers-reduced-motion: reduce) {
|
|
99
|
+
.TestimonialGroup__quoteMark,
|
|
100
|
+
.TestimonialGroup__quote,
|
|
101
|
+
.TestimonialGroup__media {
|
|
102
|
+
transition: none;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@media screen and (min-width: 63.25rem) {
|
|
107
|
+
.TestimonialGroup {
|
|
108
|
+
padding-block: var(--base-size-60);
|
|
109
|
+
padding-inline: var(--base-size-60);
|
|
110
|
+
}
|
|
111
|
+
}
|