@eeacms/volto-eea-design-system 1.0.0-alpha.3 → 1.0.0-alpha.5
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/.github/workflows/node.js.yml +1 -6
- package/CHANGELOG.md +76 -0
- package/package.json +5 -4
- package/src/ui/Card/Card.stories.jsx +3 -0
- package/theme/themes/eea/elements/label.variables +5 -5
- package/theme/themes/eea/elements/list.overrides +6 -0
- package/theme/themes/eea/elements/list.variables +1 -1
- package/theme/themes/eea/extras/contentBox.less +2 -2
- package/theme/themes/eea/extras/tag.variables +1 -1
- package/theme/themes/eea/extras/tagList.less +5 -1
- package/theme/themes/eea/extras/tagList.variables +2 -1
- package/theme/themes/eea/globals/site.overrides +2 -2
- package/theme/themes/eea/globals/utilities.less +6 -4
- package/theme/themes/eea/tokens/colors.less +1 -1
- package/theme/themes/eea/views/card.overrides +42 -138
- package/theme/themes/eea/views/card.variables +17 -28
- package/website/docs/2-whatsnew.md +81 -3
- package/website/docs/webdev/3-Guidelines/2-colours.mdx +818 -0
- package/website/docs/webdev/3-Guidelines/_partials/_markdown-eea-color-palette.mdx +558 -0
- package/website/docs/webdev/3-Guidelines/_partials/_markdown-link-colors.mdx +20 -0
- package/website/docs/webdev/3-Guidelines/_partials/_markdown-state-colors.mdx +23 -0
- package/website/docs/webdev/3-Guidelines/_partials/_markdown-supplementary-colors.mdx +162 -0
- package/website/docs/webdev/md_components/button_components/showcase_markdown.md +7 -7
- package/website/docs/webdev/md_components/button_components/usage_markdown.md +7 -0
- package/website/docs/webdev/md_components/static/BISE.png +0 -0
- package/website/docs/webdev/md_components/static/FISE.png +0 -0
- package/website/docs/webdev/md_components/static/FISE_logo.svg +1 -0
- package/website/docs/webdev/md_components/static/WISEF.png +0 -0
- package/website/docs/webdev/md_components/static/WISEM.png +0 -0
- package/website/docs/webdev/md_components/static/newEEAlogo.png +0 -0
- package/website/docusaurus.config.js +1 -1
- package/website/src/css/custom.css +118 -2
- package/mockups/EEA component library.fig +0 -0
- package/mockups/README.md +0 -1
- package/mockups/page-templates/R1 R3 templates.fig +0 -0
- package/mockups/page-templates/WISE BISE FISE.fig +0 -0
- package/mockups/page-templates/datahub/Data hub updated proposal.fig +0 -0
- package/mockups/page-templates/homepage_selected_upd1.fig +0 -0
- package/mockups/special-designs/Mega Menu.fig +0 -0
- package/mockups/special-designs/New footer.fig +0 -0
- package/mockups/special-designs/Search (Final).fig +0 -0
- package/mockups/special-designs/Side Navigation.fig +0 -0
- package/website/docs/webdev/3-Guidelines/2-colours.md +0 -915
|
@@ -6,11 +6,6 @@ name: Storybook & Docusaurus CI deployment
|
|
|
6
6
|
on:
|
|
7
7
|
push:
|
|
8
8
|
branches: [ develop ]
|
|
9
|
-
paths:
|
|
10
|
-
- src/**
|
|
11
|
-
- theme/**
|
|
12
|
-
- website/**
|
|
13
|
-
- templates/**
|
|
14
9
|
|
|
15
10
|
jobs:
|
|
16
11
|
build:
|
|
@@ -46,7 +41,7 @@ jobs:
|
|
|
46
41
|
git commit -m "Autobuild of docusaurus docs"
|
|
47
42
|
git push
|
|
48
43
|
|
|
49
|
-
- uses: convictional/trigger-workflow-and-wait@v1.
|
|
44
|
+
- uses: convictional/trigger-workflow-and-wait@v1.6.5
|
|
50
45
|
with:
|
|
51
46
|
github_token: ${{ secrets.PAT_TOKEN }}
|
|
52
47
|
owner: 'eea'
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,82 @@ 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.5](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.4...1.0.0-alpha.5) - 29 November 2022
|
|
8
|
+
|
|
9
|
+
#### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
- feat(Iconography): import and showcase remix icons [Antonis Tarantilis - [`777112f`](https://github.com/eea/volto-eea-design-system/commit/777112f7e77ce8c74c3fd4384bff6ec9694aba04)]
|
|
12
|
+
|
|
13
|
+
#### :bug: Bug Fixes
|
|
14
|
+
|
|
15
|
+
- fix(contentBox): avoid text decoration for header-link added on cards [David Ichim - [`3ccb592`](https://github.com/eea/volto-eea-design-system/commit/3ccb592db6f465cec59124b94fb6918b513bb761)]
|
|
16
|
+
- fix(label): color for yellow variant as white isn't accessible on yellow color [David Ichim - [`91d8880`](https://github.com/eea/volto-eea-design-system/commit/91d8880a829d2728c49a1953f6d2d8c2c812990c)]
|
|
17
|
+
- fix(label): margin value for ribbon image left and right margin [David Ichim - [`f8e1129`](https://github.com/eea/volto-eea-design-system/commit/f8e1129734709d6034539a6522105af9d43fef20)]
|
|
18
|
+
- fix(lists): bullet position by using padding instead of margin [David Ichim - [`0ecae2e`](https://github.com/eea/volto-eea-design-system/commit/0ecae2e7fe61b98d8795f876a525fbbc873bf799)]
|
|
19
|
+
- fix(docusaurus): right bar overflow fix [Manthos Matzios - [`197c763`](https://github.com/eea/volto-eea-design-system/commit/197c763624f70556c62379bc0751763725d0fed3)]
|
|
20
|
+
|
|
21
|
+
#### :nail_care: Enhancements
|
|
22
|
+
|
|
23
|
+
- change(tag): set gap on tags element for margin between tag elements [David Ichim - [`726bc6d`](https://github.com/eea/volto-eea-design-system/commit/726bc6da821a366a5afa03659e614cc73ed02c0b)]
|
|
24
|
+
- refactor(docusaurus): move supplementary, state and link colors to partials [Giorgos Stamatis - [`2776be3`](https://github.com/eea/volto-eea-design-system/commit/2776be32615d7a6bdd8561a523fb9cfb1a85e38b)]
|
|
25
|
+
- refactor(docusaurus): fix side menu / moved more content in palette partial [Giorgos Stamatis - [`f5b7077`](https://github.com/eea/volto-eea-design-system/commit/f5b70775471369ca8f3193784b9bc66caa8fb76f)]
|
|
26
|
+
- refactor(docusaurus): eea color palette in separate file [Giorgos Stamatis - [`6c855df`](https://github.com/eea/volto-eea-design-system/commit/6c855df9c2238f8d21860ade4578aa969b68448e)]
|
|
27
|
+
- refactor(docusaurus): classes for color boxes [Giorgos Stamatis - [`80219d5`](https://github.com/eea/volto-eea-design-system/commit/80219d52bc63842d8e6382dbbe7d43cdc8a29b9c)]
|
|
28
|
+
- perf(docusaurus): added remixicon and roboto locally [Giorgos Stamatis - [`b67b1a7`](https://github.com/eea/volto-eea-design-system/commit/b67b1a72bc9cdc7c62a25967e81b430f8b62d558)]
|
|
29
|
+
|
|
30
|
+
#### :house: Internal changes
|
|
31
|
+
|
|
32
|
+
- chore(colours): fix wrong class name [Giorgos Stamatis - [`51ad0a8`](https://github.com/eea/volto-eea-design-system/commit/51ad0a8232f7f35cae05f5861d7822db852b3f8d)]
|
|
33
|
+
|
|
34
|
+
#### :house: Documentation changes
|
|
35
|
+
|
|
36
|
+
- docs(colors): switch FISE logo to png [Giorgos Stamatis - [`335471f`](https://github.com/eea/volto-eea-design-system/commit/335471fd95bbd78cd7bd80b960272baa0a32e1c5)]
|
|
37
|
+
- docs(colours): adjust logos heights [Antonis Tarantilis - [`854d4fb`](https://github.com/eea/volto-eea-design-system/commit/854d4fb761be7307e83e5dd2eb0fe5a0117727c5)]
|
|
38
|
+
- docs(colors): thematic pages integration [Dora Anastasiou - [`ea7a422`](https://github.com/eea/volto-eea-design-system/commit/ea7a4220a93d3fd2f437b51462f7f19d99f52595)]
|
|
39
|
+
- docs(colors): fix swatches accessibility [Dora Anastasiou - [`306cb74`](https://github.com/eea/volto-eea-design-system/commit/306cb74d3e06390a9c15da9b8b29c9d3c8f0f6c5)]
|
|
40
|
+
- docs(typography): merge designer and dev units [Giorgos Stamatis - [`65c240e`](https://github.com/eea/volto-eea-design-system/commit/65c240eddbf20b3fc870d301b96837f49ad9caca)]
|
|
41
|
+
- docs(colors): updated visited [Dora Anastasiou - [`0248fd1`](https://github.com/eea/volto-eea-design-system/commit/0248fd164cbf85168945797244977c305c67608d)]
|
|
42
|
+
- docs(FISE): replaced logo [Giorgos Stamatis - [`f7d8331`](https://github.com/eea/volto-eea-design-system/commit/f7d833127f769d79f099618b98789c6929b4ba08)]
|
|
43
|
+
- docs(colors): blue-grey-6 adjustment [Giorgos Stamatis - [`e7ab2d1`](https://github.com/eea/volto-eea-design-system/commit/e7ab2d15d3a617bc5b3713897f3e3521d9e2720a)]
|
|
44
|
+
- docs(docusaurus): typography and colors fixes according to comments on PR [Manthos Matzios - [`ae20a72`](https://github.com/eea/volto-eea-design-system/commit/ae20a7258cc88465fa0937895c2999952736f456)]
|
|
45
|
+
- docs(typography): readded extra font sizes, fixed fluid [Manthos Matzios - [`a4a5d89`](https://github.com/eea/volto-eea-design-system/commit/a4a5d892538a9713d14ac718b1bf2c771be09810)]
|
|
46
|
+
- docs(colors): minors updates and instructions [Manthos Matzios - [`84ac882`](https://github.com/eea/volto-eea-design-system/commit/84ac8828e430b4af2b461534b4e2f81189080145)]
|
|
47
|
+
- docs(docusaurus): Iconography updates, thematic platforms [Dora Anastasiou - [`2a0e596`](https://github.com/eea/volto-eea-design-system/commit/2a0e596bd002290e0759d8c5e568da4d318f7d59)]
|
|
48
|
+
- docs(colours): added active colour [Manthos Matzios - [`574f7a9`](https://github.com/eea/volto-eea-design-system/commit/574f7a95ea8a9510d03a104ad72fafafcae5d738)]
|
|
49
|
+
- docs(typography): changed em to percentages [Manthos Matzios - [`d417600`](https://github.com/eea/volto-eea-design-system/commit/d4176007ff4b421bc988b618488e0ba6b550f9fe)]
|
|
50
|
+
- docs(docusaurus): color updates [Manthos Matzios - [`cc13b54`](https://github.com/eea/volto-eea-design-system/commit/cc13b5499a9ae13bb45925a057f8ff4d6a2e4643)]
|
|
51
|
+
|
|
52
|
+
#### :hammer_and_wrench: Others
|
|
53
|
+
|
|
54
|
+
- Release 1.0.0-alpha.5 [Alin Voinea - [`dcd60c9`](https://github.com/eea/volto-eea-design-system/commit/dcd60c9285caf60b23ed97a9ca5daed0a943bc24)]
|
|
55
|
+
- feature(Docusaurus): Updates on color palette information including thematic websites #231 from eea/refactor-docusaurus [ichim-david - [`ec7843d`](https://github.com/eea/volto-eea-design-system/commit/ec7843dea07f626dc1c71ae1baa8bb5b0caa52f3)]
|
|
56
|
+
- Back to dev [Alin Voinea - [`563fbc5`](https://github.com/eea/volto-eea-design-system/commit/563fbc5fac0d4b0295690d0a3a4e04271753f18a)]
|
|
57
|
+
- perf(docusaurus): added remixicon and roboto locally [Giorgos Stamatis - [`b67b1a7`](https://github.com/eea/volto-eea-design-system/commit/b67b1a72bc9cdc7c62a25967e81b430f8b62d558)]
|
|
58
|
+
### [1.0.0-alpha.4](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.3...1.0.0-alpha.4) - 22 November 2022
|
|
59
|
+
|
|
60
|
+
#### :bug: Bug Fixes
|
|
61
|
+
|
|
62
|
+
- fix(cards-storybook): load slick carousel css for arrow and pagination styles [David Ichim - [`1159b1b`](https://github.com/eea/volto-eea-design-system/commit/1159b1beea0d7f7e026f1f1181fea91b7ac38ffa)]
|
|
63
|
+
|
|
64
|
+
#### :nail_care: Enhancements
|
|
65
|
+
|
|
66
|
+
- change(utilities): added has text classes to the text alignment utilities [David Ichim - [`e6974c6`](https://github.com/eea/volto-eea-design-system/commit/e6974c634551fe0d19a9c9da269f5c6fbaefab7a)]
|
|
67
|
+
- change(build): upgrade action to trigger workflow and wait to latest version [David Ichim - [`c63ad3f`](https://github.com/eea/volto-eea-design-system/commit/c63ad3fdae7972bb2c722dea3d046861fa0ac086)]
|
|
68
|
+
- refactor(card): theming implementation to allow has theming classes #265 from eea/card-refactoring [ichim-david - [`24edc99`](https://github.com/eea/volto-eea-design-system/commit/24edc99d85c0c619fc763a8774a96f7208f529a5)]
|
|
69
|
+
- change(utilities): modified class name for text align using has naming [David Ichim - [`579a0cb`](https://github.com/eea/volto-eea-design-system/commit/579a0cbe0f704eb9305119fdd162f4f29c8086d5)]
|
|
70
|
+
- change(theme): ensure that only direct children of container have a default top and bottom margin [David Ichim - [`7f8b8dc`](https://github.com/eea/volto-eea-design-system/commit/7f8b8dcc72827004d366e1c531311cf8734053fc)]
|
|
71
|
+
- change(theme): add slick-carousel dependency [David Ichim - [`f2eec7d`](https://github.com/eea/volto-eea-design-system/commit/f2eec7d7233adf86b9c4f61670eb87d9754ff94c)]
|
|
72
|
+
- change(card): expect has classes on the card directly [David Ichim - [`6a9e38b`](https://github.com/eea/volto-eea-design-system/commit/6a9e38bcae0656685a99b47800d556813663d2ee)]
|
|
73
|
+
- change(cards): allow rounded, inverted and theme parameter to be set by has classes [David Ichim - [`4b4ad89`](https://github.com/eea/volto-eea-design-system/commit/4b4ad893fc5d39629b4e8d874327f31ea2e7d885)]
|
|
74
|
+
- change(cards): refactor cards theming implementation [David Ichim - [`d4e4542`](https://github.com/eea/volto-eea-design-system/commit/d4e454238d540ef306f4c1a4f8e9a94c7aa10189)]
|
|
75
|
+
|
|
76
|
+
#### :hammer_and_wrench: Others
|
|
77
|
+
|
|
78
|
+
- Exclude mockups from npm package [Alin Voinea - [`634af8e`](https://github.com/eea/volto-eea-design-system/commit/634af8e3ddabec36a18597d8d7638888269875fc)]
|
|
79
|
+
- Update eea.github.io on all commits in develop branch [Alin Voinea - [`3d0b8d7`](https://github.com/eea/volto-eea-design-system/commit/3d0b8d745138bd2e0219560c8c895ce2c56dbf04)]
|
|
80
|
+
- Trigger re-build [Alin Voinea - [`3566dd2`](https://github.com/eea/volto-eea-design-system/commit/3566dd2b4d2cd12496e05b792c85a78de550dd50)]
|
|
81
|
+
- fix rounded selector [David Ichim - [`1fa1544`](https://github.com/eea/volto-eea-design-system/commit/1fa15442f03d3f3d9ef59afa14075b061483cf3a)]
|
|
82
|
+
- Back to dev. [Alin Voinea - [`ea47f6f`](https://github.com/eea/volto-eea-design-system/commit/ea47f6f10097f23f635d98f0c5483bebf8378fc4)]
|
|
7
83
|
### [1.0.0-alpha.3](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.2...1.0.0-alpha.3) - 16 November 2022
|
|
8
84
|
|
|
9
85
|
#### :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.
|
|
3
|
+
"version": "1.0.0-alpha.5",
|
|
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",
|
|
@@ -21,13 +21,14 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@eeacms/volto-corsproxy": "*",
|
|
24
|
-
"
|
|
24
|
+
"react-countup": "^6.3.0",
|
|
25
25
|
"react-slick": "^0.28.1",
|
|
26
|
-
"
|
|
26
|
+
"remixicon": "2.5.0",
|
|
27
|
+
"slick-carousel": "^1.8.1"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
|
-
"@plone/scripts": "*",
|
|
30
30
|
"@cypress/code-coverage": "^3.10.0",
|
|
31
|
+
"@plone/scripts": "*",
|
|
31
32
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
32
33
|
"md5": "^2.3.0"
|
|
33
34
|
},
|
|
@@ -2,6 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { Card, Image, Grid, Container, Icon, Button } from 'semantic-ui-react';
|
|
3
3
|
import Slider from 'react-slick';
|
|
4
4
|
|
|
5
|
+
import 'slick-carousel/slick/slick.css';
|
|
6
|
+
import 'slick-carousel/slick/slick-theme.css';
|
|
7
|
+
|
|
5
8
|
const tabletBreakpoint = 835;
|
|
6
9
|
const mobileBreakpoint = 480;
|
|
7
10
|
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
@labelFontSize: @fontSize;
|
|
10
10
|
|
|
11
11
|
@verticalAlign: baseline;
|
|
12
|
-
@verticalMargin:
|
|
13
|
-
@horizontalMargin:
|
|
12
|
+
@verticalMargin: 0;
|
|
13
|
+
@horizontalMargin: 0;
|
|
14
14
|
@backgroundColor: @grey;
|
|
15
15
|
@color: @white;
|
|
16
16
|
@backgroundImage: none;
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
@rightRibbonOffset: calc(100% + @ribbonMargin + @ribbonTriangleSize);
|
|
143
143
|
|
|
144
144
|
@ribbonImageTopDistance: 1rem;
|
|
145
|
-
@ribbonImageMargin:
|
|
145
|
+
@ribbonImageMargin: 0.05rem; /* Rounding Offset on Triangle */
|
|
146
146
|
@ribbonImageOffset: calc(-@ribbonImageMargin - @ribbonTriangleSize);
|
|
147
147
|
@rightRibbonImageOffset: calc(100% + @ribbonImageMargin + @ribbonTriangleSize);
|
|
148
148
|
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
|
|
174
174
|
@redTextColor: @white;
|
|
175
175
|
@orangeTextColor: @white;
|
|
176
|
-
@yellowTextColor: @
|
|
176
|
+
@yellowTextColor: @textColor;
|
|
177
177
|
@oliveTextColor: @white;
|
|
178
178
|
@greenTextColor: @white;
|
|
179
179
|
@tealTextColor: @white;
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
|
|
188
188
|
@redHoverTextColor: @white;
|
|
189
189
|
@orangeHoverTextColor: @white;
|
|
190
|
-
@yellowHoverTextColor: @
|
|
190
|
+
@yellowHoverTextColor: @textColor;
|
|
191
191
|
@oliveHoverTextColor: @white;
|
|
192
192
|
@greenHoverTextColor: @white;
|
|
193
193
|
@tealHoverTextColor: @white;
|
|
@@ -19,6 +19,12 @@ dl dd {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/* Unordered list */
|
|
22
|
+
|
|
23
|
+
// use padding instead
|
|
24
|
+
ul.ui.list, .ui.bulleted.list {
|
|
25
|
+
padding-left: @bulletDistance;
|
|
26
|
+
margin-left: 0;
|
|
27
|
+
}
|
|
22
28
|
.ui.bulleted.list .list > .item:before,
|
|
23
29
|
.ui.bulleted.list .list > a.item:before,
|
|
24
30
|
.ui.bulleted.list > .item:before,
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
--text-color-hover: @backgroundColorSupplementary;
|
|
56
56
|
}
|
|
57
57
|
// inherit link
|
|
58
|
-
.content-box[class*="ary"] a:not(.ui, .item) {
|
|
58
|
+
.content-box[class*="ary"] a:not(.ui, .item, .header-link) {
|
|
59
59
|
color: inherit;
|
|
60
60
|
text-decoration: underline;
|
|
61
61
|
}
|
|
@@ -64,4 +64,4 @@
|
|
|
64
64
|
.content-box .slate-editor-link {
|
|
65
65
|
color: inherit;
|
|
66
66
|
text-decoration: underline;
|
|
67
|
-
}
|
|
67
|
+
}
|
|
@@ -15,17 +15,21 @@
|
|
|
15
15
|
flex-wrap: wrap;
|
|
16
16
|
width: @tagsBodyWidth;
|
|
17
17
|
line-height: @tagsLineHeight;
|
|
18
|
+
gap: @tagsGap;
|
|
18
19
|
|
|
19
20
|
.tags-title {
|
|
20
21
|
text-align: right;
|
|
21
22
|
height: @tagsLineHeight;
|
|
22
23
|
color: @tagsTitleFontColor;
|
|
23
|
-
margin-right: @tagsTitleMargin;
|
|
24
24
|
font-weight: @tagsFontWeight;
|
|
25
25
|
font-size: @tagsFontSize;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
.tags.labels {
|
|
30
|
+
gap: @tagsLabelsGap;
|
|
31
|
+
}
|
|
32
|
+
|
|
29
33
|
.tags.left {
|
|
30
34
|
justify-content: left;
|
|
31
35
|
}
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
/* Body */
|
|
6
6
|
@tagsBodyWidth : 100%;
|
|
7
|
+
@tagsLabelsGap : 0.5rem;
|
|
8
|
+
@tagsGap : 1rem;
|
|
7
9
|
|
|
8
10
|
/* Tags Title */
|
|
9
11
|
@tagsTitleFontColor : @textColorCSSVar;
|
|
10
|
-
@tagsTitleMargin : 1rem;
|
|
11
12
|
@tagsFontWeight : 400;
|
|
12
13
|
@tagsFontSize : 1.125rem;
|
|
13
14
|
@tagsLineHeight : 1.312rem;
|
|
@@ -63,8 +63,8 @@ h2, h3, h4, h5, h6 {
|
|
|
63
63
|
--layout-max-width: @wideWidth;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
// add a 1rem margin top and bottom on all styled classes
|
|
67
|
-
[class*="styled-"] {
|
|
66
|
+
// add a 1rem margin top and bottom on all direct styled classes from container
|
|
67
|
+
[class~="container"] > [class*="styled-"] {
|
|
68
68
|
margin-top: @rem-space-4;
|
|
69
69
|
margin-bottom: @rem-space-4;
|
|
70
70
|
}
|
|
@@ -34,16 +34,18 @@ h1, h2, h3, h4, h5, h6, p, span, .header {
|
|
|
34
34
|
.flex-items-center { align-items: center !important; }
|
|
35
35
|
|
|
36
36
|
// Text
|
|
37
|
-
.text-left
|
|
38
|
-
.text
|
|
37
|
+
.text-left,
|
|
38
|
+
.has--text--left { text-align: left !important; }
|
|
39
|
+
.text-center,
|
|
40
|
+
.has--text--center { text-align: center !important;}
|
|
39
41
|
.text-right { text-align: right !important; }
|
|
40
42
|
.bold { font-weight: bold !important; }
|
|
41
43
|
|
|
42
|
-
.
|
|
44
|
+
.has--text--left {
|
|
43
45
|
--text-align: left;
|
|
44
46
|
}
|
|
45
47
|
|
|
46
|
-
.
|
|
48
|
+
.has--text--center {
|
|
47
49
|
--text-align: center;
|
|
48
50
|
--justify-content: space-evenly;
|
|
49
51
|
}
|
|
@@ -58,6 +58,6 @@
|
|
|
58
58
|
@grey-1: #F9F9F9;
|
|
59
59
|
@grey-2: #E6E7E8;
|
|
60
60
|
@grey-3: #BCBEC0;
|
|
61
|
-
@grey-4: #67696b;
|
|
61
|
+
@grey-4: #67696b; /* 10% shade of #808285 which passed AA validation on white bg */
|
|
62
62
|
@grey-5: #323232;
|
|
63
63
|
@grey-6: #000000;
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
.ui.card {
|
|
17
17
|
height: 100%;
|
|
18
18
|
text-align: var(--text-align, @cardTextAlign);
|
|
19
|
+
background-color: var(--card-background-color, @background);
|
|
20
|
+
color: var(--card-text-color, @cardColor);
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
.card .meta .date {
|
|
@@ -28,19 +30,13 @@
|
|
|
28
30
|
height: @cardImageHeight;
|
|
29
31
|
|
|
30
32
|
img {
|
|
31
|
-
width: @imageWidth;
|
|
32
|
-
height: @imageHeight;
|
|
33
|
+
width: var(--card-image-width, @imageWidth);
|
|
34
|
+
height: var(--card-image-width, @imageHeight);
|
|
33
35
|
object-fit: @imageObjectFit;
|
|
34
36
|
object-position: @imageObjectPosition;
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
|
|
38
|
-
.ui.cards > .card > i.icon,
|
|
39
|
-
.ui.cards > .card > a:not(.ui) > i.icon,
|
|
40
|
-
.ui.card > i.icon,
|
|
41
|
-
.ui.card > a:not(.ui) > i.icon {
|
|
42
|
-
color: @iconColor;
|
|
43
|
-
}
|
|
44
40
|
|
|
45
41
|
.ui.cards > .card > .content > *:not(:last-child),
|
|
46
42
|
.ui.card > .content > *:not(:last-child) {
|
|
@@ -87,151 +83,46 @@
|
|
|
87
83
|
/*******************************
|
|
88
84
|
Primary
|
|
89
85
|
*******************************/
|
|
90
|
-
|
|
91
|
-
.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.ui.card.primary > .content > .header {
|
|
97
|
-
color: @primaryHeaderColor;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.ui.card.primary > i.icon,
|
|
101
|
-
.ui.card.primary > a:not(.ui) > i.icon,
|
|
102
|
-
.ui.card.primary > .content a:not(.ui),
|
|
103
|
-
.ui.card.primary > .content a:not(.ui):hover,
|
|
104
|
-
.ui.card.primary > .content > .description {
|
|
105
|
-
color: @primaryDescriptionColor;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.ui.card.primary > .extra.content a:not(.ui) {
|
|
109
|
-
color: @primaryExtraLinkColor;
|
|
110
|
-
|
|
111
|
-
&:hover {
|
|
112
|
-
color: @primaryExtraLinkHoverColor;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.ui.card.primary > .content > .meta,
|
|
117
|
-
.ui.card.primary > .content > .meta a:not(.ui) {
|
|
118
|
-
color: @primaryMetaColor;
|
|
86
|
+
.card.has--theme--primary,
|
|
87
|
+
.card.primary {
|
|
88
|
+
--card-background-color: @primaryCardBackground;
|
|
89
|
+
--card-text-color: @primaryCardColor;
|
|
119
90
|
}
|
|
120
|
-
|
|
121
91
|
/* Inverted */
|
|
122
|
-
.
|
|
123
|
-
.
|
|
124
|
-
color: @
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
.ui.card.primary.inverted > a:not(.ui) > i.icon,
|
|
128
|
-
.ui.card.primary.inverted > .content a:not(.ui),
|
|
129
|
-
.ui.card.primary.inverted > .extra.content a:not(.ui) {
|
|
130
|
-
color: @invertedPrimaryContentColor;
|
|
131
|
-
|
|
132
|
-
&:hover {
|
|
133
|
-
color: @invertedPrimaryColorHover;
|
|
134
|
-
}
|
|
92
|
+
.card.has--theme--primary.has--inverted--true,
|
|
93
|
+
.card.primary.inverted {
|
|
94
|
+
--card-background-color: @invertedPrimaryCardBackgroundColor;
|
|
95
|
+
--card-text-color: @invertedPrimaryCardColor;
|
|
135
96
|
}
|
|
136
97
|
|
|
137
98
|
/*******************************
|
|
138
99
|
Secondary
|
|
139
100
|
*******************************/
|
|
140
|
-
|
|
141
|
-
.
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.ui.card.secondary > i.icon,
|
|
147
|
-
.ui.card.secondary > a:not(.ui) > i.icon,
|
|
148
|
-
.ui.card.secondary > .content a:not(.ui),
|
|
149
|
-
.ui.card.secondary > .content a:not(.ui):hover,
|
|
150
|
-
.ui.card.secondary > .content > .header {
|
|
151
|
-
color: @secondaryHeaderColor;
|
|
101
|
+
.card.has--theme--secondary,
|
|
102
|
+
.card.secondary {
|
|
103
|
+
--card-background-color: @secondaryCardBackground;
|
|
104
|
+
--card-text-color: @secondaryCardColor;
|
|
152
105
|
}
|
|
153
|
-
|
|
154
|
-
.ui.card.secondary > .content > .description {
|
|
155
|
-
color: @secondaryDescriptionColor;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.ui.card.secondary > .extra.content a:not(.ui) {
|
|
159
|
-
color: @secondaryExtraLinkColor;
|
|
160
|
-
|
|
161
|
-
&:hover {
|
|
162
|
-
color: @secondaryExtraLinkHoverColor;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.ui.card.secondary > .content > .meta,
|
|
167
|
-
.ui.card.secondary > .content > .meta a:not(.ui) {
|
|
168
|
-
color: @secondaryMetaColor;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
106
|
/* Inverted */
|
|
172
|
-
.
|
|
173
|
-
.
|
|
174
|
-
color: @
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
.ui.card.secondary.inverted > a:not(.ui) > i.icon,
|
|
178
|
-
.ui.card.secondary.inverted > .content a:not(.ui),
|
|
179
|
-
.ui.card.secondary.inverted > .extra.content a:not(.ui) {
|
|
180
|
-
color: @invertedSecondaryContentColor;
|
|
181
|
-
|
|
182
|
-
&:hover {
|
|
183
|
-
color: @invertedSecondaryColorHover;
|
|
184
|
-
}
|
|
107
|
+
.card.has--theme--secondary.has--inverted--true,
|
|
108
|
+
.card.secondary.inverted {
|
|
109
|
+
background-color: @invertedSecondaryCardBackgroundColor;
|
|
110
|
+
color: @invertedSecondaryCardColor;
|
|
185
111
|
}
|
|
186
112
|
|
|
187
113
|
/*******************************
|
|
188
114
|
Tertiary
|
|
189
115
|
*******************************/
|
|
190
|
-
|
|
191
|
-
.
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.ui.card.tertiary > i.icon,
|
|
197
|
-
.ui.card.tertiary > a:not(.ui) > i.icon,
|
|
198
|
-
.ui.card.tertiary > .content a:not(.ui),
|
|
199
|
-
.ui.card.tertiary > .content a:not(.ui):hover,
|
|
200
|
-
.ui.card.tertiary > .content > .header {
|
|
201
|
-
color: @tertiaryHeaderColor;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.ui.card.tertiary > .content > .description {
|
|
205
|
-
color: @tertiaryDescriptionColor;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.ui.card.tertiary > .extra.content a:not(.ui) {
|
|
209
|
-
color: @tertiaryExtraLinkColor;
|
|
210
|
-
|
|
211
|
-
&:hover {
|
|
212
|
-
color: @tertiaryExtraLinkHoverColor;
|
|
213
|
-
}
|
|
116
|
+
.card.has--theme--tertiary,
|
|
117
|
+
.card.tertiary {
|
|
118
|
+
--card-background-color: @tertiaryCardBackground;
|
|
119
|
+
--card-text-color: @tertiaryCardColor;
|
|
214
120
|
}
|
|
215
|
-
|
|
216
|
-
.ui.card.tertiary > .content > .meta,
|
|
217
|
-
.ui.card.tertiary > .content > .meta a:not(.ui) {
|
|
218
|
-
color: @tertiaryMetaColor;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
121
|
/* Inverted */
|
|
222
|
-
.
|
|
223
|
-
.
|
|
224
|
-
color:
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
.ui.card.tertiary.inverted > a:not(.ui) > i.icon,
|
|
228
|
-
.ui.card.tertiary.inverted > .content a:not(.ui),
|
|
229
|
-
.ui.card.tertiary.inverted > .extra.content a:not(.ui) {
|
|
230
|
-
color: @invertedTertiaryContentColor;
|
|
231
|
-
|
|
232
|
-
&:hover {
|
|
233
|
-
color: @invertedTertiaryColorHover;
|
|
234
|
-
}
|
|
122
|
+
.card.has--theme--tertiary.has--inverted--true,
|
|
123
|
+
.card.tertiary.inverted {
|
|
124
|
+
--card-background-color: @invertedTertiaryCardBackgroundColor;
|
|
125
|
+
--card-text-color: @invertedTertiaryCardColor;
|
|
235
126
|
}
|
|
236
127
|
|
|
237
128
|
/*******************************
|
|
@@ -239,11 +130,17 @@
|
|
|
239
130
|
*******************************/
|
|
240
131
|
|
|
241
132
|
.ui.cards > .ui.card.rounded > .image,
|
|
133
|
+
.ui.card.has--rounded--true > .image,
|
|
242
134
|
.ui.card.rounded > .image {
|
|
243
135
|
height: auto;
|
|
244
136
|
}
|
|
245
137
|
|
|
138
|
+
.card.has--rounded--true {
|
|
139
|
+
--card-image-width: @roundedImageWidth;
|
|
140
|
+
--card-image-height: @roundedImageHeight;
|
|
141
|
+
}
|
|
246
142
|
.ui.cards .ui.card.rounded,
|
|
143
|
+
.ui.card.has--rounded--true,
|
|
247
144
|
.ui.card.rounded {
|
|
248
145
|
padding-top: @iconCardPaddingTop;
|
|
249
146
|
border: none;
|
|
@@ -479,4 +376,11 @@
|
|
|
479
376
|
.icon {
|
|
480
377
|
margin: auto;
|
|
481
378
|
}
|
|
482
|
-
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.ui.cards > .card > i.icon,
|
|
382
|
+
.ui.cards > .card > a:not(.ui) > i.icon,
|
|
383
|
+
.ui.card > i.icon,
|
|
384
|
+
.ui.card > a:not(.ui) > i.icon {
|
|
385
|
+
color: @iconColor;
|
|
386
|
+
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
--------------------*/
|
|
8
8
|
|
|
9
9
|
@cardBorder: 1px solid @midGray;
|
|
10
|
+
@cardColor: @tertiaryColor;
|
|
10
11
|
@background: @white;
|
|
11
12
|
|
|
12
13
|
/* Shadow */
|
|
@@ -84,13 +85,13 @@
|
|
|
84
85
|
@headerFontWeight: @bold;
|
|
85
86
|
@headerFontSize: 1.125rem;
|
|
86
87
|
@headerLineHeightOffset: -(@lineHeight - 1em) / 2;
|
|
87
|
-
@headerColor:
|
|
88
|
+
@headerColor: inherit;
|
|
88
89
|
|
|
89
90
|
/* Metadata */
|
|
90
91
|
@metaJustifyContent: space-between;
|
|
91
92
|
@metaFontSize: @absoluteMedium;
|
|
92
93
|
@metaSpacing: 0.3em;
|
|
93
|
-
@metaColor:
|
|
94
|
+
@metaColor: inherit;
|
|
94
95
|
|
|
95
96
|
/* Icons */
|
|
96
97
|
@iconCardPaddingTop: @rem-space-4;
|
|
@@ -105,8 +106,8 @@
|
|
|
105
106
|
@likeActiveColor: #FF2733;
|
|
106
107
|
|
|
107
108
|
/* Links */
|
|
108
|
-
@contentLinkColor:
|
|
109
|
-
@contentLinkHoverColor:
|
|
109
|
+
@contentLinkColor: inherit;
|
|
110
|
+
@contentLinkHoverColor: inherit;
|
|
110
111
|
@contentLinkFontWeight: @bold;
|
|
111
112
|
@contentLinkTransition: color @defaultDuration @defaultEasing;
|
|
112
113
|
@contentLinkTextDecoration: underline;
|
|
@@ -240,38 +241,26 @@
|
|
|
240
241
|
/*******************************
|
|
241
242
|
Primary
|
|
242
243
|
*******************************/
|
|
243
|
-
@
|
|
244
|
-
@
|
|
245
|
-
@
|
|
246
|
-
@
|
|
247
|
-
@primaryExtraLinkHoverColor: @white;
|
|
248
|
-
@primaryMetaColor: @white;
|
|
249
|
-
@invertedPrimaryContentColor: @primaryColor;
|
|
250
|
-
@invertedPrimaryColorHover: @primaryColorHover;
|
|
244
|
+
@primaryCardBackground: @primaryColor;
|
|
245
|
+
@primaryCardColor: @white;
|
|
246
|
+
@invertedPrimaryCardColor: @primaryColor;
|
|
247
|
+
@invertedPrimaryCardBackgroundColor: @white;
|
|
251
248
|
|
|
252
249
|
/*******************************
|
|
253
250
|
Secondary
|
|
254
251
|
*******************************/
|
|
255
|
-
@
|
|
256
|
-
@
|
|
257
|
-
@
|
|
258
|
-
@
|
|
259
|
-
@secondaryExtraLinkHoverColor: @white;
|
|
260
|
-
@secondaryMetaColor: @white;
|
|
261
|
-
@invertedSecondaryContentColor: @secondaryColor;
|
|
262
|
-
@invertedSecondaryColorHover: @secondaryColorHover;
|
|
252
|
+
@secondaryCardBackground: @secondaryColor;
|
|
253
|
+
@secondaryCardColor: @white;
|
|
254
|
+
@invertedSecondaryCardColor: @secondaryColor;
|
|
255
|
+
@invertedSecondaryCardBackgroundColor: @white;
|
|
263
256
|
|
|
264
257
|
/*******************************
|
|
265
258
|
Tertiary
|
|
266
259
|
*******************************/
|
|
267
|
-
@
|
|
268
|
-
@
|
|
269
|
-
@
|
|
270
|
-
@
|
|
271
|
-
@tertiaryExtraLinkHoverColor: @white;
|
|
272
|
-
@tertiaryMetaColor: @white;
|
|
273
|
-
@invertedTertiaryContentColor: @tertiaryColor;
|
|
274
|
-
@invertedTertiaryColorHover: @tertiaryColorHover;
|
|
260
|
+
@tertiaryCardBackground: @tertiaryColor;
|
|
261
|
+
@tertiaryCardColor: @white;
|
|
262
|
+
@invertedTertiaryCardColor: @tertiaryColor;
|
|
263
|
+
@invertedTertiaryCardBackgroundColor: @white;
|
|
275
264
|
|
|
276
265
|
/*******************************
|
|
277
266
|
Rounded Card
|