@eeacms/volto-eea-design-system 0.9.2 → 0.9.4

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +63 -2
  2. package/package.json +2 -1
  3. package/src/ui/Banner/Banner.jsx +7 -1
  4. package/src/ui/Banner/Banner.stories.jsx +2 -0
  5. package/src/ui/Header/HeaderSearchPopUp.js +30 -12
  6. package/theme/themes/eea/collections/breadcrumb.variables +1 -1
  7. package/theme/themes/eea/collections/menu.overrides +1 -1
  8. package/theme/themes/eea/collections/menu.variables +2 -2
  9. package/theme/themes/eea/collections/table.variables +1 -1
  10. package/theme/themes/eea/elements/input.overrides +10 -3
  11. package/theme/themes/eea/elements/list.overrides +4 -2
  12. package/theme/themes/eea/elements/list.variables +6 -6
  13. package/theme/themes/eea/extras/banner.less +27 -11
  14. package/theme/themes/eea/extras/banner.variables +10 -0
  15. package/theme/themes/eea/extras/callout.variables +3 -3
  16. package/theme/themes/eea/extras/contentBox.less +16 -23
  17. package/theme/themes/eea/extras/contentBox.variables +1 -0
  18. package/theme/themes/eea/extras/custom.overrides +38 -2
  19. package/theme/themes/eea/extras/header.less +109 -74
  20. package/theme/themes/eea/extras/header.variables +11 -0
  21. package/theme/themes/eea/extras/quote.variables +2 -2
  22. package/theme/themes/eea/extras/tag.variables +1 -1
  23. package/theme/themes/eea/extras/tagList.variables +1 -1
  24. package/theme/themes/eea/globals/site.variables +14 -1
  25. package/theme/themes/eea/modules/accordion.overrides +5 -3
  26. package/theme/themes/eea/modules/accordion.variables +8 -7
  27. package/theme/themes/eea/modules/tab.overrides +4 -0
  28. package/theme/themes/eea/modules/tab.variables +1 -1
  29. package/theme/themes/eea/views/card.overrides +5 -0
  30. package/theme/themes/eea/views/card.variables +3 -2
  31. package/theme/themes/eea/views/item.overrides +13 -0
  32. package/theme/themes/eea/views/item.variables +5 -1
  33. package/theme/themes/eea/views/statistic.variables +6 -6
@@ -10,13 +10,13 @@
10
10
  @titlePadding: 1rem 1.563rem;
11
11
  @titlePadding: @rectangleMedium;
12
12
  @titleFontSize: 1.125rem;
13
- @titleColor: @textColor;
13
+ @titleColor: @textColorCSSVar;
14
14
  @titleBorderBottom: @1px solid @silverGray;
15
- @titleColorHover: @grey-5;
15
+ @titleColorHover:var(--text-color-hover, @grey-5);
16
16
  @titleJustifyContent: space-between;
17
17
 
18
18
  /* Icon */
19
- @iconColor: @oldSilver;
19
+ @iconColor: var(--text-color, @oldSilver);
20
20
  @iconColorActive: @white;
21
21
  @iconOpacity: 1;
22
22
  @iconFontSize: 3rem;
@@ -32,7 +32,7 @@
32
32
  ;
33
33
  @iconVerticalAlign: baseline;
34
34
  @iconTransform: none;
35
- @iconColorHover: @grey-5;
35
+ @iconColorHover: @titleColorHover;
36
36
  @iconInactive: "\ea4e"; // Icon of closed accordion
37
37
  @iconActive: "\EA78"; // Icon of open accordion
38
38
  @iconOrder: 1; // Icon after text of the title
@@ -45,7 +45,8 @@
45
45
  @contentMargin: 0;
46
46
  @contentPaddingBottom: 1.563rem;
47
47
  @contentPadding: @squareMedium;
48
- @contentBackground: #F9F9F9;
48
+ @contentBackground: @grey-1;
49
+ @contentColor: @tertiaryColor;
49
50
 
50
51
  /*-------------------
51
52
  Coupling
@@ -62,7 +63,7 @@
62
63
  --------------------*/
63
64
 
64
65
  @activeIconTransform: none;
65
- @activeTitleBackground: @darkWhite;
66
+ @activeTitleBackground: var(--bg-color, @white);
66
67
  @activeTitleColor: @grey-5;
67
68
  @activeTitleBorderBottom: 0;
68
69
 
@@ -72,7 +73,7 @@
72
73
 
73
74
  /* Styled */
74
75
  @styledWidth: 600px;
75
- @styledBackground: @white;
76
+ @styledBackground: @activeTitleBackground;
76
77
  @styledBorderRadius: 0;
77
78
  @styledBoxShadow: none;
78
79
 
@@ -12,6 +12,10 @@
12
12
  }
13
13
  }
14
14
 
15
+ .tabs-block {
16
+ color: @tabsBlockColor;
17
+ }
18
+
15
19
  // Contain images inside vertical tab content
16
20
  .stretched.wide.column > .tab img {
17
21
  max-width: @verticalTabPaneImageMaxWidth;
@@ -1,7 +1,7 @@
1
1
  /*******************************
2
2
  Tab
3
3
  *******************************/
4
-
4
+ @tabsBlockColor: @textColor;
5
5
  @tabActiveItemHoverColor: @secondaryColor;
6
6
 
7
7
  @mobileItemFontSize: 1rem;
@@ -18,6 +18,10 @@
18
18
  text-align: var(--text-align, @cardTextAlign);
19
19
  }
