@eeacms/volto-eea-design-system 0.2.3 → 0.2.4

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,20 @@
1
+ name: Auto Comment
2
+ on: [pull_request]
3
+ jobs:
4
+ run:
5
+ runs-on: ubuntu-latest
6
+ steps:
7
+ - uses: wow-actions/auto-comment@v1
8
+ with:
9
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10
+ pullRequestOpened: |
11
+ 👋 @{{ author }}
12
+
13
+ To generate the Storybook and Docusaurus websites, write comment with:
14
+ > @eea-jenkins build all
15
+
16
+ To generate only Storybook write comment with:
17
+ > @eea-jenkins build storybook
18
+
19
+ To generate only Docusaurus write comment with:
20
+ > @eea-jenkins build docusaurus
package/CHANGELOG.md CHANGED
@@ -4,8 +4,34 @@ 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.2.4](https://github.com/eea/volto-eea-design-system/compare/0.2.3...0.2.4)
8
+
9
+ - Autobuild of docusaurus docs [`18c8b77`](https://github.com/eea/volto-eea-design-system/commit/18c8b77b6d0677f304a83965ed4d6849f75bc179)
10
+ - change(header): wrap header globalnav links useful for editing section [`10d4f56`](https://github.com/eea/volto-eea-design-system/commit/10d4f56624510eb63155ab330dcf0475b0728ed4)
11
+ - Autobuild of docusaurus docs [`5f4c47c`](https://github.com/eea/volto-eea-design-system/commit/5f4c47c93bf102fb198efc97e9f2cc60c162d0e3)
12
+ - change(container): restore maxWidth to 100% now that the last value is 1120px [`8b55c58`](https://github.com/eea/volto-eea-design-system/commit/8b55c58d3bbc8967b20de19a828aedd2f1473ee5)
13
+ - Autobuild of docusaurus docs [`71d6cd9`](https://github.com/eea/volto-eea-design-system/commit/71d6cd90f911960211d227bfc51a0f87fb868a8c)
14
+ - change(breadcrumb): removed padding from breadcrumb added by container [`c5df567`](https://github.com/eea/volto-eea-design-system/commit/c5df5675a519085badc030416e5bb784a9f73321)
15
+ - Autobuild of docusaurus docs [`473b5ff`](https://github.com/eea/volto-eea-design-system/commit/473b5ff05980780a1b8606f70f7a380bd0a077cc)
16
+ - prettier changes [`134da52`](https://github.com/eea/volto-eea-design-system/commit/134da52549b9d5eac5a12b7ad3005073500ac2c4)
17
+ - change(grid-story): added container as grid width is influenced by container width [`459f481`](https://github.com/eea/volto-eea-design-system/commit/459f4813ee3c5325a3db22d417ac5f23063bd4d2)
18
+ - change(container): modified all outputted widths to align to grid [`9f29cef`](https://github.com/eea/volto-eea-design-system/commit/9f29cefa4bfee1fe50844c8450de39ef4b0915d4)
19
+ - Autobuild of docusaurus docs [`52245bb`](https://github.com/eea/volto-eea-design-system/commit/52245bb5f2cec22cb964f61ef556a8985eaa3a49)
20
+ - change(breadcrumb): added vertical variant to the breadcrumbs like we do in Volto [`f405f84`](https://github.com/eea/volto-eea-design-system/commit/f405f8437be6be221b055a41c5d391f4cc94385d)
21
+ - Autobuild of docusaurus docs [`1ea4dd3`](https://github.com/eea/volto-eea-design-system/commit/1ea4dd3dc780f564a2ea9ff92ca00dc083380eed)
22
+ - change(segment): brought back overrides from pastanaga into our theme [`14efd02`](https://github.com/eea/volto-eea-design-system/commit/14efd021f81898bb0f2d3f1a2e8677445420591a)
23
+ - change(container): removed padding from containers restoring thus the defaults [`c2ed813`](https://github.com/eea/volto-eea-design-system/commit/c2ed813cf2f7ce284e33f2e94e02ff16678c2d05)
24
+ - Autobuild of docusaurus docs [`8652ed7`](https://github.com/eea/volto-eea-design-system/commit/8652ed7cbebd9508c620279c9f994aef6c5d952d)
25
+ - change(breakpoints): added also contentBreakpoint for backward compatibility [`b6c9212`](https://github.com/eea/volto-eea-design-system/commit/b6c9212378a37639e6154d8d8e837169bcbac8b5)
26
+ - Autobuild of docusaurus docs [`7928530`](https://github.com/eea/volto-eea-design-system/commit/792853064185f960f3f0a83a70b626b8bfc93d39)
27
+ - change(breakpoints): restore Semantic UI breakpoints, adding extra needed values [`e7f5b1e`](https://github.com/eea/volto-eea-design-system/commit/e7f5b1e4fac6453458078bb02cdc66c328843b59)
28
+ - Add storybook/docusaurus on PRs Refs #148775 [`0bab90a`](https://github.com/eea/volto-eea-design-system/commit/0bab90ad27d0ba27bd48399f1cab131a8bd88d58)
29
+
7
30
  #### [0.2.3](https://github.com/eea/volto-eea-design-system/compare/0.2.2...0.2.3)
8
31
 
32
+ > 29 April 2022
33
+
34
+ - Release [`#156`](https://github.com/eea/volto-eea-design-system/pull/156)
9
35
  - [R2] Button [`#154`](https://github.com/eea/volto-eea-design-system/pull/154)
10
36
  - [R2] Tab [`#155`](https://github.com/eea/volto-eea-design-system/pull/155)
11
37
  - Autobuild of docusaurus docs [`4418144`](https://github.com/eea/volto-eea-design-system/commit/4418144c194c49cdeaf6928eabd781e01d0a391e)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
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",
@@ -45,6 +45,9 @@ const Template = (args) => (
45
45
  <Breadcrumb.Section key="home" href={args.root}>
46
46
  <Image src={homeSVG} alt="home" />
47
47
  </Breadcrumb.Section>
48
+ <Breadcrumb.Divider>
49
+ <Icon className="ri-arrow-right-s-line"></Icon>
50
+ </Breadcrumb.Divider>
48
51
  {args.sections.map((section, index, sections) => [
49
52
  index !== 0 && (
50
53
  <Breadcrumb.Divider key={index}>
@@ -22,6 +22,7 @@ const Breadcrumbs = ({
22
22
  aria-label={'breadcrumbs'}
23
23
  className="breadcrumbs"
24
24
  attached
25
+ vertical
25
26
  >
26
27
  <Container>
27
28
  <Breadcrumb size={size}>
@@ -5,25 +5,10 @@
5
5
  .ui.breadcrumb {
6
6
  display: flex;
7
7
  align-items: center;
8
- padding-right: 1rem;
9
- padding-left: 1rem;
10
-
11
- //a.section {
12
- // color: #0074a3;
13
- //}
14
- //
15
- //.section.active {
16
- // color: #4e7372;
17
- //}
18
8
 
19
9
  .home.icon {
20
10
  margin-right: 0;
21
11
  }
22
-
23
- @media only screen and (min-width: @tabletBreakpoint) {
24
- padding-right: 0;
25
- padding-left: 0;
26
- }
27
12
  }
28
13
  /*******************************
29
14
  Theme Overrides
@@ -49,4 +34,3 @@
49
34
  font-size: @breadcrumbIconFontSize;
50
35
  }
51
36
  }
52
-
@@ -41,9 +41,9 @@
41
41
  .ui.form .ui.input input[type='url'],
42
42
  .ui.form textarea {
43
43
  height: 60px;
44
+ padding: @inputVerticalPadding 0;
44
45
  border-width: 0 0 @1px 0;
45
46
  border-radius: 0;
46
- padding: @inputVerticalPadding 0;
47
47
 
48
48
  &:focus {
49
49
  border-radius: 0;
@@ -178,7 +178,6 @@ p.ui.button {
178
178
  opacity: @searchButtonIconOpacity;
179
179
  }
180
180
 
181
-
182
181
  /************* Inverted Buttons *************/
183
182
  // Override the light colors with the defaults
184
183
 
@@ -188,6 +187,7 @@ p.ui.button {
188
187
  box-shadow: 0px 0px 0px @invertedBorderSize @primaryColor inset !important;
189
188
  color: @primaryColor;
190
189
  }
190
+
191
191
  .ui.inverted.primary.buttons .button:hover,
192
192
  .ui.inverted.primary.button:hover,
193
193
  .ui.inverted.primary.buttons .button:focus,
@@ -198,18 +198,22 @@ p.ui.button {
198
198
  .ui.inverted.primary.button:active {
199
199
  color: @invertedHoveredTextColor;
200
200
  }
201
+
201
202
  .ui.inverted.primary.buttons .button:hover,
202
203
  .ui.inverted.primary.button:hover {
203
204
  background-color: @primaryColorHover;
204
205
  }
206
+
205
207
  .ui.inverted.primary.buttons .button:focus,
206
208
  .ui.inverted.primary.button:focus {
207
209
  background-color: @primaryColorFocus;
208
210
  }
211
+
209
212
  .ui.inverted.primary.buttons .active.button,
210
213
  .ui.inverted.primary.active.button {
211
214
  background-color: @primaryColorActive;
212
215
  }
216
+
213
217
  .ui.inverted.primary.buttons .button:active,
214
218
  .ui.inverted.primary.button:active {
215
219
  background-color: @primaryColorDown;
@@ -221,6 +225,7 @@ p.ui.button {
221
225
  box-shadow: 0px 0px 0px @invertedBorderSize @secondaryColor inset !important;
222
226
  color: @secondaryColor;
223
227
  }
228
+
224
229
  .ui.inverted.secondary.buttons .button:hover,
225
230
  .ui.inverted.secondary.button:hover,
226
231
  .ui.inverted.secondary.buttons .button:focus,
@@ -231,19 +236,23 @@ p.ui.button {
231
236
  .ui.inverted.secondary.button:active {
232
237
  color: @invertedHoveredTextColor;
233
238
  }
239
+
234
240
  .ui.inverted.secondary.buttons .button:hover,
235
241
  .ui.inverted.secondary.button:hover {
236
242
  background-color: @secondaryColorHover;
237
243
  }
244
+
238
245
  .ui.inverted.secondary.buttons .button:focus,
239
246
  .ui.inverted.secondary.button:focus {
240
247
  background-color: @secondaryColorFocus;
241
248
  }
249
+
242
250
  .ui.inverted.secondary.buttons .active.button,
243
251
  .ui.inverted.secondary.active.button {
244
252
  background-color: @secondaryColorActive;
245
253
  }
254
+
246
255
  .ui.inverted.secondary.buttons .button:active,
247
256
  .ui.inverted.secondary.button:active {
248
257
  background-color: @secondaryColorDown;
249
- }
258
+ }
@@ -4,31 +4,16 @@
4
4
 
5
5
  /* All Sizes */
6
6
  .ui.container {
7
- width: 100%;
8
- padding-right: @mobilePadding;
9
- padding-left: @mobilePadding;
10
7
  transition: width 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045),
11
8
  margin-left 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045),
12
9
  margin-right 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045);
13
10
  }
14
11
 
15
- // TODO fix issue of large container padding and then remove this fix
16
- #toolbar .pastanaga-menu .ui.container {
17
- padding: @profileSectionPadding;
18
- }
19
12
 
20
- @media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) {
21
- .ui.container {
22
- padding-right: @tabletPadding;
23
- padding-left: @tabletPadding;
24
- }
25
- }
26
-
27
- @media only screen and (min-width: @computerBreakpoint) {
28
- .ui.container {
29
- padding-right: @computerPadding;
30
- padding-left: @computerPadding;
31
- }
13
+ // add padding to containers on edit section so that we display add and delete buttons
14
+ .section-edit .container {
15
+ padding: 0 3rem;
16
+ width: auto !important;
32
17
  }
33
18
 
34
19
  .contentWidth(@offset) {
@@ -13,14 +13,16 @@
13
13
 
14
14
  /* Minimum Gutter is used to determine the maximum container width for a given device */
15
15
 
16
- @maxWidth: 1400px;
16
+ @maxWidth: 100%;
17
+ @scrollbarWidth: 16px;
17
18
 
18
19
  /* Devices */
19
20
  @mobileMinimumGutter: 0em;
20
21
  @mobileWidth: auto;
21
- @mobileGutter: 1rem;
22
+ @mobileGutter: 1.25rem;
22
23
 
23
- @tabletMinimumGutter: (@emSize * 1);
24
+ @tabletEmSize: 14px;
25
+ @tabletMinimumGutter: (@tabletEmSize * 1);
24
26
  @tabletWidth: @tabletBreakpoint - (@tabletMinimumGutter * 2) - @scrollbarWidth;
25
27
  @tabletGutter: auto;
26
28
 
@@ -63,4 +65,3 @@
63
65
  @textSize: @large;
64
66
 
65
67
  /* Section */
66
- @profileSectionPadding: 0px;
@@ -1,3 +1,80 @@
1
+ /*******************************
2
+ Pastanaga Theme Overrides
3
+ *******************************/
4
+
5
+ .ui.basic.segment.content-area {
6
+ flex: 1 0 auto; /* IE11 fix, can't barely use flex: 1; */
7
+ padding-right: 0;
8
+ padding-left: 0;
9
+ }
10
+
11
+ .ui.primary.segment {
12
+ border-bottom: @4px solid @greyBorderColor;
13
+ font-size: @16px;
14
+ font-weight: @headerFontWeight;
15
+ }
16
+
17
+ .ui.secondary.segment {
18
+ font-size: @16px;
19
+ }
20
+
21
+ .ui.discreet.segment {
22
+ color: @lightGrey;
23
+ font-size: @14px;
24
+ }
25
+
26
+ .ui.form.segment {
27
+ padding: 0;
28
+
29
+ .ui.grid > .row {
30
+ padding-top: 0;
31
+ padding-bottom: 0;
32
+ }
33
+ }
34
+
35
+ .ui.actions.segment {
36
+ border-top: @1px solid @lightGreyBorderColor;
37
+ }
38
+
39
+ .inverted.segment a.item {
40
+ color: @white;
41
+ text-decoration: underline;
42
+ }
43
+
44
+ .pusher > .ui.basic.segment {
45
+ padding-bottom: 0;
46
+ }
47
+
48
+ .ui.secondary.attached.segment {
49
+ text-transform: uppercase;
50
+ }
51
+
52
+ .ui.segment.dashed {
53
+ border: 3px dashed #ccc;
54
+ box-shadow: none;
55
+ }
56
+
57
+ .users-control-panel .ui.clearing.segment.actions {
58
+ display: inline-block;
59
+ width: 100%;
60
+ text-transform: uppercase;
61
+ }
62
+
63
+ .users-control-panel table div.item::after {
64
+ display: none;
65
+ }
66
+
67
+ .ui.segment.imageborder {
68
+ display: flex;
69
+ height: 100%;
70
+ align-items: center;
71
+ }
72
+
73
+ .ui.segment.listing-item {
74
+ display: flex;
75
+ align-items: center;
76
+ }
77
+
1
78
  /*******************************
2
79
  Theme Overrides
3
80
  *******************************/
@@ -22,7 +22,6 @@
22
22
  align-items: center;
23
23
  justify-content: space-between;
24
24
  z-index: @topSectionZindex;
25
- width: 100% !important; // Semantic has auto
26
25
  }
27
26
  .item {
28
27
  display: flex;
@@ -392,6 +391,7 @@ Header Actions - Burger and Search Icons
392
391
  }
393
392
 
394
393
  .ui.text.menu {
394
+ flex-wrap: wrap;
395
395
  display: flex;
396
396
  width: 88%;
397
397
  max-height: 20px;
@@ -284,10 +284,15 @@
284
284
  --------------------*/
285
285
 
286
286
  @mobileBreakpoint : 320px;
287
- @tabletBreakpoint : 480px;
288
- @computerBreakpoint : 835px;
289
- @largeMonitorBreakpoint : 1025px;
290
- @widescreenMonitorBreakpoint : 1200px;
287
+ @mobileLandscapeBreakpoint : 480px; // introduced for the design system
288
+ @tabletBreakpoint : 768px;
289
+ @contentBreakpoint : 835px; // introduced for the design system
290
+ @computerBreakpoint : 992px;
291
+ @smallMonitorBreakpoint : 1024px; // introduced for the design system
292
+ @largeMonitorBreakpoint : 1200px;
293
+ @laptopMonitorBreakpoint : 1280px; // introduced for the design system
294
+ @siteBreakpoint : 1400px; // introduced for the design system
295
+ @widescreenMonitorBreakpoint : 1920px;
291
296
 
292
297
  /* Paddings for breakpoints */
293
298
  @mobilePadding : 1.875rem;
@@ -664,7 +669,6 @@
664
669
  @largestTabletScreen : (@computerBreakpoint - @1px);
665
670
  @largestSmallMonitor : (@largeMonitorBreakpoint - @1px);
666
671
  @largestLargeMonitor : (@widescreenMonitorBreakpoint - @1px);
667
- @mobileWidth: 1279px;
668
672
 
669
673
 
670
674
  /*-------------------