@eeacms/volto-eea-design-system 0.9.0 → 0.9.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.
package/CHANGELOG.md CHANGED
@@ -4,7 +4,26 @@ 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
- ### [0.8.2](https://github.com/eea/volto-eea-design-system/compare/0.8.1...0.8.2) - 19 September 2022
7
+ ### [0.9.2](https://github.com/eea/volto-eea-design-system/compare/0.9.1...0.9.2) - 27 September 2022
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix(block-editor): Padding [Alin Voinea - [`9072198`](https://github.com/eea/volto-eea-design-system/commit/9072198e89e52075fce845decab8573da3972a85)]
12
+
13
+ ### [0.9.1](https://github.com/eea/volto-eea-design-system/compare/0.9.0...0.9.1) - 27 September 2022
14
+
15
+ #### :nail_care: Enhancements
16
+
17
+ - change(styles): use flex-end values only instead of end to avoid babel warning [David Ichim - [`24244b2`](https://github.com/eea/volto-eea-design-system/commit/24244b22ea69b9f4dc3006597c7836f814b74cf2)]
18
+ - change(rounded): image size, border radius to ensure more image are turned into rounded options [David Ichim - [`51e23c1`](https://github.com/eea/volto-eea-design-system/commit/51e23c1bb38f277b2bfbad5d814925eb61d17668)]
19
+ - change(cards): added ability to change the text alignment using css variables [David Ichim - [`ed532ac`](https://github.com/eea/volto-eea-design-system/commit/ed532ac20c82a6933c4f12613c80ce92eec78405)]
20
+
21
+ #### :hammer_and_wrench: Others
22
+
23
+ - Merge pull request #243 from eea/develop [ichim-david - [`576564c`](https://github.com/eea/volto-eea-design-system/commit/576564ce395ee6ac9e74bcb19d5c4f0b4cd3c33b)]
24
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`4a5be6e`](https://github.com/eea/volto-eea-design-system/commit/4a5be6eec78dae230626e61ea2c77e7f3c62510d)]
25
+ - Back to dev [Alin Voinea - [`b251255`](https://github.com/eea/volto-eea-design-system/commit/b251255a7ed14d8290717726d86eaf54b87aa2d4)]
26
+ ### [0.9.0](https://github.com/eea/volto-eea-design-system/compare/0.8.1...0.9.0) - 19 September 2022
8
27
 
9
28
  #### :rocket: New Features
10
29
 
@@ -64,6 +83,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
64
83
 
65
84
  #### :hammer_and_wrench: Others
66
85
 
86
+ - Release 0.9.0 [Alin Voinea - [`eb7e2e5`](https://github.com/eea/volto-eea-design-system/commit/eb7e2e57b5f2778e709b67deee3624f6e9f9e716)]
67
87
  - Update Header.stories.js [ichim-david - [`9036c74`](https://github.com/eea/volto-eea-design-system/commit/9036c74d54640df2ccfcfdea9ddcdb29787d8ae2)]
68
88
  - Move text fragments style to site.overrides [kreafox - [`8368cbe`](https://github.com/eea/volto-eea-design-system/commit/8368cbe2cecfc296a2fc81dd0bb49cb9e9a9314c)]
69
89
  - stylelint fix [David Ichim - [`114e3f9`](https://github.com/eea/volto-eea-design-system/commit/114e3f97c6209f100aae2d6e24c595b7ba0a6500)]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
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",
@@ -15,10 +15,16 @@
15
15
  .container {
16
16
  width: auto !important;
17
17
  }
18
+
18
19
  [class*="block-editor"] {
19
- padding-left: 3rem;
20
- padding-right: 3rem;
21
- }
20
+ padding-left: 3rem;
21
+ padding-right: 3rem;
22
+
23
+ [class*="block-editor"] {
24
+ padding-left: 0;
25
+ padding-right: 0;
26
+ }
27
+ }
22
28
  }
23
29
 
24
30
  .contentWidth(@offset) {
@@ -8,6 +8,9 @@
8
8
 
9
9
  // This override on .block .ui.image is needed as it
10
10
  // sets width: 100% by default
11
+ .ui.image {
12
+ max-width: var(--image-max-width, 100%);
13
+ }
11
14
 
12
15
  .block .ui.mini.image {
13
16
  width: @miniWidth;
@@ -11,7 +11,7 @@
11
11
  display: flex;
12
12
  min-width: @eeaLoaderMinWidth;
13
13
  max-width: @eeaLoaderMaxWidth;
14
- align-items: end;
14
+ align-items: flex-end;
15
15
  justify-content: center;
16
16
  padding: @eeaLoaderPadding;
17
17
  animation: loaderPulse ease-out 2.5s infinite;
@@ -21,7 +21,7 @@
21
21
  padding: @mobileContentPadding;
22
22
 
23
23
  .ui.grid {
24
- align-items: end;
24
+ align-items: flex-end;
25
25
  }
26
26
 
27
27
  .title {
@@ -622,7 +622,7 @@
622
622
  Borders
623
623
  --------------------*/
624
624
 
625
- @circularRadius : 500rem;
625
+ @circularRadius : 50%;
626
626
 
627
627
  @borderColor : @silverGray;
628
628
  @strongBorderColor : rgba(34, 36, 38, 0.22);
@@ -39,6 +39,15 @@ h1, h2, h3, h4, h5, h6, p, span, .header {
39
39
  .text-right { text-align: right !important; }
40
40
  .bold { font-weight: bold !important; }
41
41
 
42
+ .align_left {
43
+ --text-align: left;
44
+ }
45
+
46
+ .align_center {
47
+ --text-align: center;
48
+ --justify-content: space-evenly;
49
+ }
50
+
42
51
  // Text utilities
43
52
  .bold { font-weight: @bold !important; }
44
53
  .underline { text-decoration: underline !important; }
@@ -5,6 +5,7 @@
5
5
  @checkboxSize: 20px;
6
6
  @checkboxColor: @textColor;
7
7
  @checkboxLineHeight: @checkboxSize;
8
+ @circularRadius: 500rem;
8
9
 
9
10
 
10
11
  /* Label */
@@ -7,11 +7,15 @@
7
7
  .ui.card > .extra {
8
8
  font-size: @extraLinkFontSize;
9
9
  word-break: @extraLinkWordBreak;
10
+ display: flex;
11
+ flex-wrap: wrap;
12
+ justify-content: var(--text-align, @extraJustifyContent);
10
13
  }
11
14
 
12
15
  /* Cards must have same height */
13
16
  .ui.card {
14
17
  height: 100%;
18
+ text-align: var(--text-align, @cardTextAlign);
15
19
  }
16
20
 
17
21
  .ui.cards > .card:not(.rounded) > .image,
@@ -41,7 +45,7 @@
41
45
 
42
46
  .ui.card .meta {
43
47
  display: flex;
44
- justify-content: space-between;
48
+ justify-content: var(--justify-content, @metaJustifyContent);
45
49
  width: 100%;
46
50
  }
47
51
 
@@ -259,11 +263,11 @@
259
263
  margin-bottom: @roundedContentTitleMarginBottom;
260
264
  font-size: @roundedContentTitleFontSize;
261
265
  font-weight: @roundedContentTitleFontWeight;
262
- text-align: @roundedContentTitleTextAlign;
266
+ //text-align: @roundedContentTitleTextAlign;
263
267
  }
264
268
 
265
269
  .description {
266
- text-align: @roundedContentTitleTextAlign;
270
+ //text-align: @roundedContentTitleTextAlign;
267
271
  font-size: @roundedMetadataFontSize;
268
272
  font-weight: @roundedMetadataFontWeight;
269
273
  }
@@ -49,6 +49,8 @@
49
49
  Content
50
50
  --------------------*/
51
51
 
52
+ @cardTextAlign: left;
53
+
52
54
 
53
55
  /* Image */
54
56
  @cardImageHeight: 200px;
@@ -84,6 +86,7 @@
84
86
  @headerColor: @tertiaryColor;
85
87
 
86
88
  /* Metadata */
89
+ @metaJustifyContent: space-between;
87
90
  @metaFontSize: @relativeMedium;
88
91
  @metaSpacing: 0.3em;
89
92
  @metaColor: @tertiaryColor;
@@ -135,6 +138,7 @@
135
138
  /* Additional Content */
136
139
  @extraDivider: none;
137
140
  @extraBackground: none;
141
+ @extraJustifyContent: right;
138
142
  @extraPosition: static;
139
143
  @extraWidth: auto;
140
144
  @extraTop: 0em;
@@ -278,8 +282,8 @@
278
282
  @roundedContentTitleFontWeight : @bold;
279
283
  @roundedContentTitleFontSize : @font-size-3;
280
284
  @roundedImageJustifyContent : center;
281
- @roundedImageHeight : 173px;
282
- @roundedImageWidth : 173px;
285
+ @roundedImageHeight : 176px;
286
+ @roundedImageWidth : 176px;
283
287
  @roundedMetadataFontSize : @font-size-1;
284
288
  @roundedMetadataFontWeight : @normal;
285
289