@eeacms/volto-eea-design-system 1.0.0-alpha.6 → 1.0.0-alpha.7

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,39 @@ 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.0.0-alpha.7](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.6...1.0.0-alpha.7) - 16 December 2022
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat(item): normalized size for image or icon items #258 from eea/refactor-items [ichim-david - [`945170f`](https://github.com/eea/volto-eea-design-system/commit/945170f1503be68aa3fc1bd950a97eeebfd81037)]
12
+
13
+ #### :bug: Bug Fixes
14
+
15
+ - fix(item): removed margin set for description which pushed the text from icon [David Ichim - [`d9d4031`](https://github.com/eea/volto-eea-design-system/commit/d9d40310fcfb1bd214bd901b79dcbac41e9a8518)]
16
+ - fix(card): rounded after removal of has--rounded--true style class [David Ichim - [`d4727af`](https://github.com/eea/volto-eea-design-system/commit/d4727afdecf3d25e3e5bc98d472b976d60154183)]
17
+ - fix(project): Proper paths if volto-eea-design-system package is not installed, but in development #270 from eea/correct_paths [ichim-david - [`0f8ee8d`](https://github.com/eea/volto-eea-design-system/commit/0f8ee8d770f1b26d4315be8f615d58a61acbafc8)]
18
+
19
+ #### :nail_care: Enhancements
20
+
21
+ - change(item): added tiny size that outputs 24px icon sizes [David Ichim - [`2ea9636`](https://github.com/eea/volto-eea-design-system/commit/2ea96363a957f9033cb5bfe2d7fd311e92377493)]
22
+ - change(image): added preview image size default to 400px [David Ichim - [`a0aa867`](https://github.com/eea/volto-eea-design-system/commit/a0aa867e932d1b3c0bf449553726d6feb645853e)]
23
+ - change(item): rename large to big class [David Ichim - [`24ff127`](https://github.com/eea/volto-eea-design-system/commit/24ff1275b9a0556b85ab86757bc0c84f50357e7d)]
24
+ - change(item): set same height as width on item images [David Ichim - [`69cbd23`](https://github.com/eea/volto-eea-design-system/commit/69cbd23ca53dd68ae9f7c00a69ed2d8820746305)]
25
+ - refactor(item): update item part 2 [Antonis Tarantilis - [`9812ae2`](https://github.com/eea/volto-eea-design-system/commit/9812ae2e41ac86cfd4c56e13af8af570b752966f)]
26
+ - refactor(item): update spacing [Antonis Tarantilis - [`2fd91c4`](https://github.com/eea/volto-eea-design-system/commit/2fd91c4aa1a76dd2f7099d3f24f94067e95e06a1)]
27
+ - refactor(item): update icon variations and paddings [Antonis Tarantilis - [`6a407b3`](https://github.com/eea/volto-eea-design-system/commit/6a407b3e7f743eb7b73247bcc5d489685d567bc6)]
28
+ - refactor(item): update image and icon sizes [Antonis Tarantilis - [`b802573`](https://github.com/eea/volto-eea-design-system/commit/b8025735121aaa0024a5783afbde0f6be3715618)]
29
+ - refactor(item): initial values for new sizes & add description class [Antonis Tarantilis - [`3546296`](https://github.com/eea/volto-eea-design-system/commit/3546296f0cacb96411c8c67b98e9763e2b843b05)]
30
+ - refactor(item): update operator for condition controls [Antonis Tarantilis - [`149ccb2`](https://github.com/eea/volto-eea-design-system/commit/149ccb2f1e498c27e5550214cdee25eb808ab27e)]
31
+ - refactor(item): add icon and more size options [Antonis Tarantilis - [`1120bb6`](https://github.com/eea/volto-eea-design-system/commit/1120bb62d9ab908c5c97a4871a66e3c08c5c7ece)]
32
+
33
+ #### :hammer_and_wrench: Others
34
+
35
+ - Release 1.0.0-alpha.7 [Alin Voinea - [`7e66bcc`](https://github.com/eea/volto-eea-design-system/commit/7e66bcc296b389bc55073e7f99681534977dce3a)]
36
+ - added back descriptionDistance variable until package release [David Ichim - [`3af811a`](https://github.com/eea/volto-eea-design-system/commit/3af811a8d86a132e16de118697ba5a4302a8a4da)]
37
+ - Back to dev [Alin Voinea - [`cb531c9`](https://github.com/eea/volto-eea-design-system/commit/cb531c933c907bdbb88c9de0f1df2eb7ce899a4c)]
38
+ - Proper paths if the package is not installed, but in development [Tiberiu Ichim - [`7a2655f`](https://github.com/eea/volto-eea-design-system/commit/7a2655f7cf9d3c687f172eefcf2b4cff4b12f832)]
39
+ - Update .project.eslintrc.js [ichim-david - [`a2fd3f2`](https://github.com/eea/volto-eea-design-system/commit/a2fd3f23473325976c2b146e066eeb538d140dce)]
7
40
  ### [1.0.0-alpha.6](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.5...1.0.0-alpha.6) - 7 December 2022
8
41
 
9
42
  #### :rocket: New Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "1.0.0-alpha.6",
3
+ "version": "1.0.0-alpha.7",
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",
package/razzle.extend.js CHANGED
@@ -7,8 +7,13 @@ const modify = (config, { target, dev }, webpack) => {
7
7
  config.resolve.alias['../../theme.config$'] = themeConfigPath;
8
8
  config.resolve.alias['../../theme.config'] = themeConfigPath;
9
9
 
10
- const projectRootPath = path.resolve('.');
11
- const themesPath = `${projectRootPath}/node_modules/@eeacms/volto-eea-design-system/theme/themes`;
10
+ const designSystem = '@eeacms/volto-eea-design-system';
11
+ const designSystemPath =
12
+ config.resolve.alias[designSystem] ||
13
+ path.dirname(require.resolve(designSystem));
14
+ const themeLessPath = path.resolve(`${designSystemPath}/../theme`);
15
+
16
+ const themesPath = `${themeLessPath}/themes`;
12
17
 
13
18
  config.resolve.alias['eea-volto-themes'] = themesPath;
14
19
  config.resolve.alias['ui-theme'] = `${themesPath}/eea/`;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Item, Container, Grid } from 'semantic-ui-react';
2
+ import { Item, Container, Grid, Icon } from 'semantic-ui-react';
3
3
 
4
4
  import GlobeEco from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/images/Svg/globe-eco.svg';
5
5
  import Sustainable from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/images/Svg/sustainable.svg';
@@ -12,26 +12,72 @@ export default {
12
12
  component: Item,
13
13
  argTypes: {
14
14
  stackable: {
15
- description: 'Image above content',
16
15
  table: {
17
16
  type: { summary: 'boolean' },
18
17
  defaultValue: { summary: false },
19
18
  },
20
19
  },
20
+ mediaType: {
21
+ name: 'media type',
22
+ options: ['image', 'icon'],
23
+ control: { type: 'radio' },
24
+ table: {
25
+ defaultValue: { summary: 'image' },
26
+ },
27
+ },
28
+ imageSize: {
29
+ control: { type: 'select' },
30
+ options: ['tiny', 'small', 'medium', 'big'],
31
+ table: {
32
+ type: { summary: 'string' },
33
+ defaultValue: { summary: 'medium' },
34
+ },
35
+ },
36
+ flexAlign: {
37
+ name: 'vertical align',
38
+ options: ['start', 'center', 'end'],
39
+ control: { type: 'select' },
40
+ table: {
41
+ defaultValue: { summary: 'center' },
42
+ },
43
+ },
44
+ colorVariation: {
45
+ name: 'icon variation',
46
+ options: ['primary', 'secondary', 'tertiary'],
47
+ control: { type: 'select' },
48
+ table: {
49
+ defaultValue: { summary: 'secondary' },
50
+ },
51
+ },
21
52
  },
22
53
  };
23
54
 
24
55
  function SingleItem({
25
- image,
56
+ mediaType,
57
+ imageUrl,
58
+ icon,
26
59
  imageSize,
60
+ colorVariation,
27
61
  description,
28
- verticalAlign,
62
+ flexAlign,
29
63
  stackable,
30
64
  }) {
31
65
  return (
32
- <Item className={stackable ? 'stackable' : ''}>
33
- <Item.Image className={`ui ${imageSize}`} src={image} alt="item image" />
34
- <Item.Content verticalAlign={verticalAlign}>{description}</Item.Content>
66
+ <Item
67
+ className={`flex-items-${flexAlign} ${stackable ? ' stackable' : ''}`}
68
+ >
69
+ {mediaType === 'image' ? (
70
+ <Item.Image
71
+ className={`ui ${imageSize}`}
72
+ src={imageUrl}
73
+ alt="item image"
74
+ />
75
+ ) : (
76
+ <Icon className={`${imageSize} ${icon} ${colorVariation}`} />
77
+ )}
78
+ <Item.Content>
79
+ <Item.Description>{description}</Item.Description>
80
+ </Item.Content>
35
81
  </Item>
36
82
  );
37
83
  }
@@ -45,41 +91,28 @@ export const DefaultItem = (args) => (
45
91
  </Container>
46
92
  );
47
93
  DefaultItem.args = {
48
- imageSize: 'tile',
49
- verticalAlign: 'middle',
94
+ mediaType: 'image',
95
+ imageUrl: GlobeEco,
96
+ icon: 'ri-leaf-line',
97
+ imageSize: 'medium',
98
+ flexAlign: 'center',
99
+ colorVariation: 'secondary',
50
100
  stackable: false,
51
- image: GlobeEco,
52
101
  description:
53
102
  'Support Europe’s transition to a sustainable future with evidence-based knowledge and data.',
54
103
  };
55
104
  DefaultItem.argTypes = {
56
- imageSize: {
57
- control: { type: 'select' },
58
- options: ['mini', 'tile', 'tiny', 'small'],
59
- description: 'Content can specify its vertical alignment',
60
- table: {
61
- type: { summary: 'string' },
62
- defaultValue: { summary: ' "" ' },
63
- },
105
+ imageUrl: {
106
+ name: 'Image URL',
107
+ control: 'text',
108
+ if: { arg: 'mediaType', eq: 'image' },
64
109
  },
65
- verticalAlign: {
66
- control: { type: 'select' },
67
- options: ['top', 'middle', 'bottom'],
68
- description: 'An image can vary in size',
69
- table: {
70
- type: { summary: 'string' },
71
- defaultValue: { summary: ' "" ' },
72
- },
73
- },
74
- image: {
75
- description: 'Path or Url of the image',
76
- table: {
77
- type: { summary: 'string' },
78
- defaultValue: { summary: ' "" ' },
79
- },
110
+ icon: {
111
+ name: 'Icon class',
112
+ control: 'text',
113
+ if: { arg: 'mediaType', eq: 'icon' },
80
114
  },
81
115
  description: {
82
- description: 'Item content description',
83
116
  table: {
84
117
  type: { summary: 'string' },
85
118
  defaultValue: { summary: ' "" ' },
@@ -88,8 +121,12 @@ DefaultItem.argTypes = {
88
121
  };
89
122
 
90
123
  function ItemGroup({
124
+ mediaType,
125
+ imageUrl,
126
+ icon,
91
127
  imageSize,
92
- verticalAlign,
128
+ colorVariation,
129
+ flexAlign,
93
130
  ColumnLeft,
94
131
  ColumnRight,
95
132
  stackable,
@@ -104,8 +141,10 @@ function ItemGroup({
104
141
  <SingleItem
105
142
  key={item.childKey}
106
143
  {...item}
144
+ flexAlign={flexAlign}
145
+ mediaType={mediaType}
107
146
  imageSize={imageSize}
108
- verticalAlign={verticalAlign}
147
+ colorVariation={colorVariation}
109
148
  stackable={stackable}
110
149
  ></SingleItem>
111
150
  ))}
@@ -117,8 +156,10 @@ function ItemGroup({
117
156
  <SingleItem
118
157
  key={item.childKey}
119
158
  {...item}
159
+ flexAlign={flexAlign}
160
+ mediaType={mediaType}
120
161
  imageSize={imageSize}
121
- verticalAlign={verticalAlign}
162
+ colorVariation={colorVariation}
122
163
  stackable={stackable}
123
164
  ></SingleItem>
124
165
  ))}
@@ -135,25 +176,30 @@ const Template = (args) => <ItemGroup {...args}></ItemGroup>;
135
176
  // Group of items
136
177
  export const DefaultGroup = Template.bind({});
137
178
  DefaultGroup.args = {
138
- imageSize: 'tile',
139
- verticalAlign: 'middle',
179
+ mediaType: 'image',
180
+ imageSize: 'medium',
181
+ colorVariation: 'secondary',
182
+ flexAlign: 'center',
140
183
  stackable: false,
141
184
  ColumnLeft: [
142
185
  {
143
186
  childKey: 0,
144
- image: GlobeEco,
187
+ imageUrl: GlobeEco,
188
+ icon: 'ri-earth-line',
145
189
  description:
146
190
  'Support Europe’s transition to a sustainable future with evidence-based knowledge and data.',
147
191
  },
148
192
  {
149
193
  childKey: 1,
150
- image: Sustainable,
194
+ imageUrl: Sustainable,
195
+ icon: 'ri-leaf-line',
151
196
  description:
152
197
  'Supply input on solutions to the sustainability challenges of today – and tomorrow. ',
153
198
  },
154
199
  {
155
200
  childKey: 2,
156
- image: DataAnalytics,
201
+ imageUrl: DataAnalytics,
202
+ icon: 'ri-pie-chart-line',
157
203
  description:
158
204
  'Leverage the data and technology to support the EU’s decision-making processes concerning the environment and climate',
159
205
  },
@@ -161,35 +207,102 @@ DefaultGroup.args = {
161
207
  ColumnRight: [
162
208
  {
163
209
  childKey: 0,
164
- image: Network,
210
+ imageUrl: Network,
211
+ icon: 'ri-pin-distance-line',
165
212
  description:
166
213
  'Build stronger networks and partnerships with state and regional governments and organisations.',
167
214
  },
168
215
  {
169
216
  childKey: 1,
170
- image: Knowledge,
217
+ imageUrl: Knowledge,
218
+ icon: 'ri-line-chart-line',
171
219
  description:
172
220
  'Strengthen the EU’s knowledge capacity and help secure the resources needed to create a sustainable Europe.',
173
221
  },
174
222
  ],
175
223
  };
176
- DefaultGroup.argTypes = {
177
- imageSize: {
178
- control: { type: 'select' },
179
- options: ['mini', 'tile', 'tiny', 'small'],
180
- description: 'Content can specify its vertical alignment',
181
- table: {
182
- type: { summary: 'string' },
183
- defaultValue: { summary: ' "" ' },
224
+
225
+ function ItemFlexGroup({
226
+ mediaType,
227
+ imageUrl,
228
+ icon,
229
+ imageSize,
230
+ colorVariation,
231
+ flexAlign,
232
+ Items,
233
+ stackable,
234
+ }) {
235
+ return (
236
+ <Container>
237
+ <Item.Group unstackable className="row flex-items-wrapper">
238
+ {Items.map((item) => (
239
+ <SingleItem
240
+ key={item.childKey}
241
+ {...item}
242
+ flexAlign={flexAlign}
243
+ mediaType={mediaType}
244
+ imageSize={imageSize}
245
+ colorVariation={colorVariation}
246
+ stackable={stackable}
247
+ ></SingleItem>
248
+ ))}
249
+ </Item.Group>
250
+ </Container>
251
+ );
252
+ }
253
+
254
+ const FlexTemplate = (args) => <ItemFlexGroup {...args}></ItemFlexGroup>;
255
+
256
+ // Flex items
257
+ export const FlexGroup = FlexTemplate.bind({});
258
+ FlexGroup.args = {
259
+ mediaType: 'image',
260
+ imageSize: 'medium',
261
+ colorVariation: 'secondary',
262
+ flexAlign: 'center',
263
+ stackable: false,
264
+ Items: [
265
+ {
266
+ childKey: 0,
267
+ imageUrl: GlobeEco,
268
+ icon: 'ri-earth-line',
269
+ description:
270
+ 'Support Europe’s transition to a sustainable future with evidence-based knowledge and data.',
184
271
  },
185
- },
186
- verticalAlign: {
187
- control: { type: 'select' },
188
- options: ['top', 'middle', 'bottom'],
189
- description: 'An image can vary in size',
190
- table: {
191
- type: { summary: 'string' },
192
- defaultValue: { summary: ' "" ' },
272
+ {
273
+ childKey: 1,
274
+ imageUrl: Sustainable,
275
+ icon: 'ri-leaf-line',
276
+ description:
277
+ 'Supply input on solutions to the sustainability challenges of today – and tomorrow. ',
193
278
  },
194
- },
279
+ {
280
+ childKey: 2,
281
+ imageUrl: DataAnalytics,
282
+ icon: 'ri-pie-chart-line',
283
+ description:
284
+ 'This is an exmple of an item having bigger description text. Leverage the data and technology to support the EU’s decision-making processes concerning the environment and climate',
285
+ },
286
+ {
287
+ childKey: 3,
288
+ imageUrl: Network,
289
+ icon: 'ri-pin-distance-line',
290
+ description:
291
+ 'Build stronger networks and partnerships with state and regional governments and organisations.',
292
+ },
293
+ {
294
+ childKey: 4,
295
+ imageUrl: GlobeEco,
296
+ icon: 'ri-earth-line',
297
+ description:
298
+ 'Support Europe’s transition to a sustainable future with evidence-based knowledge and data.',
299
+ },
300
+ {
301
+ childKey: 5,
302
+ imageUrl: Knowledge,
303
+ icon: 'ri-line-chart-line',
304
+ description:
305
+ 'Strengthen the EU’s knowledge capacity and help secure the resources needed to create a sustainable Europe.',
306
+ },
307
+ ],
195
308
  };
@@ -135,5 +135,4 @@
135
135
  @import (optional) "@{siteFolder}/@{addon}/@{addontype}s/@{addonelement}.overrides";
136
136
  }
137
137
 
138
-
139
138
  /* End Config */
@@ -402,6 +402,7 @@ i.small.icons {
402
402
  }
403
403
  i.icon,
404
404
  i.icons {
405
+ line-height: 1;
405
406
  font-size: @medium;
406
407
  }
407
408
  i.large.icon,
@@ -186,7 +186,6 @@
186
186
  ---------------*/
187
187
 
188
188
  .ui.items > .item > .content > .description {
189
- margin-top: @descriptionDistance;
190
189
  max-width: @descriptionMaxWidth;
191
190
  font-size: @descriptionFontSize;
192
191
  line-height: @descriptionLineHeight;
@@ -1968,10 +1968,6 @@ i.icon.medapps:before {
1968
1968
  content: '\f3c6';
1969
1969
  }
1970
1970
 
1971
- i.icon.medium:before {
1972
- content: '\f23a';
1973
- }
1974
-
1975
1971
  i.icon.medium.m:before {
1976
1972
  content: '\f3c7';
1977
1973
  }
@@ -28,6 +28,10 @@
28
28
  width: @mediumWidth;
29
29
  }
30
30
 
31
+ .block .ui.preview.image {
32
+ width: @previewWidth;
33
+ }
34
+
31
35
  .block .ui.large.image {
32
36
  width: @largeWidth;
33
37
  }
@@ -38,6 +38,7 @@
38
38
  @tinyWidth: 80px;
39
39
  @smallWidth: 150px;
40
40
  @mediumWidth: 300px;
41
+ @previewWidth: 400px;
41
42
  @largeWidth: 450px;
42
43
  @bigWidth: 600px;
43
44
  @hugeWidth: 800px;
@@ -57,6 +57,12 @@
57
57
  z-index: @z-index-5;
58
58
  }
59
59
 
60
+ // remove extra margin from cards on edit, when they are inside a grid such as teaser
61
+ // the outline is cut before the theme background with margin 1em set
62
+ .block .ui.card {
63
+ margin: 0;
64
+ }
65
+
60
66
 
61
67
  // inherit font weight of styled headers so that if we set 300 weight it's visible also on
62
68
  // the edit page
@@ -24,7 +24,6 @@
24
24
  margin-left: @cardMetaDateMarginLeft;
25
25
  }
26
26
 
27
- .ui.cards > .card:not(.rounded) > .image,
28
27
  .ui.card:not(.rounded) > .image {
29
28
  overflow: @cardImageOverflow;
30
29
  height: @cardImageHeight;
@@ -128,19 +127,14 @@
128
127
  /*******************************
129
128
  Rounded Card
130
129
  *******************************/
131
-
132
- .ui.cards > .ui.card.rounded > .image,
133
- .ui.card.has--rounded--true > .image,
134
130
  .ui.card.rounded > .image {
135
131
  height: auto;
136
132
  }
137
133
 
138
- .card.has--rounded--true {
134
+ .card.rounded {
139
135
  --card-image-width: @roundedImageWidth;
140
136
  --card-image-height: @roundedImageHeight;
141
137
  }
142
- .ui.cards .ui.card.rounded,
143
- .ui.card.has--rounded--true,
144
138
  .ui.card.rounded {
145
139
  padding-top: @iconCardPaddingTop;
146
140
  border: none;
@@ -154,7 +148,7 @@
154
148
  img {
155
149
  width: @roundedImageWidth;
156
150
  height: @roundedImageHeight;
157
- border-radius: @roundedImageBorderRadius;
151
+ border-radius: @roundedImageBorderRadius !important;
158
152
  }
159
153
 
160
154
  .content {
@@ -326,7 +320,7 @@
326
320
  .cards-carousel .next-arrow {
327
321
  right: @carouselButtonDistance;
328
322
  left: auto;
329
- }
323
+ }
330
324
 
331
325
  /* Custom carousel pagination bullets */
332
326
  // avoid dots going over content that follows sliders
@@ -346,7 +340,7 @@
346
340
 
347
341
  .cards-carousel .slick-dots li.slick-active button:before {
348
342
  background-color: @carouselDotsActiveBackgroundColor;
349
- color: transparent;
343
+ color: transparent;
350
344
  }
351
345
 
352
346
  .slick-dots li button:focus-visible {
@@ -90,14 +90,50 @@
90
90
  width: auto;
91
91
  margin-right: 0;
92
92
  }
93
- .ui.items > .item > .icon + .content {
94
- padding-left: @tabletItemSpacing;
93
+
94
+ /* Image & Icon size */
95
+ .item .image {
96
+ overflow: hidden;
97
+ }
98
+
99
+ // Tiny - 24px
100
+ .item .tiny.image,
101
+ .block .item .tiny.image,
102
+ .item i.tiny.icon,
103
+ .item i.tiny.icons {
104
+ width: @tinyMediaSize;
105
+ height: @tinyMediaSize;
106
+ font-size: @tinyMediaSize;
107
+ }
108
+
109
+ // SMALL - 48px
110
+ .item .small.image,
111
+ .block .item .small.image,
112
+ .item i.small.icon,
113
+ .item i.small.icons {
114
+ width: @smallMediaSize;
115
+ height: @smallMediaSize;
116
+ font-size: @smallMediaSize;
117
+ }
118
+
119
+ // MEDIUM - 64px
120
+ .item .medium.image,
121
+ .block .item .medium.image,
122
+ .item i.medium.icon,
123
+ .item i.medium.icons {
124
+ width: @mediumMediaSize;
125
+ height: @mediumMediaSize;
126
+ font-size: @mediumMediaSize;
95
127
  }
96
128
 
97
- .item .tile.image,
98
- .block .item .tile.image {
99
- width: @tileImageWidth;
100
- height: @tileImageHeight;
129
+ // BIG - 80px
130
+ .item .big.image,
131
+ .block .item .big.image,
132
+ .item i.big.icon,
133
+ .item i.big.icons {
134
+ width: @largeMediaSize;
135
+ height: @largeMediaSize;
136
+ font-size: @largeMediaSize;
101
137
  }
102
138
 
103
139
  .ui.items.row > .item {
@@ -106,7 +142,7 @@
106
142
 
107
143
  // As semantic does for non unstackable items
108
144
  // so columns does not affect margin in mobiles
109
- .ui.items.row > .item:last-child {
145
+ .ui.items.row:not(.flex-items-wrapper) > .item:last-child {
110
146
  margin-bottom: 0;
111
147
  }
112
148
 
@@ -114,7 +150,8 @@
114
150
  .ui.items.row .item.stackable {
115
151
  display: grid;
116
152
 
117
- .image {
153
+ .image,
154
+ i.icon {
118
155
  margin: auto;
119
156
  }
120
157
 
@@ -124,6 +161,18 @@
124
161
  }
125
162
  }
126
163
 
164
+ // Flex wrapper for list of items
165
+ .ui.items.flex-items-wrapper {
166
+ display: flex;
167
+ flex-wrap: wrap;
168
+ justify-content: space-between;
169
+
170
+ .item {
171
+ width: @mobileFlexItemWidth;
172
+ }
173
+ }
174
+
175
+
127
176
  @media only screen and (max-width: @largestMobileScreen) {
128
177
  .ui.items.row > .item {
129
178
  flex-direction: row;
@@ -157,6 +206,11 @@
157
206
  .ui.items.row > .item {
158
207
  margin: @tabletRowItemMargin;
159
208
  }
209
+
210
+ // Flex wrapper for list of items
211
+ .ui.items.flex-items-wrapper .item {
212
+ width: @tabletFlexItemWidth;
213
+ }
160
214
  }
161
215
 
162
216
  @media only screen and (min-width: @computerBreakpoint) {
@@ -181,6 +235,11 @@
181
235
  .ui.items.row > .item {
182
236
  margin: @desktopRowItemMargin;
183
237
  }
238
+
239
+ // Flex wrapper for list of items
240
+ .ui.items.flex-items-wrapper .item {
241
+ width: @desktopFlexItemWidth;
242
+ }
184
243
  }
185
244
 
186
245
  /*--------------
@@ -7,7 +7,7 @@
7
7
  --------------------*/
8
8
 
9
9
  /* Group */
10
- @groupMargin: 1.5em 0em;
10
+ @groupMargin: @rem-space-6 0em;
11
11
 
12
12
  /* Item */
13
13
  @display: flex;
@@ -56,9 +56,11 @@
56
56
  @imageBoxShadow: none;
57
57
  @imageBorder: none;
58
58
 
59
- /* Tile image size */
60
- @tileImageWidth: 50px;
61
- @tileImageHeight: auto;
59
+ /* Image & Icon size */
60
+ @tinyMediaSize : 1.5rem;
61
+ @smallMediaSize : 3rem;
62
+ @mediumMediaSize : 4rem;
63
+ @largeMediaSize : 5rem;
62
64
 
63
65
  /* Content */
64
66
  @contentDisplay: block;
@@ -107,9 +109,8 @@
107
109
  @contentLinkHoverColor: '';
108
110
  @contentLinkTransition: color @defaultDuration @defaultEasing;
109
111
 
110
-
111
112
  /* Description */
112
- @descriptionDistance: 0.6em;
113
+ @descriptionDistance: 0;
113
114
  @descriptionMaxWidth: auto;
114
115
  @descriptionFontSize: 1em;
115
116
  @descriptionLineHeight: @lineHeight;
@@ -147,6 +148,11 @@
147
148
  Variations
148
149
  --------------------*/
149
150
 
151
+ /* Flex item */
152
+ @mobileFlexItemWidth: 100%;
153
+ @tabletFlexItemWidth: 48.8%;
154
+ @desktopFlexItemWidth: 49%;
155
+
150
156
  /* Relaxed */
151
157
  @relaxedItemSpacing: 1.5em;
152
158
  @veryRelaxedItemSpacing: 2em;
@@ -213,4 +219,4 @@
213
219
  /* Content */
214
220
  @mobileDefaultItemContentPadding: 1.5em;
215
221
  @tabletDefaultItemContentPadding: 1em;
216
- @computerDefaultItemContentPadding: 1.5em;
222
+ @computerDefaultItemContentPadding: 1.5em;
@@ -38,7 +38,42 @@ Below is a non-exhaustive list of the work-in-progress which is planned for futu
38
38
 
39
39
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
40
40
 
41
- ### [Unreleased](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.5...HEAD) - 2022-12-07T11:06:35.697Z
41
+ ### [Unreleased](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.6...HEAD) - 2022-12-16T13:43:12.354Z
42
+
43
+ #### :rocket: New Features
44
+
45
+ - feat(item): normalized size for image or icon items #258 from eea/refactor-items [`945170f`](https://github.com/eea/volto-eea-design-system/commit/945170f1503be68aa3fc1bd950a97eeebfd81037)
46
+
47
+ #### :bug: Bug Fixes
48
+
49
+ - fix(card): rounded after removal of has--rounded--true style class [`d4727af`](https://github.com/eea/volto-eea-design-system/commit/d4727afdecf3d25e3e5bc98d472b976d60154183)
50
+ - fix(item): removed margin set for description which pushed the text from icon [`d9d4031`](https://github.com/eea/volto-eea-design-system/commit/d9d40310fcfb1bd214bd901b79dcbac41e9a8518)
51
+ - fix(project): Proper paths if volto-eea-design-system package is not installed, but in development #270 from eea/correct_paths [`0f8ee8d`](https://github.com/eea/volto-eea-design-system/commit/0f8ee8d770f1b26d4315be8f615d58a61acbafc8)
52
+
53
+ #### :nail_care: Enhancements
54
+
55
+ - refactor(item): update icon variations and paddings [`6a407b3`](https://github.com/eea/volto-eea-design-system/commit/6a407b3e7f743eb7b73247bcc5d489685d567bc6)
56
+ - refactor(item): update spacing [`2fd91c4`](https://github.com/eea/volto-eea-design-system/commit/2fd91c4aa1a76dd2f7099d3f24f94067e95e06a1)
57
+ - refactor(item): initial values for new sizes & add description class [`3546296`](https://github.com/eea/volto-eea-design-system/commit/3546296f0cacb96411c8c67b98e9763e2b843b05)
58
+ - refactor(item): add icon and more size options [`1120bb6`](https://github.com/eea/volto-eea-design-system/commit/1120bb62d9ab908c5c97a4871a66e3c08c5c7ece)
59
+ - refactor(item): update image and icon sizes [`b802573`](https://github.com/eea/volto-eea-design-system/commit/b8025735121aaa0024a5783afbde0f6be3715618)
60
+ - change(item): set same height as width on item images [`69cbd23`](https://github.com/eea/volto-eea-design-system/commit/69cbd23ca53dd68ae9f7c00a69ed2d8820746305)
61
+ - refactor(item): update item part 2 [`9812ae2`](https://github.com/eea/volto-eea-design-system/commit/9812ae2e41ac86cfd4c56e13af8af570b752966f)
62
+ - change(item): rename large to big class [`24ff127`](https://github.com/eea/volto-eea-design-system/commit/24ff1275b9a0556b85ab86757bc0c84f50357e7d)
63
+ - change(item): added tiny size that outputs 24px icon sizes [`2ea9636`](https://github.com/eea/volto-eea-design-system/commit/2ea96363a957f9033cb5bfe2d7fd311e92377493)
64
+ - change(image): added preview image size default to 400px [`a0aa867`](https://github.com/eea/volto-eea-design-system/commit/a0aa867e932d1b3c0bf449553726d6feb645853e)
65
+ - refactor(item): update operator for condition controls [`149ccb2`](https://github.com/eea/volto-eea-design-system/commit/149ccb2f1e498c27e5550214cdee25eb808ab27e)
66
+
67
+ #### :hammer_and_wrench: Others
68
+
69
+ - Proper paths if the package is not installed, but in development [`7a2655f`](https://github.com/eea/volto-eea-design-system/commit/7a2655f7cf9d3c687f172eefcf2b4cff4b12f832)
70
+ - Update .project.eslintrc.js [`a2fd3f2`](https://github.com/eea/volto-eea-design-system/commit/a2fd3f23473325976c2b146e066eeb538d140dce)
71
+ - added back descriptionDistance variable until package release [`3af811a`](https://github.com/eea/volto-eea-design-system/commit/3af811a8d86a132e16de118697ba5a4302a8a4da)
72
+ - Release 1.0.0-alpha.7 [`7e66bcc`](https://github.com/eea/volto-eea-design-system/commit/7e66bcc296b389bc55073e7f99681534977dce3a)
73
+ - Add Sonarqube tag using cca-frontend addons list [`ce47e9b`](https://github.com/eea/volto-eea-design-system/commit/ce47e9b163bcb4eda988e3a87718b54ffbd3f99f)
74
+ - Back to dev [`cb531c9`](https://github.com/eea/volto-eea-design-system/commit/cb531c933c907bdbb88c9de0f1df2eb7ce899a4c)
75
+
76
+ ### [1.0.0-alpha.6](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.5...1.0.0-alpha.6) - 2022-12-07
42
77
 
43
78
  #### :rocket: New Features
44
79
 
@@ -71,8 +106,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
71
106
  - grammar fixes [`cb2a5a5`](https://github.com/eea/volto-eea-design-system/commit/cb2a5a5fd9dfc01eccc179721b06988742f5b2e2)
72
107
  - Release 1.0.0-alpha.6 [`6ca32f0`](https://github.com/eea/volto-eea-design-system/commit/6ca32f03c1860781d3c1c4ff9558713ad8acac95)
73
108
  - feature(copyright): image information #250 from eea/feature-copyright [`a8618c7`](https://github.com/eea/volto-eea-design-system/commit/a8618c7f0230a19b6c973aa2c9646463de9eeffb)
74
- - Update 3-images.md [`1b0ef03`](https://github.com/eea/volto-eea-design-system/commit/1b0ef033f9c8a36aaa739f268263f24a6d0fb473)
75
109
  - lint fix by introducing local variable tagsGap [`7b6c0ae`](https://github.com/eea/volto-eea-design-system/commit/7b6c0ae2ebfed06221700faf9a0d0c2bdeb60d99)
110
+ - Update 3-images.md [`1b0ef03`](https://github.com/eea/volto-eea-design-system/commit/1b0ef033f9c8a36aaa739f268263f24a6d0fb473)
76
111
 
77
112
  ### [1.0.0-alpha.5](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.4...1.0.0-alpha.5) - 2022-11-29
78
113