@eeacms/volto-eea-design-system 0.6.0 → 0.7.0
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 +90 -0
- package/package.json +3 -2
- package/src/index.js +4 -1
- package/src/semantic.less +4 -0
- package/src/ui/CallToAction/CallToAction.stories.jsx +33 -91
- package/src/ui/ContextNavigation/ContextNavigation.stories.jsx +73 -0
- package/src/ui/Header/Header.jsx +30 -11
- package/src/ui/Header/HeaderMenuPopUp.js +149 -67
- package/src/ui/UnderlinedTitle/UnderlinedTitle.stories.jsx +98 -0
- package/theme/theme.config +26 -11
- package/theme/themes/eea/assets/logo/eionet.svg +11 -9
- package/theme/themes/eea/collections/menu.variables +1 -1
- package/theme/themes/eea/elements/button.overrides +45 -0
- package/theme/themes/eea/elements/container.overrides +5 -2
- package/theme/themes/eea/extras/banner.variables +1 -1
- package/theme/themes/eea/extras/contentBox.less +9 -1
- package/theme/themes/eea/extras/contextNavigation.less +80 -0
- package/theme/themes/eea/extras/contextNavigation.variables +0 -0
- package/theme/themes/eea/extras/footer.less +0 -9
- package/theme/themes/eea/extras/footer.variables +1 -6
- package/theme/themes/eea/extras/header.less +8 -3
- package/theme/themes/eea/extras/header.variables +3 -0
- package/theme/themes/eea/extras/hero.less +9 -0
- package/theme/themes/eea/extras/hero.variables +7 -5
- package/theme/themes/eea/globals/site.variables +14 -4
- package/theme/themes/eea/globals/utilities.less +22 -4
- package/theme/themes/eea/modules/accordion.overrides +41 -0
- package/theme/themes/eea/modules/accordion.variables +6 -6
- package/theme/themes/eea/views/card.overrides +4 -0
- package/theme/themes/eea/views/card.variables +2 -2
- package/theme/themes/eea/views/item.overrides +21 -3
|
@@ -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;
|
|
@@ -149,6 +151,7 @@
|
|
|
149
151
|
@megaMenuListItemFontSize: @font-size-1;
|
|
150
152
|
@megaMenuListItemFontWeight: @font-weight-4;
|
|
151
153
|
@megaMenuListItemPadding: @rem-space-2 0;
|
|
154
|
+
@megaMenuListItemActiveBorder: 2px solid #FFF;
|
|
152
155
|
|
|
153
156
|
/* At a glance */
|
|
154
157
|
@megaMenuGlanceBackgroundColor: @secondaryColor;
|
|
@@ -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 :
|
|
7
|
-
@tabletHeroBlockMinHeight :
|
|
8
|
-
@desktopHeroBlockMinHeight:
|
|
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-
|
|
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 :
|
|
26
|
+
@heroBlockWrapperPadding : 5rem;
|
|
27
|
+
@tableHeroBlockWrapperPadding: 6rem;
|
|
28
|
+
@desktopHeroBlockWrapperPadding: 194px 96px;
|
|
27
29
|
|
|
28
30
|
/* Body */
|
|
29
31
|
@mobileHeroBlockBodyGap : @rem-space-6;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
@googleFontRequest : '@{googleFontName}:@{googleFontSizes}&subset=@{googleSubset}';
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
@bold :
|
|
27
|
+
@bold : @font-weight-7;
|
|
28
28
|
@normal : normal;
|
|
29
29
|
|
|
30
30
|
/*-------------------
|
|
@@ -61,16 +61,18 @@
|
|
|
61
61
|
|
|
62
62
|
@lightPrimaryColor : @mediumPersianBlue;
|
|
63
63
|
@lightSecondaryColor : @darkCyan;
|
|
64
|
+
@lightTertiaryColor : @UCLABlue;
|
|
64
65
|
|
|
65
66
|
@darkPrimaryColor : @darkMidnightBlue;
|
|
66
67
|
@darkSecondaryColor : @bottleGreen;
|
|
68
|
+
@darkTertiaryColor : @japaneseIndigo;
|
|
67
69
|
|
|
68
70
|
/*--------------
|
|
69
71
|
Page Heading
|
|
70
72
|
---------------*/
|
|
71
73
|
|
|
72
74
|
@headerLineHeight : 1.25;
|
|
73
|
-
@headerFontWeight :
|
|
75
|
+
@headerFontWeight : @font-weight-7;
|
|
74
76
|
|
|
75
77
|
@h1 : unit((48 / @fontSize), rem);
|
|
76
78
|
@h2 : unit((40 / @fontSize), rem);
|
|
@@ -176,8 +178,8 @@
|
|
|
176
178
|
@pageBackground : @white;
|
|
177
179
|
@pageOverflowX : hidden;
|
|
178
180
|
|
|
179
|
-
@lineHeight :
|
|
180
|
-
@mobileLineHeight :
|
|
181
|
+
@lineHeight : @font-lineheight-3;
|
|
182
|
+
@mobileLineHeight : @font-lineheight-3;
|
|
181
183
|
@textColor : rgba(0, 0, 0, 1);
|
|
182
184
|
|
|
183
185
|
/*-------------------
|
|
@@ -932,8 +934,10 @@
|
|
|
932
934
|
/*--- Colors ---*/
|
|
933
935
|
@primaryColorHover : saturate(darken(@primaryColor, 5), 10, relative);
|
|
934
936
|
@secondaryColorHover : saturate(lighten(@secondaryColor, 5), 10, relative);
|
|
937
|
+
@tertiaryColorHover : saturate(lighten(@tertiaryColor, 5), 10, relative);
|
|
935
938
|
@lightPrimaryColorHover : saturate(darken(@lightPrimaryColor, 5), 10, relative);
|
|
936
939
|
@lightSecondaryColorHover : saturate(lighten(@lightSecondaryColor, 5), 10, relative);
|
|
940
|
+
@lightTertiaryColorHover : saturate(lighten(@lightTertiaryColor, 5), 10, relative);
|
|
937
941
|
|
|
938
942
|
@redHover : saturate(darken(@red, 5), 10, relative);
|
|
939
943
|
@orangeHover : saturate(darken(@orange, 5), 10, relative);
|
|
@@ -992,8 +996,10 @@
|
|
|
992
996
|
/*--- Colors ---*/
|
|
993
997
|
@primaryColorFocus : saturate(darken(@primaryColor, 8), 20, relative);
|
|
994
998
|
@secondaryColorFocus : saturate(lighten(@secondaryColor, 8), 20, relative);
|
|
999
|
+
@tertiaryColorFocus : saturate(lighten(@tertiaryColor, 8), 20, relative);
|
|
995
1000
|
@lightPrimaryColorFocus : saturate(darken(@lightPrimaryColor, 8), 20, relative);
|
|
996
1001
|
@lightSecondaryColorFocus : saturate(lighten(@lightSecondaryColor, 8), 20, relative);
|
|
1002
|
+
@lightTertiaryColorFocus : saturate(lighten(@lightTertiaryColor, 8), 20, relative);
|
|
997
1003
|
|
|
998
1004
|
@redFocus : saturate(darken(@red, 8), 20, relative);
|
|
999
1005
|
@orangeFocus : saturate(darken(@orange, 8), 20, relative);
|
|
@@ -1053,8 +1059,10 @@
|
|
|
1053
1059
|
/*--- Colors ---*/
|
|
1054
1060
|
@primaryColorDown : darken(@primaryColor, 10);
|
|
1055
1061
|
@secondaryColorDown : lighten(@secondaryColor, 10);
|
|
1062
|
+
@tertiaryColorDown : lighten(@tertiaryColor, 10);
|
|
1056
1063
|
@lightPrimaryColorDown : darken(@lightPrimaryColor, 10);
|
|
1057
1064
|
@lightSecondaryColorDown : lighten(@lightSecondaryColor, 10);
|
|
1065
|
+
@lightTertiaryColorDown : lighten(@lightTertiaryColor, 10);
|
|
1058
1066
|
|
|
1059
1067
|
@redDown : darken(@red, 10);
|
|
1060
1068
|
@orangeDown : darken(@orange, 10);
|
|
@@ -1114,8 +1122,10 @@
|
|
|
1114
1122
|
/*--- Colors ---*/
|
|
1115
1123
|
@primaryColorActive : saturate(darken(@primaryColor, 5), 15, relative);
|
|
1116
1124
|
@secondaryColorActive : saturate(lighten(@secondaryColor, 5), 15, relative);
|
|
1125
|
+
@tertiaryColorActive : saturate(lighten(@tertiaryColor, 5), 15, relative);
|
|
1117
1126
|
@lightPrimaryColorActive : saturate(darken(@lightPrimaryColor, 5), 15, relative);
|
|
1118
1127
|
@lightSecondaryColorActive : saturate(lighten(@lightSecondaryColor, 5), 15, relative);
|
|
1128
|
+
@lightTertiaryColorActive : saturate(lighten(@lightTertiaryColor, 5), 15, relative);
|
|
1119
1129
|
|
|
1120
1130
|
@redActive : saturate(darken(@red, 5), 15, relative);
|
|
1121
1131
|
@orangeActive : saturate(darken(@orange, 5), 15, relative);
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
// Color
|
|
1
|
+
// Color
|
|
2
|
+
h1, h2, h3, h4, h5, h6, p, span, .header {
|
|
3
|
+
&.primary { color: @primaryColor !important; }
|
|
4
|
+
&.secondary { color: @secondaryColor !important; }
|
|
5
|
+
&.tertiary { color: @tertiaryColor !important; }
|
|
6
|
+
&.white { color: @white !important; }
|
|
7
|
+
}
|
|
8
|
+
|
|
2
9
|
.color-fg-primary { color: @primaryColor !important; }
|
|
3
10
|
.color-fg-secondary { color: @secondaryColor !important; }
|
|
4
11
|
.color-fg-tertiary { color: @tertiaryColor !important; }
|
|
@@ -20,23 +27,34 @@
|
|
|
20
27
|
z-index: 0;
|
|
21
28
|
}
|
|
22
29
|
|
|
23
|
-
//
|
|
30
|
+
// Flexbox
|
|
24
31
|
.d-flex { display: flex !important; }
|
|
25
32
|
.flex-items-start { align-items: flex-start !important; }
|
|
26
33
|
.flex-items-end { align-items: flex-end !important; }
|
|
27
34
|
.flex-items-center { align-items: center !important; }
|
|
28
35
|
|
|
29
|
-
// Align text
|
|
36
|
+
// Align text
|
|
30
37
|
.text-left { text-align: left !important; }
|
|
31
38
|
.text-center { text-align: center !important;}
|
|
32
39
|
.text-right { text-align: right !important; }
|
|
33
40
|
|
|
34
|
-
//Quotes
|
|
41
|
+
// Quotes
|
|
42
|
+
.quoted-wrapper h2::before,
|
|
43
|
+
.quoted-wrapper h3::before,
|
|
35
44
|
.quoted::before {
|
|
36
45
|
content: "\ec51";
|
|
37
46
|
font-family: 'remixicon' !important;
|
|
38
47
|
}
|
|
48
|
+
|
|
49
|
+
.quoted-wrapper h2::after,
|
|
50
|
+
.quoted-wrapper h3::after,
|
|
39
51
|
.quoted::after {
|
|
40
52
|
content: "\ec52";
|
|
41
53
|
font-family: 'remixicon' !important;
|
|
42
54
|
}
|
|
55
|
+
|
|
56
|
+
// Borders
|
|
57
|
+
.bordered {
|
|
58
|
+
border-bottom: @border-size-1 solid !important;
|
|
59
|
+
padding-bottom: @rem-space-2 !important;
|
|
60
|
+
}
|
|
@@ -78,6 +78,10 @@
|
|
|
78
78
|
Styled
|
|
79
79
|
---------------*/
|
|
80
80
|
|
|
81
|
+
.ui.styled.accordion .title,
|
|
82
|
+
.ui.styled.accordion .title:hover {
|
|
83
|
+
background-color: @styledActiveTitleBackground;
|
|
84
|
+
}
|
|
81
85
|
.ui.styled.accordion .active.title input {
|
|
82
86
|
color: @styledActiveTitleColor;
|
|
83
87
|
}
|
|
@@ -99,3 +103,40 @@
|
|
|
99
103
|
}
|
|
100
104
|
}
|
|
101
105
|
}
|
|
106
|
+
|
|
107
|
+
/*--------------
|
|
108
|
+
Variations
|
|
109
|
+
---------------*/
|
|
110
|
+
.ui.accordion:not([class*='ary']) .active.title i {
|
|
111
|
+
color: @tertiaryColor;
|
|
112
|
+
}
|
|
113
|
+
.ui.accordion[class*='ary'] .active.title {
|
|
114
|
+
color: white;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* Primary */
|
|
118
|
+
.ui.accordion.primary .active.title {
|
|
119
|
+
background-color: @primaryColor;
|
|
120
|
+
}
|
|
121
|
+
.ui.accordion.primary .title:not(.active):hover,
|
|
122
|
+
.ui.accordion.primary .title:not(.active):hover i {
|
|
123
|
+
color: @primaryColor;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* Secondary */
|
|
127
|
+
.ui.accordion.secondary .active.title {
|
|
128
|
+
background-color: @secondaryColor;
|
|
129
|
+
}
|
|
130
|
+
.ui.accordion.secondary .title:not(.active):hover,
|
|
131
|
+
.ui.accordion.secondary .title:not(.active):hover i {
|
|
132
|
+
color: @secondaryColor;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* Tertiary */
|
|
136
|
+
.ui.accordion.tertiary .active.title {
|
|
137
|
+
background-color: @tertiaryColor;
|
|
138
|
+
}
|
|
139
|
+
.ui.accordion.tertiary .title:not(.active):hover,
|
|
140
|
+
.ui.accordion.tertiary .title:not(.active):hover i {
|
|
141
|
+
color: @tertiaryColor;
|
|
142
|
+
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
@titleFontSize: 1.125rem;
|
|
13
13
|
@titleColor: @textColor;
|
|
14
14
|
@titleBorderBottom: @1px solid @silverGray;
|
|
15
|
-
@titleColorHover: @
|
|
15
|
+
@titleColorHover: @grey-5;
|
|
16
16
|
@titleJustifyContent: space-between;
|
|
17
17
|
|
|
18
18
|
/* Icon */
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
;
|
|
33
33
|
@iconVerticalAlign: baseline;
|
|
34
34
|
@iconTransform: none;
|
|
35
|
-
@iconColorHover: @
|
|
35
|
+
@iconColorHover: @grey-5;
|
|
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
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
--------------------*/
|
|
63
63
|
|
|
64
64
|
@activeIconTransform: none;
|
|
65
|
-
@activeTitleBackground: @
|
|
66
|
-
@activeTitleColor: @
|
|
65
|
+
@activeTitleBackground: @darkWhite;
|
|
66
|
+
@activeTitleColor: @grey-5;
|
|
67
67
|
@activeTitleBorderBottom: 0;
|
|
68
68
|
|
|
69
69
|
/*-------------------
|
|
@@ -99,9 +99,9 @@
|
|
|
99
99
|
|
|
100
100
|
/* Styled Title States */
|
|
101
101
|
@styledTitleHoverBackground: transparent;
|
|
102
|
-
@styledTitleHoverColor: @
|
|
102
|
+
@styledTitleHoverColor: @activeTitleColor;
|
|
103
103
|
@styledActiveTitleBackground: @activeTitleBackground;
|
|
104
|
-
@styledActiveTitleColor: @
|
|
104
|
+
@styledActiveTitleColor: @activeTitleColor;
|
|
105
105
|
|
|
106
106
|
/* Styled Child Title States */
|
|
107
107
|
@styledHoverChildTitleBackground: @styledTitleHoverBackground;
|
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
@likeActiveColor: #FF2733;
|
|
99
99
|
|
|
100
100
|
/* Links */
|
|
101
|
-
@contentLinkColor: @
|
|
102
|
-
@contentLinkHoverColor: @
|
|
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
|
|
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
|
|
164
|
+
&.primary,
|
|
165
|
+
> .icon.primary
|
|
166
|
+
{
|
|
154
167
|
color: @primaryColor;
|
|
155
168
|
}
|
|
156
169
|
|
|
157
|
-
&.secondary
|
|
170
|
+
&.secondary,
|
|
171
|
+
> .icon.secondary {
|
|
158
172
|
color: @secondaryColor;
|
|
159
173
|
}
|
|
174
|
+
&.tertiary,
|
|
175
|
+
> .icon.tertiary {
|
|
176
|
+
color: @tertiaryColor;
|
|
177
|
+
}
|
|
160
178
|
}
|