@eeacms/volto-eea-design-system 0.7.2 → 0.7.6

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.
@@ -0,0 +1,4 @@
1
+ <svg width="12" height="11" viewBox="0 0 12 11" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M3.81846 5.50017L-3.83247e-07 1.66422L1.09077 0.568456L6 5.50017L1.09077 10.4319L-4.78974e-08 9.33612L3.81846 5.50017Z" fill="white"/>
3
+ <path d="M9.81846 5.50017L6 1.66422L7.09077 0.568456L12 5.50017L7.09077 10.4319L6 9.33612L9.81846 5.50017Z" fill="white"/>
4
+ </svg>
@@ -11,10 +11,10 @@ footer {
11
11
  display: flex;
12
12
  flex-direction: column;
13
13
  align-items: center;
14
- background: @footerBackgroundGrandient;
14
+ background: @mobileFooterBackgroundGrandient;
15
15
  color: @white;
16
16
 
17
- .wrapper {
17
+ .footer-wrapper {
18
18
  width: @wrapperWidth;
19
19
  padding: @mobileWrapperPadding;
20
20
  background-image: @wrapperBackgroundImage;
@@ -26,22 +26,12 @@ footer {
26
26
  footer .theme-sites {
27
27
  padding: @mobileThemeSitesPadding;
28
28
 
29
- .header {
30
- font-weight: @footerTitleFontWeight;
31
- }
32
-
33
29
  .logos .ui.grid {
34
30
  align-items: center;
35
31
  }
36
32
 
37
- .logos .logo {
38
- display: flex;
39
- align-items: center;
40
- justify-content: center;
41
-
42
- img {
43
- margin: auto;
44
- }
33
+ .logos .logo img {
34
+ margin: @mobileThemeSitesLogoMargin;
45
35
  }
46
36
  }
47
37
 
@@ -50,8 +40,6 @@ footer .theme-sites {
50
40
  }
51
41
 
52
42
  .subfooter .item {
53
- margin-top: @mobileItemMarginTop;
54
-
55
43
  .header {
56
44
  margin-bottom: @mobileItemHeaderMarginBottom;
57
45
  font-size: @mobileFooterTitleFontSize;
@@ -61,15 +49,20 @@ footer .theme-sites {
61
49
  }
62
50
 
63
51
  .subfooter .contact-block {
64
- margin-inline: @mobileContactBlockMarginInline;
65
52
  margin-bottom: @tabletContactBlockMarginbottom;
66
53
  }
67
54
 
55
+ .contact-block .subcontact a {
56
+ font-size: @computerSubcontactIconFontSize;
57
+ margin-right: @computerSubcontactIconMarginRight;
58
+ font-weight: @computerSubcontactIconFontWeight;
59
+ }
60
+
68
61
  .subfooter .contact {
69
- display: flex;
70
- align-items: center;
62
+ display: block;
71
63
  margin: @mobileContactMargin;
72
- font-size: @mobileContactFontSize;
64
+ font-size: @contactFontSize;
65
+ gap: @contactGap;
73
66
 
74
67
  a {
75
68
  color: @menuLinkColor;
@@ -81,13 +74,10 @@ footer .theme-sites {
81
74
  }
82
75
  }
83
76
 
84
- .subfooter .address {
85
- font-size: @addressFontSize;
86
- }
87
-
88
77
  .subfooter .social {
89
78
  display: flex;
90
79
  justify-content: @mobileSocialJustifyContent;
80
+ margin: @mobileSocialIconsMargin;
91
81
 
92
82
  a {
93
83
  color: @socialIconColor;
@@ -103,18 +93,23 @@ footer .theme-sites {
103
93
  }
104
94
  }
105
95
 
106
- .subfooter .menu {
107
- display: flex;
108
- align-items: center;
109
- justify-content: space-between;
110
- width: @mobileMenuWidth;
111
- margin: @mobileMenuMargin;
96
+ footer .footer-wrapper .menu {
97
+ .actions {
98
+ display: flex;
99
+ justify-content: center;
100
+ }
101
+
102
+ .copyright {
103
+ display: flex;
104
+ justify-content: center;
105
+ }
112
106
 
113
107
  a {
114
108
  color: @menuLinkColor;
115
109
  font-weight: @menuFontWeight;
116
110
  font-size: @mobileMenuFontSize;
117
111
  cursor: pointer;
112
+ margin-inline: 12px;
118
113
 
119
114
  &:hover,
120
115
  &:active {
@@ -123,31 +118,70 @@ footer .theme-sites {
123
118
  }
124
119
  }
125
120
 
121
+ @media only screen and (max-width: @largestMobileScreen) {
122
+ .footer-wrapper > .container {
123
+ display: flex;
124
+ flex-direction: column;
125
+ }
126
+ .copyright {
127
+ display: none !important;
128
+ }
129
+
130
+ .subfooter {
131
+ order: 1
132
+ }
133
+
134
+ .menu {
135
+ order: 2;
136
+ position: relative;
137
+ margin: @mobileMenuMargin;
138
+ }
139
+ .menu::after {
140
+ position: absolute;
141
+ bottom: 0;
142
+ border: @mobileMenuBorder;
143
+ content: " ";
144
+ display: block;
145
+ width: 100vw;
146
+ left: @mobileMenuLeft;
147
+ }
148
+ footer .footer-wrapper .menu a {
149
+ font-weight: @mobileMenuFontWeight;
150
+ }
151
+
152
+ .theme-sites {
153
+ order: 3;
154
+ }
155
+ }
156
+
126
157
  @media only screen and (min-width: @tabletBreakpoint) {
158
+ footer {
159
+ background: @computerFooterBackgroundGrandient;
160
+ }
127
161
  footer .theme-sites {
128
162
  .header {
129
163
  font-size: @tabletFooterTitleFontSize;
164
+ font-weight: @tabletFooterTitleFontWeight;
130
165
  }
131
166
  }
132
167
 
133
168
  .subfooter .item {
134
- margin-top: @tabletItemMarginTop;
169
+ .logo img {
170
+ max-height: 100px;
171
+ }
135
172
 
136
- .site.logo {
137
- img {
138
- width: @tabletSiteLogoWidth;
139
- display: @tabletSiteLogoDisplay;
140
- }
173
+ .site.logo img {
174
+ padding-right: @siteLogoPaddingRight;
175
+ }
176
+
177
+ .contact-block {
178
+ padding-left: @siteLogoPaddingRight;
141
179
  }
142
180
 
143
181
  .header {
144
182
  font-size: @tabletFooterTitleFontSize;
145
183
  text-align: left;
146
184
  }
147
-
148
- .social a i.icon {
149
- font-size: @tabletSocialIconSize;
150
- }
151
185
  }
152
186
 
153
187
 
@@ -158,17 +192,26 @@ footer .theme-sites {
158
192
  .subfooter .social {
159
193
  justify-content: @tabletSocialJustifyContent;
160
194
  gap: @tabletSocialGap;
195
+ margin: @tabletSocialIconsMargin;
196
+
197
+ a {
198
+ i.icon {
199
+ font-size: @tabletSocialIconSize;
200
+ }
201
+ }
161
202
  }
162
203
 
163
- .subfooter .menu {
164
- width: @tabletMenuWidth;
165
- margin: @tabletMenuMargin;
204
+ footer .footer-wrapper .menu {
205
+ .actions {
206
+ justify-content: flex-end;
207
+ }
166
208
  }
209
+
167
210
  }
168
211
 
169
212
  @media only screen and (min-width: @computerBreakpoint) {
170
213
  footer {
171
- .wrapper {
214
+ .footer-wrapper {
172
215
  padding: @computerWrapperPadding;
173
216
  background-size: @computerWrapperBackgroundSize;
174
217
  }
@@ -180,6 +223,9 @@ footer .theme-sites {
180
223
  .header {
181
224
  font-size: @computerFooterTitleFontSize;
182
225
  }
226
+ .logos .logo img {
227
+ margin: @computerThemeSitesLogoMargin;
228
+ }
183
229
  }
184
230
 
185
231
  .subfooter .logo-header {
@@ -188,26 +234,15 @@ footer .theme-sites {
188
234
  }
189
235
 
190
236
  .subfooter .item {
191
- margin-top: @computerItemMarginTop;
192
-
193
- .site.logo {
194
- img {
195
- width: @computerSiteLogoWidth;
196
- }
197
- }
198
-
199
237
  .header {
200
238
  margin-bottom: @computerItemHeaderMarginBottom;
201
239
  font-size: @computerFooterTitleFontSize;
202
240
  }
203
-
204
- .social a i.icon {
205
- font-size: @computerSocialIconSize;
206
- }
207
241
  }
208
242
 
209
243
  .subfooter .contact {
210
- font-size: @computerContactFontSize;
244
+ display: flex;
245
+ align-items: center;
211
246
  margin: @computerContactMargin;
212
247
 
213
248
  i.big.icon {
@@ -215,8 +250,7 @@ footer .theme-sites {
215
250
  }
216
251
  }
217
252
 
218
- .subfooter .menu {
219
- width: @computerMenuWidth;
253
+ .footer .footer-wrapper .menu {
220
254
 
221
255
  a {
222
256
  font-size: @computerMenuFontSize;
@@ -2,13 +2,16 @@
2
2
  Footer
3
3
  *******************************/
4
4
 
5
- @footerBackgroundGrandient: linear-gradient(220.4deg, #009591 8.29%, #2E3E4C 56.3%, #212D38 89.06%);
5
+ /* @footerBackgroundGrandient: linear-gradient(220.4deg, #009591 8.29%, #2E3E4C 56.3%, #212D38 89.06%); */
6
+ @mobileFooterBackgroundGrandient: linear-gradient(220.4deg, @green-5 8.29%, @blue-grey-6 56.3%, #212D38 89.06%);
7
+ @computerFooterBackgroundGrandient: linear-gradient(212.33deg, @green-5 6.78%, #212D38 69.54%, #212D38 98.23%);
6
8
 
7
9
  /* Titles */
8
- @footerTitleFontWeight : @font-weight-7;
9
- @mobileFooterTitleFontSize : @font-size-3;
10
- @tabletFooterTitleFontSize : @font-size-4;
11
- @computerFooterTitleFontSize: @font-size-6;
10
+ @footerTitleFontWeight : @font-weight-7;
11
+ @mobileFooterTitleFontSize : @font-size-1;
12
+ @tabletFooterTitleFontSize : @font-size-4;
13
+ @computerFooterTitleFontSize: @font-size-4;
14
+ @tabletFooterTitleFontWeight: @font-weight-7;
12
15
 
13
16
  /* Wrapper */
14
17
  @wrapperBackgroundImage : url(../assets/images/Footer/Extras/footervisual.svg);
@@ -21,13 +24,10 @@
21
24
  @computerWrapperPadding : @space-20 0 @space-18;
22
25
 
23
26
  /* Theme Sites */
24
- @mobileThemeSitesPadding : @space-2 0 @space-8;
25
- @computerThemeSitesPadding : @space-4 0 @space-8;
26
-
27
- /* Subfooter with logo and contact info */
28
- @mobileItemMarginTop : @space-4;
29
- @tabletItemMarginTop : @space-8;
30
- @computerItemMarginTop : @space-18;
27
+ @mobileThemeSitesPadding : @space-2 0;
28
+ @computerThemeSitesPadding : @space-4 0;
29
+ @mobileThemeSitesLogoMargin : 0 auto @rem-space-8;
30
+ @computerThemeSitesLogoMargin : 0 auto @rem-space-10;
31
31
 
32
32
  /* Subfooter Item Header */
33
33
  @mobileItemHeaderMarginBottom : @space-5;
@@ -35,42 +35,39 @@
35
35
  @computerLogoHeaderMarginLeft : -50px;
36
36
 
37
37
  /* Site Logo */
38
- @tabletSiteLogoWidth : 230px;
39
- @computerSiteLogoWidth : 250px;
40
- @tabletSiteLogoDisplay : inline-block;
38
+ @siteLogoPaddingRight : 20%;
41
39
 
42
40
  /* Contact Info */
43
- @mobileContactBlockMarginInline : 10%;
44
41
  @tabletContactBlockMarginInline : 0;
45
42
  @tabletContactBlockMarginbottom : @space-4;
46
43
  @mobileContactMargin : @space-4 0;
47
- @computerContactMargin : @space-5 0;
48
- @mobileContactFontSize : @font-size-1;
49
- @computerContactFontSize : @font-size-2;
44
+ @computerContactMargin : @rem-space-050 0;
45
+ @contactFontSize : @font-size-3;
46
+ @contactGap : @rem-space-8;
50
47
  @mobileContactIconMarginRight : @space-3;
51
48
  @mobileContactIconFontSize : @font-size-4;
52
49
  @computerContactIconFontSize : @font-size-5;
53
-
54
- /* Address */
55
- @addressFontSize : @font-size-0;
50
+ @computerSubcontactIconFontSize : @font-size-1;
51
+ @computerSubcontactIconMarginRight : @rem-space-4;
52
+ @computerSubcontactIconFontWeight : @font-weight-4;
56
53
 
57
54
  /* Social Icons */
55
+ @mobileSocialIconsMargin : @rem-space-2 0 @rem-space-8;
56
+ @tabletSocialIconsMargin : @rem-space-17 0;
58
57
  @socialIconColor : @white;
59
58
  @mobileSocialJustifyContent : space-around;
60
- @tabletSocialJustifyContent : start;
61
- @tabletSocialGap : @space-1;
59
+ @tabletSocialJustifyContent : center;
60
+ @tabletSocialGap : @space-3;
62
61
  @mobileSocialIconSize : @font-size-5;
63
- @tabletSocialIconSize : @font-size-4;
64
- @computerSocialIconSize : @font-size-5;
62
+ @tabletSocialIconSize : @font-size-6;
65
63
 
66
64
  /* Footer Menu */
67
- @mobileMenuMargin : @space-8 auto 0;
68
- @tabletMenuMargin : @space-13 auto 0;
69
- @computerMenuMargin : @space-20 auto 0;
70
- @mobileMenuWidth : 100%;
71
- @tabletMenuWidth : 350px;
72
- @computerMenuWidth : 500px;
65
+
73
66
  @menuLinkColor : @white;
74
67
  @menuFontWeight : @font-weight-3;
75
68
  @mobileMenuFontSize : @font-size-0;
69
+ @mobileMenuMargin : @rem-space-4 0;
70
+ @mobileMenuBorder : 1px solid rgba(249, 249, 249, 0.25);
71
+ @mobileMenuLeft : -20px;
72
+ @mobileMenuFontWeight : 400;
76
73
  @computerMenuFontSize : @font-size-1;
@@ -543,6 +543,9 @@
543
543
  .title {
544
544
  font-size: @megaMenuTitleFontSize;
545
545
  font-weight: @megaMenuTitleFontWeight;
546
+ .title-img {
547
+ margin-left: @megaMenuTitleImgMarginLeft;
548
+ }
546
549
  }
547
550
 
548
551
  .sub-title {
@@ -562,7 +565,11 @@
562
565
  }
563
566
  }
564
567
  }
565
- #mega-menu .ui.list .item {
568
+
569
+ #mega-menu .ui.list {
570
+ margin: 0;
571
+ }
572
+ #mega-menu .item {
566
573
  display: flex;
567
574
  font-size: @megaMenuListItemFontSize;
568
575
  font-weight: @megaMenuListItemFontWeight;
@@ -571,6 +578,10 @@
571
578
 
572
579
  #mega-menu a.item {
573
580
  color: @megaMenuTextColor;
581
+ display: @megaMenuTextDisplay;
582
+ &:hover {
583
+ text-decoration: @megaMenuTextHoverDecoration;
584
+ }
574
585
 
575
586
  i.icon {
576
587
  color: @megaMenuTextColor;
@@ -583,7 +594,7 @@
583
594
  // To override the grid column paddings
584
595
  padding: @megaMenuGlancePaddingLeft !important;
585
596
 
586
- .ui.list .item {
597
+ .item {
587
598
  font-size: @megaMenuGlanceListItemFontSize;
588
599
  font-weight: @megaMenuGlanceListItemFontWeight;
589
600
  margin: @megaMenuGlanceListItemMargin;
@@ -604,8 +615,9 @@
604
615
  padding-top: @megaMenuContentPaddingTop;
605
616
  }
606
617
 
607
- #mega-menu .active > span {
608
- border-bottom: 2px solid #FFF;
618
+ #mega-menu .active:not(.title-link) > span {
619
+ border-left: @megaMenuListItemActiveBorder;
620
+ padding-left: @megaMenuListItemActivePadding;
609
621
  }
610
622
 
611
623
  /*Mega Menu Accordion - Tablet & Mobile */
@@ -133,7 +133,9 @@
133
133
  /* Mega menu */
134
134
  @mobileMegaMenuWidth: 94%;
135
135
  @megaMenuBackgroundColor: @darkMidnightBlue;
136
+ @megaMenuTextDisplay: flex;
136
137
  @megaMenuTextColor: @white;
138
+ @megaMenuTextHoverDecoration: underline;
137
139
  @mobileMegaMenuPadding: @rem-space-4 0;
138
140
  @tabletMegaMenuPadding: @rem-space-9;
139
141
  @computerMegaMenuPadding: @rem-space-10 0 0 0;
@@ -142,6 +144,7 @@
142
144
  /* Title */
143
145
  @megaMenuTitleFontSize: @font-size-4;
144
146
  @megaMenuTitleFontWeight: @font-weight-7;
147
+ @megaMenuTitleImgMarginLeft: 4px;
145
148
 
146
149
  /* Sub Title */
147
150
  @megaMenuSubTitleFontSize: @font-size-2;
@@ -151,14 +154,15 @@
151
154
  @megaMenuListItemFontSize: @font-size-1;
152
155
  @megaMenuListItemFontWeight: @font-weight-4;
153
156
  @megaMenuListItemPadding: @rem-space-2 0;
154
- @megaMenuListItemActiveBorder: 2px solid #FFF;
157
+ @megaMenuListItemActiveBorder: 4px solid #FFF;
158
+ @megaMenuListItemActivePadding: 8px;
155
159
 
156
160
  /* At a glance */
157
161
  @megaMenuGlanceBackgroundColor: @secondaryColor;
158
162
  @megaMenuGlancePaddingLeft: @rem-space-8 @rem-space-5;
159
163
  @megaMenuGlanceListItemFontSize: @font-size-2;
160
- @megaMenuGlanceListItemFontWeight: @font-weight-6;
161
- @megaMenuGlanceListItemMargin: @rem-space-6 0;
164
+ @megaMenuGlanceListItemFontWeight: @font-weight-4;
165
+ @megaMenuGlanceListItemMargin: @rem-space-4 0;
162
166
 
163
167
  /* Accordion */
164
168
  @megaMenuAccordionTitleFontSize: @font-size-3;
@@ -33,10 +33,11 @@ h1, h2, h3, h4, h5, h6, p, span, .header {
33
33
  .flex-items-end { align-items: flex-end !important; }
34
34
  .flex-items-center { align-items: center !important; }
35
35
 
36
- // Align text
36
+ // Text
37
37
  .text-left { text-align: left !important; }
38
38
  .text-center { text-align: center !important;}
39
39
  .text-right { text-align: right !important; }
40
+ .bold { font-weight: bold !important; }
40
41
 
41
42
  // Quotes
42
43
  .quoted-wrapper h2::before,