20
20
 
21
+ .card .meta .date {
22
+ margin-left: @cardMetaDateMarginLeft;
23
+ }
24
+
21
25
  .ui.cards > .card:not(.rounded) > .image,
22
26
  .ui.card:not(.rounded) > .image {
23
27
  overflow: @cardImageOverflow;
@@ -430,6 +434,7 @@
430
434
  /* Custom carousel pagination bullets */
431
435
  // avoid dots going over content that follows sliders
432
436
  .slick-dots {
437
+ position: relative;
433
438
  bottom: 0;
434
439
  }
435
440
  .cards-carousel .slick-dots li button:before {
@@ -30,6 +30,7 @@
30
30
  box-shadow @defaultDuration @defaultEasing,
31
31
  transform @defaultDuration @defaultEasing
32
32
  ;
33
+ @cardMetaDateMarginLeft: auto;
33
34
 
34
35
  /* Card Group */
35
36
  @horizontalSpacing: 1em;
@@ -87,7 +88,7 @@
87
88
 
88
89
  /* Metadata */
89
90
  @metaJustifyContent: space-between;
90
- @metaFontSize: @relativeMedium;
91
+ @metaFontSize: @absoluteMedium;
91
92
  @metaSpacing: 0.3em;
92
93
  @metaColor: @tertiaryColor;
93
94
 
@@ -118,7 +119,7 @@
118
119
 
119
120
  /* Description */
120
121
  @descriptionDistance: 0;
121
- @descriptionColor: @tertiaryColor;
122
+ @descriptionColor: inherit;
122
123
 
123
124
  /* Content Image */
124
125
  @contentImageWidth: '';
@@ -70,6 +70,19 @@
70
70
  }
71
71
  }
72
72
 
73
+ // color item images that are svg files
74
+ .item.primary img {
75
+ filter: @itemPrimaryFilterColor;
76
+ }
77
+
78
+ .item.secondary img {
79
+ filter: @itemSecondaryFilterColor;
80
+ }
81
+
82
+ .item.tertiary img {
83
+ filter: @itemTertiaryFilterColor;
84
+ }
85
+
73
86
  // decrease margin when using icons instead of images
74
87
  // since the icons have themselves extra whitespace
75
88
  // and we should aim to get about 32px as seen in the figma design
@@ -20,6 +20,10 @@
20
20
  @border: none;
21
21
  @zIndex: '';
22
22
  @transition: box-shadow @defaultDuration @defaultEasing;
23
+ // black to desired color filter option resulted from https://codepen.io/sosuke/pen/Pjoqqp
24
+ @itemPrimaryFilterColor: invert(9%) sepia(89%) saturate(5332%) hue-rotate(194deg) brightness(98%) contrast(101%);
25
+ @itemSecondaryFilterColor: invert(33%) sepia(14%) saturate(5566%) hue-rotate(139deg) brightness(98%) contrast(101%);
26
+ @itemTertiaryFilterColor: invert(27%) sepia(15%) saturate(1161%) hue-rotate(167deg) brightness(93%) contrast(80%);
23
27
 
24
28
  /* Responsive */
25
29
  @itemSpacing: 1em;
@@ -109,7 +113,7 @@
109
113
  @descriptionMaxWidth: auto;
110
114
  @descriptionFontSize: 1em;
111
115
  @descriptionLineHeight: @lineHeight;
112
- @descriptionColor: @textColor;
116
+ @descriptionColor: @textColorCSSVar;
113
117
 
114
118
  /* Content Image */
115
119
  @contentImageWidth: '';
@@ -9,10 +9,10 @@
9
9
  @mobileStatisticWidth: 100%;
10
10
  @tabletStatisticWidth: inherit;
11
11
 
12
- @secondaryValueColor: @secondaryColor;
13
- @primaryLabelColor: @primaryColor;
12
+ @secondaryValueColor: @secondaryColorCSSVar;
13
+ @primaryLabelColor: @primaryColorCSSVar;
14
14
 
15
- @verticalMargin: 1em;
15
+ @verticalMargin: 1.5em;
16
16
  @margin: @verticalMargin 0em;
17
17
  @textAlign: center;
18
18
  @maxWidth: auto;
@@ -20,7 +20,7 @@
20
20
  /* Group */
21
21
  @horizontalSpacing: 1.5em;
22
22
  @rowSpacing: 2em;
23
- @groupMargin: @verticalMargin -@horizontalSpacing -@rowSpacing;
23
+ @groupMargin: @verticalMargin 0;
24
24
 
25
25
  /* Group Element */
26
26
  @elementMargin: @rowSpacing @horizontalSpacing @rowSpacing;
@@ -36,7 +36,7 @@
36
36
  @valueFont: @pageFont;
37
37
  @valueFontWeight: @normal;
38
38
  @valueLineHeight: 1.5em;
39
- @valueColor: @secondaryColor;
39
+ @valueColor: @secondaryColorCSSVar;
40
40
  @valueTextTransform: none;
41
41
 
42
42
  /* Label */
@@ -45,7 +45,7 @@
45
45
  @bottomLabelDistance: 0rem;
46
46
  @labelFont: @headerFont;
47
47
  @labelFontWeight: @bold;
48
- @labelColor: @primaryColor;
48
+ @labelColor: @primaryColorCSSVar;
49
49
  @labelLineHeight: @relativeLarge;
50
50
  @labelTextTransform: none;
51
51