@eeacms/volto-eea-design-system 1.0.0-alpha.14 → 1.0.0-alpha.15
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 +26 -0
- package/package.json +1 -1
- package/src/ui/Card/Card.stories.jsx +89 -0
- package/theme/themes/eea/extras/header.less +1 -0
- package/theme/themes/eea/extras/header.variables +3 -3
- package/theme/themes/eea/extras/keyContent.variables +1 -1
- package/theme/themes/eea/globals/site.overrides +26 -1
- package/theme/themes/eea/globals/site.variables +1 -1
- package/theme/themes/eea/globals/utilities.less +14 -3
- package/theme/themes/eea/views/card.overrides +24 -1
- package/theme/themes/eea/views/card.variables +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,10 +4,36 @@ 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.15](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.14...1.0.0-alpha.15) - 7 February 2023
|
|
8
|
+
|
|
9
|
+
#### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
- feat(utilities): Complete list of text-align utilities - refs #160747 [Alin Voinea - [`224fab6`](https://github.com/eea/volto-eea-design-system/commit/224fab602184b8974f588c91a7412e3d03e4e2f7)]
|
|
12
|
+
- feat(small): CSS for small HTML tag - refs #160747 [Alin Voinea - [`ad3c0ad`](https://github.com/eea/volto-eea-design-system/commit/ad3c0adec4efa7cead69153d399c6452131c94cc)]
|
|
13
|
+
- feat(fw-light): Add font weight light utility - refs #160747 [Alin Voinea - [`c44cf57`](https://github.com/eea/volto-eea-design-system/commit/c44cf57db5845fbb9c07233aeedab79e1438f80f)]
|
|
14
|
+
- feat(Card): add teaser card grid story [Antonis Tarantilis - [`53cac0b`](https://github.com/eea/volto-eea-design-system/commit/53cac0b0d1c40ad6ad8c9dc91c5d24bfb160f98e)]
|
|
15
|
+
|
|
16
|
+
#### :bug: Bug Fixes
|
|
17
|
+
|
|
18
|
+
- fix(card): teaser card dimensions on tablet size #290 from eea/teaser-card-grid [ichim-david - [`013fdf5`](https://github.com/eea/volto-eea-design-system/commit/013fdf5cad347aee14bdc51553dbd95d972a7c66)]
|
|
19
|
+
|
|
20
|
+
#### :nail_care: Enhancements
|
|
21
|
+
|
|
22
|
+
- refactor(style-menu): add text-color to paragraphs styles #291 from eea/stylemenu-theme-colors [ichim-david - [`2d78307`](https://github.com/eea/volto-eea-design-system/commit/2d783075b8089184e50b1763226af0d60ed11786)]
|
|
23
|
+
- change(header): Small fix in search popup #292 from eea/search-popup [ichim-david - [`86c1305`](https://github.com/eea/volto-eea-design-system/commit/86c130539455b9a00b4b088b1871a98b9756df79)]
|
|
24
|
+
- change(card): added extra content for teaser card story [David Ichim - [`30690ae`](https://github.com/eea/volto-eea-design-system/commit/30690ae6c499682853cb19db10b0cdc13c6f9508)]
|
|
25
|
+
- change(header): Small fix in search popup [kreafox - [`3d622ea`](https://github.com/eea/volto-eea-design-system/commit/3d622ea99df5a1f1088f70998e38fd5bf43997cf)]
|
|
26
|
+
- refactor(style-menu): add text-color to paragraphs styles [nileshgulia1 - [`3446bc2`](https://github.com/eea/volto-eea-design-system/commit/3446bc2704603bbfead7ff6c72d4e3a1ce81c7d4)]
|
|
27
|
+
- change(color): darkCyan is now replaced everywhere by the new green [David Ichim - [`ef3791d`](https://github.com/eea/volto-eea-design-system/commit/ef3791de6e2ea23487791c717eefc575e21fd283)]
|
|
28
|
+
|
|
29
|
+
#### :hammer_and_wrench: Others
|
|
30
|
+
|
|
31
|
+
- Release alpha 15 [Alin Voinea - [`3b72b29`](https://github.com/eea/volto-eea-design-system/commit/3b72b29aaf9b3e1bfb7015808aafbd73a7167895)]
|
|
7
32
|
### [1.0.0-alpha.14](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.13.1...1.0.0-alpha.14) - 30 January 2023
|
|
8
33
|
|
|
9
34
|
#### :nail_care: Enhancements
|
|
10
35
|
|
|
36
|
+
- change(mobile menu): integrate a-z topic with menu rendering logic #287 from eea/develop [ichim-david - [`05d4c04`](https://github.com/eea/volto-eea-design-system/commit/05d4c04603e6572cd6f9b255faa03c4636d8efdb)]
|
|
11
37
|
- change(mobile menu): integrate a-z topic with menu rendering logic [David Ichim - [`246d3d8`](https://github.com/eea/volto-eea-design-system/commit/246d3d839b773e2f6e1fff7fed5f9aa7a4968daa)]
|
|
12
38
|
|
|
13
39
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -464,3 +464,92 @@ CarouselCards.argTypes = {
|
|
|
464
464
|
},
|
|
465
465
|
},
|
|
466
466
|
};
|
|
467
|
+
|
|
468
|
+
const TeaserCard = ({ variant, inverted, titleOnImage, card }) => (
|
|
469
|
+
<div className="column grid-block-teaser">
|
|
470
|
+
<div
|
|
471
|
+
className={`styled-teaser styled ${
|
|
472
|
+
variant === 'default' ? '' : variant
|
|
473
|
+
} ${inverted ? 'inverted' : ''}`}
|
|
474
|
+
>
|
|
475
|
+
<div
|
|
476
|
+
className={`ui card u-card max-3-lines title-max-3-lines ${
|
|
477
|
+
card.fluid ? 'fluid' : ''
|
|
478
|
+
} ${variant}`}
|
|
479
|
+
>
|
|
480
|
+
<a className="image" href={card.href}>
|
|
481
|
+
<img src={card.imgUrl} alt={card.title} className="ui image" />
|
|
482
|
+
{titleOnImage && (
|
|
483
|
+
<div className="gradient">
|
|
484
|
+
<div className="header">{card.title}</div>
|
|
485
|
+
</div>
|
|
486
|
+
)}
|
|
487
|
+
</a>
|
|
488
|
+
|
|
489
|
+
{!titleOnImage && (
|
|
490
|
+
<div className="content">
|
|
491
|
+
<div className="header">{card.title}</div>
|
|
492
|
+
<Card.Description>{card.description}</Card.Description>
|
|
493
|
+
</div>
|
|
494
|
+
)}
|
|
495
|
+
</div>
|
|
496
|
+
</div>
|
|
497
|
+
</div>
|
|
498
|
+
);
|
|
499
|
+
|
|
500
|
+
const TeaserTemplate = (args) => (
|
|
501
|
+
<Container>
|
|
502
|
+
<div className="block __grid teaserGrid centered three">
|
|
503
|
+
<div className="ui stackable stretched three column grid">
|
|
504
|
+
{args.cards.map((card, index) => (
|
|
505
|
+
<TeaserCard
|
|
506
|
+
variant={args.variant}
|
|
507
|
+
titleOnImage={args.titleOnImage}
|
|
508
|
+
inverted={args.inverted}
|
|
509
|
+
card={card}
|
|
510
|
+
key={index}
|
|
511
|
+
/>
|
|
512
|
+
))}
|
|
513
|
+
</div>
|
|
514
|
+
</div>
|
|
515
|
+
</Container>
|
|
516
|
+
);
|
|
517
|
+
|
|
518
|
+
export const TeaserCardGrid = TeaserTemplate.bind({});
|
|
519
|
+
TeaserCardGrid.args = {
|
|
520
|
+
titleOnImage: false,
|
|
521
|
+
variant: 'default',
|
|
522
|
+
inverted: false,
|
|
523
|
+
cards: [
|
|
524
|
+
{
|
|
525
|
+
title: "State of Europe's environment",
|
|
526
|
+
imgUrl:
|
|
527
|
+
'https://www.eea.europa.eu/media/pictures/european-environment-agency-building-with/image_large',
|
|
528
|
+
description:
|
|
529
|
+
'Leo fermentum sollicitudin suspendisse iaculis feugiat. Eget tellus blandit aenean mattis.Leo fermentum sollicitudin suspendisse iaculis feugiat. Eget tellus blandit aenean mattis.',
|
|
530
|
+
hasImage: true,
|
|
531
|
+
href: '/#',
|
|
532
|
+
fluid: true,
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
title: 'Climate',
|
|
536
|
+
imgUrl:
|
|
537
|
+
'https://www.eea.europa.eu/media/pictures/european-environment-agency-building-with/image_large',
|
|
538
|
+
hasImage: true,
|
|
539
|
+
description:
|
|
540
|
+
'Leo fermentum sollicitudin suspendisse iaculis feugiat. Eget tellus blandit aenean mattis.Leo fermentum sollicitudin suspendisse iaculis feugiat. Eget tellus blandit aenean mattis.',
|
|
541
|
+
href: '/#',
|
|
542
|
+
fluid: true,
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
title: 'Economy and resources',
|
|
546
|
+
imgUrl:
|
|
547
|
+
'https://www.eea.europa.eu/media/pictures/european-environment-agency-building-with/image_large',
|
|
548
|
+
hasImage: true,
|
|
549
|
+
description:
|
|
550
|
+
'Leo fermentum sollicitudin suspendisse iaculis feugiat. Eget tellus blandit aenean mattis.Leo fermentum sollicitudin suspendisse iaculis feugiat. Eget tellus blandit aenean mattis.',
|
|
551
|
+
href: '/#',
|
|
552
|
+
fluid: true,
|
|
553
|
+
},
|
|
554
|
+
],
|
|
555
|
+
};
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
@subsiteDividerHeight : 110%;
|
|
140
140
|
@subsiteDividerWidth : 1px;
|
|
141
141
|
@subsiteDividerTopPosition : 50%;
|
|
142
|
-
@subsiteDividerColor : @
|
|
142
|
+
@subsiteDividerColor : @secondaryColorCSSVar;
|
|
143
143
|
@mobileSubsiteFontSize : unit(@h6, em);
|
|
144
144
|
@tabletSubsiteFontSize : unit(@h4, em);
|
|
145
145
|
@computerSubsiteFontSize : unit(@h2, em);
|
|
@@ -233,10 +233,10 @@
|
|
|
233
233
|
|
|
234
234
|
/* Custom shadows for dropdowns */
|
|
235
235
|
@shadow-topbar-dropdown: 2px 0 2px -5px hsla(@shadow-color, calc(@shadow-strength + 6%));
|
|
236
|
-
@shadow-4-no-top:
|
|
236
|
+
@shadow-4-no-top:
|
|
237
237
|
0 0 0 0 hsla(@shadow-color, calc(@shadow-strength + 2%)),
|
|
238
238
|
0 1px 1px -2px hsla(@shadow-color, calc(@shadow-strength + 3%)),
|
|
239
239
|
0 2px 2px -2px hsla(@shadow-color, calc(@shadow-strength + 3%)),
|
|
240
240
|
0 5px 5px -2px hsla(@shadow-color, calc(@shadow-strength + 4%)),
|
|
241
241
|
0 9px 9px -2px hsla(@shadow-color, calc(@shadow-strength + 5%)),
|
|
242
|
-
0 16px 16px -2px hsla(@shadow-color, calc(@shadow-strength + 6%));
|
|
242
|
+
0 16px 16px -2px hsla(@shadow-color, calc(@shadow-strength + 6%));
|
|
@@ -72,8 +72,11 @@ h2, h3, h4, h5, h6 {
|
|
|
72
72
|
// text smaller than body has extra letterspacing as described in docusaurus
|
|
73
73
|
.tiny,
|
|
74
74
|
.caption,
|
|
75
|
-
.discreet
|
|
75
|
+
.discreet,
|
|
76
|
+
small {
|
|
76
77
|
letter-spacing: @font-letterspacing-1;
|
|
78
|
+
font-size: @font-size-00;
|
|
79
|
+
line-height: @font-lineheight-3;
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
/* Heading size adjustment */
|
|
@@ -107,3 +110,25 @@ a {
|
|
|
107
110
|
background: @lightLavender;
|
|
108
111
|
color: @black;
|
|
109
112
|
}
|
|
113
|
+
|
|
114
|
+
/* Add colors for paragraphs styles options in StyeMenu */
|
|
115
|
+
#style-menu.ui.dropdown .menu {
|
|
116
|
+
span:nth-of-type(1) {
|
|
117
|
+
color: @primaryColor;
|
|
118
|
+
span.text {
|
|
119
|
+
color: @primaryColor;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
span:nth-of-type(2) {
|
|
123
|
+
color: @secondaryColor;
|
|
124
|
+
span.text {
|
|
125
|
+
color: @secondaryColor;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
span:nth-of-type(3) {
|
|
129
|
+
color: @tertiaryColor;
|
|
130
|
+
span.text {
|
|
131
|
+
color: @tertiaryColor;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
@tertiaryColorCSSVar : var(--text-color-tertiary, @tertiaryColor);
|
|
64
64
|
|
|
65
65
|
@lightPrimaryColor : @mediumPersianBlue;
|
|
66
|
-
@lightSecondaryColor : @
|
|
66
|
+
@lightSecondaryColor : @green-4;
|
|
67
67
|
@lightTertiaryColor : @UCLABlue;
|
|
68
68
|
|
|
69
69
|
@darkPrimaryColor : @darkMidnightBlue;
|
|
@@ -35,10 +35,17 @@ h1, h2, h3, h4, h5, h6, p, span, .header {
|
|
|
35
35
|
|
|
36
36
|
// Text
|
|
37
37
|
.text-left,
|
|
38
|
-
.has--text--left
|
|
38
|
+
.has--text--left,
|
|
39
|
+
.has--textAlign--left { text-align: left !important; }
|
|
39
40
|
.text-center,
|
|
40
|
-
.has--text--center
|
|
41
|
-
.
|
|
41
|
+
.has--text--center,
|
|
42
|
+
.has--textAlign--center { text-align: center !important;}
|
|
43
|
+
.text-right,
|
|
44
|
+
.has--text--right,
|
|
45
|
+
.has--textAlign--right { text-align: right !important; }
|
|
46
|
+
.text-justify,
|
|
47
|
+
.has--text--justify,
|
|
48
|
+
.has--textAlign--justify { text-align: justify !important; }
|
|
42
49
|
.bold { font-weight: bold !important; }
|
|
43
50
|
|
|
44
51
|
.has--text--left {
|
|
@@ -88,3 +95,7 @@ h1, h2, h3, h4, h5, h6, p, span, .header {
|
|
|
88
95
|
border-bottom: @border-size-1 solid !important;
|
|
89
96
|
padding-bottom: @rem-space-2 !important;
|
|
90
97
|
}
|
|
98
|
+
|
|
99
|
+
.fw-light {
|
|
100
|
+
font-weight: @font-weight-3;
|
|
101
|
+
}
|
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
line-height: @imageTitleLineHeight;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
@media only screen and (min-width: @
|
|
285
|
+
@media only screen and (min-width: @computerBreakpoint) {
|
|
286
286
|
.card .gradient {
|
|
287
287
|
padding-block: @imageTitlePaddingBlock;
|
|
288
288
|
}
|
|
@@ -420,3 +420,26 @@
|
|
|
420
420
|
.ui.card > a:not(.ui) > i.icon {
|
|
421
421
|
color: @iconColor;
|
|
422
422
|
}
|
|
423
|
+
|
|
424
|
+
/*******************************
|
|
425
|
+
Teaser Card
|
|
426
|
+
*******************************/
|
|
427
|
+
// Teaser cards grid on tablet update padding and min-width
|
|
428
|
+
@media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) {
|
|
429
|
+
.ui.grid > .column.grid-block-teaser,
|
|
430
|
+
.ui.grid > .row > .column.grid-block-teaser {
|
|
431
|
+
padding-left: @tabletTeaserCardPaddingInline;
|
|
432
|
+
padding-right: @tabletTeaserCardPaddingInline;
|
|
433
|
+
}
|
|
434
|
+
.grid-block-teaser .ui.card {
|
|
435
|
+
min-width: @tabletTeaserCardMinWidth;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
// Added from listing-cards.less
|
|
440
|
+
.grid-block-teaser .ui.card.u-card .header {
|
|
441
|
+
display: -webkit-box !important;
|
|
442
|
+
overflow: hidden;
|
|
443
|
+
-webkit-box-orient: vertical;
|
|
444
|
+
-webkit-line-clamp: var(--title-max-lines, 3);
|
|
445
|
+
}
|