@eeacms/volto-eea-design-system 0.5.2 → 0.5.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 CHANGED
@@ -4,8 +4,25 @@ 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.5.3](https://github.com/eea/volto-eea-design-system/compare/0.5.2...0.5.3)
8
+
9
+ - Autobuild of docusaurus docs [`084402d`](https://github.com/eea/volto-eea-design-system/commit/084402da0b1a56a5eeda970f330bcc1daf4e4cb1)
10
+ - fix(homepage): hero and homepage fixes for #151156 #198 [`43d4efc`](https://github.com/eea/volto-eea-design-system/commit/43d4efc508750e0e9cbb93b9bffc3721be452c5a)
11
+ - change(container): on section-edit modify only left and right padding values [`fe6e3ec`](https://github.com/eea/volto-eea-design-system/commit/fe6e3ec764643ec01e20ae9dbdde921774ef04cd)
12
+ - change(hero): added min height to hero-block-image-wrapper [`3cc37c0`](https://github.com/eea/volto-eea-design-system/commit/3cc37c027597573281710c9db98c687057d261dd)
13
+ - fix(header): fixed top section width on edit page [`ce5898b`](https://github.com/eea/volto-eea-design-system/commit/ce5898b5ee41ea6959a2c454b3fb98216d71feb3)
14
+ - change(utilities): bump z-index of overlay class [`ede3209`](https://github.com/eea/volto-eea-design-system/commit/ede3209556b620d2252bb03d4c994a92b6708fd2)
15
+ - change(hero): spaced hero block has a 3rem margin top and bottom [`c463b03`](https://github.com/eea/volto-eea-design-system/commit/c463b033dda601bfd475b282bc0003200a053d45)
16
+ - change(hero): fixed variable reference for margin of body from homepage [`092b90b`](https://github.com/eea/volto-eea-design-system/commit/092b90b2a902b71cc96132ca3c96108edda56342)
17
+ - change(hero): added extra top margin on hero-block-body from tablet and up within homepage [`64142c3`](https://github.com/eea/volto-eea-design-system/commit/64142c3c45f6a8ea6502842055a2341dcf16088c)
18
+ - change(hero): tweak min height of hero block [`e1271b4`](https://github.com/eea/volto-eea-design-system/commit/e1271b4b5fdcd8205f0bec8b88ab9ae31f62251f)
19
+ - change(card,contentBox): use inherit for text color to inherit black from body [`c1ba3b6`](https://github.com/eea/volto-eea-design-system/commit/c1ba3b6ddc16ddc7394aba8d78cad73b5a8c34cb)
20
+
7
21
  #### [0.5.2](https://github.com/eea/volto-eea-design-system/compare/0.5.1...0.5.2)
8
22
 
23
+ > 14 June 2022
24
+
25
+ - Release [`#194`](https://github.com/eea/volto-eea-design-system/pull/194)
9
26
  - [R3] Content box [`#125`](https://github.com/eea/volto-eea-design-system/pull/125)
10
27
  - Autobuild of docusaurus docs [`31bc68c`](https://github.com/eea/volto-eea-design-system/commit/31bc68cbfe7ba8b7fc5d02358e777f394e60c48d)
11
28
  - feat(ContentBox): Update storybook with available themes [`93b26b2`](https://github.com/eea/volto-eea-design-system/commit/93b26b2f5f1d627aa8049df61257499e4798dd79)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "0.5.2",
3
+ "version": "0.5.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",
@@ -13,7 +13,8 @@
13
13
  .section-edit {
14
14
  .container:not(.content-box-inner) {
15
15
  width: auto !important;
16
- padding: 0 3rem;
16
+ padding-left: 3rem;
17
+ padding-right: 3rem;
17
18
  }
18
19
  }
19
20
 
@@ -6,7 +6,7 @@
6
6
  @contentBoxWidth : 100vw;
7
7
  @contentBoxColor : @white;
8
8
  @contentBoxBackgroundColor: @grey-1;
9
- @contentBoxColorInverted : @black;
9
+ @contentBoxColorInverted : inherit;
10
10
 
11
11
  /* Themes */
12
12
  @contentBoxBackgroundColorPrimary: @primaryColor;
@@ -35,6 +35,11 @@
35
35
  }
36
36
  }
37
37
 
38
+ // enlarge top section on edit page due to width auto on container
39
+ .section-edit .top .container {
40
+ flex: 1;
41
+ }
42
+
38
43
  .top.bar .item {
39
44
  display: flex;
40
45
  align-items: center;
@@ -11,9 +11,14 @@
11
11
  position: @heroBlockPosition;
12
12
  }
13
13
 
14
+ .eea.hero-block.spaced {
15
+ margin: @heroBlockSpacedMargin;
16
+ }
17
+
14
18
  .hero-block-inner-wrapper {
15
19
  height: 100%;
16
20
  padding-block: @heroBlockWrapperPadding;
21
+ position: relative;
17
22
  }
18
23
 
19
24
  .hero-block-body {
@@ -24,43 +29,53 @@
24
29
  }
25
30
 
26
31
  .hero-block-image {
32
+ background-color: inherit;
27
33
  background-repeat: @heroBlockImageBackgroundRepeat;
28
34
  background-size: @heroBlockImageBackgroundSize;
29
35
  background-position: @heroBlockImageBackgroundPosition;
30
36
  width: 100%;
31
37
  height: 100%;
32
38
  position: absolute;
33
- z-index: -1;
39
+ z-index: 0;
34
40
  }
35
41
 
42
+ .hero-block-image-wrapper {
43
+ position: absolute;
44
+ min-height: @heroBlockImageWrapperMinHeight;
45
+ }
46
+
47
+
36
48
  .hero-block-text .quoted > * {
37
49
  display: inline-block;
38
50
  }
39
51
 
40
52
  .hero-block[class*='color-bg']:not(.full-width) {
41
- padding: @heroBlockHomepagePadding;
53
+ padding: @heroBlockHomePagePadding;
42
54
  }
43
55
 
44
56
  .eea.hero-block.full-height,
45
- .eea.hero-block.full-height .hero-block-image,
57
+ .eea.hero-block.full-height .hero-block-image-wrapper,
46
58
  .eea.hero-block.full-height .hero-block-inner-wrapper {
47
59
  min-height: @mobileHeroBlockMinHeight;
48
60
  }
49
61
 
50
62
  @media only screen and (min-width: @tabletBreakpoint) {
51
63
  .eea.hero-block.full-height,
52
- .eea.hero-block.full-height .hero-block-image,
64
+ .eea.hero-block.full-height .hero-block-image-wrapper,
53
65
  .eea.hero-block.full-height .hero-block-inner-wrapper {
54
66
  min-height: @tabletHeroBlockMinHeight;
55
67
  }
56
68
  .hero-block-body {
57
69
  gap: @tabletHeroBlockBodyGap;
58
70
  }
71
+ .homepage #page-document > .eea.hero-block:first-of-type .hero-block-body {
72
+ margin: @heroBlockHomePageBodyMargin;
73
+ }
59
74
  }
60
75
 
61
76
  @media only screen and (min-width: @computerBreakpoint) {
62
77
  .eea.hero-block.full-height,
63
- .eea.hero-block.full-height .hero-block-image,
78
+ .eea.hero-block.full-height .hero-block-image-wrapper,
64
79
  .eea.hero-block.full-height .hero-block-inner-wrapper {
65
80
  min-height: @desktopHeroBlockMinHeight;
66
81
  }
@@ -3,12 +3,19 @@
3
3
  *******************************/
4
4
 
5
5
  /* Hero block */
6
- @mobileHeroBlockMinHeight : 417px;
7
- @tabletHeroBlockMinHeight : 465px;
8
- @desktopHeroBlockMinHeight: 665px;
6
+ @mobileHeroBlockMinHeight : 360px;
7
+ @tabletHeroBlockMinHeight : 500px;
8
+ @desktopHeroBlockMinHeight: 600px;
9
9
 
10
10
  @heroBlockPosition: relative;
11
- @heroBlockHomepagePadding: 0 @rem-space-5;
11
+ @heroBlockHomePagePadding: 0 @rem-space-5;
12
+ @heroBlockHomePageBodyMargin: @rem-space-16 0 0 0;
13
+
14
+ /* Hero block spaced */
15
+ @heroBlockSpacedMargin: @rem-space-12 0;
16
+
17
+ /* Image Wrapper */
18
+ @heroBlockImageWrapperMinHeight: 290px; // 5rem gap plus one line text
12
19
 
13
20
  /* Background Image */
14
21
  @heroBlockImageBackgroundRepeat : no-repeat;
@@ -17,7 +17,7 @@
17
17
  left: 0;
18
18
  background: #000;
19
19
  opacity: 0.4;
20
- z-index: -1;
20
+ z-index: 0;
21
21
  }
22
22
 
23
23
  // Display utilities
@@ -79,7 +79,7 @@
79
79
  @headerFontWeight: @bold;
80
80
  @headerFontSize: 1.125rem;
81
81
  @headerLineHeightOffset: -(@lineHeight - 1em) / 2;
82
- @headerColor: @black;
82
+ @headerColor: inherit;
83
83
 
84
84
  /* Metadata */
85
85
  @metaFontSize: @relativeMedium;
@@ -112,7 +112,7 @@
112
112
 
113
113
  /* Description */
114
114
  @descriptionDistance: 0.5em;
115
- @descriptionColor: @black;
115
+ @descriptionColor: inherit;
116
116
 
117
117
  /* Content Image */
118
118
  @contentImageWidth: '';