@eeacms/volto-eea-design-system 0.4.5 → 0.5.2

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.
@@ -3,7 +3,7 @@
3
3
  --------------------*/
4
4
 
5
5
  /* Heights */
6
- @mobileTopSectionHeight : 14px;
6
+ @mobileTopSectionHeight : 20px;
7
7
  @tabletTopSectionHeight : 30px;
8
8
  @computerTopSectionHeight : 33px;
9
9
 
@@ -18,87 +18,111 @@
18
18
  /* Header font sizes */
19
19
  @headerMinyFontSize: 0.5rem;
20
20
  @headerTinyFontSize: 0.625rem;
21
- @headerSmallFontSize: 0.75rem;
21
+ @headerSmallFontSize: @font-size-00;
22
22
  @headerMediumFontSize: 0.875rem;
23
23
  @headerLargeFontSize: 1.125rem;
24
24
 
25
- /* Top */
26
- @topSectionBackground : @silverGray;
27
- @topSectionItemColor : @japaneseIndigo;
25
+
26
+ /*-------------------
27
+ HEADER TOP BAR
28
+ --------------------*/
29
+
30
+ @topSectionBackground : @grey-2;
31
+ @topSectionItemColor : @blue-grey-6;
28
32
  @topSectionItemFontWeight : @bold;
29
- @mobileTopSectionItemFontSize : @headerSmallFontSize;
30
- @tabletTopSectionItemFontSize : @headerSmallFontSize;
31
- @topSectionZindex : 1;
33
+ @topSectionItemFontSize : @font-size-00;
34
+ @mobileTopSectionItemFontSize : @font-size-00;
35
+ @tabletTopSectionItemFontSize : @font-size-00;
36
+ @topSectionZindex : @z-index-1;
32
37
 
33
38
  /* Dropdown */
34
- @mobileDropdownMenuMarginTop : 0.188rem;
35
- @tabletDropdownMenuMarginTop : 0.438rem;
36
- @dropdownFontSize : @headerSmallFontSize;
39
+ @mobileDropdownMenuMarginTop : 0;
40
+ @tabletDropdownMenuMarginTop : 0.4rem;
41
+ @computerDropdownMenuMarginTop : 0.438rem;
42
+ @dropdownColor : @blue-grey-6;
43
+ @dropdownFontSize : @font-size-00;
37
44
  @dropdownFontWeight : @bold;
45
+
38
46
  /* Dropdown Menu */
39
47
  @dropdownMenuLeft : auto;
40
48
  @dropdownMenuRight : 0;
41
- @dropdownMenuWrapperGap : 0.313rem;
42
- @dropdownMenuWrapperMargin : 0.313rem 0;
49
+ @dropdownMenuWrapperGap : @rem-space-1;
50
+ @dropdownMenuWrapperMargin : @rem-space-1 0;
51
+ @dropdownMenuLanguageWrapperPaddingInlineStart : 0;
43
52
  @dropdownMenuContentWhiteSpace : pre-wrap;
44
- @dropdownMenuContentFontWeight : @normal;
45
- @mobileDropdownMenuContentFontSize : @headerSmallFontSize;
46
- @desktopDropdownMenuContentFontSize : @headerSmallFontSize;
53
+ @mobileDropdownMenuContentFontSize : @font-size-00;
54
+ @desktopDropdownMenuContentFontSize : @font-size-00;
47
55
  @dropdownMenuItemColorHover : @white;
48
- @dropdownMenuItemBackgroundColorHover : @japaneseIndigo;
56
+ @dropdownMenuItemBackgroundColorHover : @blue-grey-6;
57
+ @dropdownMenuItemPadding : @rem-space-050 @rem-space-5;
58
+ @mobileDropdownMenuFontSize : @font-size-00;
59
+ @tabletDropdownMenuFontSize : @font-size-0;
60
+
49
61
  // Official Union
50
- @officialUnionGap : 0.75rem;
51
- @officialUnionMenuFontSize : @headerMediumFontSize;
52
- @officialUnionTextFontWeight : @normal;
62
+ @mobileOfficialUnionGap : 0;
63
+ @tabletOfficialUnionGap : @rem-space-2;
53
64
  @officialUnionLinkFontWeight : @bold;
