@eeacms/volto-eea-design-system 0.5.0 → 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,65 @@ 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
+
21
+ #### [0.5.2](https://github.com/eea/volto-eea-design-system/compare/0.5.1...0.5.2)
22
+
23
+ > 14 June 2022
24
+
25
+ - Release [`#194`](https://github.com/eea/volto-eea-design-system/pull/194)
26
+ - [R3] Content box [`#125`](https://github.com/eea/volto-eea-design-system/pull/125)
27
+ - Autobuild of docusaurus docs [`31bc68c`](https://github.com/eea/volto-eea-design-system/commit/31bc68cbfe7ba8b7fc5d02358e777f394e60c48d)
28
+ - feat(ContentBox): Update storybook with available themes [`93b26b2`](https://github.com/eea/volto-eea-design-system/commit/93b26b2f5f1d627aa8049df61257499e4798dd79)
29
+ - feat(ContentBox): Add primary, secondary, tertiary themes [`87cb2fe`](https://github.com/eea/volto-eea-design-system/commit/87cb2fe7e4cd5c2872299756f493e371abcbb05f)
30
+ - Cleanup [`2b128df`](https://github.com/eea/volto-eea-design-system/commit/2b128dface95b560588a343f1ddf7bbaf3efb320)
31
+ - perf(eol): change to lf [`78b2955`](https://github.com/eea/volto-eea-design-system/commit/78b2955ff73d9436134d1a6399040b2d7c7f5714)
32
+ - refactor(contentBox): restructure the component to be more flexible [`f0d2de6`](https://github.com/eea/volto-eea-design-system/commit/f0d2de67e43fafa10052871f99ac841c83cf8157)
33
+ - chore(contentBox) : add lint changes [`5aaf740`](https://github.com/eea/volto-eea-design-system/commit/5aaf740594f0001b1672bb6dc18d973f55c881f0)
34
+ - feat(contentBox) : add new Content Box component [`2ebbb47`](https://github.com/eea/volto-eea-design-system/commit/2ebbb47fe685f9809aa3572263be376d9688371e)
35
+
36
+ #### [0.5.1](https://github.com/eea/volto-eea-design-system/compare/0.5.0...0.5.1)
37
+
38
+ > 13 June 2022
39
+
40
+ - change(header): hero integration fixes [`#193`](https://github.com/eea/volto-eea-design-system/pull/193)
41
+ - Autobuild of docusaurus docs [`ac5df8e`](https://github.com/eea/volto-eea-design-system/commit/ac5df8edab41d37e118d34c6a4b35a64428643d0)
42
+ - change(hero): added styles for adding dark overlay to hero [`bf1d292`](https://github.com/eea/volto-eea-design-system/commit/bf1d292fecfa8a6b222558f0d93f48e19bf6b8ea)
43
+ - Autobuild of docusaurus docs [`3192671`](https://github.com/eea/volto-eea-design-system/commit/31926711a83da6b7744249fd3c801e87ae6910d5)
44
+ - change(homepage): hide stagingBanner on homepage [`fb6e319`](https://github.com/eea/volto-eea-design-system/commit/fb6e319dd10f4d148cc8f3b33dafc43280a0254f)
45
+ - Autobuild of docusaurus docs [`333b2dc`](https://github.com/eea/volto-eea-design-system/commit/333b2dcf0b01bfb4afab2d9613b7cdbf331c51bb)
46
+ - Cleanup available languages [`0c49051`](https://github.com/eea/volto-eea-design-system/commit/0c490512a6a6524efe9a37b4b61ab0061a240abb)
47
+ - Autobuild of docusaurus docs [`fb5f811`](https://github.com/eea/volto-eea-design-system/commit/fb5f811c4723929892953e4303a6b39b85efb79d)
48
+ - change(header): added min-height for mega menu needed for 1 items menus [`18814f4`](https://github.com/eea/volto-eea-design-system/commit/18814f48fb743c88d05554e9a1773f8d85dec86c)
49
+ - Autobuild of docusaurus docs [`e836973`](https://github.com/eea/volto-eea-design-system/commit/e8369731a74139bbaf432d7506d27185e9240b1f)
50
+ - change(tokens): modified grey-4 color to point to a 10% shade from original color [`b406283`](https://github.com/eea/volto-eea-design-system/commit/b406283e61c7356bec9d453567cd1ccde496880d)
51
+ - Autobuild of docusaurus docs [`d44ccdd`](https://github.com/eea/volto-eea-design-system/commit/d44ccdd9be2edfd341a6d11bbe6105dd852a5599)
52
+ - change(header): use variable for homepage hero-block padding [`89ff344`](https://github.com/eea/volto-eea-design-system/commit/89ff3441f269281ffb3da32cd3e5c64715b3204b)
53
+ - Autobuild of docusaurus docs [`0a18ebd`](https://github.com/eea/volto-eea-design-system/commit/0a18ebda890c7bd24b1d4c5e0a36f977c4ab1153)
54
+ - change(hero): hero section block integration #192 [`4ea2f40`](https://github.com/eea/volto-eea-design-system/commit/4ea2f40583951016c164c9abdf22d8e809d207fe)
55
+ - change(header): changed homepage text color [`64ce8b6`](https://github.com/eea/volto-eea-design-system/commit/64ce8b61f8f2150513e09bf2926b48aa2ae1071c)
56
+ - Use 1.5 rem [`1125cd7`](https://github.com/eea/volto-eea-design-system/commit/1125cd7c65332fc5961ffbbbd2d2ab6bcc8b1b5b)
57
+ - Add padding if hero block is not full-width [`808b839`](https://github.com/eea/volto-eea-design-system/commit/808b83957d6a866cc31c928f414fa8fa5da517a1)
58
+ - Add hero block style [`fa39656`](https://github.com/eea/volto-eea-design-system/commit/fa39656fd661d8af95f483a6f33a08e4c93c42f1)
59
+ - Autobuild of docusaurus docs [`ca05477`](https://github.com/eea/volto-eea-design-system/commit/ca0547716cb07ca1cb29f8aee0df1d8f26633df2)
60
+
7
61
  #### [0.5.0](https://github.com/eea/volto-eea-design-system/compare/0.4.5...0.5.0)
8
62
 
63
+ > 11 June 2022
64
+
65
+ - refactor(header): to use mega menu v2 [`#191`](https://github.com/eea/volto-eea-design-system/pull/191)
9
66
  - fix(header-dropdown): mobile text is now visible [`#111`](https://github.com/eea/volto-eea-design-system/pull/111)
10
67
  - fix(header): Internal links in mega menu [`d8ca135`](https://github.com/eea/volto-eea-design-system/commit/d8ca13558c3e8c336800791f2fea8a8d33a2b602)
11
68
  - Update package.json [`9dc3816`](https://github.com/eea/volto-eea-design-system/commit/9dc38165a95deca1faf2dfccdc03fd6cab3d8c54)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "0.5.0",
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",
package/src/semantic.less CHANGED
@@ -257,6 +257,10 @@
257
257
  @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/relatedContent';
258
258
  }
259
259
 
260
+ & {
261
+ @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/contentBox';
262
+ }
263
+
260
264
  & {
261
265
  @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/downloadLabeledIcon';
262
266
  }
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { Container } from 'semantic-ui-react';
3
+
4
+ function ContentBox({ children, ...rest }) {
5
+ return (
6
+ <div className={`eea content-box ${rest.variant}`}>
7
+ {rest.container ? <Container>{children}</Container> : children}
8
+ </div>
9
+ );
10
+ }
11
+
12
+ export default ContentBox;
@@ -10,9 +10,12 @@
10
10
  }
11
11
 
12
12
  // add padding to containers on edit section so that we display add and delete buttons
13
- .section-edit .container {
14
- width: auto !important;
15
- padding: 0 3rem;
13
+ .section-edit {
14
+ .container:not(.content-box-inner) {
15
+ width: auto !important;
16
+ padding-left: 3rem;
17
+ padding-right: 3rem;
18
+ }
16
19
  }
17
20
 
18
21
  .contentWidth(@offset) {
@@ -0,0 +1,41 @@
1
+ @type: 'extra';
2
+ @element: 'contentBox';
3
+
4
+ @import (multiple) '../../theme.config';
5
+
6
+ /*-------------------
7
+ CONTENT BOX
8
+ --------------------*/
9
+
10
+ .content-box {
11
+ width: @contentBoxWidth;
12
+ background-color: @contentBoxBackgroundColor;
13
+ color: @contentBoxColorInverted;
14
+ margin-bottom: @mediumGap;
15
+
16
+ position: relative;
17
+ margin-right: -50vw;
18
+ margin-left: -50vw;
19
+ right: 50%;
20
+ left: 50%;
21
+
22
+ .ui.container {
23
+ padding-top: @contentBoxContainerMarginTop;
24
+ padding-bottom: @contentBoxContainerMarginBottom;
25
+ }
26
+
27
+ &.primary {
28
+ background-color: @contentBoxBackgroundColorPrimary;
29
+ color: @contentBoxColor;
30
+ }
31
+
32
+ &.secondary {
33
+ background-color: @contentBoxBackgroundColorSecondary;
34
+ color: @contentBoxColor;
35
+ }
36
+
37
+ &.tertiary {
38
+ background-color: @contentBoxBackgroundColorTertiary;
39
+ color: @contentBoxColor;
40
+ }
41
+ }
@@ -0,0 +1,19 @@
1
+ /*******************************
2
+ Content Box
3
+ *******************************/
4
+
5
+ /* Content Box */
6
+ @contentBoxWidth : 100vw;
7
+ @contentBoxColor : @white;
8
+ @contentBoxBackgroundColor: @grey-1;
9
+ @contentBoxColorInverted : inherit;
10
+
11
+ /* Themes */
12
+ @contentBoxBackgroundColorPrimary: @primaryColor;
13
+ @contentBoxBackgroundColorSecondary: @secondaryColor;
14
+ @contentBoxBackgroundColorTertiary: @tertiaryColor;
15
+
16
+
17
+ /* Container */
18
+ @contentBoxContainerMarginTop : @bigGap;
19
+ @contentBoxContainerMarginBottom : @bigGap;
@@ -0,0 +1,4 @@
1
+ // hide stagingBanner on homepage
2
+ .homepage .stagingBanner {
3
+ display: none !important;
4
+ }
@@ -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;
@@ -83,7 +88,7 @@
83
88
  gap: @dropdownMenuWrapperGap;
84
89
  white-space: @dropdownMenuContentWhiteSpace;
85
90
  margin: @dropdownMenuWrapperMargin;
86
-
91
+
87
92
  &.language-list {
88
93
  padding-inline-start: @dropdownMenuLanguageWrapperPaddingInlineStart;
89
94
  }
@@ -117,7 +122,7 @@
117
122
  }
118
123
  a {
119
124
  font-weight: @officialUnionLinkFontWeight;
120
- white-space: @dropdownMenuContentWhiteSpace;
125
+ white-space: @dropdownMenuContentWhiteSpace;
121
126
  color: @officialUnionLinkColor;
122
127
  }
123
128
  }
@@ -288,10 +293,15 @@
288
293
 
289
294
  @media all and (max-width: @largestMobileScreen) {
290
295
  .eea.header .top.bar .ui.container {
291
- width: 100% !important; //override semantic auto to display content with space between them
296
+ width: 100% !important; //override semantic auto to display content with space between them
292
297
  }
293
298
  }
294
-
299
+ .homepage .eea.header {
300
+ position: absolute;
301
+ top: 0;
302
+ z-index: 1;
303
+ width: 100%;
304
+ }
295
305
  /*----------------------------------------------------------------------------
296
306
  Header Actions - Burger and Search Icons
297
307
  ----------------------------------------------------------------------------*/
@@ -370,7 +380,7 @@
370
380
  .top.bar .ui.dropdown .menu {
371
381
  margin-top: @tabletDropdownMenuMarginTop;
372
382
  }
373
-
383
+
374
384
  .top.bar .ui.dropdown .menu,
375
385
  .top.bar .ui.dropdown .menu .item {
376
386
  font-size: @tabletDropdownMenuFontSize;
@@ -512,6 +522,7 @@
512
522
  background: @megaMenuBackgroundColor;
513
523
  color: @megaMenuTextColor;
514
524
  max-height: @mobilePopUpHeight;
525
+ min-height: @size-11;
515
526
  padding: @mobileMegaMenuPadding;
516
527
 
517
528
  .ui.container {
@@ -531,11 +542,11 @@
531
542
  color: @megaMenuTextColor;
532
543
 
533
544
  &+ .ui.grid {
534
-
545
+
535
546
  div.column:first-child {
536
547
  padding-left: 0;
537
548
  }
538
-
549
+
539
550
  div.column:last-child {
540
551
  padding-right: 0;
541
552
  }
@@ -649,5 +660,5 @@
649
660
  }
650
661
  #mega-menu .title > a {
651
662
  color: @megaMenuTextColor;
652
- }
663
+ }
653
664
  }
@@ -90,7 +90,7 @@
90
90
  -----------------------*/
91
91
 
92
92
  /* Main Section */
93
- @headerMainSectionBackground : @white;
93
+ @headerMainSectionBackground : transparent;
94
94
  @headerMainSectionTransparency : rgba(255, 255, 255, 0.1);
95
95
 
96
96
  /* Logo */
@@ -11,49 +11,75 @@
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 {
20
25
  display: flex;
26
+ width: 100%;
21
27
  flex-direction: column;
22
28
  gap: @mobileHeroBlockBodyGap;
23
29
  }
24
30
 
25
31
  .hero-block-image {
32
+ background-color: inherit;
26
33
  background-repeat: @heroBlockImageBackgroundRepeat;
27
34
  background-size: @heroBlockImageBackgroundSize;
28
35
  background-position: @heroBlockImageBackgroundPosition;
29
36
  width: 100%;
30
37
  height: 100%;
38
+ position: absolute;
39
+ z-index: 0;
40
+ }
41
+
42
+ .hero-block-image-wrapper {
43
+ position: absolute;
44
+ min-height: @heroBlockImageWrapperMinHeight;
45
+ }
46
+
47
+
48
+ .hero-block-text .quoted > * {
49
+ display: inline-block;
50
+ }
51
+
52
+ .hero-block[class*='color-bg']:not(.full-width) {
53
+ padding: @heroBlockHomePagePadding;
31
54
  }
32
55
 
33
56
  .eea.hero-block.full-height,
34
- .eea.hero-block.full-height .hero-block-image,
57
+ .eea.hero-block.full-height .hero-block-image-wrapper,
35
58
  .eea.hero-block.full-height .hero-block-inner-wrapper {
36
59
  min-height: @mobileHeroBlockMinHeight;
37
60
  }
38
61
 
39
62
  @media only screen and (min-width: @tabletBreakpoint) {
40
63
  .eea.hero-block.full-height,
41
- .eea.hero-block.full-height .hero-block-image,
64
+ .eea.hero-block.full-height .hero-block-image-wrapper,
42
65
  .eea.hero-block.full-height .hero-block-inner-wrapper {
43
66
  min-height: @tabletHeroBlockMinHeight;
44
67
  }
45
68
  .hero-block-body {
46
69
  gap: @tabletHeroBlockBodyGap;
47
70
  }
71
+ .homepage #page-document > .eea.hero-block:first-of-type .hero-block-body {
72
+ margin: @heroBlockHomePageBodyMargin;
73
+ }
48
74
  }
49
75
 
50
76
  @media only screen and (min-width: @computerBreakpoint) {
51
77
  .eea.hero-block.full-height,
52
- .eea.hero-block.full-height .hero-block-image,
78
+ .eea.hero-block.full-height .hero-block-image-wrapper,
53
79
  .eea.hero-block.full-height .hero-block-inner-wrapper {
54
80
  min-height: @desktopHeroBlockMinHeight;
55
- }
81
+ }
56
82
  .hero-block-body {
57
83
  gap: @desktopHeroBlockBodyGap;
58
84
  }
59
- }
85
+ }
@@ -3,11 +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;
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
11
19
 
12
20
  /* Background Image */
13
21
  @heroBlockImageBackgroundRepeat : no-repeat;
@@ -16,3 +16,7 @@
16
16
  [class*=' ri-'] {
17
17
  fill: currentColor;
18
18
  }
19
+
20
+ .homepage {
21
+ color: @tertiaryColor;
22
+ }
@@ -9,6 +9,17 @@
9
9
  .color-bg-tertiary { background-color: @tertiaryColor !important; }
10
10
  .color-bg-grey { background-color: @grey-1 !important; }
11
11
 
12
+ .dark-overlay-4 {
13
+ position: absolute;
14
+ top: 0;
15
+ right: 0;
16
+ bottom: 0;
17
+ left: 0;
18
+ background: #000;
19
+ opacity: 0.4;
20
+ z-index: 0;
21
+ }
22
+
12
23
  // Display utilities
13
24
  .d-flex { display: flex !important; }
14
25
  .flex-items-start { align-items: flex-start !important; }
@@ -58,6 +58,6 @@
58
58
  @grey-1: #F9F9F9;
59
59
  @grey-2: #E6E7E8;
60
60
  @grey-3: #BCBEC0;
61
- @grey-4: #808285;
61
+ @grey-4: #67696b; // 10% shade of #808285 which passed AA validation on white bg
62
62
  @grey-5: #323232;
63
63
  @grey-6: #000000;
@@ -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: '';