@eeacms/volto-eea-design-system 1.11.0 → 1.12.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 CHANGED
@@ -4,6 +4,32 @@ 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
+ ### [1.12.0](https://github.com/eea/volto-eea-design-system/compare/1.11.0...1.12.0) - 19 May 2023
8
+
9
+ #### :boom: Breaking Change
10
+
11
+ - breaking(menu): removed css hiding of home link [David Ichim - [`81bdcc6`](https://github.com/eea/volto-eea-design-system/commit/81bdcc6857b724927c92d4b9de463629a3f9fdd6)]
12
+
13
+ #### :bug: Bug Fixes
14
+
15
+ - fix(container): width of position ov view-wrapper container [David Ichim - [`c3230cb`](https://github.com/eea/volto-eea-design-system/commit/c3230cb3a946801dd6a00e2ea4d7215445ac8a81)]
16
+
17
+ #### :nail_care: Enhancements
18
+
19
+ - change(mega-menu): removed need for hardcoded sub-section of countries mega menu [David Ichim - [`d8dab69`](https://github.com/eea/volto-eea-design-system/commit/d8dab69a03595784e208cddc076788bc3399bc85)]
20
+
21
+ #### :hammer_and_wrench: Others
22
+
23
+ - bump package version as we have some breaking changes [David Ichim - [`064e170`](https://github.com/eea/volto-eea-design-system/commit/064e170ee40a8e58533a2e6db0ed6b58c38ad7bb)]
24
+ - printing at topics [Dobricean Ioan Dorian - [`6c9e4a0`](https://github.com/eea/volto-eea-design-system/commit/6c9e4a072785e74022e7557132ae067e00066ef0)]
25
+ - printing at topics [Dobricean Ioan Dorian - [`341866a`](https://github.com/eea/volto-eea-design-system/commit/341866ab4ade6ba29c160e857003ca4dbda7106b)]
26
+ - printing at topics [Dobricean Ioan Dorian - [`b9d6853`](https://github.com/eea/volto-eea-design-system/commit/b9d6853ee717cc208419593590539697ced3b709)]
27
+ - Use variables instead of hardcoded dimensions [dana-cfc4 - [`064b2a4`](https://github.com/eea/volto-eea-design-system/commit/064b2a4e004e8f71aaae2ac710159f004e928777)]
28
+ - (fix): Remove copyright of hero block and extra spaces on print [dana-cfc4 - [`afbf212`](https://github.com/eea/volto-eea-design-system/commit/afbf2122ec1133979df22864ce243d50afb647b6)]
29
+ - (fix): Remove header and hero block extra space [dana-cfc4 - [`03d08fb`](https://github.com/eea/volto-eea-design-system/commit/03d08fbe5f99ef082a87a22697cafe593f7ea5e3)]
30
+ - moved customcss [Dobricean Ioan Dorian - [`8af6b0f`](https://github.com/eea/volto-eea-design-system/commit/8af6b0f620a5b9c71ed2b20c485e650c0553e56c)]
31
+ - break hero block [Dobricean Ioan Dorian - [`cfa7d0d`](https://github.com/eea/volto-eea-design-system/commit/cfa7d0d0c8e7db505d6ca2a1cadb9ac9b9f99a64)]
32
+ - hero print [Dobricean Ioan Dorian - [`a988c8c`](https://github.com/eea/volto-eea-design-system/commit/a988c8c745569e58e031c0f6cf680e58dccc2c6d)]
7
33
  ### [1.11.0](https://github.com/eea/volto-eea-design-system/compare/1.0.7...1.11.0) - 11 May 2023
8
34
 
9
35
  #### :boom: Breaking Change
@@ -49,6 +75,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
49
75
 
50
76
  #### :hammer_and_wrench: Others
51
77
 
78
+ - Release 1.11.0 #344 from eea/develop [ichim-david - [`02ccaa1`](https://github.com/eea/volto-eea-design-system/commit/02ccaa149d26b387e197eabec841691abd752fc2)]
52
79
  - Release 1.11.0 [alin - [`acc76ea`](https://github.com/eea/volto-eea-design-system/commit/acc76ea7b81e31a8d83179cb0af48482a8f84709)]
53
80
  - bump package version [David Ichim - [`3dfa3f0`](https://github.com/eea/volto-eea-design-system/commit/3dfa3f088a4c012ac1bb36f3ef08fac9079f3f81)]
54
81
  - added possibility to configure button url [Zoltan Szabo - [`91cd277`](https://github.com/eea/volto-eea-design-system/commit/91cd27764f646429f168c09361b370632e900c80)]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
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",
@@ -88,7 +88,7 @@ const Countries = ({ menuItem, renderMenuItem }) => (
88
88
  <Grid.Column width={8}>
89
89
  {menuItem.items.map((section, index) => (
90
90
  <React.Fragment key={index}>
91
- {section.title === 'EEA member countries' && (
91
+ {index === 0 && (
92
92
  <ItemGrid
93
93
  sectionTitle={section.title}
94
94
  item={section}
@@ -103,7 +103,7 @@ const Countries = ({ menuItem, renderMenuItem }) => (
103
103
  <Grid columns={1} className="nested-grid">
104
104
  {menuItem.items.map((section, index) => (
105
105
  <React.Fragment key={index}>
106
- {section.title !== 'EEA member countries' && (
106
+ {index !== 0 && (
107
107
  <Grid.Column>
108
108
  <ItemGrid
109
109
  sectionTitle={section.title}
@@ -100,106 +100,3 @@
100
100
  flex: 1 0 auto;
101
101
  align-items: center;
102
102
  }
103
-
104
- //@media only screen and (max-width: @mobileWidth) {
105
- // .ui.segment.header-wrapper {
106
- // position: sticky !important;
107
- // z-index: 3;
108
- // background: @white;
109
- // }
110
- //
111
- // .ui.segment {
112
- // position: initial !important;
113
- // }
114
- //
115
- // .header .logo-nav-wrapper {
116
- // margin: 10px 0 10px;
117
- // }
118
- //}
119
- //
120
- //.ui.segment.header-wrapper {
121
- // padding: 0;
122
- //}
123
- //
124
- //.ui.segment .header {
125
- // padding: 0 15px;
126
- //}
127
- //
128
- //.header .logo-nav-wrapper {
129
- // align-items: center;
130
- //
131
- // .navigation {
132
- // display: flex;
133
- // width: 100%;
134
- // align-items: center;
135
- // justify-content: center;
136
- // }
137
- //}
138
- //
139
- //.header .logo-nav-wrapper .ui.pointing.secondary {
140
- // display: flex;
141
- // width: 100%;
142
- // max-width: 100%;
143
- // justify-content: unset;
144
- // margin: 0 !important;
145
- //
146
- // .navigation-links {
147
- // display: inline-flex;
148
- // width: 100%;
149
- // justify-content: center;
150
- // }
151
- //
152
- // .tools-wrapper {
153
- // display: flex;
154
- // flex: 1 0 auto;
155
- // align-items: center;
156
- // }
157
- //
158
- // .tools-search-wrapper {
159
- // margin-left: 0;
160
- // }
161
- //
162
- // .search form {
163
- // padding-top: 0 !important;
164
- // }
165
- //}
166
- //
167
- //@media only screen and (max-width: 766px) {
168
- // // #141204 take into account that for the header wrapper on mobile views
169
- // // we have the volto toolbar on top
170
- // .has-toolbar-collapsed .header-wrapper {
171
- // top: 20px;
172
- // }
173
- //
174
- // .has-toolbar .header-wrapper {
175
- // top: 100px;
176
- // }
177
- //}
178
- //
179
- //@media only screen and (min-width: 768px) and (max-width: @mobileWidth) {
180
- // // #141204 use fixed position instead of sticky in order to always
181
- // // have the header on top from 768px to 1279px
182
- // .ui.segment.header-wrapper {
183
- // position: fixed !important;
184
- // top: 0;
185
- // }
186
- //
187
- // .header-wrapper {
188
- // width: 100%; // when position fixed div behaves as inline
189
- // }
190
- //
191
- // .has-toolbar .header-wrapper {
192
- // width: calc(100% - 80px); // toolbar width
193
- // }
194
- //
195
- // .has-toolbar-collapsed .header-wrapper {
196
- // width: calc(100% - 20px);
197
- // }
198
- //}
199
- //
200
- //.ui.right.sidebar.metadata-sidebar.menu,
201
- //.ui.left.sidebar.metadata-sidebar.menu {
202
- // .ui.header {
203
- // padding: 0;
204
- // }
205
- //}
@@ -8,6 +8,13 @@
8
8
  padding-left: 0;
9
9
  }
10
10
 
11
+ @media print {
12
+ .ui.basic.segment.content-area {
13
+ margin-top: 0;
14
+ padding-top: 0;
15
+ }
16
+ }
17
+
11
18
  .ui.primary.segment {
12
19
  border-bottom: @4px solid @greyBorderColor;
13
20
  font-size: @16px;
@@ -228,4 +228,16 @@
228
228
  }
229
229
  }
230
230
 
231
+ @media print {
232
+ .eea.banner .gradient .content,
233
+ .eea.banner .image .gradient .content {
234
+ padding-top: @printContentPadding;
235
+ }
236
+
237
+ .eea.banner .gradient .content > div > div {
238
+ padding-top: 0;
239
+ padding-bottom: 0;
240
+ }
241
+ }
242
+
231
243
  .loadUIOverrides();
@@ -17,11 +17,13 @@
17
17
  @mobileContentPadding : 1rem 0 1.25rem;
18
18
  @tabletContentPadding : 3rem 0 1.25rem;
19
19
  @computerContentPadding : 5rem 0 1.25rem;
20
+ @printContentPadding : 15px;
20
21
 
21
22
  @mobileContentPaddingWithImage : 6.25rem 0 1.25rem;
22
23
  @tabletContentPaddingWithImage : 12.5rem 0 1.25rem;
23
24
  @computerContentPaddingWithImage : 15.625rem 0 1.25rem;
24
25
 
26
+
25
27
  /* Title */
26
28
  @titleFontWeight : @bold;
27
29
  @titleMaxWidth : 100%;
@@ -281,10 +281,6 @@
281
281
  }
282
282
  }
283
283
 
284
- #main .main-menu .item:first-child {
285
- display: none; // hide home nav item
286
- }
287
-
288
284
  .main-menu.inverted {
289
285
  .item a {
290
286
  color: @mainMenuItemInvertedColor;
@@ -874,11 +870,6 @@
874
870
  }
875
871
  }
876
872
 
877
- // hide home link and accordion content from mobile menu
878
- #main #mega-menu .mobile > .ui.accordion > .title:first-child {
879
- display: none;
880
- }
881
-
882
873
  // hide content of accordion titles that are not active
883
874
  #main #mega-menu .ui.accordion .title:first-child + .content:not(.active) {
884
875
  display: none;
@@ -100,4 +100,37 @@
100
100
  }
101
101
  }
102
102
 
103
+ @media print {
104
+ .eea.hero-block.full-height,
105
+ .eea.hero-block.full-height .hero-block-image-wrapper,
106
+ .eea.hero-block.full-height .hero-block-inner-wrapper {
107
+ min-height: unset;
108
+ }
109
+
110
+ .hero-block-inner-wrapper {
111
+ padding-top: @heroBlockPrintPadding;
112
+ padding-bottom: @heroBlockPrintPadding;
113
+ }
114
+
115
+ .hero-block-image-wrapper {
116
+ left: 0 !important;
117
+ right: 0 !important;
118
+ padding-left: 0 !important;
119
+ margin-left: 0 !important;
120
+ margin-right: 0 !important;
121
+ padding-right: 0% !important;
122
+ width: 100% !important;
123
+ break-inside: avoid-page;
124
+ }
125
+
126
+ .hero-block {
127
+ break-inside: avoid-page;
128
+ }
129
+
130
+ .hero-block-body .eea.copyright {
131
+ display: none;
132
+ visibility: hidden;
133
+ }
134
+ }
135
+
103
136
  .loadUIOverrides();
@@ -26,6 +26,7 @@
26
26
  @heroBlockWrapperPadding : 5rem;
27
27
  @tableHeroBlockWrapperPadding: 6rem;
28
28
  @desktopHeroBlockWrapperPadding: 194px 96px;
29
+ @heroBlockPrintPadding: 20px;
29
30
 
30
31
  /* Body */
31
32
  @mobileHeroBlockBodyGap : @rem-space-6;
@@ -29,7 +29,9 @@ h2, h3, h4, h5, h6 {
29
29
  color: @contentAreaColor;
30
30
  }
31
31
 
32
- [id="page-document"] > * {
32
+ [id="page-document"] > *,
33
+ .view-wrapper > *
34
+ {
33
35
  margin-left: auto !important;
34
36
  margin-right: auto !important;
35
37
  }
@@ -37,7 +39,8 @@ h2, h3, h4, h5, h6 {
37
39
  [class~="view-defaultview"] [id="page-document"] > *,
38
40
  [class~="view-viewview"] [id="page-document"] > *,
39
41
  #main .container_width,
40
- #main .has--size--container_width
42
+ #main .has--size--container_width,
43
+ .view-wrapper > *
41
44
  {
42
45
  max-width: @containerWidth !important;
43
46
  }
@@ -150,3 +153,38 @@ a {
150
153
  }
151
154
  }
152
155
  }
156
+
157
+ @media print {
158
+ .skiplinks-wrapper,
159
+ .top.bar,
160
+ .main.bar.transparency,
161
+ .main-menu,
162
+ .eea .header .action,
163
+ .slider-arrow,
164
+ #footer,
165
+ #page-header .action,
166
+ #inpage-navigation {
167
+ display: none;
168
+ visibility: hidden;
169
+ }
170
+ .logo {
171
+ margin-left: 0;
172
+ }
173
+ .static-banner {
174
+ display: none;
175
+ visibility: hidden;
176
+ }
177
+ .image {
178
+ page-break-inside: avoid;
179
+ }
180
+ img {
181
+ page-break-inside: avoid;
182
+ }
183
+ .card {
184
+ page-break-inside: avoid;
185
+
186
+ }
187
+ .grid-block-teaser .card{
188
+ page-break-inside: auto;
189
+ }
190
+ }