54
- @officialUnionLinkColor : @japaneseIndigo;
55
- @mobileOfficialUnionPadding : 0.313rem;
56
- @tabletOfficialUnionPadding : 0.75rem;
57
- @mobileOfficialUnionMaxWidth : 110px;
58
- @tabletOfficialUnionMaxWidth : 373px;
59
- //@mobileOfficialUnionImageWidth : 11px;
60
- @mobileOfficialUnionImageWidth : 16px;
61
- @tabletOfficialUnionImageWidth : 33px;
65
+ @officialUnionLinkColor : @blue-grey-6;
66
+ @officialUnionPadding : @rem-space-3;
67
+ @mobileOfficialUnionMaxWidth : 108px;
68
+ @tabletOfficialUnionMaxWidth : 388px;
69
+ @mobileOfficialUnionImageWidth : 17px;
70
+ @tabletOfficialUnionImageWidth : 36px;
71
+ @mobileOfficialUnionMenuLeft : -30px;
72
+ @tabletOfficialUnionMenuLeft : -54px;
62
73
 
63
74
  // Theme Sites
64
- @themeSitesMenuWidth : 210px;
65
- @themeSitesMenuSiteLinkColor : @japaneseIndigo;
75
+ @mobileThemeSitesMenuWidth : 190px;
76
+ @computerThemeSitesMenuWidth : 200px;
77
+ @themeSitesMenuSiteLinkColor : @blue-grey-6;
66
78
  @themeSitesMenuSiteLinkFontWeight : @normal;
67
- @themeSitesMenuItemPadding : 0.125rem 0.313rem;
79
+ @themeSitesMenuLeft : -20px;
80
+
68
81
  // Language
69
- @mobileLanguageFontSize : @headerTinyFontSize;
70
- @tabletLanguageFontSize : @headerMediumFontSize;
71
- @mobileLanguageMenuTop : 0.75rem;
72
82
  @tabletLanguageMenuTop : 18px;
73
- @languageMenuPadding : 0.125rem 1.25rem;
83
+ @languageMenuPadding : @rem-space-050 @rem-space-5;
74
84
  @languageMenuItemFontWeight : @normal;
75
85
  @mobileLanguageCountryCodeMarginLeft : 3px;
76
86
  @mobileLanguageCountryCodeFontWeight : @bold;
77
87
 
88
+ /*-----------------------
89
+ HEADER MAIN SECTION
90
+ -----------------------*/
91
+
78
92
  /* Main Section */
79
- @headerMainSectionBackground : @white;
93
+ @headerMainSectionBackground : transparent;
94
+ @headerMainSectionTransparency : rgba(255, 255, 255, 0.1);
80
95
 
81
96
  /* Logo */
82
97
  @logoWidth : 100%;
83
98
  @mobileLogoMaxWidth : 122px;
84
99
  @tabletLogoMaxWidth : 252px;
85
100
  @computerLogoMaxWidth : 348px;
86
- @mobileLogoMarginTop : 0.563rem;
87
- @tabletLogoMarginTop : 0.938rem;
88
- @computerLogoMarginTop : 1.25rem;
101
+ @mobileLogoMarginTop : @rem-space-2;
102
+ @tabletLogoMarginTop : @rem-space-3-5;
103
+ @computerLogoMarginTop : @rem-space-5;
89
104
 
90
105
  /* Main menu */
91
- @mainMenuItemColor : @deepBlue;
106
+ @mainMenuItemColor : @primaryColor;
107
+ @mainMenuItemInvertedColor : @white;
92
108
  @mainMenuItemFontSize : ~"min(max(0.875rem, 1.5vw), 1.125rem)";
93
- @mainMenuItemFontWeight : 500;
94
- @mainMenuItemPlaceSelf : flex-end;
109
+ @mainMenuItemFontWeight : @font-weight-5;
110
+ @mainMenuItemPadding : @rem-space-050 @rem-space-2;
95
111
  @mainMenuItemActiveColor : @secondaryColor;
96
- @mainMenuItemActiveBorder : 3px solid @secondaryColor;
112
+ @mainMenuItemBorder : 4px solid transparent;
113
+ @mainMenuItemActiveBorder : 4px solid @secondaryColor;
114
+ @mainMenuInvertedItemActiveBorder : 4px solid @white;
115
+ @mainMenuItemAlignSelf : flex-end;
116
+
117
+ /*-----------------
118
+ HEADER ACTIONS
119
+ ------------------*/
97
120
 
98
121
  /* Actions (Mega menu & Search) */
99
122
  @mobileActionsBoxWidth: 30px;
100
123
  @tabletActionsBoxWidth: 66px;
101
124
  @computerActionsBoxWidth: 72px;
125
+ @burgerActionBackgroundColor: @darkMidnightBlue;
102
126
 
