@eeacms/volto-eea-design-system 0.8.0 → 0.9.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 +1879 -1839
- package/mockups/EEA component library.fig +0 -0
- package/mockups/page-templates/R1 R3 templates.fig +0 -0
- package/mockups/page-templates/WISE BISE FISE.fig +0 -0
- package/mockups/page-templates/datahub/Data hub updated proposal.fig +0 -0
- package/mockups/page-templates/homepage_selected_upd1.fig +0 -0
- package/mockups/special-designs/Mega Menu.fig +0 -0
- package/mockups/special-designs/New footer.fig +0 -0
- package/mockups/special-designs/Search (Final).fig +0 -0
- package/mockups/special-designs/Side Navigation.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/collections/message.overrides +19 -20
- package/theme/themes/eea/collections/message.variables +45 -23
- package/theme/themes/eea/elements/button.overrides +3 -3
- package/theme/themes/eea/elements/button.variables +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/footer.less +3 -27
- package/theme/themes/eea/extras/footer.variables +4 -5
- 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 +27 -23
- package/theme/themes/eea/views/card.overrides +40 -33
- package/theme/themes/eea/views/card.variables +2 -0
- package/theme/themes/eea/views/statistic.overrides +40 -2
- package/theme/themes/eea/views/statistic.variables +5 -2
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
height: 100%;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.ui.cards > .card > .image,
|
|
18
|
-
.ui.card > .image {
|
|
17
|
+
.ui.cards > .card:not(.rounded) > .image,
|
|
18
|
+
.ui.card:not(.rounded) > .image {
|
|
19
19
|
overflow: @cardImageOverflow;
|
|
20
20
|
height: @cardImageHeight;
|
|
21
21
|
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.ui.cards > .card > i.icon,
|
|
31
|
-
.ui.cards > .card > a > i.icon,
|
|
31
|
+
.ui.cards > .card > a:not(.ui) > i.icon,
|
|
32
32
|
.ui.card > i.icon,
|
|
33
|
-
.ui.card > a > i.icon {
|
|
33
|
+
.ui.card > a:not(.ui) > i.icon {
|
|
34
34
|
color: @iconColor;
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
.ui.card .meta {
|
|
43
43
|
display: flex;
|
|
44
44
|
justify-content: space-between;
|
|
45
|
+
width: 100%;
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
margin-bottom: @rem-space-4;
|
|
56
57
|
}
|
|
57
58
|
|
|
58
|
-
.ui.card .extra.content a {
|
|
59
|
+
.ui.card .extra.content a:not(.ui) {
|
|
59
60
|
font-weight: @contentLinkFontWeight;
|
|
60
61
|
|
|
61
62
|
&:hover {
|
|
@@ -89,9 +90,9 @@
|
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
.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,
|
|
93
|
+
.ui.card.primary > a:not(.ui) > i.icon,
|
|
94
|
+
.ui.card.primary > .content a:not(.ui),
|
|
95
|
+
.ui.card.primary > .content a:not(.ui):hover,
|
|
95
96
|
.ui.card.primary > .content > .description {
|
|
96
97
|
color: @primaryDescriptionColor;
|
|
97
98
|
}
|
|
@@ -105,7 +106,7 @@
|
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
.ui.card.primary > .content > .meta,
|
|
108
|
-
.ui.card.primary > .content > .meta a {
|
|
109
|
+
.ui.card.primary > .content > .meta a:not(.ui) {
|
|
109
110
|
color: @primaryMetaColor;
|
|
110
111
|
}
|
|
111
112
|
|
|
@@ -115,8 +116,8 @@
|
|
|
115
116
|
color: @invertedPrimaryContentColor;
|
|
116
117
|
}
|
|
117
118
|
|
|
118
|
-
.ui.card.primary.inverted > a > i.icon,
|
|
119
|
-
.ui.card.primary.inverted > .content a,
|
|
119
|
+
.ui.card.primary.inverted > a:not(.ui) > i.icon,
|
|
120
|
+
.ui.card.primary.inverted > .content a:not(.ui),
|
|
120
121
|
.ui.card.primary.inverted > .extra.content a:not(.ui) {
|
|
121
122
|
color: @invertedPrimaryContentColor;
|
|
122
123
|
|
|
@@ -135,9 +136,9 @@
|
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
.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,
|
|
139
|
+
.ui.card.secondary > a:not(.ui) > i.icon,
|
|
140
|
+
.ui.card.secondary > .content a:not(.ui),
|
|
141
|
+
.ui.card.secondary > .content a:not(.ui):hover,
|
|
141
142
|
.ui.card.secondary > .content > .header {
|
|
142
143
|
color: @secondaryHeaderColor;
|
|
143
144
|
}
|
|
@@ -155,7 +156,7 @@
|
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
.ui.card.secondary > .content > .meta,
|
|
158
|
-
.ui.card.secondary > .content > .meta a {
|
|
159
|
+
.ui.card.secondary > .content > .meta a:not(.ui) {
|
|
159
160
|
color: @secondaryMetaColor;
|
|
160
161
|
}
|
|
161
162
|
|
|
@@ -165,8 +166,8 @@
|
|
|
165
166
|
color: @invertedSecondaryContentColor;
|
|
166
167
|
}
|
|
167
168
|
|
|
168
|
-
.ui.card.secondary.inverted > a > i.icon,
|
|
169
|
-
.ui.card.secondary.inverted > .content a,
|
|
169
|
+
.ui.card.secondary.inverted > a:not(.ui) > i.icon,
|
|
170
|
+
.ui.card.secondary.inverted > .content a:not(.ui),
|
|
170
171
|
.ui.card.secondary.inverted > .extra.content a:not(.ui) {
|
|
171
172
|
color: @invertedSecondaryContentColor;
|
|
172
173
|
|
|
@@ -185,9 +186,9 @@
|
|
|
185
186
|
}
|
|
186
187
|
|
|
187
188
|
.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,
|
|
189
|
+
.ui.card.tertiary > a:not(.ui) > i.icon,
|
|
190
|
+
.ui.card.tertiary > .content a:not(.ui),
|
|
191
|
+
.ui.card.tertiary > .content a:not(.ui):hover,
|
|
191
192
|
.ui.card.tertiary > .content > .header {
|
|
192
193
|
color: @tertiaryHeaderColor;
|
|
193
194
|
}
|
|
@@ -205,7 +206,7 @@
|
|
|
205
206
|
}
|
|
206
207
|
|
|
207
208
|
.ui.card.tertiary > .content > .meta,
|
|
208
|
-
.ui.card.tertiary > .content > .meta a {
|
|
209
|
+
.ui.card.tertiary > .content > .meta a:not(.ui) {
|
|
209
210
|
color: @tertiaryMetaColor;
|
|
210
211
|
}
|
|
211
212
|
|
|
@@ -215,8 +216,8 @@
|
|
|
215
216
|
color: @invertedTertiaryContentColor;
|
|
216
217
|
}
|
|
217
218
|
|
|
218
|
-
.ui.card.tertiary.inverted > a > i.icon,
|
|
219
|
-
.ui.card.tertiary.inverted > .content a,
|
|
219
|
+
.ui.card.tertiary.inverted > a:not(.ui) > i.icon,
|
|
220
|
+
.ui.card.tertiary.inverted > .content a:not(.ui),
|
|
220
221
|
.ui.card.tertiary.inverted > .extra.content a:not(.ui) {
|
|
221
222
|
color: @invertedTertiaryContentColor;
|
|
222
223
|
|
|
@@ -234,34 +235,35 @@
|
|
|
234
235
|
height: auto;
|
|
235
236
|
}
|
|
236
237
|
|
|
238
|
+
.ui.cards .ui.card.rounded,
|
|
237
239
|
.ui.card.rounded {
|
|
238
240
|
padding-top: @iconCardPaddingTop;
|
|
239
241
|
border: none;
|
|
240
242
|
|
|
241
243
|
.image {
|
|
242
244
|
display: flex;
|
|
243
|
-
justify-content:
|
|
245
|
+
justify-content: @roundedImageJustifyContent;
|
|
244
246
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
img {
|
|
250
|
+
width: @roundedImageWidth;
|
|
251
|
+
height: @roundedImageHeight;
|
|
252
|
+
border-radius: @roundedImageBorderRadius;
|
|
250
253
|
}
|
|
251
254
|
|
|
252
255
|
.content {
|
|
253
|
-
justify-content: center;
|
|
254
256
|
border-top: none;
|
|
255
257
|
|
|
256
258
|
.header {
|
|
257
259
|
margin-bottom: @roundedContentTitleMarginBottom;
|
|
258
260
|
font-size: @roundedContentTitleFontSize;
|
|
259
261
|
font-weight: @roundedContentTitleFontWeight;
|
|
260
|
-
text-align:
|
|
262
|
+
text-align: @roundedContentTitleTextAlign;
|
|
261
263
|
}
|
|
262
264
|
|
|
263
265
|
.description {
|
|
264
|
-
text-align:
|
|
266
|
+
text-align: @roundedContentTitleTextAlign;
|
|
265
267
|
font-size: @roundedMetadataFontSize;
|
|
266
268
|
font-weight: @roundedMetadataFontWeight;
|
|
267
269
|
}
|
|
@@ -288,7 +290,7 @@
|
|
|
288
290
|
background-color: @publicationCardDescriptionColor;
|
|
289
291
|
|
|
290
292
|
.meta,
|
|
291
|
-
.meta a {
|
|
293
|
+
.meta a:not(.ui) {
|
|
292
294
|
color: @publicationCardtextColor;
|
|
293
295
|
font-size: @cardMetaFontSize;
|
|
294
296
|
font-weight: @cardMetaTagFontWeight;
|
|
@@ -408,6 +410,7 @@
|
|
|
408
410
|
cursor: pointer;
|
|
409
411
|
outline: none;
|
|
410
412
|
transform: translate(0, -50%);
|
|
413
|
+
z-index: 1; // make arrows clickable even on events page with right column
|
|
411
414
|
}
|
|
412
415
|
|
|
413
416
|
.cards-carousel .prev-arrow {
|
|
@@ -421,6 +424,10 @@
|
|
|
421
424
|
}
|
|
422
425
|
|
|
423
426
|
/* Custom carousel pagination bullets */
|
|
427
|
+
// avoid dots going over content that follows sliders
|
|
428
|
+
.slick-dots {
|
|
429
|
+
bottom: 0;
|
|
430
|
+
}
|
|
424
431
|
.cards-carousel .slick-dots li button:before {
|
|
425
432
|
background-color: @carouselDotsBackgroundColor;
|
|
426
433
|
color: transparent;
|
|
@@ -274,8 +274,10 @@
|
|
|
274
274
|
/* Global */
|
|
275
275
|
@roundedImageBorderRadius : @circularRadius;
|
|
276
276
|
@roundedContentTitleMarginBottom : @rem-space-2;
|
|
277
|
+
@roundedContentTitleTextAlign : left;
|
|
277
278
|
@roundedContentTitleFontWeight : @bold;
|
|
278
279
|
@roundedContentTitleFontSize : @font-size-3;
|
|
280
|
+
@roundedImageJustifyContent : center;
|
|
279
281
|
@roundedImageHeight : 173px;
|
|
280
282
|
@roundedImageWidth : 173px;
|
|
281
283
|
@roundedMetadataFontSize : @font-size-1;
|
|
@@ -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;
|