@eeacms/volto-eea-design-system 0.2.4 → 0.4.0
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/CHANGELOG.md +115 -1
- package/package.json +3 -2
- package/src/semantic.less +7 -3
- package/src/ui/Callout/Callout.jsx +12 -0
- package/src/ui/Callout/Callout.stories.jsx +42 -0
- package/src/ui/Card/Card.stories.jsx +185 -5
- package/src/ui/{Pullquote/Pullquote.jsx → Quote/Quote.jsx} +9 -9
- package/src/ui/Quote/Quote.stories.jsx +93 -0
- package/src/ui/{Testimonial → Quote/Testimonial}/Testimonial.jsx +10 -11
- package/src/ui/{Testimonial → Quote/Testimonial}/Testimonial.stories.jsx +17 -8
- package/src/ui/index.js +3 -3
- package/theme/theme.config +1 -1
- package/theme/themes/eea/assets/images/Svg/data-analytics.svg +14 -0
- package/theme/themes/eea/assets/images/Svg/globe-eco.svg +3 -0
- package/theme/themes/eea/assets/images/Svg/knowledge.svg +3 -0
- package/theme/themes/eea/assets/images/Svg/network.svg +3 -0
- package/theme/themes/eea/assets/images/Svg/sustainable.svg +38 -0
- package/theme/themes/eea/collections/table.overrides +48 -0
- package/theme/themes/eea/collections/table.variables +16 -0
- package/theme/themes/eea/definitions/views/item.less +475 -0
- package/theme/themes/eea/elements/input.overrides +68 -0
- package/theme/themes/eea/elements/label.overrides +111 -3
- package/theme/themes/eea/elements/label.variables +17 -3
- package/theme/themes/eea/elements/segment.overrides +5 -2
- package/theme/themes/eea/extras/avatar.variables +28 -0
- package/theme/themes/eea/extras/callout.less +43 -0
- package/theme/themes/eea/extras/callout.variables +19 -0
- package/theme/themes/eea/extras/main.variables +1 -1
- package/theme/themes/eea/extras/{pullquote.less → quote.less} +20 -20
- package/theme/themes/eea/extras/quote.variables +34 -0
- package/theme/themes/eea/extras/testimonial.less +46 -6
- package/theme/themes/eea/extras/testimonial.variables +14 -6
- package/theme/themes/eea/globals/site.overrides +2 -0
- package/theme/themes/eea/globals/site.variables +27 -6
- package/theme/themes/eea/globals/utilities.less +31 -0
- package/theme/themes/eea/modules/accordion.variables +2 -2
- package/theme/themes/eea/tokens/borders.less +14 -0
- package/theme/themes/eea/tokens/colors.less +63 -0
- package/theme/themes/eea/tokens/fonts.less +38 -0
- package/theme/themes/eea/tokens/shadows.less +41 -0
- package/theme/themes/eea/tokens/shapes.less +6 -0
- package/theme/themes/eea/tokens/sizes.less +106 -0
- package/theme/themes/eea/tokens/tokens.less +7 -0
- package/theme/themes/eea/tokens/z-index.less +12 -0
- package/theme/themes/eea/views/card.overrides +108 -0
- package/theme/themes/eea/views/card.variables +29 -1
- package/theme/themes/eea/views/item.overrides +37 -0
- package/theme/themes/eea/views/item.variables +12 -3
- package/src/ui/Blockquote/Blockquote.jsx +0 -16
- package/src/ui/Blockquote/Blockquote.stories.jsx +0 -48
- package/src/ui/Pullquote/Pullquote.stories.jsx +0 -101
- package/theme/themes/eea/extras/blockquote.less +0 -92
- package/theme/themes/eea/extras/blockquote.variables +0 -35
- package/theme/themes/eea/extras/pullquote.variables +0 -34
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
@spacer: 4px;
|
|
2
|
+
|
|
3
|
+
@space-025: @spacer * 0.25; //1px;
|
|
4
|
+
@space-05: @spacer * 0.5; //2px;
|
|
5
|
+
@space-1: @spacer * 1; //4px;
|
|
6
|
+
@space-2: @spacer * 2; //8px;
|
|
7
|
+
@space-3: @spacer * 3; //12px;
|
|
8
|
+
@space-3-5: @spacer * 3.5; //14px;
|
|
9
|
+
@space-4: @spacer * 4; //16px;
|
|
10
|
+
@space-5: @spacer * 5; //20px;
|
|
11
|
+
@space-6: @spacer * 6; //24px;
|
|
12
|
+
@space-7: @spacer * 7; //28px;
|
|
13
|
+
@space-7-5: @spacer * 7.5; //30px;
|
|
14
|
+
@space-8: @spacer * 8; //32px;
|
|
15
|
+
@space-9: @spacer * 9; //36px;
|
|
16
|
+
@space-10: @spacer * 10; //40px;
|
|
17
|
+
@space-11: @spacer * 11; //44px;
|
|
18
|
+
@space-12: @spacer * 12; //48px;
|
|
19
|
+
@space-13: @spacer * 13; //52px;
|
|
20
|
+
@space-14: @spacer * 14; //56px;
|
|
21
|
+
@space-15: @spacer * 15; //60px;
|
|
22
|
+
@space-16: @spacer * 16; //64px;
|
|
23
|
+
@space-17: @spacer * 17; //68px;
|
|
24
|
+
@space-18: @spacer * 18; //72px;
|
|
25
|
+
@space-19: @spacer * 19; //76px;
|
|
26
|
+
@space-20: @spacer * 20; //80px;
|
|
27
|
+
|
|
28
|
+
// space sizing, add missing values if needed
|
|
29
|
+
@space-24: @spacer * 24; //96px;
|
|
30
|
+
|
|
31
|
+
@space-28: @spacer * 28; //112px;
|
|
32
|
+
|
|
33
|
+
@space-32: @spacer * 32; //128px;
|
|
34
|
+
|
|
35
|
+
@space-35: @spacer * 35; //140px;
|
|
36
|
+
|
|
37
|
+
@rem-space-025: @1px;
|
|
38
|
+
@rem-space-050: @2px;
|
|
39
|
+
@rem-space-1: @4px;
|
|
40
|
+
@rem-space-2: @8px;
|
|
41
|
+
@rem-space-3: @12px;
|
|
42
|
+
@rem-space-3-5: @14px;
|
|
43
|
+
@rem-space-4: @16px;
|
|
44
|
+
@rem-space-5: @20px;
|
|
45
|
+
@rem-space-6: @24px;
|
|
46
|
+
@rem-space-7: @28px;
|
|
47
|
+
@rem-space-7-50: @30px;
|
|
48
|
+
@rem-space-8: @32px;
|
|
49
|
+
@rem-space-9: @36px;
|
|
50
|
+
@rem-space-10: @40px;
|
|
51
|
+
@rem-space-11: @44px;
|
|
52
|
+
@rem-space-12: @48px;
|
|
53
|
+
@rem-space-13: @52px;
|
|
54
|
+
@rem-space-14: @56px;
|
|
55
|
+
@rem-space-15: @60px;
|
|
56
|
+
@rem-space-16: @64px;
|
|
57
|
+
@rem-space-17: @68px;
|
|
58
|
+
@rem-space-18: @72px;
|
|
59
|
+
@rem-space-19: @76px;
|
|
60
|
+
@rem-space-20: @80px;
|
|
61
|
+
|
|
62
|
+
@em-space-025: @relative1px;
|
|
63
|
+
@em-space-050: @relative2px;
|
|
64
|
+
@em-space-1: @relative4px;
|
|
65
|
+
@em-space-2: @relative8px;
|
|
66
|
+
@em-space-3: @relative12px;
|
|
67
|
+
@em-space-3-50: @relative14px;
|
|
68
|
+
@em-space-4: @relative16px;
|
|
69
|
+
@em-space-5: @relative20px;
|
|
70
|
+
@em-space-6: @relative24px;
|
|
71
|
+
@em-space-7: @relative28px;
|
|
72
|
+
@em-space-7-50: @relative30px;
|
|
73
|
+
@em-space-8: @relative32px;
|
|
74
|
+
@em-space-9: @relative36px;
|
|
75
|
+
@em-space-10: @relative40px;
|
|
76
|
+
@em-space-11: @relative44px;
|
|
77
|
+
@em-space-12: @relative48px;
|
|
78
|
+
@em-space-13: @relative52px;
|
|
79
|
+
@em-space-14: @relative56px;
|
|
80
|
+
@em-space-15: @relative60px;
|
|
81
|
+
@em-space-16: @relative64px;
|
|
82
|
+
@em-space-17: @relative68px;
|
|
83
|
+
@em-space-18: @relative72px;
|
|
84
|
+
@em-space-19: @relative76px;
|
|
85
|
+
@em-space-20: @relative80px;
|
|
86
|
+
|
|
87
|
+
// Size scale
|
|
88
|
+
// Used for buttons, inputs, labels, avatars etc.
|
|
89
|
+
@size: @space-4;
|
|
90
|
+
|
|
91
|
+
@size-025: @size * 0.25; // 4px
|
|
92
|
+
@size-050: @size * 0.5; // 8px
|
|
93
|
+
@size-1: @size; // 16px
|
|
94
|
+
@size-2: @size-1 + @space-1; // 20px
|
|
95
|
+
@size-3: @size-2 + @space-1; // 24px
|
|
96
|
+
@size-4: @size-3 + @space-1; // 28px
|
|
97
|
+
@size-5: @size-4 + @space-1; // 32px
|
|
98
|
+
@size-6: @size-5 + @space-2; // 40px
|
|
99
|
+
@size-7: @size-6 + @space-2; // 48px
|
|
100
|
+
@size-8: @size-7 + @space-4; // 64px
|
|
101
|
+
@size-9: @size-8 + @space-4; // 80px
|
|
102
|
+
@size-10: @size-9 + @space-10; // 120px
|
|
103
|
+
@size-11: @size-10 + @space-10; // 160px
|
|
104
|
+
@size-12: @size-11 + @space-20; // 240px
|
|
105
|
+
@size-13: @size-12 + @space-20; // 320px
|
|
106
|
+
@size-14: @size-13 + @size-11; // 480px
|
|
@@ -288,3 +288,111 @@
|
|
|
288
288
|
margin: 0;
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
+
|
|
292
|
+
/*******************************
|
|
293
|
+
Carousel
|
|
294
|
+
*******************************/
|
|
295
|
+
|
|
296
|
+
.cards-carousel {
|
|
297
|
+
position: relative;
|
|
298
|
+
|
|
299
|
+
.ui.button.icon.slider-arrow {
|
|
300
|
+
padding: @carouselButtonPadding;
|
|
301
|
+
display: none;
|
|
302
|
+
|
|
303
|
+
.active, &:focus, &:hover {
|
|
304
|
+
background: transparent;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.icon {
|
|
308
|
+
color: @carouselButtonIconColor;
|
|
309
|
+
font-size: @carouselButtonIconFontSize;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.slick-arrow {
|
|
314
|
+
display: block !important;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.slick-prev,
|
|
318
|
+
.slick-next {
|
|
319
|
+
display: none !important;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.slick-list {
|
|
323
|
+
margin: 0 -0.75em !important;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.slick-track {
|
|
327
|
+
display: flex;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.slick-slide {
|
|
331
|
+
display: flex;
|
|
332
|
+
height: auto;
|
|
333
|
+
flex: 1;
|
|
334
|
+
flex-direction: column;
|
|
335
|
+
padding: 15px 0.75em !important;
|
|
336
|
+
|
|
337
|
+
> div {
|
|
338
|
+
height: 100%;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.slider-arrow {
|
|
344
|
+
position: absolute;
|
|
345
|
+
top: 50%;
|
|
346
|
+
bottom: auto;
|
|
347
|
+
display: block;
|
|
348
|
+
padding: 0;
|
|
349
|
+
border: none;
|
|
350
|
+
background: transparent;
|
|
351
|
+
cursor: pointer;
|
|
352
|
+
outline: none;
|
|
353
|
+
transform: translate(0, -50%);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.prev-arrow {
|
|
357
|
+
right: auto;
|
|
358
|
+
left: @carouselButtonDistance;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.next-arrow {
|
|
362
|
+
right: @carouselButtonDistance;
|
|
363
|
+
left: auto;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.slick-dots li button:before {
|
|
367
|
+
background-color: @carouselDotsBackgroundColor;
|
|
368
|
+
color: transparent;
|
|
369
|
+
border: @carouselDotsBorder;
|
|
370
|
+
border-radius: @carouselDotsBorderRadius;
|
|
371
|
+
opacity: @carouselDotsOpacity;
|
|
372
|
+
width: @mobileCarouselDotsWidth;
|
|
373
|
+
height: @mobileCarouselDotsHeight;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.slick-dots li.slick-active button:before {
|
|
377
|
+
background-color: @carouselDotsActiveBackgroundColor;
|
|
378
|
+
color: transparent;
|
|
379
|
+
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
@media only screen and (min-width: @computerBreakpoint) {
|
|
387
|
+
.cards-carousel {
|
|
388
|
+
|
|
389
|
+
.ui.button.icon.slider-arrow {
|
|
390
|
+
display: block;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.slick-dots li button:before {
|
|
394
|
+
width: inherit;
|
|
395
|
+
height: inherit;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
--------------------*/
|
|
158
158
|
|
|
159
159
|
/* Link */
|
|
160
|
-
@linkHoverBackground:
|
|
160
|
+
@linkHoverBackground: transparent;
|
|
161
161
|
@linkHoverBorder: @border;
|
|
162
162
|
@linkHoverZIndex: 5;
|
|
163
163
|
@linkHoverRaiseDistance: 3px;
|
|
@@ -319,3 +319,31 @@
|
|
|
319
319
|
/* Meta */
|
|
320
320
|
@cardMetaFontSize: 12px;
|
|
321
321
|
@cardMetaTagFontWeight: 400;
|
|
322
|
+
|
|
323
|
+
/*******************************
|
|
324
|
+
Carousel Cards
|
|
325
|
+
*******************************/
|
|
326
|
+
|
|
327
|
+
/* Title */
|
|
328
|
+
@carouselTitleFontWeight: 700;
|
|
329
|
+
@carouselTitleMargin: 0;
|
|
330
|
+
@carouselTitleColor: @deepBlue;
|
|
331
|
+
|
|
332
|
+
/* Button */
|
|
333
|
+
@carouselButtonPadding: 0;
|
|
334
|
+
@carouselButtonIconColor: @black;
|
|
335
|
+
@carouselButtonIconFontSize: 3.125rem;
|
|
336
|
+
@carouselButtonDistance: -3.5rem;
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
/* Dots */
|
|
340
|
+
@carouselDotsFontSize: 0.75rem;
|
|
341
|
+
@carouselDotsBorderRadius: 50%;
|
|
342
|
+
@carouselDotsOpacity: 1;
|
|
343
|
+
@carouselDotsBorder: 1px solid @darkCerulean;
|
|
344
|
+
@carouselDotsBackgroundColor: @white;
|
|
345
|
+
@carouselDotsActiveBackgroundColor: @darkCerulean;
|
|
346
|
+
@mobileCarouselDotsWidth: 0.875rem;
|
|
347
|
+
@mobileCarouselDotsHeight: 0.875rem;
|
|
348
|
+
|
|
349
|
+
|
|
@@ -6,3 +6,40 @@
|
|
|
6
6
|
.ui.items:not(.unstackable) > .item > .image {
|
|
7
7
|
margin: @imageMargin;
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
.item .tile.image {
|
|
11
|
+
width: @tileImageWidth;
|
|
12
|
+
height: @tileImageHeight;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.ui.items.row > .item {
|
|
16
|
+
margin: @mobileRowItemMargin;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// As semantic does for non unstacable items
|
|
20
|
+
// so columns does not affect margin in mobiles
|
|
21
|
+
.ui.items.row > .item:last-child {
|
|
22
|
+
margin-bottom: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media only screen and (max-width: @largestMobileScreen) {
|
|
26
|
+
.ui.items.row > .item {
|
|
27
|
+
flex-direction: row;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ui.items.row > .item > .image + .content {
|
|
31
|
+
padding: 0em 0em 0em @mobileContentImageDistance;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media only screen and (min-width: @tabletBreakpoint) {
|
|
36
|
+
.ui.items.row > .item {
|
|
37
|
+
margin: @tabletRowItemMargin;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@media only screen and (min-width: @computerBreakpoint) {
|
|
42
|
+
.ui.items.row > .item {
|
|
43
|
+
margin: @desktopRowItemMargin;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
/* Responsive */
|
|
25
25
|
@itemSpacing: 1em;
|
|
26
26
|
@imageWidth: 175px;
|
|
27
|
-
@contentImageDistance:
|
|
27
|
+
@contentImageDistance: 2rem;
|
|
28
28
|
|
|
29
29
|
@tabletItemSpacing: 1em;
|
|
30
30
|
@tabletImageWidth: 150px;
|
|
31
|
-
@tabletContentImageDistance:
|
|
31
|
+
@tabletContentImageDistance: 2rem;
|
|
32
32
|
|
|
33
33
|
@mobileItemSpacing: 2em;
|
|
34
34
|
@mobileImageWidth: auto;
|
|
35
35
|
@mobileImageMaxHeight: 250px;
|
|
36
|
-
@mobileContentImageDistance: 1.
|
|
36
|
+
@mobileContentImageDistance: 1.5rem;
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
/*-------------------
|
|
@@ -52,6 +52,10 @@
|
|
|
52
52
|
@imageBoxShadow: none;
|
|
53
53
|
@imageBorder: none;
|
|
54
54
|
|
|
55
|
+
/* Tile image size */
|
|
56
|
+
@tileImageWidth: 50px;
|
|
57
|
+
@tileImageHeight: auto;
|
|
58
|
+
|
|
55
59
|
/* Content */
|
|
56
60
|
@contentDisplay: block;
|
|
57
61
|
@contentVerticalAlign: top;
|
|
@@ -155,3 +159,8 @@
|
|
|
155
159
|
/* Unstackable */
|
|
156
160
|
@unstackableMobileImageWidth: 125px;
|
|
157
161
|
|
|
162
|
+
/* Row */
|
|
163
|
+
@mobileRowItemMargin : 1rem 0;
|
|
164
|
+
@tabletRowItemMargin : 1.5rem 0;
|
|
165
|
+
@desktopRowItemMargin : 2rem 0;
|
|
166
|
+
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
function Blockquote({ children, className, ...rest }) {
|
|
4
|
-
return (
|
|
5
|
-
<div className="eea blockquote" {...rest}>
|
|
6
|
-
<blockquote className="quote">{children}</blockquote>
|
|
7
|
-
</div>
|
|
8
|
-
);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
Blockquote.Content = ({ children, as: As, ...rest }) =>
|
|
12
|
-
As ? <As {...rest}>{children}</As> : children;
|
|
13
|
-
|
|
14
|
-
Blockquote.Meta = ({ children }) => <div className="meta">{children}</div>;
|
|
15
|
-
|
|
16
|
-
export default Blockquote;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Blockquote from './Blockquote';
|
|
3
|
-
|
|
4
|
-
const CITATION =
|
|
5
|
-
'An interconnected grid will help deliver the ultimate goal of the Energy Union, to make sure affordable, secure and sustainable energy, and also growth across the EU.';
|
|
6
|
-
const AUTHOR = 'President Juncker';
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
title: 'Components/Blockquote',
|
|
10
|
-
component: Blockquote,
|
|
11
|
-
argTypes: {
|
|
12
|
-
content: {
|
|
13
|
-
name: 'citation',
|
|
14
|
-
description: 'Blockquote content',
|
|
15
|
-
type: { name: 'string', required: true },
|
|
16
|
-
},
|
|
17
|
-
meta: {
|
|
18
|
-
name: 'meta',
|
|
19
|
-
description: 'Author of the content',
|
|
20
|
-
type: { name: 'string', required: true },
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export const Default = (args) => (
|
|
26
|
-
<Blockquote>
|
|
27
|
-
<Blockquote.Content>{args.content}</Blockquote.Content>
|
|
28
|
-
<Blockquote.Meta>{args.meta}</Blockquote.Meta>
|
|
29
|
-
</Blockquote>
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
Default.args = {
|
|
33
|
-
content: CITATION,
|
|
34
|
-
meta: AUTHOR,
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export const Reversed = (args) => (
|
|
38
|
-
<Blockquote>
|
|
39
|
-
<Blockquote.Meta>{args.meta}</Blockquote.Meta>
|
|
40
|
-
<Blockquote.Content>{args.content}</Blockquote.Content>
|
|
41
|
-
</Blockquote>
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
Reversed.args = {
|
|
45
|
-
content:
|
|
46
|
-
'The Ministry of Environment & Energy is responsible for environmental policy, the preparation of plans and programmes, and overseeing their implementation. The Ministry is also in charge of the transposition of EU environmental Directives into national law.',
|
|
47
|
-
meta: '22 December 1989',
|
|
48
|
-
};
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Pullquote from './Pullquote';
|
|
3
|
-
import { Container } from 'semantic-ui-react';
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: 'Components/Pullquote',
|
|
7
|
-
component: Pullquote,
|
|
8
|
-
argTypes: {
|
|
9
|
-
quote: {
|
|
10
|
-
description: 'Pullquote content',
|
|
11
|
-
type: { name: 'string' },
|
|
12
|
-
table: {
|
|
13
|
-
defaultValue: { summary: '""' },
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
source: {
|
|
17
|
-
description: 'source of quote',
|
|
18
|
-
type: { name: 'string' },
|
|
19
|
-
table: {
|
|
20
|
-
defaultValue: { summary: '""' },
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
metadata: {
|
|
24
|
-
description: 'quote metadata',
|
|
25
|
-
type: { name: 'string' },
|
|
26
|
-
table: {
|
|
27
|
-
defaultValue: { summary: '""' },
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
content: {
|
|
31
|
-
description: 'content that quote floats around',
|
|
32
|
-
type: { name: 'string' },
|
|
33
|
-
table: {
|
|
34
|
-
defaultValue: { summary: '""' },
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
quotePosition: {
|
|
38
|
-
control: {
|
|
39
|
-
type: 'inline-radio',
|
|
40
|
-
options: ['left', 'right', 'none', 'inherit'],
|
|
41
|
-
},
|
|
42
|
-
description: 'direction that quote floats to',
|
|
43
|
-
type: { name: 'string' },
|
|
44
|
-
table: {
|
|
45
|
-
defaultValue: { summary: '""' },
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export const Default = (args) => (
|
|
52
|
-
<Container>
|
|
53
|
-
<p>{args.content}</p>
|
|
54
|
-
<Pullquote quotePosition={args.quotePosition}>
|
|
55
|
-
<Pullquote.Quote>{args.quote}</Pullquote.Quote>
|
|
56
|
-
<Pullquote.Author>{args.source}</Pullquote.Author>
|
|
57
|
-
<Pullquote.Metadata>{args.metadata}</Pullquote.Metadata>
|
|
58
|
-
</Pullquote>
|
|
59
|
-
<p>{args.content}</p>
|
|
60
|
-
<p>{args.content}</p>
|
|
61
|
-
<p>{args.content}</p>
|
|
62
|
-
<p>{args.content}</p>
|
|
63
|
-
<p>{args.content}</p>
|
|
64
|
-
</Container>
|
|
65
|
-
);
|
|
66
|
-
|
|
67
|
-
Default.args = {
|
|
68
|
-
quote:
|
|
69
|
-
'Nulla viverra magna curabitur leo nisl scelerisque. Velit fusce sed sem ut. Molestie fermentum congue nunc cras posuere orci. Duis eu ultrices nisi, est a pellentesque eget tellus mauris. Amet, tortor quis pellentesque suspendisse convallis lacinia. Aliquam.',
|
|
70
|
-
source: 'Arthur Abbott',
|
|
71
|
-
metadata: 'EEA Analyst',
|
|
72
|
-
content:
|
|
73
|
-
'Cursus turpis massa tincidunt dui ut ornare lectus sit amet. Venenatis tellus in metus vulputate eu. Sagittis id consectetur purus ut. Ultricies mi eget mauris pharetra et ultrices. Eu lobortis elementum nibh tellus molestie nunc non blandit massa. Mattis pellentesque id nibh tortor id aliquet. Amet nisl purus in mollis nunc. Quisque non tellus orci ac auctor augue mauris. Faucibus vitae aliquet nec ullamcorper sit amet risus nullam eget.',
|
|
74
|
-
quotePosition: 'left',
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
export const Reversed = (args) => (
|
|
78
|
-
<Container>
|
|
79
|
-
<p>{args.content}</p>
|
|
80
|
-
<Pullquote quotePosition={args.quotePosition}>
|
|
81
|
-
<Pullquote.Author>{args.source}</Pullquote.Author>
|
|
82
|
-
<Pullquote.Metadata>{args.metadata}</Pullquote.Metadata>
|
|
83
|
-
<Pullquote.Quote>{args.quote}</Pullquote.Quote>
|
|
84
|
-
</Pullquote>
|
|
85
|
-
<p>{args.content}</p>
|
|
86
|
-
<p>{args.content}</p>
|
|
87
|
-
<p>{args.content}</p>
|
|
88
|
-
<p>{args.content}</p>
|
|
89
|
-
<p>{args.content}</p>
|
|
90
|
-
</Container>
|
|
91
|
-
);
|
|
92
|
-
|
|
93
|
-
Reversed.args = {
|
|
94
|
-
quote:
|
|
95
|
-
'Nulla viverra magna curabitur leo nisl scelerisque. Velit fusce sed sem ut. Molestie fermentum congue nunc cras posuere orci. Duis eu ultrices nisi, est a pellentesque eget tellus mauris. Amet, tortor quis pellentesque suspendisse convallis lacinia. Aliquam.',
|
|
96
|
-
source: 'Arthur Abbott',
|
|
97
|
-
metadata: 'EEA Analyst',
|
|
98
|
-
content:
|
|
99
|
-
'Cursus turpis massa tincidunt dui ut ornare lectus sit amet. Venenatis tellus in metus vulputate eu. Sagittis id consectetur purus ut. Ultricies mi eget mauris pharetra et ultrices. Eu lobortis elementum nibh tellus molestie nunc non blandit massa. Mattis pellentesque id nibh tortor id aliquet. Amet nisl purus in mollis nunc. Quisque non tellus orci ac auctor augue mauris. Faucibus vitae aliquet nec ullamcorper sit amet risus nullam eget.',
|
|
100
|
-
quotePosition: 'left',
|
|
101
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
@type: 'extra';
|
|
2
|
-
@element: 'blockquote';
|
|
3
|
-
|
|
4
|
-
@import (multiple) '../../theme.config';
|
|
5
|
-
|
|
6
|
-
/*******************************
|
|
7
|
-
Blockquote
|
|
8
|
-
*******************************/
|
|
9
|
-
|
|
10
|
-
blockquote.callout,
|
|
11
|
-
p.callout {
|
|
12
|
-
border: @calloutBorder;
|
|
13
|
-
box-shadow: @calloutBoxShadow;
|
|
14
|
-
border-radius: @calloutBorderRadius;
|
|
15
|
-
padding-top: @calloutPadding;
|
|
16
|
-
padding-bottom: @calloutPadding;
|
|
17
|
-
border-left: @mobileBlockquoteBorderLeft;
|
|
18
|
-
color: @quoteColor;
|
|
19
|
-
font-size: @mobileQuoteFontSize;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.eea.blockquote {
|
|
23
|
-
border-left: @mobileBlockquoteBorderLeft;
|
|
24
|
-
|
|
25
|
-
.quote {
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: column;
|
|
28
|
-
margin: @mobileQuoteMargin;
|
|
29
|
-
gap: @quoteGap;
|
|
30
|
-
color: @quoteColor;
|
|
31
|
-
font-size: @mobileQuoteFontSize;
|
|
32
|
-
font-weight: @quoteFontWeight;
|
|
33
|
-
|
|
34
|
-
.meta {
|
|
35
|
-
margin: @metaMargin;
|
|
36
|
-
font-size: @mobileMetaFontSize;
|
|
37
|
-
font-weight: @metaWeight;
|
|
38
|
-
align-self: @metaAlignSelf;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.eea.slate.blockquote {
|
|
44
|
-
.quote {
|
|
45
|
-
display: block;
|
|
46
|
-
flex-direction: unset;
|
|
47
|
-
gap: unset;
|
|
48
|
-
font-weight: @slateQuoteFontWeight;
|
|
49
|
-
|
|
50
|
-
br {
|
|
51
|
-
content: '';
|
|
52
|
-
display: flex;
|
|
53
|
-
margin: @slateQuoteGap 0;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@media only screen and (min-width: @tabletBreakpoint) {
|
|
59
|
-
blockquote.callout,
|
|
60
|
-
p.callout {
|
|
61
|
-
border-left: @tabletBlockquoteBorderLeft;
|
|
62
|
-
font-size: @tabletQuoteFontSize;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.eea.blockquote {
|
|
66
|
-
border-left: @tabletBlockquoteBorderLeft;
|
|
67
|
-
.quote {
|
|
68
|
-
margin: @tabletQuoteMargin;
|
|
69
|
-
font-size: @tabletQuoteFontSize;
|
|
70
|
-
.meta {
|
|
71
|
-
font-size: @tabletMetaFontSize;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@media only screen and (min-width: @computerBreakpoint) {
|
|
78
|
-
blockquote.callout,
|
|
79
|
-
p.callout {
|
|
80
|
-
font-size: @computerQuoteFontSize;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.eea.blockquote .quote {
|
|
84
|
-
margin: @computerQuoteMargin;
|
|
85
|
-
font-size: @computerQuoteFontSize;
|
|
86
|
-
.meta {
|
|
87
|
-
font-size: @computerMetaFontSize;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.loadUIOverrides();
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*******************************
|
|
2
|
-
Blockquote
|
|
3
|
-
*******************************/
|
|
4
|
-
/* Body */
|
|
5
|
-
@mobileBlockquoteBorderLeft : @5px solid @secondaryColor;
|
|
6
|
-
@tabletBlockquoteBorderLeft : @10px solid @secondaryColor;
|
|
7
|
-
@childrenBorderLeft : none;
|
|
8
|
-
|
|
9
|
-
/* Quote */
|
|
10
|
-
@quoteColor : @secondaryColor;
|
|
11
|
-
@mobileQuoteMargin : 0.75rem 0.625rem;
|
|
12
|
-
@tabletQuoteMargin : 0.75rem 1rem;
|
|
13
|
-
@computerQuoteMargin : 0.75rem 1.25rem;
|
|
14
|
-
@quoteGap : 0.75rem;
|
|
15
|
-
@slateQuoteGap : 0.75rem / 2;
|
|
16
|
-
@quoteColor : @japaneseIndigo;
|
|
17
|
-
@mobileQuoteFontSize : 0.688rem;
|
|
18
|
-
@tabletQuoteFontSize : @h6;
|
|
19
|
-
@computerQuoteFontSize : @h5;
|
|
20
|
-
@quoteFontWeight : 700;
|
|
21
|
-
@slateQuoteFontWeight : 400;
|
|
22
|
-
|
|
23
|
-
/* Meta */
|
|
24
|
-
@metaMargin : 0;
|
|
25
|
-
@metaWeight : 400;
|
|
26
|
-
@mobileMetaFontSize : 0.688rem;
|
|
27
|
-
@tabletMetaFontSize : @h6;
|
|
28
|
-
@computerMetaFontSize : @h5;
|
|
29
|
-
@metaAlignSelf : start;
|
|
30
|
-
|
|
31
|
-
/* Callout */
|
|
32
|
-
@calloutBorder : none;
|
|
33
|
-
@calloutBoxShadow : none;
|
|
34
|
-
@calloutBorderRadius : 0;
|
|
35
|
-
@calloutPadding : 0;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/*******************************
|
|
2
|
-
Pullquote
|
|
3
|
-
*******************************/
|
|
4
|
-
|
|
5
|
-
/* Body */
|
|
6
|
-
@pullquotePadding : @largeGap 0;
|
|
7
|
-
@pullquoteFloatLeftPadding : @largeGap @largeGap @largeGap 0;
|
|
8
|
-
@pullquoteFloatRightPadding : @largeGap 0 @largeGap @largeGap;
|
|
9
|
-
@pullquoteMargin : 0;
|
|
10
|
-
@maxWidthOnFloat : 50%;
|
|
11
|
-
@contentWordBreak : break-word;
|
|
12
|
-
@contentWordBreakHyphens : manual;
|
|
13
|
-
|
|
14
|
-
/* Quote paragraph */
|
|
15
|
-
@mobileQuotePadding : 0;
|
|
16
|
-
@tabletQuotePadding : 0.5rem 0 1rem;
|
|
17
|
-
|
|
18
|
-
/* Author */
|
|
19
|
-
@authorTextColor : @darkCyan;
|
|
20
|
-
@authorTextAlign : right;
|
|
21
|
-
@authorFontWeight : @bold;
|
|
22
|
-
@authorFontSize : 1.25rem;
|
|
23
|
-
@authorMargin : 0;
|
|
24
|
-
|
|
25
|
-
/* Metadata */
|
|
26
|
-
@metaTextAlign : right;
|
|
27
|
-
@metaFontWeight : @normal;
|
|
28
|
-
@metaFontSize : 1rem;
|
|
29
|
-
|
|
30
|
-
/* Icon */
|
|
31
|
-
@mobileQuoteIconSize : 2rem;
|
|
32
|
-
@tabletQuoteIconSize : 3rem;
|
|
33
|
-
@quoteIconColor : @secondaryColor;
|
|
34
|
-
@quoteDownIconFloat : right;
|