103
127
  /* Mega menu and Search popup */
104
128
  @mobilePopupMarginTop : 5vh;
@@ -106,44 +130,48 @@
106
130
  @computerPopupMarginTop : 18vh;
107
131
 
108
132
  /* Mega menu */
109
- @megaMenuBackgroundGradient: linear-gradient(166.78deg, @darkCerulean 39.52%, @darkCyan 118.9%);
110
-
111
- /* Menu link and toggle */
112
- @mobileMegaMenuColor : @white;
113
- @megaMenuLinkPadding : 0 1.25rem;
114
- @megaMenuWordBreak : break-word;
115
- @toggleMenuFirstPadding : 0;
116
- @mobileToggleMenuFirstPadding : 0.5rem 0;
117
- @mobileToggleMenuSecondPadding : 0.5rem 1.25rem;
118
- @mobileToggleMenuThirdPadding : 0.5rem 2.5rem;
119
-
120
- @megaMenuLiAlignItems : center;
121
-
122
- @mobileMegaMenuMarginBottom : 0.25em;
123
- @tabletMegaMenuMarginBottom : 0.4em;
124
- @computerMegaMenuMarginBottom : 0.6em;
125
-
126
- // Font sizes and line heights
127
- @megaMenuFontSize: ~"min(max(1.125rem, 3.5vw), 2.2rem)";
128
-
129
- /* Fallback font sizes for ie and opera mini */
130
- @mobileMegaMenuFontSize : 1.125rem;
131
- @tabletMegaMenuFontSize : @h1;
132
-
133
- ////////@computerMegaMenuFirstFontSize : 3rem;
134
- ////////@computerMegaMenuSecondFontSize : 2.5rem;
135
- ////////@computerMegaMenuThirdFontSize : 2.25rem;
136
-
137
- @megaMenuLineHeight : 1.2;
138
-
139
- // Icon
140
- @megaMenuIconFontFamily : 'remixicon';
141
- @megaMenuAfterIcon : "\EA6E";
142
- @megaMenuIconAfterColor : @white;
143
- @tabletMegaMenuIconAfterFontSize : 1rem;
144
- @computerMegaMenuIconAfterFontSize: 1.875rem;
133
+ @mobileMegaMenuWidth: 94%;
134
+ @megaMenuBackgroundColor: @darkMidnightBlue;
135
+ @megaMenuTextColor: @white;
136
+ @mobileMegaMenuPadding: @rem-space-4 0;
137
+ @tabletMegaMenuPadding: @rem-space-9;
138
+ @computerMegaMenuPadding: @rem-space-10 0 0 0;
139
+ @megaMenuContentPaddingTop: @rem-space-8;
140
+
141
+ /* Title */
142
+ @megaMenuTitleFontSize: @font-size-4;
143
+ @megaMenuTitleFontWeight: @font-weight-7;
144
+
145
+ /* Sub Title */
146
+ @megaMenuSubTitleFontSize: @font-size-2;
147
+ @megaMenuSubTitleFontWeight: @font-weight-6;
148
+
149
+ /* List Item */
150
+ @megaMenuListItemFontSize: @font-size-1;
151
+ @megaMenuListItemFontWeight: @font-weight-4;
152
+ @megaMenuListItemPadding: @rem-space-2 0;
153
+
154
+ /* At a glance */
155
+ @megaMenuGlanceBackgroundColor: @secondaryColor;
156
+ @megaMenuGlancePaddingLeft: @rem-space-8 @rem-space-5;
157
+ @megaMenuGlanceListItemFontSize: @font-size-2;
158
+ @megaMenuGlanceListItemFontWeight: @font-weight-6;
159
+ @megaMenuGlanceListItemMargin: @rem-space-6 0;
160
+
161
+ /* Accordion */
162
+ @megaMenuAccordionTitleFontSize: @font-size-3;
163
+ @megaMenuAccordionTitlePadding: @rem-space-2 0;
164
+ @megaMenuAccordionIconFontSize: @font-size-5;
165
+ @megaMenuAccordionContentPadding: @rem-space-4 0;
166
+ @megaMenuAccordionTitleBorderBottom: 1px solid rgba(255, 255, 255, 0.25);
167
+ @megaMenuAccordionActiveTitleBorderBottom: 1px solid @white;
168
+
169
+ /* Nested Accordion */
170
+ @megaMenuNestedAccordionMargin: 0;
171
+ @megaMenuNestedAccordionTitleFontSize: @font-size-2;
172
+ @megaMenuNestedAccordionTitleFontWeight: @font-weight-7;
173
+ @megaMenuNestedAccordionContentPadding: @rem-space-4 @rem-space-4;
145
174
 
