@eeacms/volto-eea-design-system 0.8.0 → 0.8.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 CHANGED
@@ -4,9 +4,32 @@ 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.8.1](https://github.com/eea/volto-eea-design-system/compare/0.8.0...0.8.1)
8
+
9
+ - final Figma files in github as part of the Design System [`#229`](https://github.com/eea/volto-eea-design-system/pull/229)
10
+ - docs(figma): added figma files to repo [`6bd4144`](https://github.com/eea/volto-eea-design-system/commit/6bd4144ffc9c563ce224a07fe942fc4f2615c53f)
11
+ - Autobuild of docusaurus docs [`5c51018`](https://github.com/eea/volto-eea-design-system/commit/5c5101801ed7176d4f526b19d72ce57091d62848)
12
+ - change(footer): removed line between sections and moved actions back to the bottom of footer [`d9f33e4`](https://github.com/eea/volto-eea-design-system/commit/d9f33e4cf5a517acfbae497d6cb2fdccb048c281)
13
+ - Autobuild of docusaurus docs [`677ec42`](https://github.com/eea/volto-eea-design-system/commit/677ec42bbaca04621bc753ed42141288ed01ab0e)
14
+ - change(storybook): headings storybook now uses tertiary color by default reflecting site options [`1061e77`](https://github.com/eea/volto-eea-design-system/commit/1061e7749de2d4fe1233ccdc7f6f835ad491504a)
15
+ - Autobuild of docusaurus docs [`4a09a99`](https://github.com/eea/volto-eea-design-system/commit/4a09a99e7fec7da7d750bd7f2f3b8ede65649fbe)
16
+ - fix(docusaurus): intro page hero title color now that headers are using tertiary color [`618e3cb`](https://github.com/eea/volto-eea-design-system/commit/618e3cb7ac5533b1c087aea10452947c8676ab4e)
17
+ - Autobuild of docusaurus docs [`71850ad`](https://github.com/eea/volto-eea-design-system/commit/71850ad0eeba04d429804b103f6c5b31888bde44)
18
+ - change(message): use semantic colors for messages #204 from eea/refactor-message [`22d2c43`](https://github.com/eea/volto-eea-design-system/commit/22d2c43cd55a82621f2da3103652677b4b45db1a)
19
+ - refactor(message): remove override with custom background color on error [`9b40cd7`](https://github.com/eea/volto-eea-design-system/commit/9b40cd7ef2cca901e65a812585943c2e2d867b5f)
20
+ - refactor(message): add header controls [`960c2f7`](https://github.com/eea/volto-eea-design-system/commit/960c2f7b524b1f049bb2f666e3e8278feca506da)
21
+ - refactor(messages): mix semantc and token colors for messages [`12efa75`](https://github.com/eea/volto-eea-design-system/commit/12efa75c30956df9958058242be4b8732819a5a1)
22
+ - refactor(emotiveColors): temp update for tests [`61a720c`](https://github.com/eea/volto-eea-design-system/commit/61a720c1ddbbad2c5bab17c8b2f890618f2a747c)
23
+ - refactor(message): restore semantic variables [`1c16621`](https://github.com/eea/volto-eea-design-system/commit/1c16621b4862efc64d82d475798ed40938c65f5e)
24
+ - refactor(message): add container to story [`1259ece`](https://github.com/eea/volto-eea-design-system/commit/1259ecead7162d2a46f5e802ba07e7e0dcb72e42)
25
+ - fix(message): fix size controls [`ee51e1d`](https://github.com/eea/volto-eea-design-system/commit/ee51e1dca4f84aeb9e39be525016f751acc147de)
26
+
7
27
  #### [0.8.0](https://github.com/eea/volto-eea-design-system/compare/0.7.6...0.8.0)
8
28
 
29
+ > 20 August 2022
30
+
9
31
  - change(Cards): All variations accessibility fixes #210 [`#210`](https://github.com/eea/volto-eea-design-system/issues/210)
32
+ - feature(heading): and cards refactoring #227 from eea/develop [`334fbda`](https://github.com/eea/volto-eea-design-system/commit/334fbda2d5b751858d4cc8cae832ca7f5c1ad6c2)
10
33
  - Update package.json [`3870cf3`](https://github.com/eea/volto-eea-design-system/commit/3870cf3265f0dab4e181c94a6657b9fa408bf186)
11
34
  - Header refactor 153536 #226 from eea/header-refactor-153536 [`87a6fe7`](https://github.com/eea/volto-eea-design-system/commit/87a6fe73211eb028861e099a67e90d365c5111ea)
12
35
  - change(typography): inherit header colors with @headerColor variable [`91d9357`](https://github.com/eea/volto-eea-design-system/commit/91d93577772534f67bb74df0c9ed260bbaccdd4c)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
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",
@@ -2,33 +2,32 @@
2
2
  Theme Overrides
3
3
  *******************************/
4
4
 
5
- /* Text size and weight */
6
- .ui.message p {
7
- font-size: @messageFontSize;
5
+ /* Old custom messages | update in form refactoring
6
+
7
+ .field-wrapper .ui.message p {
8
8
  font-weight: @messageFontWeight;
9
9
  }
10
-
11
- /* Text color for non state messages */
12
- .ui.message:not(.success):not(.error):not(.warning):not(.info):not(.negative):not(.positive) {
10
+ .field-wrapper .ui.message:not(.success):not(.error):not(.warning):not(.info):not(.negative):not(.positive) {
13
11
  color: @messageColor;
14
12
  }
15
13
 
16
- /* Align icon next to header */
17
- .ui.icon.message {
14
+ .field-wrapper .ui.icon.message {
18
15
  align-items: @messageItemsAlign;
19
16
  }
20
-
21
- /* Icon margin to align with header text size */
22
- div.ui.icon.message > .icon,
23
- div.ui.icon.message > .icon:not(.close) {
17
+ .field-wrapper div.ui.icon.message > .icon,
18
+ .field-wrapper div.ui.icon.message > .icon:not(.close) {
24
19
  margin: @iconMargin;
20
+ line-height: @iconLineHeight;
25
21
  }
22
+ */
26
23
 
27
- .ui.success.message,
28
- .ui.warning.message,
29
- .ui.error.message,
30
- .ui.info.message,
31
- .ui.positive.message,
32
- .ui.negative.message {
33
- background: @background;
34
- }
24
+ // No background or border for form messages
25
+ .field-wrapper .ui.success.message,
26
+ .field-wrapper .ui.warning.message,
27
+ .field-wrapper .ui.error.message,
28
+ .field-wrapper .ui.info.message,
29
+ .field-wrapper .ui.positive.message,
30
+ .field-wrapper .ui.negative.message {
31
+ background: transparent;
32
+ box-shadow: none;
33
+ }
@@ -2,24 +2,32 @@
2
2
  Message
3
3
  *******************************/
4
4
 
5
+ @messageFontWeight: @bold;
6
+ @messageColor: @black;
7
+ @messageItemsAlign: flex-start;
8
+ @iconLineHeight: 1.29;
9
+ @iconMargin: 0.75rem;
5
10
 
6
11
  /*-------------------
7
12
  Elements
8
13
  --------------------*/
9
14
 
10
15
  @verticalMargin: 1em;
11
- @verticalPadding: 0.5rem;
12
- @horizontalPadding: 0;
16
+ @verticalPadding: 1.5em;
17
+ @verticalPadding: 1em;
18
+ @horizontalPadding: 1.5em;
13
19
  @padding: @verticalPadding @horizontalPadding;
14
- @background: transparent;
20
+ @background: #F8F8F9;
15
21
  @lineHeightOffset: ((@lineHeight - 1em) / 2);
16
- @messageItemsAlign: flex-start;
17
22
 
18
- @borderRadius: @defaultBorderRadius;
19
- @borderWidth: 0;
23
+ @borderRadius: 0;
24
+ @borderWidth: 1px;
20
25
  @borderShadow: 0px 0px 0px @borderWidth @strongBorderColor inset;
21
26
  @shadowShadow: 0px 0px 0px 0px rgba(0, 0, 0, 0);
22
- @boxShadow: none;
27
+ @boxShadow:
28
+ @borderShadow,
29
+ @shadowShadow
30
+ ;
23
31
 
24
32
  @transition:
25
33
  opacity @defaultDuration @defaultEasing,
@@ -29,7 +37,7 @@
29
37
  ;
30
38
 
31
39
  /* Header */
32
- @headerFontSize: 0.875rem;
40
+ @headerFontSize: @relativeLarge;
33
41
  @headerFontWeight: @bold;
34
42
  @headerDisplay: block;
35
43
  @headerDistance: 0rem;
@@ -37,11 +45,8 @@
37
45
  @headerParagraphDistance: 0.15em;
38
46
 
39
47
  /* Paragraph */
40
- @messageTextOpacity: 1;
41
- @messageParagraphMargin: 0;
42
- @messageColor: @black;
43
- @messageFontSize: 0.875rem;
44
- @messageFontWeight: @bold;
48
+ @messageTextOpacity: 0.85;
49
+ @messageParagraphMargin: 0.75em;
45
50
 
46
51
  /* List */
47
52
  @listOpacity: 0.85;
@@ -51,7 +56,7 @@
51
56
  @listItemMargin: 0.3em;
52
57
 
53
58
  /* Icon */
54
- @iconDistance: 0.3em;
59
+ @iconDistance: @rem-space-4;
55
60
 
56
61
  /* Close Icon */
57
62
  @closeTopDistance: @verticalPadding - @lineHeightOffset;
@@ -65,9 +70,8 @@
65
70
  --------------------*/
66
71
 
67
72
  /* Icon Message */
68
- @iconMargin: 0.09rem 0.6rem 0 0;
69
- @iconSize: 1rem;
70
- @iconOpacity: 1;
73
+ @iconSize: 2em;
74
+ @iconOpacity: 0.8;
71
75
  @iconContentDistance: 0rem;
72
76
  @iconVerticalAlign: top;
73
77
 
@@ -133,10 +137,28 @@
133
137
  ;
134
138
 
135
139
  /* Warning / Positive / Negative / Info */
136
- @positiveBoxShadow: none;
137
- @negativeBoxShadow: none;
138
- @infoBoxShadow: none;
139
- @warningBoxShadow: none;
140
- @errorBoxShadow: none;
141
- @successBoxShadow: none;
140
+ @positiveBoxShadow:
141
+ 0px 0px 0px @borderWidth @positiveBorderColor inset,
142
+ @shadowShadow
143
+ ;
144
+ @negativeBoxShadow:
145
+ 0px 0px 0px @borderWidth @negativeBorderColor inset,
146
+ @shadowShadow
147
+ ;
148
+ @infoBoxShadow:
149
+ 0px 0px 0px @borderWidth @infoBorderColor inset,
150
+ @shadowShadow
151
+ ;
152
+ @warningBoxShadow:
153
+ 0px 0px 0px @borderWidth @warningBorderColor inset,
154
+ @shadowShadow
155
+ ;
156
+ @errorBoxShadow:
157
+ 0px 0px 0px @borderWidth @errorBorderColor inset,
158
+ @shadowShadow
159
+ ;
160
+ @successBoxShadow:
161
+ 0px 0px 0px @borderWidth @successBorderColor inset,
162
+ @shadowShadow
163
+ ;
142
164
 
@@ -123,34 +123,10 @@ footer .footer-wrapper .menu {
123
123
  display: flex;
124
124
  flex-direction: column;
125
125
  }
126
- .copyright {
127
- display: none !important;
128
- }
129
-
130
- .subfooter {
131
- order: 1
132
- }
133
-
134
- .menu {
135
- order: 2;
136
- position: relative;
137
- margin: @mobileMenuMargin;
138
- }
139
- .menu::after {
140
- position: absolute;
141
- bottom: 0;
142
- border: @mobileMenuBorder;
143
- content: " ";
144
- display: block;
145
- width: 100vw;
146
- left: @mobileMenuLeft;
147
- }
148
- footer .footer-wrapper .menu a {
149
- font-weight: @mobileMenuFontWeight;
150
- }
151
126
 
152
- .theme-sites {
153
- order: 3;
127
+ footer .footer-wrapper .menu .copyright a {
128
+ font-size: @mobileMenuCopyrightFontSize;
129
+ font-weight: @mobileMenuCopyrightFontWeight;
154
130
  }
155
131
  }
156
132
 
@@ -64,10 +64,9 @@
64
64
  /* Footer Menu */
65
65
 
66
66
  @menuLinkColor : @white;
67
- @menuFontWeight : @font-weight-3;
67
+ @menuFontWeight : @font-weight-4;
68
68
  @mobileMenuFontSize : @font-size-0;
69
- @mobileMenuMargin : @rem-space-4 0;
70
- @mobileMenuBorder : 1px solid rgba(249, 249, 249, 0.25);
71
- @mobileMenuLeft : -20px;
72
- @mobileMenuFontWeight : 400;
69
+ @mobileMenuCopyrightFontSize : @font-size-00;
70
+ @mobileMenuCopyrightFontWeight : @font-weight-3;
71
+ @mobileMenuFontWeight : @font-weight-4;
73
72
  @computerMenuFontSize : @font-size-1;
@@ -349,7 +349,7 @@
349
349
 
350
350
 
351
351
  /*--- Colors ---*/
352
- @orange : #EBA33D;
352
+ @orange : #FF9933;
353
353
  @yellow : #F2EB49;
354
354
  @olive : #78AB66;
355
355
  @green : @pineGreen;
@@ -496,32 +496,34 @@
496
496
  --------------------*/
497
497
 
498
498
  /* Positive */
499
- @positiveColor : @pineGreen;
500
- @positiveBackgroundColor : #EDF9F0;
501
- @positiveBorderColor : #EDF9F0;
502
- @positiveHeaderColor : @pineGreen;
503
- @positiveTextColor : @pineGreen;
499
+ @positiveColor : @green-6;
500
+ @positiveBackgroundColor : #FCFFF5;
501
+ @positiveBorderColor : @green-4;
502
+ @positiveHeaderColor : @green-6;
503
+ @positiveTextColor : @green-6;
504
504
 
505
505
  /* Negative */
506
- @negativeColor : @red;
506
+ @negativeColor : @red-5;
507
507
  @negativeBackgroundColor : @white;
508
- @negativeBorderColor : @red; //#FEEFEF;
509
- @negativeHeaderColor : @red;
510
- @negativeTextColor : @red;
508
+ @negativeBorderColor : @red-4;
509
+ @negativeHeaderColor : @red-5;
510
+ @negativeTextColor : @red-5;
511
511
 
512
512
  /* Info */
513
- @infoColor : @mediumPersianBlue;
514
- @infoBackgroundColor : #EEF2FA;
515
- @infoBorderColor : #EEF2FA;
516
- @infoHeaderColor : @mediumPersianBlue;
517
- @infoTextColor : @mediumPersianBlue;
513
+ @infoColor : @blue-6;
514
+ @infoBackgroundColor : #F8FFFF;
515
+ @infoBorderColor : @blue-4;
516
+ @infoHeaderColor : @blue-6;
517
+ @infoTextColor : @blue-6;
518
+
518
519
 
519
520
  /* Warning */
520
- @warningColor : #EBA33D;
521
- @warningBorderColor : #FFF4EC;
522
- @warningBackgroundColor : #FFF4EC;
523
- @warningHeaderColor : #EBA33D;
524
- @warningTextColor : #EBA33D;
521
+ @warningColor : @brown-6;
522
+ @warningBackgroundColor : #FFFAF3;
523
+ @warningBorderColor : @brown-4;
524
+ @warningHeaderColor : @brown-6;
525
+ @warningTextColor : @brown-6;
526
+
525
527
 
526
528
  /*-------------------
527
529
  Paths