@eeacms/volto-eea-design-system 0.6.1 → 0.6.5

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,8 +4,37 @@ 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.6.5](https://github.com/eea/volto-eea-design-system/compare/0.6.1...0.6.5)
8
+
9
+ - change(package): bump package version to 0.6.5 denoting bug fixes release [`0585aeb`](https://github.com/eea/volto-eea-design-system/commit/0585aebaeb9e3483ba230110d99a1a875590ad66)
10
+ - Autobuild of docusaurus docs [`590c55f`](https://github.com/eea/volto-eea-design-system/commit/590c55f1099d926959c2cca929ca8fab32fe41b4)
11
+ - fix(menu): removed minHeight that enlarged the global menu [`133be1e`](https://github.com/eea/volto-eea-design-system/commit/133be1e43d9b7778fd94388629400c5f2b707ff4)
12
+ - Autobuild of docusaurus docs [`91f0f33`](https://github.com/eea/volto-eea-design-system/commit/91f0f33cfeaf4d9aaecc870ca04a72318e8294ad)
13
+ - fix(contentBox): removed negative z-index that hid fullwidth bg color [`bd60faf`](https://github.com/eea/volto-eea-design-system/commit/bd60faff53205da95d94930517f2ac830ec523d1)
14
+ - Autobuild of docusaurus docs [`d337cf3`](https://github.com/eea/volto-eea-design-system/commit/d337cf3364624309727afbe25b88a5cca80ef290)
15
+ - change(typography): updated letterspacing values and clarified values used for certain type tokens [`8a13bf8`](https://github.com/eea/volto-eea-design-system/commit/8a13bf8b3691d288209532842fb2c80962d652c0)
16
+ - Autobuild of docusaurus docs [`416345a`](https://github.com/eea/volto-eea-design-system/commit/416345ab9f2a3dcc7a5c3cfff3847e7d71e24ae5)
17
+ - fix(header): double click to close dropdown is no longer required [`b8a2ed0`](https://github.com/eea/volto-eea-design-system/commit/b8a2ed0d1e671d12239ecaf250e68b3187c12a53)
18
+ - Autobuild of docusaurus docs [`596487f`](https://github.com/eea/volto-eea-design-system/commit/596487fb393bcf34a1f8258e18edae27a6e51bba)
19
+ - change(item): enable theming for icon and text color and added tertiary option [`6d4444f`](https://github.com/eea/volto-eea-design-system/commit/6d4444feedd1cd7e6e8f8da630b4b53a19050d1b)
20
+ - Autobuild of docusaurus docs [`886d6ac`](https://github.com/eea/volto-eea-design-system/commit/886d6acca4b91a9234eb544e96fb889d0df36956)
21
+ - change(header): top section chevron sizes and margin as requested in enhancements document [`b307c74`](https://github.com/eea/volto-eea-design-system/commit/b307c74a671c10a5a6703dcb2126c3c36679c6f5)
22
+ - fix(hero): image dimensions when full width and height isn't enabled [`4114f73`](https://github.com/eea/volto-eea-design-system/commit/4114f731cce63dc520bfd00cd487943181cec2ee)
23
+ - change(item): tweak size and padding of icon when used inside item [`dbdef19`](https://github.com/eea/volto-eea-design-system/commit/dbdef191e70bf59dcfddf63c8f9f9a1343266a59)
24
+ - Autobuild of docusaurus docs [`3551ada`](https://github.com/eea/volto-eea-design-system/commit/3551adad680c2c8da0cb345b6dd4d9f3c01e9f38)
25
+ - change(utilities): wrap in quotes h2 and h3 of quoted-wrapper [`8aa4716`](https://github.com/eea/volto-eea-design-system/commit/8aa471604fb127cfa535373bb90a44b4204dd0f4)
26
+ - Autobuild of docusaurus docs [`a92c31a`](https://github.com/eea/volto-eea-design-system/commit/a92c31a4e8e4473086554a1f4ab8c8d6cd2e5c85)
27
+ - change(hero): tweaked hero block height and padding [`994b6f8`](https://github.com/eea/volto-eea-design-system/commit/994b6f8943c061657792df8adcbdee5da487ce43)
28
+ - Autobuild of docusaurus docs [`772d55b`](https://github.com/eea/volto-eea-design-system/commit/772d55b041d0728e64cdfd19bcd0684df0312f42)
29
+ - change(cards): add underline to links when applied to headers and use tertiary color by default [`874f956`](https://github.com/eea/volto-eea-design-system/commit/874f956c61e65ddbb6a240865f3946bb84247712)
30
+ - Autobuild of docusaurus docs [`93ae789`](https://github.com/eea/volto-eea-design-system/commit/93ae7897286ff65be193f2c576e6472a8e883bde)
31
+ - fix(header): menu generation when atAGlance isn't found [`d68b03c`](https://github.com/eea/volto-eea-design-system/commit/d68b03c05f7671e7ea154efe0199c29a3734fbcf)
32
+
7
33
  #### [0.6.1](https://github.com/eea/volto-eea-design-system/compare/0.6.0...0.6.1)
8
34
 
35
+ > 1 July 2022
36
+
37
+ - Release [`#206`](https://github.com/eea/volto-eea-design-system/pull/206)
9
38
  - Autobuild of docusaurus docs [`aa070d4`](https://github.com/eea/volto-eea-design-system/commit/aa070d4397a7369cc439d78b6355a9e6f0c5c3ff)
10
39
  - feat(headers): added underlined titles with theming support [`af67561`](https://github.com/eea/volto-eea-design-system/commit/af675616f9e002458501cf8b90742514153a298f)
11
40
  - refactor(heading): move underline story and update controls [`2c9bfd2`](https://github.com/eea/volto-eea-design-system/commit/2c9bfd279eafc44435d223be326f9496856c2154)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "0.6.1",
3
+ "version": "0.6.5",
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",
@@ -134,6 +134,19 @@ const Main = ({
134
134
  }
135
135
  };
136
136
 
137
+ const menuOnClickOutside = () => {
138
+ // restore active element if nothing was selected from the menu dropdown
139
+ if (pathname !== activeItem) {
140
+ setActiveItem(pathname);
141
+ }
142
+ // close mobile navigation when clicking outside if we have value for nav
143
+ if (burger) {
144
+ setBurger('');
145
+ }
146
+ // always close the menu
147
+ setMenuIsActive(false);
148
+ };
149
+
137
150
  const menuOnClick = (e, item) => {
138
151
  if (searchIsActive) setSearchIsActive(false);
139
152
  setActiveItem(item['@id'] || item.url);
@@ -226,7 +239,7 @@ const Main = ({
226
239
  renderMenuItem={renderMenuItem}
227
240
  activeItem={activeItem}
228
241
  menuItems={menuItems}
229
- onClose={mobileBurgerOnClick}
242
+ onClose={menuOnClickOutside}
230
243
  triggerRefs={[mobileMenuBurgerRef]}
231
244
  />
232
245
  )}
@@ -150,11 +150,12 @@ const SecondLevelContent = ({ element, topics = false }) => {
150
150
  );
151
151
  content = (
152
152
  <List>
153
- {atAGlance.items.map((item, index) => (
154
- <Link role="listitem" className="item" to={item.url} key={index}>
155
- {item.title}
156
- </Link>
157
- ))}
153
+ {atAGlance &&
154
+ atAGlance.items.map((item, index) => (
155
+ <Link role="listitem" className="item" to={item.url} key={index}>
156
+ {item.title}
157
+ </Link>
158
+ ))}
158
159
  <Link
159
160
  role="listitem"
160
161
  className="item"
@@ -18,7 +18,7 @@
18
18
  @border: @borderWidth solid @borderColor;
19
19
  @boxShadow: @subtleShadow;
20
20
  @borderRadius: @defaultBorderRadius;
21
- @minHeight: (@itemVerticalPadding * 2) + 1em;
21
+ @minHeight: auto;//(@itemVerticalPadding * 2) + 1em;
22
22
 
23
23
  /* Menu Item */
24
24
  @itemVerticalPadding: @relativeSmall;
@@ -13,7 +13,6 @@
13
13
  content: " ";
14
14
  position: absolute;
15
15
  height: 100%;
16
- z-index: -1;
17
16
  margin-right: -50vw;
18
17
  left: 50%;
19
18
  right: 50%;
@@ -96,8 +96,9 @@
96
96
 
97
97
  .top.bar .ui.dropdown i.chevron.down.icon {
98
98
  position: absolute;
99
- font-size: 1.1rem;
100
- top: -@rem-space-1;
99
+ font-size: @topSectionIconFontSize;
100
+ margin-left: @topSectionIconMarginLeft;
101
+ top: 0;
101
102
  }
102
103
 
103
104
  /* Official union dropdown */
@@ -155,6 +156,7 @@
155
156
  #language-switcher {
156
157
  img {
157
158
  width: @mobileOfficialUnionImageWidth;
159
+ margin-left: @topSectionIconMarginLeft;
158
160
  }
159
161
  .menu {
160
162
  .wrapper {
@@ -34,6 +34,8 @@
34
34
  @mobileTopSectionItemFontSize : @font-size-00;
35
35
  @tabletTopSectionItemFontSize : @font-size-00;
36
36
  @topSectionZindex : @z-index-1;
37
+ @topSectionIconMarginLeft : 1px;
38
+ @topSectionIconFontSize : 0.8rem;
37
39
 
38
40
  /* Dropdown */
39
41
  @mobileDropdownMenuMarginTop : 0;
@@ -42,6 +42,8 @@
42
42
  .hero-block-image-wrapper {
43
43
  position: absolute;
44
44
  min-height: @heroBlockImageWrapperMinHeight;
45
+ width: 100%;
46
+ height: 100%;
45
47
  }
46
48
 
47
49
 
@@ -68,6 +70,9 @@
68
70
  .hero-block-body {
69
71
  gap: @tabletHeroBlockBodyGap;
70
72
  }
73
+ .hero-block-inner-wrapper {
74
+ padding-block: @tableHeroBlockWrapperPadding;
75
+ }
71
76
  .homepage #page-document > .eea.hero-block:first-of-type .hero-block-body {
72
77
  margin: @heroBlockHomePageBodyMargin;
73
78
  }
@@ -79,6 +84,10 @@
79
84
  .eea.hero-block.full-height .hero-block-inner-wrapper {
80
85
  min-height: @desktopHeroBlockMinHeight;
81
86
  }
87
+
88
+ .hero-block-inner-wrapper {
89
+ padding-block: @desktopHeroBlockWrapperPadding;
90
+ }
82
91
  .hero-block-body {
83
92
  gap: @desktopHeroBlockBodyGap;
84
93
  }
@@ -3,13 +3,13 @@
3
3
  *******************************/
4
4
 
5
5
  /* Hero block */
6
- @mobileHeroBlockMinHeight : 360px;
7
- @tabletHeroBlockMinHeight : 500px;
8
- @desktopHeroBlockMinHeight: 600px;
6
+ @mobileHeroBlockMinHeight : 412px;
7
+ @tabletHeroBlockMinHeight : 446px;
8
+ @desktopHeroBlockMinHeight: 664px;
9
9
 
10
10
  @heroBlockPosition: relative;
11
11
  @heroBlockHomePagePadding: 0 @rem-space-5;
12
- @heroBlockHomePageBodyMargin: @rem-space-16 0 0 0;
12
+ @heroBlockHomePageBodyMargin: @rem-space-20 0 0 0;
13
13
 
14
14
  /* Hero block spaced */
15
15
  @heroBlockSpacedMargin: @rem-space-12 0;
@@ -23,7 +23,9 @@
23
23
  @heroBlockImageBackgroundPosition : center;
24
24
 
25
25
  /* Wrapper */
26
- @heroBlockWrapperPadding : @rem-space-20;
26
+ @heroBlockWrapperPadding : 5rem;
27
+ @tableHeroBlockWrapperPadding: 6rem;
28
+ @desktopHeroBlockWrapperPadding: 194px 96px;
27
29
 
28
30
  /* Body */
29
31
  @mobileHeroBlockBodyGap : @rem-space-6;
@@ -39,10 +39,15 @@ h1, h2, h3, h4, h5, h6, p, span, .header {
39
39
  .text-right { text-align: right !important; }
40
40
 
41
41
  // Quotes
42
+ .quoted-wrapper h2::before,
43
+ .quoted-wrapper h3::before,
42
44
  .quoted::before {
43
45
  content: "\ec51";
44
46
  font-family: 'remixicon' !important;
45
47
  }
48
+
49
+ .quoted-wrapper h2::after,
50
+ .quoted-wrapper h3::after,
46
51
  .quoted::after {
47
52
  content: "\ec52";
48
53
  font-family: 'remixicon' !important;
@@ -45,6 +45,10 @@
45
45
  }
46
46
  }
47
47
 
48
+ .card .header-link:hover {
49
+ text-decoration: @contentLinkTextDecoration;
50
+ }
51
+
48
52
  .ui.left.card {
49
53
  margin-right: auto;
50
54
  }
@@ -98,8 +98,8 @@
98
98
  @likeActiveColor: #FF2733;
99
99
 
100
100
  /* Links */
101
- @contentLinkColor: @white;
102
- @contentLinkHoverColor: @white;
101
+ @contentLinkColor: @tertiaryColor;
102
+ @contentLinkHoverColor: @tertiaryColor;
103
103
  @contentLinkFontWeight: @bold;
104
104
  @contentLinkTransition: color @defaultDuration @defaultEasing;
105
105
  @contentLinkTextDecoration: underline;
@@ -70,6 +70,17 @@
70
70
  }
71
71
  }
72
72
 
73
+ // decrease margin when using icons instead of images
74
+ // since the icons have themselves extra whitespace
75
+ // and we should aim to get about 32px as seen in the figma design
76
+ .item .icon {
77
+ width: auto;
78
+ margin-right: 0;
79
+ }
80
+ .ui.items > .item > .icon + .content {
81
+ padding-left: @tabletItemSpacing;
82
+ }
83
+
73
84
  .item .tile.image,
74
85
  .block .item .tile.image {
75
86
  width: @tileImageWidth;
@@ -80,7 +91,7 @@
80
91
  margin: @mobileRowItemMargin;
81
92
  }
82
93
 
83
- // As semantic does for non unstacable items
94
+ // As semantic does for non unstackable items
84
95
  // so columns does not affect margin in mobiles
85
96
  .ui.items.row > .item:last-child {
86
97
  margin-bottom: 0;
@@ -150,11 +161,18 @@
150
161
  ---------------*/
151
162
 
152
163
  .ui.items > .item {
153
- &.primary > .icon {
164
+ &.primary,
165
+ > .icon.primary
166
+ {
154
167
  color: @primaryColor;
155
168
  }
156
169
 
157
- &.secondary > .icon {
170
+ &.secondary,
171
+ > .icon.secondary {
158
172
  color: @secondaryColor;
159
173
  }
174
+ &.tertiary,
175
+ > .icon.tertiary {
176
+ color: @tertiaryColor;
177
+ }
160
178
  }