146
175
  /* Search box */
147
176
  @searchBoxBackgroundGradient : linear-gradient(340.97deg, @darkCerulean 9.19%, #009591 77.47%);
148
-
149
- @searchBoxWrapperGap : 75px;
177
+ @searchBoxWrapperGap : 75px;
@@ -0,0 +1,70 @@
1
+ @type: 'extra';
2
+ @element: 'hero';
3
+
4
+ @import (multiple) '../../theme.config';
5
+
6
+ /*-------------------
7
+ Hero
8
+ --------------------*/
9
+
10
+ .eea.hero-block {
11
+ position: @heroBlockPosition;
12
+ }
13
+
14
+ .hero-block-inner-wrapper {
15
+ height: 100%;
16
+ padding-block: @heroBlockWrapperPadding;
17
+ }
18
+
19
+ .hero-block-body {
20
+ display: flex;
21
+ width: 100%;
22
+ flex-direction: column;
23
+ gap: @mobileHeroBlockBodyGap;
24
+ }
25
+
26
+ .hero-block-image {
27
+ background-repeat: @heroBlockImageBackgroundRepeat;
28
+ background-size: @heroBlockImageBackgroundSize;
29
+ background-position: @heroBlockImageBackgroundPosition;
30
+ width: 100%;
31
+ height: 100%;
32
+ position: absolute;
33
+ z-index: -1;
34
+ }
35
+
36
+ .hero-block-text .quoted > * {
37
+ display: inline-block;
38
+ }
39
+
40
+ .hero-block[class*='color-bg']:not(.full-width) {
41
+ padding: @heroBlockHomepagePadding;
42
+ }
43
+
44
+ .eea.hero-block.full-height,
45
+ .eea.hero-block.full-height .hero-block-image,
46
+ .eea.hero-block.full-height .hero-block-inner-wrapper {
47
+ min-height: @mobileHeroBlockMinHeight;
48
+ }
49
+
50
+ @media only screen and (min-width: @tabletBreakpoint) {
51
+ .eea.hero-block.full-height,
52
+ .eea.hero-block.full-height .hero-block-image,
53
+ .eea.hero-block.full-height .hero-block-inner-wrapper {
54
+ min-height: @tabletHeroBlockMinHeight;
55
+ }
56
+ .hero-block-body {
57
+ gap: @tabletHeroBlockBodyGap;
58
+ }
59
+ }
60
+
61
+ @media only screen and (min-width: @computerBreakpoint) {
62
+ .eea.hero-block.full-height,
63
+ .eea.hero-block.full-height .hero-block-image,
64
+ .eea.hero-block.full-height .hero-block-inner-wrapper {
65
+ min-height: @desktopHeroBlockMinHeight;
66
+ }
67
+ .hero-block-body {
68
+ gap: @desktopHeroBlockBodyGap;
69
+ }
70
+ }
@@ -0,0 +1,24 @@
1
+ /*******************************
2
+ Hero
3
+ *******************************/
4
+
5
+ /* Hero block */
6
+ @mobileHeroBlockMinHeight : 417px;
7
+ @tabletHeroBlockMinHeight : 465px;
8
+ @desktopHeroBlockMinHeight: 665px;
9
+
10
+ @heroBlockPosition: relative;
11
+ @heroBlockHomepagePadding: 0 @rem-space-5;
12
+
13
+ /* Background Image */
14
+ @heroBlockImageBackgroundRepeat : no-repeat;
15
+ @heroBlockImageBackgroundSize : cover;
16
+ @heroBlockImageBackgroundPosition : center;
17
+
18
+ /* Wrapper */
19
+ @heroBlockWrapperPadding : @rem-space-20;
20
+
21
+ /* Body */
22
+ @mobileHeroBlockBodyGap : @rem-space-6;
23
+ @tabletHeroBlockBodyGap : @rem-space-8;
24
+ @desktopHeroBlockBodyGap : @rem-space-10;
@@ -5,25 +5,18 @@
5
5
  @import '@eeacms/volto-eea-design-system/../theme/themes/eea/globals/utilities';
6
6
 
7
7
  /* Heading size adjustment */
8
- @media only screen and (min-width: @tabletBreakpoint) {
9
- h1 {
10
- font-size: unit((48 / 16), rem);
11
- }
12
-
13
- h2 {
14
- font-size: unit((40 / 16), rem);
15
- }
16
-
17
- h3 {
18
- font-size: unit((36 / 16), rem);
19
- }
20
-
21
- h4 {
22
- font-size: unit((24 / 16), rem);
23
- }
8
+ @media only screen and (max-width: @largestMobileScreen) {
9
+ h1 { font-size: @mobileH1; }
10
+ h2 { font-size: @mobileH2; }
11
+ h3 { font-size: @mobileH3; }
12
+ h4 { font-size: @mobileH4; }
24
13
  }
25
14
 
26
15
  [class^='ri-'],
27
16
  [class*=' ri-'] {
28
17
  fill: currentColor;
29
18
  }
19
+
20
+ .homepage {
21
+ color: @tertiaryColor;
22
+ }
@@ -79,6 +79,11 @@
79
79
  @h5 : unit((20 / @fontSize), rem);
80
80
  @h6 : unit((18 / @fontSize), rem);
81
81
 
82
+ @mobileH1: unit((30 / @fontSize), rem);
83
+ @mobileH2: unit((24 / @fontSize), rem);
84
+ @mobileH3: unit((20 / @fontSize), rem);
85
+ @mobileH4: unit((18 / @fontSize), rem);
86
+
82
87
  /*--------------
83
88
  Form Input
84
89
  ---------------*/
@@ -145,17 +150,20 @@
145
150
  Gaps / Paddings / Margins
146
151
  ---------------------------*/
147
152
 
153
+ @minyGap : unit((8 / @emSize), rem);
148
154
  @tinyGap : unit((12 / @emSize), rem);
149
155
  @mediumGap : unit((16 / @emSize), rem);
150
156
  @largeGap : unit((20 / @emSize), rem);
151
157
  @bigGap : unit((24 / @emSize), rem);
152
158
  @hugeGap : unit((28 / @emSize), rem);
153
159
 
160
+ @squareMiny : @minyGap @minyGap;
154
161
  @squareTiny : @tinyGap @tinyGap;
155
162
  @squareMedium : @mediumGap @mediumGap;
156
163
  @squareLarge : @largeGap @largeGap;
157
164
  @squareBig : @bigGap @bigGap;
158
165
 
166
+ @rectangleMini : @minyGap @tinyGap;
159
167
  @rectangleTiny : @tinyGap @mediumGap;
160
168
  @rectangleMedium : @mediumGap @largeGap;
161
169
  @rectangleLarge : @largeGap @bigGap;
@@ -2,12 +2,23 @@
2
2
  .color-fg-primary { color: @primaryColor !important; }
3
3
  .color-fg-secondary { color: @secondaryColor !important; }
4
4
  .color-fg-tertiary { color: @tertiaryColor !important; }
5
- .color-fg-white { color: @white !important; }
5
+ .color-fg-white { color: @grey-0 !important; }
6
6
 
7
7
  .color-bg-primary { background-color: @primaryColor !important; }
8
8
  .color-bg-secondary { background-color: @secondaryColor !important; }
9
9
  .color-bg-tertiary { background-color: @tertiaryColor !important; }
10
- .color-bg-grey { background-color: #F9F9F9 !important; }
10
+ .color-bg-grey { background-color: @grey-1 !important; }
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: -1;
21
+ }
11
22
 
12
23
  // Display utilities
13
24
  .d-flex { display: flex !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;
@@ -7,7 +7,8 @@
7
7
  margin: @imageMargin;
8
8
  }
9
9
 
10
- .item .tile.image {
10
+ .item .tile.image,
11
+ .block .item .tile.image {
11
12
  width: @tileImageWidth;
12
13
  height: @tileImageHeight;
13
14
  }
@@ -26,7 +27,7 @@
26
27
  .ui.items.row > .item {
27
28
  flex-direction: row;
28
29
  }
29
-
30
+
30
31
  .ui.items.row > .item > .image + .content {
31
32
  padding: 0em 0em 0em @mobileContentImageDistance;
32
33
  }
@@ -42,4 +43,18 @@
42
43
  .ui.items.row > .item {
43
44
  margin: @desktopRowItemMargin;
44
45
  }
45
- }
46
+ }
47
+
48
+ /*--------------
49
+ Icons
50
+ ---------------*/
51
+
52
+ .ui.items > .item {
53
+ &.primary > .icon {
54
+ color: @primaryColor;
55
+ }
56
+
57
+ &.secondary > .icon {
58
+ color: @secondaryColor;
59
+ }
60
+ }