@eeacms/volto-eea-design-system 0.8.1 → 0.9.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/CHANGELOG.md +1884 -1862
- package/mockups/EEA component library.fig +0 -0
- package/package.json +1 -1
- package/src/ui/ContextNavigation/ContextNavigation.stories.jsx +137 -58
- package/src/ui/Header/Header.jsx +12 -2
- package/theme/themes/eea/elements/button.overrides +3 -3
- package/theme/themes/eea/elements/button.variables +1 -1
- package/theme/themes/eea/elements/image.overrides +3 -0
- package/theme/themes/eea/elements/loader.overrides +1 -1
- package/theme/themes/eea/extras/banner.less +1 -1
- package/theme/themes/eea/extras/contextNavigation.less +66 -59
- package/theme/themes/eea/extras/contextNavigation.variables +41 -0
- package/theme/themes/eea/extras/header.less +107 -34
- package/theme/themes/eea/extras/header.variables +50 -27
- package/theme/themes/eea/globals/site.overrides +15 -0
- package/theme/themes/eea/globals/site.variables +6 -4
- package/theme/themes/eea/globals/utilities.less +9 -0
- package/theme/themes/eea/modules/checkbox.variables +1 -0
- package/theme/themes/eea/views/card.overrides +45 -34
- package/theme/themes/eea/views/card.variables +8 -2
- package/theme/themes/eea/views/statistic.overrides +40 -2
- package/theme/themes/eea/views/statistic.variables +5 -2
|
@@ -7,15 +7,19 @@
|
|
|
7
7
|
.ui.card > .extra {
|
|
8
8
|
font-size: @extraLinkFontSize;
|
|
9
9
|
word-break: @extraLinkWordBreak;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-wrap: wrap;
|
|
12
|
+
justify-content: var(--text-align, @extraJustifyContent);
|
|
10
13
|
}
|
|
11
14
|
|
|
12
15
|
/* Cards must have same height */
|
|
13
16
|
.ui.card {
|
|
14
17
|
height: 100%;
|
|
18
|
+
text-align: var(--text-align, @cardTextAlign);
|
|
15
19
|
}
|
|
16
20
|
|
|
17
|
-
.ui.cards > .card > .image,
|
|
18
|
-
.ui.card > .image {
|
|
21
|
+
.ui.cards > .card:not(.rounded) > .image,
|
|
22
|
+
.ui.card:not(.rounded) > .image {
|
|
19
23
|
overflow: @cardImageOverflow;
|
|
20
24
|
height: @cardImageHeight;
|
|
21
25
|
|
|
@@ -28,9 +32,9 @@
|
|
|
28
32
|
}
|
|
29
33
|
|
|
30
34
|
.ui.cards > .card > i.icon,
|
|
31
|
-
.ui.cards > .card > a > i.icon,
|
|
35
|
+
.ui.cards > .card > a:not(.ui) > i.icon,
|
|
32
36
|
.ui.card > i.icon,
|
|
33
|
-
.ui.card > a > i.icon {
|
|
37
|
+
.ui.card > a:not(.ui) > i.icon {
|
|
34
38
|
color: @iconColor;
|
|
35
39
|
}
|
|
36
40
|
|
|
@@ -41,7 +45,8 @@
|
|
|
41
45
|
|
|
42
46
|
.ui.card .meta {
|
|
43
47
|
display: flex;
|
|
44
|
-
justify-content:
|
|
48
|
+
justify-content: var(--justify-content, @metaJustifyContent);
|
|
49
|
+
width: 100%;
|
|
45
50
|
}
|
|
46
51
|
|
|
47
52
|
|
|
@@ -55,7 +60,7 @@
|
|
|
55
60
|
margin-bottom: @rem-space-4;
|
|
56
61
|
}
|
|
57
62
|
|
|
58
|
-
.ui.card .extra.content a {
|
|
63
|
+
.ui.card .extra.content a:not(.ui) {
|
|
59
64
|
font-weight: @contentLinkFontWeight;
|
|
60
65
|
|
|
61
66
|
&:hover {
|
|
@@ -89,9 +94,9 @@
|
|
|
89
94
|
}
|
|
90
95
|
|
|
91
96
|
.ui.card.primary > i.icon,
|
|
92
|
-
.ui.card.primary > a > i.icon,
|
|
93
|
-
.ui.card.primary > .content a,
|
|
94
|
-
.ui.card.primary > .content a:hover,
|
|
97
|
+
.ui.card.primary > a:not(.ui) > i.icon,
|
|
98
|
+
.ui.card.primary > .content a:not(.ui),
|
|
99
|
+
.ui.card.primary > .content a:not(.ui):hover,
|
|
95
100
|
.ui.card.primary > .content > .description {
|
|
96
101
|
color: @primaryDescriptionColor;
|
|
97
102
|
}
|
|
@@ -105,7 +110,7 @@
|
|
|
105
110
|
}
|
|
106
111
|
|
|
107
112
|
.ui.card.primary > .content > .meta,
|
|
108
|
-
.ui.card.primary > .content > .meta a {
|
|
113
|
+
.ui.card.primary > .content > .meta a:not(.ui) {
|
|
109
114
|
color: @primaryMetaColor;
|
|
110
115
|
}
|
|
111
116
|
|
|
@@ -115,8 +120,8 @@
|
|
|
115
120
|
color: @invertedPrimaryContentColor;
|
|
116
121
|
}
|
|
117
122
|
|
|
118
|
-
.ui.card.primary.inverted > a > i.icon,
|
|
119
|
-
.ui.card.primary.inverted > .content a,
|
|
123
|
+
.ui.card.primary.inverted > a:not(.ui) > i.icon,
|
|
124
|
+
.ui.card.primary.inverted > .content a:not(.ui),
|
|
120
125
|
.ui.card.primary.inverted > .extra.content a:not(.ui) {
|
|
121
126
|
color: @invertedPrimaryContentColor;
|
|
122
127
|
|
|
@@ -135,9 +140,9 @@
|
|
|
135
140
|
}
|
|
136
141
|
|
|
137
142
|
.ui.card.secondary > i.icon,
|
|
138
|
-
.ui.card.secondary > a > i.icon,
|
|
139
|
-
.ui.card.secondary > .content a,
|
|
140
|
-
.ui.card.secondary > .content a:hover,
|
|
143
|
+
.ui.card.secondary > a:not(.ui) > i.icon,
|
|
144
|
+
.ui.card.secondary > .content a:not(.ui),
|
|
145
|
+
.ui.card.secondary > .content a:not(.ui):hover,
|
|
141
146
|
.ui.card.secondary > .content > .header {
|
|
142
147
|
color: @secondaryHeaderColor;
|
|
143
148
|
}
|
|
@@ -155,7 +160,7 @@
|
|
|
155
160
|
}
|
|
156
161
|
|
|
157
162
|
.ui.card.secondary > .content > .meta,
|
|
158
|
-
.ui.card.secondary > .content > .meta a {
|
|
163
|
+
.ui.card.secondary > .content > .meta a:not(.ui) {
|
|
159
164
|
color: @secondaryMetaColor;
|
|
160
165
|
}
|
|
161
166
|
|
|
@@ -165,8 +170,8 @@
|
|
|
165
170
|
color: @invertedSecondaryContentColor;
|
|
166
171
|
}
|
|
167
172
|
|
|
168
|
-
.ui.card.secondary.inverted > a > i.icon,
|
|
169
|
-
.ui.card.secondary.inverted > .content a,
|
|
173
|
+
.ui.card.secondary.inverted > a:not(.ui) > i.icon,
|
|
174
|
+
.ui.card.secondary.inverted > .content a:not(.ui),
|
|
170
175
|
.ui.card.secondary.inverted > .extra.content a:not(.ui) {
|
|
171
176
|
color: @invertedSecondaryContentColor;
|
|
172
177
|
|
|
@@ -185,9 +190,9 @@
|
|
|
185
190
|
}
|
|
186
191
|
|
|
187
192
|
.ui.card.tertiary > i.icon,
|
|
188
|
-
.ui.card.tertiary > a > i.icon,
|
|
189
|
-
.ui.card.tertiary > .content a,
|
|
190
|
-
.ui.card.tertiary > .content a:hover,
|
|
193
|
+
.ui.card.tertiary > a:not(.ui) > i.icon,
|
|
194
|
+
.ui.card.tertiary > .content a:not(.ui),
|
|
195
|
+
.ui.card.tertiary > .content a:not(.ui):hover,
|
|
191
196
|
.ui.card.tertiary > .content > .header {
|
|
192
197
|
color: @tertiaryHeaderColor;
|
|
193
198
|
}
|
|
@@ -205,7 +210,7 @@
|
|
|
205
210
|
}
|
|
206
211
|
|
|
207
212
|
.ui.card.tertiary > .content > .meta,
|
|
208
|
-
.ui.card.tertiary > .content > .meta a {
|
|
213
|
+
.ui.card.tertiary > .content > .meta a:not(.ui) {
|
|
209
214
|
color: @tertiaryMetaColor;
|
|
210
215
|
}
|
|
211
216
|
|
|
@@ -215,8 +220,8 @@
|
|
|
215
220
|
color: @invertedTertiaryContentColor;
|
|
216
221
|
}
|
|
217
222
|
|
|
218
|
-
.ui.card.tertiary.inverted > a > i.icon,
|
|
219
|
-
.ui.card.tertiary.inverted > .content a,
|
|
223
|
+
.ui.card.tertiary.inverted > a:not(.ui) > i.icon,
|
|
224
|
+
.ui.card.tertiary.inverted > .content a:not(.ui),
|
|
220
225
|
.ui.card.tertiary.inverted > .extra.content a:not(.ui) {
|
|
221
226
|
color: @invertedTertiaryContentColor;
|
|
222
227
|
|
|
@@ -234,34 +239,35 @@
|
|
|
234
239
|
height: auto;
|
|
235
240
|
}
|
|
236
241
|
|
|
242
|
+
.ui.cards .ui.card.rounded,
|
|
237
243
|
.ui.card.rounded {
|
|
238
244
|
padding-top: @iconCardPaddingTop;
|
|
239
245
|
border: none;
|
|
240
246
|
|
|
241
247
|
.image {
|
|
242
248
|
display: flex;
|
|
243
|
-
justify-content:
|
|
249
|
+
justify-content: @roundedImageJustifyContent;
|
|
244
250
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
img {
|
|
254
|
+
width: @roundedImageWidth;
|
|
255
|
+
height: @roundedImageHeight;
|
|
256
|
+
border-radius: @roundedImageBorderRadius;
|
|
250
257
|
}
|
|
251
258
|
|
|
252
259
|
.content {
|
|
253
|
-
justify-content: center;
|
|
254
260
|
border-top: none;
|
|
255
261
|
|
|
256
262
|
.header {
|
|
257
263
|
margin-bottom: @roundedContentTitleMarginBottom;
|
|
258
264
|
font-size: @roundedContentTitleFontSize;
|
|
259
265
|
font-weight: @roundedContentTitleFontWeight;
|
|
260
|
-
text-align:
|
|
266
|
+
//text-align: @roundedContentTitleTextAlign;
|
|
261
267
|
}
|
|
262
268
|
|
|
263
269
|
.description {
|
|
264
|
-
text-align:
|
|
270
|
+
//text-align: @roundedContentTitleTextAlign;
|
|
265
271
|
font-size: @roundedMetadataFontSize;
|
|
266
272
|
font-weight: @roundedMetadataFontWeight;
|
|
267
273
|
}
|
|
@@ -288,7 +294,7 @@
|
|
|
288
294
|
background-color: @publicationCardDescriptionColor;
|
|
289
295
|
|
|
290
296
|
.meta,
|
|
291
|
-
.meta a {
|
|
297
|
+
.meta a:not(.ui) {
|
|
292
298
|
color: @publicationCardtextColor;
|
|
293
299
|
font-size: @cardMetaFontSize;
|
|
294
300
|
font-weight: @cardMetaTagFontWeight;
|
|
@@ -408,6 +414,7 @@
|
|
|
408
414
|
cursor: pointer;
|
|
409
415
|
outline: none;
|
|
410
416
|
transform: translate(0, -50%);
|
|
417
|
+
z-index: 1; // make arrows clickable even on events page with right column
|
|
411
418
|
}
|
|
412
419
|
|
|
413
420
|
.cards-carousel .prev-arrow {
|
|
@@ -421,6 +428,10 @@
|
|
|
421
428
|
}
|
|
422
429
|
|
|
423
430
|
/* Custom carousel pagination bullets */
|
|
431
|
+
// avoid dots going over content that follows sliders
|
|
432
|
+
.slick-dots {
|
|
433
|
+
bottom: 0;
|
|
434
|
+
}
|
|
424
435
|
.cards-carousel .slick-dots li button:before {
|
|
425
436
|
background-color: @carouselDotsBackgroundColor;
|
|
426
437
|
color: transparent;
|
|
@@ -49,6 +49,8 @@
|
|
|
49
49
|
Content
|
|
50
50
|
--------------------*/
|
|
51
51
|
|
|
52
|
+
@cardTextAlign: left;
|
|
53
|
+
|
|
52
54
|
|
|
53
55
|
/* Image */
|
|
54
56
|
@cardImageHeight: 200px;
|
|
@@ -84,6 +86,7 @@
|
|
|
84
86
|
@headerColor: @tertiaryColor;
|
|
85
87
|
|
|
86
88
|
/* Metadata */
|
|
89
|
+
@metaJustifyContent: space-between;
|
|
87
90
|
@metaFontSize: @relativeMedium;
|
|
88
91
|
@metaSpacing: 0.3em;
|
|
89
92
|
@metaColor: @tertiaryColor;
|
|
@@ -135,6 +138,7 @@
|
|
|
135
138
|
/* Additional Content */
|
|
136
139
|
@extraDivider: none;
|
|
137
140
|
@extraBackground: none;
|
|
141
|
+
@extraJustifyContent: right;
|
|
138
142
|
@extraPosition: static;
|
|
139
143
|
@extraWidth: auto;
|
|
140
144
|
@extraTop: 0em;
|
|
@@ -274,10 +278,12 @@
|
|
|
274
278
|
/* Global */
|
|
275
279
|
@roundedImageBorderRadius : @circularRadius;
|
|
276
280
|
@roundedContentTitleMarginBottom : @rem-space-2;
|
|
281
|
+
@roundedContentTitleTextAlign : left;
|
|
277
282
|
@roundedContentTitleFontWeight : @bold;
|
|
278
283
|
@roundedContentTitleFontSize : @font-size-3;
|
|
279
|
-
@
|
|
280
|
-
@
|
|
284
|
+
@roundedImageJustifyContent : center;
|
|
285
|
+
@roundedImageHeight : 176px;
|
|
286
|
+
@roundedImageWidth : 176px;
|
|
281
287
|
@roundedMetadataFontSize : @font-size-1;
|
|
282
288
|
@roundedMetadataFontWeight : @normal;
|
|
283
289
|
|
|
@@ -4,16 +4,54 @@
|
|
|
4
4
|
|
|
5
5
|
.ui.inverted.statistics,
|
|
6
6
|
.ui.inverted.statistic {
|
|
7
|
-
background: @
|
|
7
|
+
background: @invertedBackground;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
/* Full width statistics for mobile */
|
|
11
11
|
.ui.statistic {
|
|
12
12
|
width: @mobileStatisticWidth;
|
|
13
|
+
align-items: center;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
/* Custom statistic variations & text wrap */
|
|
17
|
+
.ui.statistics .ui.statistic {
|
|
18
|
+
max-width: min-content;
|
|
19
|
+
.value,
|
|
20
|
+
.label,
|
|
21
|
+
.slate {
|
|
22
|
+
max-width: fit-content;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ui.statistics:not(.inverted) .ui.statistic {
|
|
27
|
+
.value,
|
|
28
|
+
.label,
|
|
29
|
+
.slate {
|
|
30
|
+
min-width: @statisticContentMinWidth;
|
|
31
|
+
&.primary { color: @primaryColor; }
|
|
32
|
+
&.secondary { color: @secondaryColor; }
|
|
33
|
+
&.tertiary { color: @tertiaryColor; }
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.ui.statistics.inverted > a {
|
|
38
|
+
color: @white;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.ui.horizontal.statistics .statistic > .slate,
|
|
42
|
+
.ui.horizontal.statistic > .slate {
|
|
43
|
+
margin: 0em 0em 0em @horizontalLabelDistance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@media only screen and (min-width: @tabletBreakpoint) {
|
|
16
47
|
.ui.statistic {
|
|
17
48
|
width: @tabletStatisticWidth;
|
|
18
49
|
}
|
|
19
50
|
}
|
|
51
|
+
|
|
52
|
+
/* No horizontal statistic on mobile screens */
|
|
53
|
+
@media only screen and (max-width: @largestMobileScreen) {
|
|
54
|
+
.ui.statistics.horizontal .ui.statistic {
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -23,13 +23,15 @@
|
|
|
23
23
|
@groupMargin: @verticalMargin -@horizontalSpacing -@rowSpacing;
|
|
24
24
|
|
|
25
25
|
/* Group Element */
|
|
26
|
-
@elementMargin:
|
|
26
|
+
@elementMargin: @rowSpacing @horizontalSpacing @rowSpacing;
|
|
27
27
|
@elementMaxWidth: @maxWidth;
|
|
28
28
|
|
|
29
29
|
/*-------------------
|
|
30
30
|
Content
|
|
31
31
|
--------------------*/
|
|
32
32
|
|
|
33
|
+
@statisticContentMinWidth : @size-11;
|
|
34
|
+
|
|
33
35
|
/* Value */
|
|
34
36
|
@valueFont: @pageFont;
|
|
35
37
|
@valueFontWeight: @normal;
|
|
@@ -45,7 +47,7 @@
|
|
|
45
47
|
@labelFontWeight: @bold;
|
|
46
48
|
@labelColor: @primaryColor;
|
|
47
49
|
@labelLineHeight: @relativeLarge;
|
|
48
|
-
@labelTextTransform:
|
|
50
|
+
@labelTextTransform: none;
|
|
49
51
|
|
|
50
52
|
/* Text */
|
|
51
53
|
@textValueLineHeight: 1em;
|
|
@@ -74,6 +76,7 @@
|
|
|
74
76
|
/* Inverted */
|
|
75
77
|
@invertedValueColor: @white;
|
|
76
78
|
@invertedLabelColor: @invertedTextColor;
|
|
79
|
+
@invertedBackground: transparent;
|
|
77
80
|
|
|
78
81
|
/* Item Width */
|
|
79
82
|
@itemGroupMargin: 0em 0em -@rowSpacing;
|