@eeacms/volto-eea-design-system 0.9.1 → 0.9.3
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 +36 -0
- package/package.json +2 -1
- package/theme/themes/eea/collections/menu.overrides +1 -1
- package/theme/themes/eea/collections/menu.variables +2 -2
- package/theme/themes/eea/definitions/views/item.less +12 -0
- package/theme/themes/eea/elements/container.overrides +9 -3
- package/theme/themes/eea/elements/input.overrides +6 -3
- package/theme/themes/eea/elements/list.overrides +4 -2
- package/theme/themes/eea/extras/contentBox.less +7 -21
- package/theme/themes/eea/extras/contentBox.variables +1 -0
- package/theme/themes/eea/extras/custom.overrides +21 -0
- package/theme/themes/eea/globals/site.variables +1 -1
- package/theme/themes/eea/modules/accordion.overrides +2 -0
- package/theme/themes/eea/modules/accordion.variables +6 -5
- package/theme/themes/eea/modules/tab.overrides +4 -0
- package/theme/themes/eea/modules/tab.variables +1 -1
- package/theme/themes/eea/views/card.overrides +5 -0
- package/theme/themes/eea/views/card.variables +3 -2
- package/theme/themes/eea/views/item.variables +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,41 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
### [0.9.3](https://github.com/eea/volto-eea-design-system/compare/0.9.2...0.9.3) - 3 October 2022
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix(List): Ordered list item story - refs #155248 [Alin Voinea - [`c70a2bc`](https://github.com/eea/volto-eea-design-system/commit/c70a2bceecf4ce9497cbe0e9cdb30944fff2287d)]
|
|
12
|
+
- fix(OrderedList): li third level margin left - refs #155248 [Alin Voinea - [`fba5cb9`](https://github.com/eea/volto-eea-design-system/commit/fba5cb9d3897d2827951cd218405b1ae7c8e818a)]
|
|
13
|
+
- fix(card, contentBox): meta font size, removed header override of cards [David Ichim - [`a7f94b9`](https://github.com/eea/volto-eea-design-system/commit/a7f94b9ca8c65a887ced5c4812563a2226fca869)]
|
|
14
|
+
- fix(accordion): Fix content default padding - refs #153783 [Alin Voinea - [`566adf7`](https://github.com/eea/volto-eea-design-system/commit/566adf7a53c48fb24044eeba1d159d5ce715ecc6)]
|
|
15
|
+
- fix(cards): inherit color of card description [David Ichim - [`ceda799`](https://github.com/eea/volto-eea-design-system/commit/ceda79971663785c81292b85ae07b7f9f922213c)]
|
|
16
|
+
|
|
17
|
+
#### :nail_care: Enhancements
|
|
18
|
+
|
|
19
|
+
- change(docusaurus): typography updates [ichim-david - [`60a93a4`](https://github.com/eea/volto-eea-design-system/commit/60a93a4aece4e478ae13c2dfe697fd3703aa178a)]
|
|
20
|
+
- change(accordion): allow customization of accordion title with css variables [David Ichim - [`15e7d27`](https://github.com/eea/volto-eea-design-system/commit/15e7d27f02c640df582f51a51ef36e645723f842)]
|
|
21
|
+
- change(content-box): added css variables that will set text color and background for children [David Ichim - [`86cac53`](https://github.com/eea/volto-eea-design-system/commit/86cac531cc94386b6022e1be80dba826b39f2443)]
|
|
22
|
+
- change(tabs): allow customization of tab active and hover color [David Ichim - [`4370f42`](https://github.com/eea/volto-eea-design-system/commit/4370f4270dcaa29b1193fc2347567b748f6d5d82)]
|
|
23
|
+
- change(site): committed fixed from custom into eea design package [David Ichim - [`9b9a1fd`](https://github.com/eea/volto-eea-design-system/commit/9b9a1fd3648796a502ca4eb3abd08b61b33bdff2)]
|
|
24
|
+
- change(tabs): color for tabs-block section [David Ichim - [`6778c92`](https://github.com/eea/volto-eea-design-system/commit/6778c923618e725194120d7f35e2ee7d66e1be8e)]
|
|
25
|
+
- change(accordion, site): change text color to tertiary instead of black [David Ichim - [`4641058`](https://github.com/eea/volto-eea-design-system/commit/464105842508a62216aa0a3f28e9565af1b93232)]
|
|
26
|
+
- change(cards): by default date is set to appear on the right of the meta section [David Ichim - [`b7b80e8`](https://github.com/eea/volto-eea-design-system/commit/b7b80e86b69a0179f1e48748bef909bbd2a98d58)]
|
|
27
|
+
- change(item): added item image coloring when applying theming classes [David Ichim - [`0403fe4`](https://github.com/eea/volto-eea-design-system/commit/0403fe4974f37a46ec7418d9b8492ad74d7c5688)]
|
|
28
|
+
- change(cards): carousel dots are now relative positioned [David Ichim - [`daa40a4`](https://github.com/eea/volto-eea-design-system/commit/daa40a4ab6532497830d5f7536bf0a7f20d9cd00)]
|
|
29
|
+
|
|
30
|
+
#### :house: Documentation changes
|
|
31
|
+
|
|
32
|
+
- docs(typography): token fix to match used values for lineheight [Dora Anastasiou - [`ff41b56`](https://github.com/eea/volto-eea-design-system/commit/ff41b56b4365a3e70ac20e548c7c74671e7c584c)]
|
|
33
|
+
- docs(typography): token fix to match used values for heightheight and letterspacing [Dora Anastasiou - [`91693ec`](https://github.com/eea/volto-eea-design-system/commit/91693ecd2dd367cd83fa2752756557d463e214a7)]
|
|
34
|
+
- docs(typography): remove semibold [Giorgos Stamatis - [`6eb3e08`](https://github.com/eea/volto-eea-design-system/commit/6eb3e0856f01aacf6d294f68e7d845f74f752685)]
|
|
35
|
+
- docs(typography): update, local fonts [Giorgos Stamatis - [`39a32d9`](https://github.com/eea/volto-eea-design-system/commit/39a32d9aa4dec21c0e7df32aa5798432fc6bd403)]
|
|
36
|
+
|
|
37
|
+
#### :hammer_and_wrench: Others
|
|
38
|
+
|
|
39
|
+
- test(cypress): Fix md5 dependency [Alin Voinea - [`17f618e`](https://github.com/eea/volto-eea-design-system/commit/17f618e7c5eef01759494e787a8c9cb96449fbca)]
|
|
40
|
+
### [0.9.2](https://github.com/eea/volto-eea-design-system/compare/0.9.1...0.9.2) - 27 September 2022
|
|
41
|
+
|
|
7
42
|
### [0.9.1](https://github.com/eea/volto-eea-design-system/compare/0.9.0...0.9.1) - 27 September 2022
|
|
8
43
|
|
|
9
44
|
#### :nail_care: Enhancements
|
|
@@ -14,6 +49,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
14
49
|
|
|
15
50
|
#### :hammer_and_wrench: Others
|
|
16
51
|
|
|
52
|
+
- Merge pull request #243 from eea/develop [ichim-david - [`576564c`](https://github.com/eea/volto-eea-design-system/commit/576564ce395ee6ac9e74bcb19d5c4f0b4cd3c33b)]
|
|
17
53
|
- Back to dev [Alin Voinea - [`b251255`](https://github.com/eea/volto-eea-design-system/commit/b251255a7ed14d8290717726d86eaf54b87aa2d4)]
|
|
18
54
|
### [0.9.0](https://github.com/eea/volto-eea-design-system/compare/0.8.1...0.9.0) - 19 September 2022
|
|
19
55
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-eea-design-system",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "@eeacms/volto-eea-design-system: Volto add-on",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "European Environment Agency: IDM2 A-Team",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"react-countup": "^6.3.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
+
"md5": "^2.3.0",
|
|
29
30
|
"@cypress/code-coverage": "^3.9.5",
|
|
30
31
|
"babel-plugin-transform-class-properties": "^6.24.1"
|
|
31
32
|
},
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
@secondaryPointingItemHorizontalPadding;
|
|
288
288
|
border-bottom: @secondaryPointingActiveBorderWidth solid @secondaryColor;
|
|
289
289
|
margin-bottom: -@secondaryPointingctiveItemMarginBottom;
|
|
290
|
-
color: @secondaryPointingActiveTextColor;
|
|
290
|
+
color: var(--text-color, @secondaryPointingActiveTextColor);
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
/* Menu items custom border for responsive issues */
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
color @defaultDuration @defaultEasing
|
|
31
31
|
;
|
|
32
32
|
@itemFontWeight: @normal;
|
|
33
|
-
@itemTextColor: @deepBlue;
|
|
33
|
+
@itemTextColor: var(--text-color, @deepBlue);
|
|
34
34
|
|
|
35
35
|
/* Divider */
|
|
36
36
|
@dividerSize: 1px;
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
// Pastanaga custom
|
|
255
255
|
@secondaryPointingItemTextTransform: uppercase;
|
|
256
256
|
|
|
257
|
-
@secondaryPointingHoverTextColor: @textColor;
|
|
257
|
+
@secondaryPointingHoverTextColor: var(--text-color-hover, @textColor);
|
|
258
258
|
|
|
259
259
|
@secondaryPointingActiveBorderColor: @secondaryColor;
|
|
260
260
|
@secondaryPointingActiveTextColor: @secondaryColor;
|
|
@@ -61,6 +61,18 @@
|
|
|
61
61
|
/*--------------
|
|
62
62
|
Item
|
|
63
63
|
---------------*/
|
|
64
|
+
// color item images that are svg files
|
|
65
|
+
.item.primary img {
|
|
66
|
+
filter: @itemPrimaryFilterColor;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.item.secondary img {
|
|
70
|
+
filter: @itemSecondaryFilterColor;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.item.tertiary img {
|
|
74
|
+
filter: @itemTertiaryFilterColor;
|
|
75
|
+
}
|
|
64
76
|
|
|
65
77
|
.ui.items > .item:after {
|
|
66
78
|
display: block;
|
|
@@ -15,10 +15,16 @@
|
|
|
15
15
|
.container {
|
|
16
16
|
width: auto !important;
|
|
17
17
|
}
|
|
18
|
+
|
|
18
19
|
[class*="block-editor"] {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
padding-left: 3rem;
|
|
21
|
+
padding-right: 3rem;
|
|
22
|
+
|
|
23
|
+
[class*="block-editor"] {
|
|
24
|
+
padding-left: 0;
|
|
25
|
+
padding-right: 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
22
28
|
}
|
|
23
29
|
|
|
24
30
|
.contentWidth(@offset) {
|
|
@@ -125,15 +125,18 @@ textarea.fluid {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
.ui.fluid.icon.input.search > input::-webkit-input-placeholder {
|
|
128
|
-
|
|
128
|
+
opacity: 0.9;
|
|
129
|
+
color: rgb(255, 255, 255);
|
|
129
130
|
}
|
|
130
131
|
|
|
131
132
|
.ui.fluid.icon.input.search > input::-moz-placeholder {
|
|
132
|
-
|
|
133
|
+
opacity: 0.9;
|
|
134
|
+
color: rgb(255, 255, 255);
|
|
133
135
|
}
|
|
134
136
|
|
|
135
137
|
.ui.fluid.icon.input.search > input::-ms-input-placeholder {
|
|
136
|
-
|
|
138
|
+
opacity: 0.9;
|
|
139
|
+
color: rgb(255, 255, 255);
|
|
137
140
|
}
|
|
138
141
|
|
|
139
142
|
@media only screen and (min-width: @tabletBreakpoint) {
|
|
@@ -28,11 +28,13 @@ ul.ui.list li:before {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
// Third layer margin fix
|
|
31
|
-
.ui.ordered.list .list .list > .item:before
|
|
31
|
+
.ui.ordered.list .list .list > .item:before,
|
|
32
|
+
.ui.ordered.list .list .list > li:before {
|
|
32
33
|
margin-left: @orderedGrandchildCountOffset;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
// Fourth layer margin fix
|
|
36
|
-
.ui.ordered.list .list .list .list > .item:before
|
|
37
|
+
.ui.ordered.list .list .list .list > .item:before,
|
|
38
|
+
.ui.ordered.list .list .list .list > li:before {
|
|
37
39
|
margin-left: @orderedGreatGrandchildCountOffset;
|
|
38
40
|
}
|
|
@@ -34,41 +34,27 @@
|
|
|
34
34
|
&.primary {
|
|
35
35
|
background-color: @contentBoxBackgroundColorPrimary;
|
|
36
36
|
color: @contentBoxColor;
|
|
37
|
-
.header {
|
|
38
|
-
color: @contentBoxColor !important;
|
|
39
|
-
}
|
|
40
37
|
}
|
|
41
|
-
|
|
42
38
|
&.secondary {
|
|
43
39
|
background-color: @contentBoxBackgroundColorSecondary;
|
|
44
40
|
color: @contentBoxColor;
|
|
45
|
-
.header {
|
|
46
|
-
color: @contentBoxColor !important;
|
|
47
|
-
}
|
|
48
41
|
}
|
|
49
42
|
|
|
50
43
|
&.tertiary {
|
|
51
44
|
background-color: @contentBoxBackgroundColorTertiary;
|
|
52
45
|
color: @contentBoxColor;
|
|
53
|
-
.header {
|
|
54
|
-
color: @contentBoxColor !important;
|
|
55
|
-
}
|
|
56
46
|
}
|
|
57
47
|
}
|
|
58
48
|
|
|
59
|
-
// inherit link
|
|
60
|
-
|
|
61
|
-
|
|
62
49
|
[class*="content-box"] a {
|
|
63
50
|
text-decoration: underline;
|
|
64
51
|
}
|
|
52
|
+
.content-box[class*="ary"] {
|
|
53
|
+
--bg-color: transparent;
|
|
54
|
+
--text-color: #FFF;
|
|
55
|
+
--text-color-hover: @grey-1;
|
|
56
|
+
}
|
|
57
|
+
// inherit link
|
|
65
58
|
.content-box[class*="ary"] a {
|
|
66
59
|
color: inherit;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// set color of default cards to black when we are inside a content-box which has the ability to set
|
|
70
|
-
// color classes
|
|
71
|
-
.content-box[class*="ary"] [class="ui fluid card"] {
|
|
72
|
-
color: @grey-6;
|
|
73
|
-
}
|
|
74
|
-
|
|
60
|
+
}
|
|
@@ -74,6 +74,27 @@
|
|
|
74
74
|
font-weight: inherit;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
// inherit color for slate links within context boxes
|
|
78
|
+
.content-box .slate-editor-link {
|
|
79
|
+
color: inherit;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// customize error class from volto-slate to our color of red
|
|
83
|
+
.error {
|
|
84
|
+
color: @red-5;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// ensure background of content-box goes above the content area
|
|
88
|
+
// draft image for non published pages
|
|
89
|
+
.view-viewview:not(.wf-state-published) .content-area {
|
|
90
|
+
z-index: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// remove margin from block headings overriding blocks.less rule
|
|
94
|
+
.block h1:last-child, .block h2:last-child, .block h3:last-child, .block h4:last-child, .block h5:last-child {
|
|
95
|
+
margin: 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
77
98
|
// tweak padding of workflow progress titles now that
|
|
78
99
|
// we have larger font size
|
|
79
100
|
.progress__item .progress__title {
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
@titlePadding: 1rem 1.563rem;
|
|
11
11
|
@titlePadding: @rectangleMedium;
|
|
12
12
|
@titleFontSize: 1.125rem;
|
|
13
|
-
@titleColor: @textColor;
|
|
13
|
+
@titleColor: var(--text-color, @textColor);
|
|
14
14
|
@titleBorderBottom: @1px solid @silverGray;
|
|
15
|
-
@titleColorHover: @grey-5;
|
|
15
|
+
@titleColorHover:var(--text-color-hover, @grey-5);
|
|
16
16
|
@titleJustifyContent: space-between;
|
|
17
17
|
|
|
18
18
|
/* Icon */
|
|
19
|
-
@iconColor: @oldSilver;
|
|
19
|
+
@iconColor: var(--text-color, @oldSilver);
|
|
20
20
|
@iconColorActive: @white;
|
|
21
21
|
@iconOpacity: 1;
|
|
22
22
|
@iconFontSize: 3rem;
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
@contentMargin: 0;
|
|
46
46
|
@contentPaddingBottom: 1.563rem;
|
|
47
47
|
@contentPadding: @squareMedium;
|
|
48
|
-
@contentBackground:
|
|
48
|
+
@contentBackground: @grey-1;
|
|
49
|
+
@contentColor: @tertiaryColor;
|
|
49
50
|
|
|
50
51
|
/*-------------------
|
|
51
52
|
Coupling
|
|
@@ -62,7 +63,7 @@
|
|
|
62
63
|
--------------------*/
|
|
63
64
|
|
|
64
65
|
@activeIconTransform: none;
|
|
65
|
-
@activeTitleBackground: @
|
|
66
|
+
@activeTitleBackground: @white;
|
|
66
67
|
@activeTitleColor: @grey-5;
|
|
67
68
|
@activeTitleBorderBottom: 0;
|
|
68
69
|
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
text-align: var(--text-align, @cardTextAlign);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
.card .meta .date {
|
|
22
|
+
margin-left: @cardMetaDateMarginLeft;
|
|
23
|
+
}
|
|
24
|
+
|
|
21
25
|
.ui.cards > .card:not(.rounded) > .image,
|
|
22
26
|
.ui.card:not(.rounded) > .image {
|
|
23
27
|
overflow: @cardImageOverflow;
|
|
@@ -430,6 +434,7 @@
|
|
|
430
434
|
/* Custom carousel pagination bullets */
|
|
431
435
|
// avoid dots going over content that follows sliders
|
|
432
436
|
.slick-dots {
|
|
437
|
+
position: relative;
|
|
433
438
|
bottom: 0;
|
|
434
439
|
}
|
|
435
440
|
.cards-carousel .slick-dots li button:before {
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
box-shadow @defaultDuration @defaultEasing,
|
|
31
31
|
transform @defaultDuration @defaultEasing
|
|
32
32
|
;
|
|
33
|
+
@cardMetaDateMarginLeft: auto;
|
|
33
34
|
|
|
34
35
|
/* Card Group */
|
|
35
36
|
@horizontalSpacing: 1em;
|
|
@@ -87,7 +88,7 @@
|
|
|
87
88
|
|
|
88
89
|
/* Metadata */
|
|
89
90
|
@metaJustifyContent: space-between;
|
|
90
|
-
@metaFontSize: @
|
|
91
|
+
@metaFontSize: @absoluteMedium;
|
|
91
92
|
@metaSpacing: 0.3em;
|
|
92
93
|
@metaColor: @tertiaryColor;
|
|
93
94
|
|
|
@@ -118,7 +119,7 @@
|
|
|
118
119
|
|
|
119
120
|
/* Description */
|
|
120
121
|
@descriptionDistance: 0;
|
|
121
|
-
@descriptionColor:
|
|
122
|
+
@descriptionColor: inherit;
|
|
122
123
|
|
|
123
124
|
/* Content Image */
|
|
124
125
|
@contentImageWidth: '';
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
@border: none;
|
|
21
21
|
@zIndex: '';
|
|
22
22
|
@transition: box-shadow @defaultDuration @defaultEasing;
|
|
23
|
+
// black to desired color filter option resulted from https://codepen.io/sosuke/pen/Pjoqqp
|
|
24
|
+
@itemPrimaryFilterColor: invert(9%) sepia(89%) saturate(5332%) hue-rotate(194deg) brightness(98%) contrast(101%);
|
|
25
|
+
@itemSecondaryFilterColor: invert(33%) sepia(14%) saturate(5566%) hue-rotate(139deg) brightness(98%) contrast(101%);
|
|
26
|
+
@itemTertiaryFilterColor: invert(27%) sepia(15%) saturate(1161%) hue-rotate(167deg) brightness(93%) contrast(80%);
|
|
23
27
|
|
|
24
28
|
/* Responsive */
|
|
25
29
|
@itemSpacing: 1em;
|