@eeacms/volto-eea-design-system 0.8.1 → 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 -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/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 +5 -3
- 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
|
@@ -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;
|