@eeacms/volto-eea-design-system 0.5.2 → 0.5.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,56 @@ 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.5](https://github.com/eea/volto-eea-design-system/compare/0.5.4...0.5.5)
8
+
9
+ - Autobuild of docusaurus docs [`83cf8df`](https://github.com/eea/volto-eea-design-system/commit/83cf8df2a3de124b71a0641a821ae9538f3e45e3)
10
+ - change(homepage): moved fixes of homepage to custom and colored carousel arrow [`0a226ef`](https://github.com/eea/volto-eea-design-system/commit/0a226ef3f5d328d45513764bec02d58241417db0)
11
+ - Autobuild of docusaurus docs [`304577a`](https://github.com/eea/volto-eea-design-system/commit/304577a4b79d256bbdc50fc9c75d9d0efc0769b9)
12
+ - fix(contentBox): color of cards when inside content-boxes [`76a4520`](https://github.com/eea/volto-eea-design-system/commit/76a452031473f43928dee1d3ee705d06101e6a21)
13
+
14
+ #### [0.5.4](https://github.com/eea/volto-eea-design-system/compare/0.5.3...0.5.4)
15
+
16
+ > 16 June 2022
17
+
18
+ - content box and header fixes [`#200`](https://github.com/eea/volto-eea-design-system/pull/200)
19
+ - change(content-box): content box links are now underlined [`f7976f5`](https://github.com/eea/volto-eea-design-system/commit/f7976f50f5807a884522d6dba871a2757a1c5a98)
20
+ - Autobuild of docusaurus docs [`89a258a`](https://github.com/eea/volto-eea-design-system/commit/89a258a84ae58ffa0be79baf99d562213e8c8491)
21
+ - fix(header): ensure transparency goes as high as the search icon [`4470e13`](https://github.com/eea/volto-eea-design-system/commit/4470e132e1e70fba3fdfb33fc63a1cc9d62700e8)
22
+ - Autobuild of docusaurus docs [`4f7fa93`](https://github.com/eea/volto-eea-design-system/commit/4f7fa93e6fa1819946d25df9810378bc2bdd860e)
23
+ - change(cards): fix default card color when inside content-boxes [`6fdf3aa`](https://github.com/eea/volto-eea-design-system/commit/6fdf3aabf9515289b36a5822e21edc5d282c4536)
24
+ - Autobuild of docusaurus docs [`30d02ab`](https://github.com/eea/volto-eea-design-system/commit/30d02abaaa713c6ed13aa8ec629476e25307bccb)
25
+ - change(container): removed override of content-box-inner container [`66fe7d4`](https://github.com/eea/volto-eea-design-system/commit/66fe7d45adc631c3ebf0e8dd11de19d7ff60b894)
26
+ - Autobuild of docusaurus docs [`86f4dec`](https://github.com/eea/volto-eea-design-system/commit/86f4dec858e3f335834ea9f4e9ccfba9c06b25a9)
27
+ - change(homepage): added fixes from custom [`c3e0333`](https://github.com/eea/volto-eea-design-system/commit/c3e03331d328f4fd7c6689f93bc1f1156013b8a9)
28
+ - Autobuild of docusaurus docs [`a33eae9`](https://github.com/eea/volto-eea-design-system/commit/a33eae9062cc7bd44a09a6dc60babbde38811bca)
29
+ - change(contentBox): add background as before element instead of using full-width [`7e0a596`](https://github.com/eea/volto-eea-design-system/commit/7e0a5962c1b9cb0d3ef9a8d7b7208eded34eb3ce)
30
+ - Autobuild of docusaurus docs [`2558a85`](https://github.com/eea/volto-eea-design-system/commit/2558a85b2f98adf77204280909984c76e8e209c1)
31
+ - change(hero): add margin top with the height of the top section on edit [`fefa6bb`](https://github.com/eea/volto-eea-design-system/commit/fefa6bb0f513e221ddb587f081c0e7d0c3067dfd)
32
+ - Autobuild of docusaurus docs [`5c8d4d5`](https://github.com/eea/volto-eea-design-system/commit/5c8d4d5329a91fb177ddaaa4044410566f6651ab)
33
+ - fix(block-style): Content box preview in sidebar [`6362766`](https://github.com/eea/volto-eea-design-system/commit/6362766f5e8dabf778e3864d2bb08966a55fc078)
34
+
35
+ #### [0.5.3](https://github.com/eea/volto-eea-design-system/compare/0.5.2...0.5.3)
36
+
37
+ > 16 June 2022
38
+
39
+ - fix(homepage): hero and homepage view fixes for #151156 [`#199`](https://github.com/eea/volto-eea-design-system/pull/199)
40
+ - Autobuild of docusaurus docs [`084402d`](https://github.com/eea/volto-eea-design-system/commit/084402da0b1a56a5eeda970f330bcc1daf4e4cb1)
41
+ - fix(homepage): hero and homepage fixes for #151156 #198 [`43d4efc`](https://github.com/eea/volto-eea-design-system/commit/43d4efc508750e0e9cbb93b9bffc3721be452c5a)
42
+ - change(container): on section-edit modify only left and right padding values [`fe6e3ec`](https://github.com/eea/volto-eea-design-system/commit/fe6e3ec764643ec01e20ae9dbdde921774ef04cd)
43
+ - change(hero): added min height to hero-block-image-wrapper [`3cc37c0`](https://github.com/eea/volto-eea-design-system/commit/3cc37c027597573281710c9db98c687057d261dd)
44
+ - fix(header): fixed top section width on edit page [`ce5898b`](https://github.com/eea/volto-eea-design-system/commit/ce5898b5ee41ea6959a2c454b3fb98216d71feb3)
45
+ - change(utilities): bump z-index of overlay class [`ede3209`](https://github.com/eea/volto-eea-design-system/commit/ede3209556b620d2252bb03d4c994a92b6708fd2)
46
+ - change(hero): spaced hero block has a 3rem margin top and bottom [`c463b03`](https://github.com/eea/volto-eea-design-system/commit/c463b033dda601bfd475b282bc0003200a053d45)
47
+ - change(hero): fixed variable reference for margin of body from homepage [`092b90b`](https://github.com/eea/volto-eea-design-system/commit/092b90b2a902b71cc96132ca3c96108edda56342)
48
+ - 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)
49
+ - change(hero): tweak min height of hero block [`e1271b4`](https://github.com/eea/volto-eea-design-system/commit/e1271b4b5fdcd8205f0bec8b88ab9ae31f62251f)
50
+ - change(card,contentBox): use inherit for text color to inherit black from body [`c1ba3b6`](https://github.com/eea/volto-eea-design-system/commit/c1ba3b6ddc16ddc7394aba8d78cad73b5a8c34cb)
51
+
7
52
  #### [0.5.2](https://github.com/eea/volto-eea-design-system/compare/0.5.1...0.5.2)
8
53
 
54
+ > 14 June 2022
55
+
56
+ - Release [`#194`](https://github.com/eea/volto-eea-design-system/pull/194)
9
57
  - [R3] Content box [`#125`](https://github.com/eea/volto-eea-design-system/pull/125)
10
58
  - Autobuild of docusaurus docs [`31bc68c`](https://github.com/eea/volto-eea-design-system/commit/31bc68cbfe7ba8b7fc5d02358e777f394e60c48d)
11
59
  - 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.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",
@@ -4,7 +4,11 @@ import { Container } from 'semantic-ui-react';
4
4
  function ContentBox({ children, ...rest }) {
5
5
  return (
6
6
  <div className={`eea content-box ${rest.variant}`}>
7
- {rest.container ? <Container>{children}</Container> : children}
7
+ {rest.container ? (
8
+ <Container className={'content-box-inner'}>{children}</Container>
9
+ ) : (
10
+ children
11
+ )}
8
12
  </div>
9
13
  );
10
14
  }
@@ -11,9 +11,10 @@
11
11
 
12
12
  // add padding to containers on edit section so that we display add and delete buttons
13
13
  .section-edit {
14
- .container:not(.content-box-inner) {
14
+ .container {
15
15
  width: auto !important;
16
- padding: 0 3rem;
16
+ padding-left: 3rem;
17
+ padding-right: 3rem;
17
18
  }
18
19
  }
19
20
 
@@ -6,20 +6,26 @@
6
6
  /*-------------------
7
7
  CONTENT BOX
8
8
  --------------------*/
9
+ .content-box:before {
10
+ width: @contentBoxWidth;
11
+ margin-left: -50vw;
12
+ background-color: inherit;
13
+ content: " ";
14
+ position: absolute;
15
+ height: 100%;
16
+ z-index: -1;
17
+ margin-right: -50vw;
18
+ left: 50%;
19
+ right: 50%;
20
+ }
9
21
 
10
22
  .content-box {
11
- width: @contentBoxWidth;
12
23
  background-color: @contentBoxBackgroundColor;
13
24
  color: @contentBoxColorInverted;
14
25
  margin-bottom: @mediumGap;
15
-
16
26
  position: relative;
17
- margin-right: -50vw;
18
- margin-left: -50vw;
19
- right: 50%;
20
- left: 50%;
21
-
22
- .ui.container {
27
+
28
+ .content-box-inner {
23
29
  padding-top: @contentBoxContainerMarginTop;
24
30
  padding-bottom: @contentBoxContainerMarginBottom;
25
31
  }
@@ -39,3 +45,20 @@
39
45
  color: @contentBoxColor;
40
46
  }
41
47
  }
48
+
49
+ // inherit link
50
+
51
+
52
+ [class*="content-box"] a {
53
+ text-decoration: underline;
54
+ }
55
+ .content-box[class*="ary"] a {
56
+ color: inherit;
57
+ }
58
+
59
+ // set color of default cards to black when we are inside a content-box which has the ability to set
60
+ // color classes
61
+ .content-box[class*="ary"] [class="ui fluid card"] {
62
+ color: @grey-6;
63
+ }
64
+
@@ -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;
@@ -1,4 +1,60 @@
1
+ /*-------------------
2
+ Homepage
3
+ --------------------*/
1
4
  // hide stagingBanner on homepage
2
5
  .homepage .stagingBanner {
3
6
  display: none !important;
4
7
  }
8
+
9
+ // hide breadcrumbs on homepage
10
+ .homepage .breadcrumbs {
11
+ display: none !important;
12
+ }
13
+
14
+ // remove margin and padding from homepage content-area since we have the bg image over the header
15
+ .homepage .content-area {
16
+ margin-top: 0 !important;
17
+ padding-top: 0 !important;
18
+
19
+ }
20
+
21
+ // use homepage text color for color of cards that are within a content-box that has a variant class
22
+ .homepage .content-box[class*="ary"] [class="ui fluid card"] {
23
+ color: @blue-grey-5;
24
+ }
25
+ // set carousel arrow to homepage color
26
+ .homepage .cards-carousel .ui.button.icon.slider-arrow .icon {
27
+ color: @blue-grey-5;
28
+ }
29
+
30
+ // remove text decoration on links that might be added by content-box a rule
31
+ .grid-block-teaser a {
32
+ text-decoration: none;
33
+ }
34
+
35
+ // Block style - preset styles
36
+ .style-select-widget {
37
+ .content {
38
+ text-align: center;
39
+ }
40
+ svg.default {
41
+ background-color: @grey-1;
42
+ }
43
+ svg.primary {
44
+ background-color: @primaryColor;
45
+ fill: @white !important;
46
+ }
47
+ svg.secondary {
48
+ background-color: @secondaryColor;
49
+ fill: @white !important;
50
+ }
51
+ svg.tertiary {
52
+ background-color: @tertiaryColor;
53
+ fill: @white !important;
54
+ }
55
+ }
56
+
57
+ // raise z-index of delete button to go above blocks
58
+ .block .ui.basic.button.delete-button {
59
+ z-index: @z-index-5;
60
+ }
@@ -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;
@@ -175,6 +180,7 @@
175
180
  background-color: @headerMainSectionTransparency;
176
181
  display: block;
177
182
  content: " ";
183
+ top: 0;
178
184
  z-index: 0;
179
185
  width: 100%;
180
186
  height: 100%;
@@ -372,6 +378,10 @@
372
378
  height: @tabletTopSectionHeight;
373
379
  }
374
380
 
381
+ .homepage .block-editor-hero {
382
+ margin-top: @tabletTopSectionHeight;
383
+ }
384
+
375
385
  .top.bar .ui.dropdown .menu {
376
386
  margin-top: @tabletDropdownMenuMarginTop;
377
387
  }
@@ -452,6 +462,9 @@
452
462
  .top.bar {
453
463
  height: @computerTopSectionHeight;
454
464
  }
465
+ .homepage .block-editor-hero {
466
+ margin-top: @computerTopSectionHeight;
467
+ }
455
468
 
456
469
  .top.bar .ui.dropdown .menu {
457
470
  margin-top: @computerDropdownMenuMarginTop;
@@ -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: '';