@eeacms/volto-eea-design-system 0.2.3 → 0.3.1
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/.github/workflows/auto-comment.yml +20 -0
- package/CHANGELOG.md +75 -0
- package/package.json +1 -1
- package/src/semantic.less +2 -2
- package/src/ui/Breadcrumbs/Breadcrumb.stories.jsx +3 -0
- package/src/ui/Breadcrumbs/Breadcrumbs.jsx +1 -0
- package/src/ui/Callout/Callout.jsx +12 -0
- package/src/ui/Callout/Callout.stories.jsx +42 -0
- package/src/ui/{Pullquote/Pullquote.jsx → Quote/Quote.jsx} +9 -9
- package/src/ui/{Pullquote/Pullquote.stories.jsx → Quote/Quote.stories.jsx} +18 -18
- 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/collections/breadcrumb.overrides +0 -16
- package/theme/themes/eea/collections/form.overrides +1 -1
- package/theme/themes/eea/collections/table.overrides +48 -0
- package/theme/themes/eea/collections/table.variables +16 -0
- package/theme/themes/eea/elements/button.overrides +11 -2
- package/theme/themes/eea/elements/container.overrides +4 -19
- package/theme/themes/eea/elements/container.variables +5 -4
- package/theme/themes/eea/elements/input.overrides +68 -0
- package/theme/themes/eea/elements/segment.overrides +80 -0
- 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/header.less +1 -1
- 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.variables +11 -5
- package/theme/themes/eea/modules/accordion.variables +2 -2
- package/theme/themes/eea/tokens/fonts.less +38 -0
- package/theme/themes/eea/tokens/sizes.less +17 -0
- package/theme/themes/eea/tokens/tokens.less +2 -0
- package/src/ui/Blockquote/Blockquote.jsx +0 -16
- package/src/ui/Blockquote/Blockquote.stories.jsx +0 -48
- 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
|
@@ -178,7 +178,6 @@ p.ui.button {
|
|
|
178
178
|
opacity: @searchButtonIconOpacity;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
|
|
182
181
|
/************* Inverted Buttons *************/
|
|
183
182
|
// Override the light colors with the defaults
|
|
184
183
|
|
|
@@ -188,6 +187,7 @@ p.ui.button {
|
|
|
188
187
|
box-shadow: 0px 0px 0px @invertedBorderSize @primaryColor inset !important;
|
|
189
188
|
color: @primaryColor;
|
|
190
189
|
}
|
|
190
|
+
|
|
191
191
|
.ui.inverted.primary.buttons .button:hover,
|
|
192
192
|
.ui.inverted.primary.button:hover,
|
|
193
193
|
.ui.inverted.primary.buttons .button:focus,
|
|
@@ -198,18 +198,22 @@ p.ui.button {
|
|
|
198
198
|
.ui.inverted.primary.button:active {
|
|
199
199
|
color: @invertedHoveredTextColor;
|
|
200
200
|
}
|
|
201
|
+
|
|
201
202
|
.ui.inverted.primary.buttons .button:hover,
|
|
202
203
|
.ui.inverted.primary.button:hover {
|
|
203
204
|
background-color: @primaryColorHover;
|
|
204
205
|
}
|
|
206
|
+
|
|
205
207
|
.ui.inverted.primary.buttons .button:focus,
|
|
206
208
|
.ui.inverted.primary.button:focus {
|
|
207
209
|
background-color: @primaryColorFocus;
|
|
208
210
|
}
|
|
211
|
+
|
|
209
212
|
.ui.inverted.primary.buttons .active.button,
|
|
210
213
|
.ui.inverted.primary.active.button {
|
|
211
214
|
background-color: @primaryColorActive;
|
|
212
215
|
}
|
|
216
|
+
|
|
213
217
|
.ui.inverted.primary.buttons .button:active,
|
|
214
218
|
.ui.inverted.primary.button:active {
|
|
215
219
|
background-color: @primaryColorDown;
|
|
@@ -221,6 +225,7 @@ p.ui.button {
|
|
|
221
225
|
box-shadow: 0px 0px 0px @invertedBorderSize @secondaryColor inset !important;
|
|
222
226
|
color: @secondaryColor;
|
|
223
227
|
}
|
|
228
|
+
|
|
224
229
|
.ui.inverted.secondary.buttons .button:hover,
|
|
225
230
|
.ui.inverted.secondary.button:hover,
|
|
226
231
|
.ui.inverted.secondary.buttons .button:focus,
|
|
@@ -231,19 +236,23 @@ p.ui.button {
|
|
|
231
236
|
.ui.inverted.secondary.button:active {
|
|
232
237
|
color: @invertedHoveredTextColor;
|
|
233
238
|
}
|
|
239
|
+
|
|
234
240
|
.ui.inverted.secondary.buttons .button:hover,
|
|
235
241
|
.ui.inverted.secondary.button:hover {
|
|
236
242
|
background-color: @secondaryColorHover;
|
|
237
243
|
}
|
|
244
|
+
|
|
238
245
|
.ui.inverted.secondary.buttons .button:focus,
|
|
239
246
|
.ui.inverted.secondary.button:focus {
|
|
240
247
|
background-color: @secondaryColorFocus;
|
|
241
248
|
}
|
|
249
|
+
|
|
242
250
|
.ui.inverted.secondary.buttons .active.button,
|
|
243
251
|
.ui.inverted.secondary.active.button {
|
|
244
252
|
background-color: @secondaryColorActive;
|
|
245
253
|
}
|
|
254
|
+
|
|
246
255
|
.ui.inverted.secondary.buttons .button:active,
|
|
247
256
|
.ui.inverted.secondary.button:active {
|
|
248
257
|
background-color: @secondaryColorDown;
|
|
249
|
-
}
|
|
258
|
+
}
|
|
@@ -4,31 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
/* All Sizes */
|
|
6
6
|
.ui.container {
|
|
7
|
-
width: 100%;
|
|
8
|
-
padding-right: @mobilePadding;
|
|
9
|
-
padding-left: @mobilePadding;
|
|
10
7
|
transition: width 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045),
|
|
11
8
|
margin-left 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045),
|
|
12
9
|
margin-right 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045);
|
|
13
10
|
}
|
|
14
11
|
|
|
15
|
-
// TODO fix issue of large container padding and then remove this fix
|
|
16
|
-
#toolbar .pastanaga-menu .ui.container {
|
|
17
|
-
padding: @profileSectionPadding;
|
|
18
|
-
}
|
|
19
12
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@media only screen and (min-width: @computerBreakpoint) {
|
|
28
|
-
.ui.container {
|
|
29
|
-
padding-right: @computerPadding;
|
|
30
|
-
padding-left: @computerPadding;
|
|
31
|
-
}
|
|
13
|
+
// add padding to containers on edit section so that we display add and delete buttons
|
|
14
|
+
.section-edit .container {
|
|
15
|
+
padding: 0 3rem;
|
|
16
|
+
width: auto !important;
|
|
32
17
|
}
|
|
33
18
|
|
|
34
19
|
.contentWidth(@offset) {
|
|
@@ -13,14 +13,16 @@
|
|
|
13
13
|
|
|
14
14
|
/* Minimum Gutter is used to determine the maximum container width for a given device */
|
|
15
15
|
|
|
16
|
-
@maxWidth:
|
|
16
|
+
@maxWidth: 100%;
|
|
17
|
+
@scrollbarWidth: 16px;
|
|
17
18
|
|
|
18
19
|
/* Devices */
|
|
19
20
|
@mobileMinimumGutter: 0em;
|
|
20
21
|
@mobileWidth: auto;
|
|
21
|
-
@mobileGutter:
|
|
22
|
+
@mobileGutter: 1.25rem;
|
|
22
23
|
|
|
23
|
-
@
|
|
24
|
+
@tabletEmSize: 14px;
|
|
25
|
+
@tabletMinimumGutter: (@tabletEmSize * 1);
|
|
24
26
|
@tabletWidth: @tabletBreakpoint - (@tabletMinimumGutter * 2) - @scrollbarWidth;
|
|
25
27
|
@tabletGutter: auto;
|
|
26
28
|
|
|
@@ -63,4 +65,3 @@
|
|
|
63
65
|
@textSize: @large;
|
|
64
66
|
|
|
65
67
|
/* Section */
|
|
66
|
-
@profileSectionPadding: 0px;
|
|
@@ -1,3 +1,71 @@
|
|
|
1
|
+
/*******************************
|
|
2
|
+
Pastanaga Theme Overrides
|
|
3
|
+
*******************************/
|
|
4
|
+
|
|
5
|
+
.ui.input input {
|
|
6
|
+
font-weight: @inputFontWeight;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.inline.field {
|
|
10
|
+
.wrapper {
|
|
11
|
+
display: flex;
|
|
12
|
+
min-height: 60px;
|
|
13
|
+
align-items: center;
|
|
14
|
+
border-bottom: 1px solid @lightGreyBorderColor;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.required .wrapper {
|
|
18
|
+
> label[for]::after,
|
|
19
|
+
.ui.label::after {
|
|
20
|
+
display: inline-block;
|
|
21
|
+
width: 10px;
|
|
22
|
+
height: 10px;
|
|
23
|
+
margin-left: 5px;
|
|
24
|
+
background-color: @pink;
|
|
25
|
+
border-radius: 50%;
|
|
26
|
+
content: '';
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.text {
|
|
31
|
+
.toolbar {
|
|
32
|
+
display: block;
|
|
33
|
+
margin-top: 18px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.textarea {
|
|
38
|
+
.wrapper,
|
|
39
|
+
.toolbar {
|
|
40
|
+
display: block;
|
|
41
|
+
margin-top: 18px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
textarea {
|
|
45
|
+
min-height: 60px;
|
|
46
|
+
padding: 0;
|
|
47
|
+
margin-top: 18px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.wysiwyg {
|
|
52
|
+
.wrapper,
|
|
53
|
+
.toolbar {
|
|
54
|
+
display: block;
|
|
55
|
+
margin-top: 18px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.DraftEditor-root {
|
|
59
|
+
min-height: 60px;
|
|
60
|
+
margin-top: 18px;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ui.checkbox ~ .ui.basic.label {
|
|
65
|
+
border: 0;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
1
69
|
/*******************************
|
|
2
70
|
Theme Overrides
|
|
3
71
|
*******************************/
|
|
@@ -1,3 +1,83 @@
|
|
|
1
|
+
/*******************************
|
|
2
|
+
Pastanaga Theme Overrides
|
|
3
|
+
*******************************/
|
|
4
|
+
|
|
5
|
+
.ui.basic.segment.content-area {
|
|
6
|
+
flex: 1 0 auto; /* IE11 fix, can't barely use flex: 1; */
|
|
7
|
+
padding-right: 0;
|
|
8
|
+
padding-left: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ui.primary.segment {
|
|
12
|
+
border-bottom: @4px solid @greyBorderColor;
|
|
13
|
+
font-size: @16px;
|
|
14
|
+
font-weight: @headerFontWeight;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ui.secondary.segment {
|
|
18
|
+
font-size: @16px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ui.discreet.segment {
|
|
22
|
+
color: @lightGrey;
|
|
23
|
+
font-size: @14px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// eea add .form class for inline form with booleans, the segment doesn't have form class
|
|
27
|
+
.form .segment,
|
|
28
|
+
.ui.form.segment {
|
|
29
|
+
// // commented to restore padding to a list of toggle inputs within field-wrapper-hideContentType
|
|
30
|
+
// padding: 0;
|
|
31
|
+
//
|
|
32
|
+
.ui.grid > .row {
|
|
33
|
+
padding-top: 0;
|
|
34
|
+
padding-bottom: 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.ui.actions.segment {
|
|
39
|
+
border-top: @1px solid @lightGreyBorderColor;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.inverted.segment a.item {
|
|
43
|
+
color: @white;
|
|
44
|
+
text-decoration: underline;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.pusher > .ui.basic.segment {
|
|
48
|
+
padding-bottom: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.ui.secondary.attached.segment {
|
|
52
|
+
text-transform: uppercase;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ui.segment.dashed {
|
|
56
|
+
border: 3px dashed #ccc;
|
|
57
|
+
box-shadow: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.users-control-panel .ui.clearing.segment.actions {
|
|
61
|
+
display: inline-block;
|
|
62
|
+
width: 100%;
|
|
63
|
+
text-transform: uppercase;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.users-control-panel table div.item::after {
|
|
67
|
+
display: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ui.segment.imageborder {
|
|
71
|
+
display: flex;
|
|
72
|
+
height: 100%;
|
|
73
|
+
align-items: center;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ui.segment.listing-item {
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
}
|
|
80
|
+
|
|
1
81
|
/*******************************
|
|
2
82
|
Theme Overrides
|
|
3
83
|
*******************************/
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*******************************
|
|
2
|
+
Avatar
|
|
3
|
+
*******************************/
|
|
4
|
+
|
|
5
|
+
/* Global */
|
|
6
|
+
@avatarWidth : 100%;
|
|
7
|
+
@avatarWrapperWidth : 100%;
|
|
8
|
+
@avatarWrapperGap : @largeGap;
|
|
9
|
+
@avatarContentWrapperWidth : 100%;
|
|
10
|
+
@avatarImageBorderRadius : 50%;
|
|
11
|
+
@avatarContentTitleMarginBottom : 0;
|
|
12
|
+
@avatarImageWrapperWidth : 100%;
|
|
13
|
+
@avatarImageBackgroundSize : cover;
|
|
14
|
+
@avatarContentTitleFontWeight : @bold;
|
|
15
|
+
@avatarContentTitleFontSize : 1.25rem;
|
|
16
|
+
|
|
17
|
+
/* Big */
|
|
18
|
+
@avatarBigImageHeight : 173px;
|
|
19
|
+
@avatarBigImageWidth : 173px;
|
|
20
|
+
@avatarBigMetadataFontSize : 1.25rem;
|
|
21
|
+
@avatarBigMetadataFontWeight : @normal;
|
|
22
|
+
|
|
23
|
+
/* Small */
|
|
24
|
+
@avatarSmallImageHeight : 135px;
|
|
25
|
+
@avatarSmallImageWidth : 135px;
|
|
26
|
+
@avatarSmallTitleColor : @secondaryColor;
|
|
27
|
+
@avatarSmallMetadataFontSize : 1rem;
|
|
28
|
+
@avatarSmallMetadataFontWeight : 300;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@type: 'extra';
|
|
2
|
+
@element: 'callout';
|
|
3
|
+
|
|
4
|
+
@import (multiple) '../../theme.config';
|
|
5
|
+
|
|
6
|
+
/*******************************
|
|
7
|
+
Callout
|
|
8
|
+
*******************************/
|
|
9
|
+
|
|
10
|
+
p.callout,
|
|
11
|
+
blockquote.callout,
|
|
12
|
+
.eea.callout {
|
|
13
|
+
border: @calloutBorder;
|
|
14
|
+
box-shadow: @calloutBoxShadow;
|
|
15
|
+
border-radius: @calloutBorderRadius;
|
|
16
|
+
padding-top: @calloutPadding;
|
|
17
|
+
padding-bottom: @calloutPadding;
|
|
18
|
+
border-left: @mobileCalloutBorderLeft;
|
|
19
|
+
border-right: @calloutBorder;
|
|
20
|
+
border-top: @calloutBorder;
|
|
21
|
+
border-bottom: @calloutBorder;
|
|
22
|
+
color: @quoteColor;
|
|
23
|
+
font-size: @mobileQuoteFontSize;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@media only screen and (min-width: @tabletBreakpoint) {
|
|
27
|
+
p.callout,
|
|
28
|
+
blockquote.callout,
|
|
29
|
+
.eea.callout {
|
|
30
|
+
border-left: @tabletCalloutBorderLeft;
|
|
31
|
+
font-size: @tabletQuoteFontSize;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media only screen and (min-width: @computerBreakpoint) {
|
|
36
|
+
p.callout,
|
|
37
|
+
blockquote.callout,
|
|
38
|
+
.eea.callout {
|
|
39
|
+
font-size: @computerQuoteFontSize;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.loadUIOverrides();
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*******************************
|
|
2
|
+
Callout
|
|
3
|
+
*******************************/
|
|
4
|
+
/* Body */
|
|
5
|
+
@mobileCalloutBorderLeft : @5px solid @secondaryColor;
|
|
6
|
+
@tabletCalloutBorderLeft : @10px solid @secondaryColor;
|
|
7
|
+
|
|
8
|
+
/* Text */
|
|
9
|
+
@quoteColor : @japaneseIndigo;
|
|
10
|
+
@mobileQuoteFontSize : 1rem;
|
|
11
|
+
@tabletQuoteFontSize : @h6;
|
|
12
|
+
@computerQuoteFontSize : @h5;
|
|
13
|
+
@quoteFontWeight : 400;
|
|
14
|
+
|
|
15
|
+
/* Layout */
|
|
16
|
+
@calloutBorder : none;
|
|
17
|
+
@calloutBoxShadow : none;
|
|
18
|
+
@calloutBorderRadius : 0;
|
|
19
|
+
@calloutPadding : 0;
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
align-items: center;
|
|
23
23
|
justify-content: space-between;
|
|
24
24
|
z-index: @topSectionZindex;
|
|
25
|
-
width: 100% !important; // Semantic has auto
|
|
26
25
|
}
|
|
27
26
|
.item {
|
|
28
27
|
display: flex;
|
|
@@ -392,6 +391,7 @@ Header Actions - Burger and Search Icons
|
|
|
392
391
|
}
|
|
393
392
|
|
|
394
393
|
.ui.text.menu {
|
|
394
|
+
flex-wrap: wrap;
|
|
395
395
|
display: flex;
|
|
396
396
|
width: 88%;
|
|
397
397
|
max-height: 20px;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
@type: 'extra';
|
|
2
|
-
@element: '
|
|
2
|
+
@element: 'quote';
|
|
3
3
|
|
|
4
4
|
@import (multiple) '../../theme.config';
|
|
5
5
|
|
|
6
6
|
/*******************************
|
|
7
|
-
|
|
7
|
+
Quote
|
|
8
8
|
*******************************/
|
|
9
9
|
|
|
10
|
-
.eea.
|
|
11
|
-
padding: @
|
|
12
|
-
margin: @
|
|
10
|
+
.eea.quote {
|
|
11
|
+
padding: @quotePadding;
|
|
12
|
+
margin: @quoteMargin;
|
|
13
13
|
word-break: @contentWordBreak;
|
|
14
14
|
hyphens: @contentWordBreakHyphens;
|
|
15
15
|
|
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
.
|
|
40
|
-
color: @
|
|
41
|
-
text-align: @
|
|
42
|
-
font-weight: @
|
|
43
|
-
font-size: @
|
|
44
|
-
margin: @
|
|
39
|
+
.source {
|
|
40
|
+
color: @sourceTextColor;
|
|
41
|
+
text-align: @sourceTextAlign;
|
|
42
|
+
font-weight: @sourceFontWeight;
|
|
43
|
+
font-size: @sourceFontSize;
|
|
44
|
+
margin: @sourceMargin;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
.
|
|
48
|
-
text-align: @
|
|
49
|
-
font-weight: @
|
|
50
|
-
font-size: @
|
|
47
|
+
.info {
|
|
48
|
+
text-align: @sourceInfoTextAlign;
|
|
49
|
+
font-weight: @sourceInfoFontWeight;
|
|
50
|
+
font-size: @sourceInfoFontSize;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
@media only screen and (min-width: @tabletBreakpoint) {
|
|
55
|
-
.eea.
|
|
55
|
+
.eea.quote {
|
|
56
56
|
.quotes.wrapper {
|
|
57
57
|
.quote {
|
|
58
58
|
padding: @tabletQuotePadding;
|
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
.eea.
|
|
66
|
+
.eea.quote.left {
|
|
67
67
|
width: @maxWidthOnFloat;
|
|
68
|
-
padding: @
|
|
68
|
+
padding: @quoteFloatLeftPadding;
|
|
69
69
|
float: left;
|
|
70
70
|
}
|
|
71
|
-
.eea.
|
|
71
|
+
.eea.quote.right {
|
|
72
72
|
width: @maxWidthOnFloat;
|
|
73
|
-
padding: @
|
|
73
|
+
padding: @quoteFloatRightPadding;
|
|
74
74
|
float: right;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*******************************
|
|
2
|
+
Quote
|
|
3
|
+
*******************************/
|
|
4
|
+
|
|
5
|
+
/* Body */
|
|
6
|
+
@quotePadding : @largeGap 0;
|
|
7
|
+
@quoteFloatLeftPadding : @largeGap @hugeGap @largeGap 0;
|
|
8
|
+
@quoteFloatRightPadding : @largeGap 0 @largeGap @hugeGap;
|
|
9
|
+
@quoteMargin : 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
|
+
/* Source */
|
|
19
|
+
@sourceTextColor : @secondaryColor;
|
|
20
|
+
@sourceTextAlign : right;
|
|
21
|
+
@sourceFontWeight : @bold;
|
|
22
|
+
@sourceFontSize : 1.25rem;
|
|
23
|
+
@sourceMargin : 0;
|
|
24
|
+
|
|
25
|
+
/* Source Info */
|
|
26
|
+
@sourceInfoTextAlign : right;
|
|
27
|
+
@sourceInfoFontWeight : @normal;
|
|
28
|
+
@sourceInfoFontSize : 1rem;
|
|
29
|
+
|
|
30
|
+
/* Icon */
|
|
31
|
+
@mobileQuoteIconSize : 2rem;
|
|
32
|
+
@tabletQuoteIconSize : 3rem;
|
|
33
|
+
@quoteIconColor : @secondaryColor;
|
|
34
|
+
@quoteDownIconFloat : right;
|
|
@@ -8,8 +8,15 @@
|
|
|
8
8
|
--------------------*/
|
|
9
9
|
|
|
10
10
|
.eea.testimonial {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
gap: @testimonialGap;
|
|
11
14
|
width: @testimonialWidth;
|
|
12
15
|
|
|
16
|
+
.eea.pullquote {
|
|
17
|
+
padding: 1.25rem 0 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
13
20
|
.avatar-wrapper {
|
|
14
21
|
display: flex;
|
|
15
22
|
justify-content: center;
|
|
@@ -17,12 +24,45 @@
|
|
|
17
24
|
height: @testimonialAvatarWrapperHeight;
|
|
18
25
|
}
|
|
19
26
|
|
|
20
|
-
.
|
|
27
|
+
.ui.card.rounded {
|
|
28
|
+
flex-direction: row-reverse;
|
|
29
|
+
align-items: center;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.eea.testimonial .content h3.title {
|
|
34
|
+
margin: @testimonialContentTitleMarginVertical
|
|
35
|
+
@mobileTestimonialContentTitleMarginHorizontal;
|
|
36
|
+
font-weight: @testimonialContentTitleFontWeight;
|
|
37
|
+
color: @testimonialContentTitleColor;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.eea.testimonial .ui.grid div:first-child {
|
|
41
|
+
order: 1;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@media only screen and (min-width: @tabletBreakpoint) {
|
|
46
|
+
|
|
47
|
+
.eea.testimonial .ui.card.rounded {
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.eea.testimonial .content h3.title {
|
|
21
52
|
margin: @testimonialContentTitleMarginVertical
|
|
22
|
-
@
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
53
|
+
@tabletTestimonialContentTitleMarginHorizontal;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.eea.testimonial .ui.grid div:first-child {
|
|
57
|
+
order: 0;
|
|
27
58
|
}
|
|
28
59
|
}
|
|
60
|
+
|
|
61
|
+
// Override image default size for mobile
|
|
62
|
+
@media only screen and (max-width: @largestMobileScreen) {
|
|
63
|
+
.eea.testimonial .ui.card.rounded img {
|
|
64
|
+
width: @mobileCardImageWidth;
|
|
65
|
+
height: @mobileCardImageHeight;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
@@ -4,10 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
@testimonialWidth : 100%;
|
|
7
|
+
@testimonialGap : @largeGap;
|
|
7
8
|
@testimonialAvatarWrapperHeight : 100%;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
@
|
|
13
|
-
@
|
|
9
|
+
|
|
10
|
+
/* Pullquote */
|
|
11
|
+
|
|
12
|
+
/* Title */
|
|
13
|
+
@testimonialContentTitleMarginVertical : 0;
|
|
14
|
+
@mobileTestimonialContentTitleMarginHorizontal : 0;
|
|
15
|
+
@tabletTestimonialContentTitleMarginHorizontal : 3.125rem;
|
|
16
|
+
@testimonialContentTitleFontWeight : 500;
|
|
17
|
+
@testimonialContentTitleColor : @deepBlue;
|
|
18
|
+
|
|
19
|
+
/* Image */
|
|
20
|
+
@mobileCardImageWidth : 100px;
|
|
21
|
+
@mobileCardImageHeight : 100px;
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Site Settings
|
|
3
3
|
*******************************/
|
|
4
4
|
|
|
5
|
+
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/tokens/tokens';
|
|
6
|
+
|
|
5
7
|
/*-------------------
|
|
6
8
|
Fonts
|
|
7
9
|
--------------------*/
|
|
@@ -284,10 +286,15 @@
|
|
|
284
286
|
--------------------*/
|
|
285
287
|
|
|
286
288
|
@mobileBreakpoint : 320px;
|
|
287
|
-
@
|
|
288
|
-
@
|
|
289
|
-
@
|
|
290
|
-
@
|
|
289
|
+
@mobileLandscapeBreakpoint : 480px; // introduced for the design system
|
|
290
|
+
@tabletBreakpoint : 768px;
|
|
291
|
+
@contentBreakpoint : 835px; // introduced for the design system
|
|
292
|
+
@computerBreakpoint : 992px;
|
|
293
|
+
@smallMonitorBreakpoint : 1024px; // introduced for the design system
|
|
294
|
+
@largeMonitorBreakpoint : 1200px;
|
|
295
|
+
@laptopMonitorBreakpoint : 1280px; // introduced for the design system
|
|
296
|
+
@siteBreakpoint : 1400px; // introduced for the design system
|
|
297
|
+
@widescreenMonitorBreakpoint : 1920px;
|
|
291
298
|
|
|
292
299
|
/* Paddings for breakpoints */
|
|
293
300
|
@mobilePadding : 1.875rem;
|
|
@@ -664,7 +671,6 @@
|
|
|
664
671
|
@largestTabletScreen : (@computerBreakpoint - @1px);
|
|
665
672
|
@largestSmallMonitor : (@largeMonitorBreakpoint - @1px);
|
|
666
673
|
@largestLargeMonitor : (@widescreenMonitorBreakpoint - @1px);
|
|
667
|
-
@mobileWidth: 1279px;
|
|
668
674
|
|
|
669
675
|
|
|
670
676
|
/*-------------------
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
|
|
100
100
|
/* Styled Title States */
|
|
101
101
|
@styledTitleHoverBackground: transparent;
|
|
102
|
-
@styledTitleHoverColor: @
|
|
103
|
-
@styledActiveTitleBackground: @
|
|
102
|
+
@styledTitleHoverColor: @activeTitleBackground;
|
|
103
|
+
@styledActiveTitleBackground: @activeTitleBackground;
|
|
104
104
|
@styledActiveTitleColor: @white;
|
|
105
105
|
|
|
106
106
|
/* Styled Child Title States */
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@font-weight-1: 100;
|
|
2
|
+
@font-weight-2: 200;
|
|
3
|
+
@font-weight-3: 300;
|
|
4
|
+
@font-weight-4: 400;
|
|
5
|
+
@font-weight-5: 500;
|
|
6
|
+
@font-weight-6: 600;
|
|
7
|
+
@font-weight-7: 700;
|
|
8
|
+
@font-weight-8: 800;
|
|
9
|
+
@font-weight-9: 900;
|
|
10
|
+
@font-lineheight-00: .95;
|
|
11
|
+
@font-lineheight-0: 1.1;
|
|
12
|
+
@font-lineheight-1: 1.25;
|
|
13
|
+
@font-lineheight-2: 1.375;
|
|
14
|
+
@font-lineheight-3: 1.5;
|
|
15
|
+
@font-lineheight-4: 1.75;
|
|
16
|
+
@font-lineheight-5: 2;
|
|
17
|
+
@font-letterspacing-0: -.05em;
|
|
18
|
+
@font-letterspacing-1: .025em;
|
|
19
|
+
@font-letterspacing-2: .050em;
|
|
20
|
+
@font-letterspacing-3: .075em;
|
|
21
|
+
@font-letterspacing-4: .150em;
|
|
22
|
+
@font-letterspacing-5: .500em;
|
|
23
|
+
@font-letterspacing-6: .750em;
|
|
24
|
+
@font-letterspacing-7: 1em;
|
|
25
|
+
@font-size-00: .5rem;
|
|
26
|
+
@font-size-0: .75rem;
|
|
27
|
+
@font-size-1: 1rem;
|
|
28
|
+
@font-size-2: 1.1rem;
|
|
29
|
+
@font-size-3: 1.25rem;
|
|
30
|
+
@font-size-4: 1.5rem;
|
|
31
|
+
@font-size-5: 2rem;
|
|
32
|
+
@font-size-6: 2.5rem;
|
|
33
|
+
@font-size-7: 3rem;
|
|
34
|
+
@font-size-8: 3.5rem;
|
|
35
|
+
@font-size-fluid-0: clamp(.75rem, 2vw, 1rem);
|
|
36
|
+
@font-size-fluid-1: clamp(1rem, 4vw, 1.5rem);
|
|
37
|
+
@font-size-fluid-2: clamp(1.5rem, 6vw, 2.5rem);
|
|
38
|
+
@font-size-fluid-3: clamp(2rem, 9vw, 3.5rem);
|