@eeacms/volto-eea-design-system 1.0.0-beta.4 → 1.0.0-beta.6
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 +66 -1
- package/package.json +3 -1
- package/src/helpers/index.js +1 -0
- package/src/helpers/useOnScreen.js +31 -0
- package/src/ui/Footer/Footer.jsx +8 -1
- package/src/ui/Footer/FooterSites.jsx +8 -2
- package/src/ui/Footer/SubFooter.jsx +7 -2
- package/src/ui/Header/Header.jsx +6 -2
- package/templates/eea.hbs +4 -6
- package/theme/theme.config +0 -1
- package/theme/theme.less +7 -3
- package/theme/themes/eea/elements/container.overrides +5 -0
- package/theme/themes/eea/elements/image.overrides +71 -0
- package/theme/themes/eea/elements/image.variables +8 -0
- package/theme/themes/eea/extras/copyright.less +22 -0
- package/theme/themes/eea/extras/copyright.variables +16 -0
- package/theme/themes/eea/extras/footer.less +38 -23
- package/theme/themes/eea/extras/footer.variables +1 -0
- package/theme/themes/eea/globals/site.overrides +6 -0
- package/theme/themes/eea/globals/site.variables +1 -0
- package/theme/themes/eea/globals/utilities.less +13 -0
- package/theme/themes/eea/tokens/colors.less +6 -6
- package/theme/themes/eea/views/card.overrides +7 -4
- package/theme/themes/eea/views/card.variables +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,72 @@ 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-beta.
|
|
7
|
+
### [1.0.0-beta.6](https://github.com/eea/volto-eea-design-system/compare/1.0.0-beta.5...1.0.0-beta.6) - 10 March 2023
|
|
8
|
+
|
|
9
|
+
#### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
- feat(site): serve Roboto fonts from eea design system package instead of google fonts #311 from eea/roboto-library [ichim-david - [`f6a1b3e`](https://github.com/eea/volto-eea-design-system/commit/f6a1b3e3864a0bc8602e9c434ff70746bba59f44)]
|
|
12
|
+
|
|
13
|
+
#### :bug: Bug Fixes
|
|
14
|
+
|
|
15
|
+
- fix(storybook): add fontDisplay [Giorgos Stamatis - [`078966a`](https://github.com/eea/volto-eea-design-system/commit/078966a6a5c7277d36fcd31bb4c0704bcc43e523)]
|
|
16
|
+
- fix: full-width is now properly sized [Miu Razvan - [`6e2e348`](https://github.com/eea/volto-eea-design-system/commit/6e2e3482d658febbd692112608df14279bed05e7)]
|
|
17
|
+
|
|
18
|
+
#### :nail_care: Enhancements
|
|
19
|
+
|
|
20
|
+
- change(colors:) update the design system colour palette #312 from eea/update-color-palette [ichim-david - [`a5fb694`](https://github.com/eea/volto-eea-design-system/commit/a5fb69465717dbdc0fe8091640a0e46f66199b65)]
|
|
21
|
+
- change(image): copyright position fixes, moved image floating to image-block-container [David Ichim - [`53422e0`](https://github.com/eea/volto-eea-design-system/commit/53422e0ea345a7cb6e8cb07bf9006b48d86ded58)]
|
|
22
|
+
- refactor(storybook): restored site variables [Giorgos Stamatis - [`a48478b`](https://github.com/eea/volto-eea-design-system/commit/a48478bae9bdf1d9275be999e1ec8382f10a2fec)]
|
|
23
|
+
- refactor(docusaurus): added roboto library [Giorgos Stamatis - [`19de7b1`](https://github.com/eea/volto-eea-design-system/commit/19de7b19fe795870102000bfebbf452d88b3a7b1)]
|
|
24
|
+
- refactor(storybook): added roboto library [Giorgos Stamatis - [`e991621`](https://github.com/eea/volto-eea-design-system/commit/e9916215728dda0ff423f8196e7442588058042e)]
|
|
25
|
+
- change(copyright): implemented copyright hover design [David Ichim - [`6b12441`](https://github.com/eea/volto-eea-design-system/commit/6b1244163de7ff58d1529fdd791502c862ee48ec)]
|
|
26
|
+
- refactor(tokens): update colours [Giorgos Stamatis - [`3a2c1e1`](https://github.com/eea/volto-eea-design-system/commit/3a2c1e1da8f0224e08f9f8afac3f0a74f7ce91d3)]
|
|
27
|
+
|
|
28
|
+
#### :house: Internal changes
|
|
29
|
+
|
|
30
|
+
- chore(storybook): switched google fonts to true [Giorgos Stamatis - [`4a8cae4`](https://github.com/eea/volto-eea-design-system/commit/4a8cae46582356cc24ec3cd7ec47e692bc67a6a5)]
|
|
31
|
+
- chore(lint): lint [Giorgos Stamatis - [`9b0f125`](https://github.com/eea/volto-eea-design-system/commit/9b0f1256a8b0a583ac7724a8d88259c615d7e0c7)]
|
|
32
|
+
- chore(storybook): lint [Giorgos Stamatis - [`29bc809`](https://github.com/eea/volto-eea-design-system/commit/29bc809ab2e9fa4207b8b067785e6b17e91db3b4)]
|
|
33
|
+
- chore(colours): changed back yellow 6 [Giorgos Stamatis - [`87c9bbc`](https://github.com/eea/volto-eea-design-system/commit/87c9bbc0ec9a2a0f4bf8eeb03525d43ce6f502be)]
|
|
34
|
+
|
|
35
|
+
#### :house: Documentation changes
|
|
36
|
+
|
|
37
|
+
- docs(colours): accessibility [Dora Anastasiou - [`ee342aa`](https://github.com/eea/volto-eea-design-system/commit/ee342aa6af3863d243222eaa89709be2ba61f988)]
|
|
38
|
+
- docs(colours): colours update [Dora Anastasiou - [`161007e`](https://github.com/eea/volto-eea-design-system/commit/161007e2480aa79517c4ca772364a12a0756f1af)]
|
|
39
|
+
|
|
40
|
+
#### :hammer_and_wrench: Others
|
|
41
|
+
|
|
42
|
+
- test(cypress): Use latest stable Volto for testing [Alin Voinea - [`2051661`](https://github.com/eea/volto-eea-design-system/commit/20516617ae045f48c37a7ac7ad05c3d1090339b3)]
|
|
43
|
+
- Update What's new section [Alin Voinea - [`caa4b5d`](https://github.com/eea/volto-eea-design-system/commit/caa4b5d93affa7b63a332eaed9e73ea161a508cf)]
|
|
44
|
+
- Prepare final release 1.0.0 [Alin Voinea - [`ef4383d`](https://github.com/eea/volto-eea-design-system/commit/ef4383d05b295cbbb377f877522b9f83cd0873ef)]
|
|
45
|
+
- lint fix [David Ichim - [`599f509`](https://github.com/eea/volto-eea-design-system/commit/599f5098904f607bd694dd5d2e642c8820f11b3c)]
|
|
46
|
+
- Back to dev [Alin Voinea - [`80cd3df`](https://github.com/eea/volto-eea-design-system/commit/80cd3df3534e46e52ba246256c3d990a52753bbd)]
|
|
47
|
+
### [1.0.0-beta.5](https://github.com/eea/volto-eea-design-system/compare/1.0.0-beta.4...1.0.0-beta.5) - 7 March 2023
|
|
48
|
+
|
|
49
|
+
#### :nail_care: Enhancements
|
|
50
|
+
|
|
51
|
+
- change(footer): removed min width and height from links [David Ichim - [`ac33219`](https://github.com/eea/volto-eea-design-system/commit/ac33219fb77f23bb5148355551a7aad9f453d2e7)]
|
|
52
|
+
- change(carousel): tweak size of carousel dots for better touch interaction [David Ichim - [`e1fb823`](https://github.com/eea/volto-eea-design-system/commit/e1fb8230806de2e157a9a5ea87e63765769565b4)]
|
|
53
|
+
|
|
54
|
+
#### :house: Internal changes
|
|
55
|
+
|
|
56
|
+
- style(hiddenStructure): Add hiddenStructure utility to be used with h1 heading on frontpage - refs #158717 [Alin Voinea - [`672cca2`](https://github.com/eea/volto-eea-design-system/commit/672cca2401003f56e5ea104f18103ea090e38fd7)]
|
|
57
|
+
|
|
58
|
+
#### :hammer_and_wrench: Others
|
|
59
|
+
|
|
60
|
+
- Release 1.0.0-beta.5 [Alin Voinea - [`e4417e1`](https://github.com/eea/volto-eea-design-system/commit/e4417e121477511c350ae3fbe4e70aadb445ed86)]
|
|
61
|
+
- better useOnScreen hook [Andrei Grigore - [`c214b6b`](https://github.com/eea/volto-eea-design-system/commit/c214b6b76443f81c795ce2f3aa457562ec088b30)]
|
|
62
|
+
- feature(mobile): increased performance by lazy loading footer images #303 from eea/increase_performance [ichim-david - [`80d1df1`](https://github.com/eea/volto-eea-design-system/commit/80d1df1c459680331d486f9e8e6a95c9db0adbf6)]
|
|
63
|
+
- prettier [David Ichim - [`a7f8384`](https://github.com/eea/volto-eea-design-system/commit/a7f838470c1bcc4e2be115d514d92a1b686a5e9b)]
|
|
64
|
+
- fixed less build failure due to changes in footer.less [David Ichim - [`190bc8c`](https://github.com/eea/volto-eea-design-system/commit/190bc8cfa88191b45808f1e27c6e2737ee3d15b1)]
|
|
65
|
+
- useOnScreen default export [andreiggr - [`3e6cfdd`](https://github.com/eea/volto-eea-design-system/commit/3e6cfdd4dcb814aad328f97be7af41af071ccba6)]
|
|
66
|
+
- lazyload bg img on footer also [andreiggr - [`ae07162`](https://github.com/eea/volto-eea-design-system/commit/ae07162ba1b27bff58fed70eaabc28c78c5f45a3)]
|
|
67
|
+
- lazyload footer images [andreiggr - [`a0633c9`](https://github.com/eea/volto-eea-design-system/commit/a0633c9ec4ccfb63a48eb4e4c4a63c90daac1a37)]
|
|
68
|
+
- use aria-labels on dropdown [andreiggr - [`27e1443`](https://github.com/eea/volto-eea-design-system/commit/27e144315416ceace0f01def03b5b24640f5c7da)]
|
|
69
|
+
- role change for accessibility [andreiggr - [`5e758e0`](https://github.com/eea/volto-eea-design-system/commit/5e758e0a7fa8c56ba688d0a43de5890686f14ea3)]
|
|
70
|
+
- minimum tap dimension for mobile [andreiggr - [`a25e9a8`](https://github.com/eea/volto-eea-design-system/commit/a25e9a8ba8a8a0f24d287ed7513e549ae2caab0f)]
|
|
71
|
+
- Increase performance - mobile friendly [dana-cfc4 - [`07d86c8`](https://github.com/eea/volto-eea-design-system/commit/07d86c8e77568f91d50b3a45248de9427140a295)]
|
|
72
|
+
### [1.0.0-beta.4](https://github.com/eea/volto-eea-design-system/compare/1.0.0-beta.3...1.0.0-beta.4) - 1 March 2023
|
|
8
73
|
|
|
9
74
|
#### :rocket: New Features
|
|
10
75
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-eea-design-system",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.6",
|
|
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,7 +21,9 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@eeacms/volto-corsproxy": "*",
|
|
24
|
+
"@fontsource/roboto": "4.5.8",
|
|
24
25
|
"react-countup": "^6.3.0",
|
|
26
|
+
"react-lazy-load-image-component": "1.5.6",
|
|
25
27
|
"react-slick": "^0.28.1",
|
|
26
28
|
"remixicon": "2.5.0",
|
|
27
29
|
"slick-carousel": "^1.8.1"
|
package/src/helpers/index.js
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* eslint-disable react-hooks/exhaustive-deps */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
function useOnScreen(ref, rootMargin = '0px') {
|
|
5
|
+
const [isIntersecting, setIntersecting] = React.useState(false);
|
|
6
|
+
|
|
7
|
+
React.useEffect(() => {
|
|
8
|
+
const observer = new IntersectionObserver(
|
|
9
|
+
([entry]) => {
|
|
10
|
+
setIntersecting(entry.isIntersecting);
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
rootMargin,
|
|
14
|
+
threshold: 0,
|
|
15
|
+
root: null,
|
|
16
|
+
},
|
|
17
|
+
);
|
|
18
|
+
if (ref?.current) {
|
|
19
|
+
observer.observe(ref.current);
|
|
20
|
+
}
|
|
21
|
+
return () => {
|
|
22
|
+
if (ref?.current) {
|
|
23
|
+
observer.unobserve(ref.current);
|
|
24
|
+
}
|
|
25
|
+
observer.disconnect();
|
|
26
|
+
};
|
|
27
|
+
}, [ref, rootMargin]);
|
|
28
|
+
return isIntersecting;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export default useOnScreen;
|
package/src/ui/Footer/Footer.jsx
CHANGED
|
@@ -12,6 +12,7 @@ import FooterHeader from '@eeacms/volto-eea-design-system/ui/Footer/FooterHeader
|
|
|
12
12
|
import SubFooter from '@eeacms/volto-eea-design-system/ui/Footer/SubFooter';
|
|
13
13
|
import Social from '@eeacms/volto-eea-design-system/ui/Footer/Social';
|
|
14
14
|
import Contact from '@eeacms/volto-eea-design-system/ui/Footer/Contact';
|
|
15
|
+
import useOnScreen from '../../helpers/useOnScreen';
|
|
15
16
|
import Description from '@eeacms/volto-eea-design-system/ui/Footer/Description';
|
|
16
17
|
|
|
17
18
|
/**
|
|
@@ -23,9 +24,15 @@ import Description from '@eeacms/volto-eea-design-system/ui/Footer/Description';
|
|
|
23
24
|
|
|
24
25
|
const Footer = (props) => {
|
|
25
26
|
const { children } = props;
|
|
27
|
+
|
|
28
|
+
const bgImgRef = React.useRef();
|
|
29
|
+
const onScreen = useOnScreen(bgImgRef);
|
|
26
30
|
return (
|
|
27
31
|
<footer id={'footer'}>
|
|
28
|
-
<div
|
|
32
|
+
<div
|
|
33
|
+
ref={bgImgRef}
|
|
34
|
+
className={onScreen ? 'footer-wrapper' : 'footer-wrapper-nobg'}
|
|
35
|
+
>
|
|
29
36
|
<Container>{children}</Container>
|
|
30
37
|
</div>
|
|
31
38
|
</footer>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Grid, Image } from 'semantic-ui-react';
|
|
3
|
+
import { LazyLoadComponent } from 'react-lazy-load-image-component';
|
|
4
|
+
|
|
3
5
|
import PropTypes from 'prop-types';
|
|
4
6
|
|
|
5
7
|
const Sites = (props) => {
|
|
@@ -11,10 +13,14 @@ const Sites = (props) => {
|
|
|
11
13
|
column.push(
|
|
12
14
|
<Grid.Column className="logo" key={i}>
|
|
13
15
|
<a className="logo" href={item.link}>
|
|
14
|
-
<
|
|
16
|
+
<LazyLoadComponent>
|
|
17
|
+
<Image src={item.src} alt={item.alt}></Image>
|
|
18
|
+
</LazyLoadComponent>
|
|
15
19
|
</a>
|
|
16
20
|
<a className="logo" href={nextItem.link}>
|
|
17
|
-
<
|
|
21
|
+
<LazyLoadComponent>
|
|
22
|
+
<Image src={nextItem.src} alt={nextItem.alt}></Image>
|
|
23
|
+
</LazyLoadComponent>
|
|
18
24
|
</a>
|
|
19
25
|
</Grid.Column>,
|
|
20
26
|
);
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import Footer from './Footer';
|
|
3
3
|
|
|
4
4
|
import { Grid, Image } from 'semantic-ui-react';
|
|
5
|
+
import { LazyLoadComponent } from 'react-lazy-load-image-component';
|
|
5
6
|
|
|
6
7
|
const SubFooter = (props) => {
|
|
7
8
|
if (props.children) {
|
|
@@ -23,7 +24,9 @@ const SubFooter = (props) => {
|
|
|
23
24
|
<div className="item">
|
|
24
25
|
<div className={manager.className}>
|
|
25
26
|
<a href={manager.link}>
|
|
26
|
-
<
|
|
27
|
+
<LazyLoadComponent>
|
|
28
|
+
<Image src={manager.src} alt={manager.alt}></Image>
|
|
29
|
+
</LazyLoadComponent>
|
|
27
30
|
</a>
|
|
28
31
|
</div>
|
|
29
32
|
</div>
|
|
@@ -55,7 +58,9 @@ const SubFooter = (props) => {
|
|
|
55
58
|
<div className="item">
|
|
56
59
|
<div className={manager.className}>
|
|
57
60
|
<a href={manager.link}>
|
|
58
|
-
<
|
|
61
|
+
<LazyLoadComponent>
|
|
62
|
+
<Image src={manager.src} alt={manager.alt}></Image>
|
|
63
|
+
</LazyLoadComponent>
|
|
59
64
|
</a>
|
|
60
65
|
</div>
|
|
61
66
|
</div>
|
package/src/ui/Header/Header.jsx
CHANGED
|
@@ -62,11 +62,13 @@ const TopDropdownMenu = ({
|
|
|
62
62
|
text={mobileText || text}
|
|
63
63
|
icon={icon || 'chevron down'}
|
|
64
64
|
aria-label="dropdown"
|
|
65
|
+
role="dropdown"
|
|
66
|
+
lazyLoad
|
|
65
67
|
closeOnChange={true}
|
|
66
68
|
closeOnBlur={false}
|
|
67
69
|
closeOnEscape={true}
|
|
68
70
|
>
|
|
69
|
-
<Dropdown.Menu role="
|
|
71
|
+
<Dropdown.Menu role="option">{children}</Dropdown.Menu>
|
|
70
72
|
</Dropdown>
|
|
71
73
|
)
|
|
72
74
|
) : (
|
|
@@ -75,12 +77,14 @@ const TopDropdownMenu = ({
|
|
|
75
77
|
className={className}
|
|
76
78
|
text={mobileText || text}
|
|
77
79
|
icon={icon || 'chevron down'}
|
|
80
|
+
role="dropdown"
|
|
78
81
|
aria-label="dropdown"
|
|
82
|
+
lazyLoad
|
|
79
83
|
closeOnChange={true}
|
|
80
84
|
closeOnBlur={false}
|
|
81
85
|
closeOnEscape={true}
|
|
82
86
|
>
|
|
83
|
-
<Dropdown.Menu role="
|
|
87
|
+
<Dropdown.Menu role="option">{children}</Dropdown.Menu>
|
|
84
88
|
</Dropdown>
|
|
85
89
|
)}
|
|
86
90
|
</>
|
package/templates/eea.hbs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: What's new
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
### EEA Design System (1.0.0
|
|
5
|
+
### EEA Design System (1.0.0)
|
|
6
6
|
|
|
7
7
|
#### Components ready to be used
|
|
8
8
|
|
|
@@ -10,13 +10,12 @@ The following components are ready to be used as Volto `blocks`, `slate` integra
|
|
|
10
10
|
- Accordion `block`
|
|
11
11
|
- Call to Action `block`
|
|
12
12
|
- Callout - part of the Description `block`, `slate`
|
|
13
|
-
- Card - part of the Teaser `block` and Listing `block`, it includes several variations like round card e.g., used for Avatar
|
|
14
|
-
- Content Box `block styler`
|
|
13
|
+
- Card - part of the Teaser `block` and Listing `block`, it includes several variations like round card e.g., used for Avatar
|
|
15
14
|
- Divider `block`
|
|
16
15
|
- Headings `slate`
|
|
17
16
|
- Hero `block`
|
|
18
17
|
- Item `block` - used for text with an icon (remixicon or custom SVG/image) on the left/right
|
|
19
|
-
- List `slate` - ordered and unordered
|
|
18
|
+
- List `slate` - ordered and unordered
|
|
20
19
|
- Quote `block`
|
|
21
20
|
- Statistic `block`
|
|
22
21
|
- Tag `block`
|
|
@@ -24,14 +23,13 @@ The following components are ready to be used as Volto `blocks`, `slate` integra
|
|
|
24
23
|
- Tabs `block`
|
|
25
24
|
- Timeline `block`
|
|
26
25
|
|
|
27
|
-
####
|
|
26
|
+
#### Future releases
|
|
28
27
|
|
|
29
28
|
Below is a non-exhaustive list of the work-in-progress which is planned for future releases:
|
|
30
29
|
- Navigation Portlet (used on the left/right hand of content) is still WIP and should not be used
|
|
31
30
|
- When using the Table `block`, please be aware of enabling the responsive design manually (it should be on by default in later releases)
|
|
32
31
|
- Description list (dt, dd) is still missing from slate editor
|
|
33
32
|
- Slate enhancements, e.g. the inclusion of various font weights and text alignment (left, centered, right)
|
|
34
|
-
- Better theming engine across several components, e.g., a consistent way to apply Primary, Secondary, and Tertiary colors to elements and automatic inversion of font text to white when necessary.
|
|
35
33
|
- Spacing/padding system via the `block styler`. We do have design-tokens; however, these are not exposed to the volto block styler. We want to add the ability for editors to consistently apply various spacing/padding on certain components in order to allow a better alignment when components are used together.
|
|
36
34
|
- Harmonize component naming across docusarurus, storybook, code, and Volto.
|
|
37
35
|
- Improve docusaurus and storybook with more components, controls, and variations in order to better reflect what is possible in Volto.
|
package/theme/theme.config
CHANGED
package/theme/theme.less
CHANGED
|
@@ -48,9 +48,13 @@
|
|
|
48
48
|
Fonts
|
|
49
49
|
-------------------*/
|
|
50
50
|
|
|
51
|
-
.loadFonts()
|
|
52
|
-
@import (css)
|
|
53
|
-
|
|
51
|
+
.loadFonts() {
|
|
52
|
+
@import (css) '~@fontsource/roboto/latin-300.css';
|
|
53
|
+
@import (css) '~@fontsource/roboto/latin-400.css';
|
|
54
|
+
@import (css) '~@fontsource/roboto/latin-500.css';
|
|
55
|
+
@import (css) '~@fontsource/roboto/latin-700.css';
|
|
56
|
+
@import (css) '~@fontsource/roboto/latin-400-italic.css';
|
|
57
|
+
@import (css) '~@fontsource/roboto/latin-700-italic.css';
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
/*------------------
|
|
@@ -120,6 +120,11 @@ body {
|
|
|
120
120
|
margin-left: -50vw !important;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
[class~="view-defaultview"] [id="page-document"] > .full-width,
|
|
124
|
+
[class~="view-viewview"] [id="page-document"] > .full-width {
|
|
125
|
+
max-width: initial !important;
|
|
126
|
+
}
|
|
127
|
+
|
|
123
128
|
.has--size--full:not(.block-editor-columnsBlock) .ui.grid {
|
|
124
129
|
margin-left: 0;
|
|
125
130
|
margin-right: 0;
|
|
@@ -47,3 +47,74 @@
|
|
|
47
47
|
.block .ui.massive.image {
|
|
48
48
|
width: @massiveWidth;
|
|
49
49
|
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/*--------------
|
|
53
|
+
Image block float changes
|
|
54
|
+
---------------*/
|
|
55
|
+
|
|
56
|
+
.image-block {
|
|
57
|
+
position: relative;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// remove block.less margin from image, we set margin on block instead
|
|
61
|
+
.block.image.align img {
|
|
62
|
+
margin-bottom: 0 !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// remove float from images, set on block instead
|
|
66
|
+
.block.image.align.right,
|
|
67
|
+
.block.image.align.left {
|
|
68
|
+
img {
|
|
69
|
+
max-width: 100% !important;
|
|
70
|
+
float: none !important;
|
|
71
|
+
margin: 0 !important;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* edit page fixes for float issues */
|
|
76
|
+
#page-edit .image {
|
|
77
|
+
max-width: 100%;
|
|
78
|
+
min-height: @imageMinHeight;
|
|
79
|
+
}
|
|
80
|
+
#page-edit .image.left,
|
|
81
|
+
#page-edit .image.right,
|
|
82
|
+
#page-document > .image.left,
|
|
83
|
+
#page-document > .image.right {
|
|
84
|
+
float: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.image-block-container {
|
|
88
|
+
position: relative;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* if the image is smaller than the content area the copyright
|
|
92
|
+
isn't as big as the image unless the image is inline-block
|
|
93
|
+
*/
|
|
94
|
+
.image-block-container.center {
|
|
95
|
+
display: inline-block;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.image-block-container.right {
|
|
99
|
+
margin-left: @imageBlockContainerLeftMargin;
|
|
100
|
+
float: right;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.image-block-container.left {
|
|
104
|
+
margin-right: @imageBlockContainerRightMargin;
|
|
105
|
+
float: left;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* Set max size on image-block-container, by default it's set to block image */
|
|
109
|
+
.image.align:not(.full, .center) .image-block-container {
|
|
110
|
+
max-width: @imageAlignLargeMaxWidth;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.image.align:not(.full, .center) .image-block-container.medium {
|
|
114
|
+
max-width: @imageAlignMediumMaxWidth;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.image.align:not(.full, .center) .image-block-container.small {
|
|
118
|
+
max-width: @imageAlignSmallMaxWidth;
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
@imageVerticalMargin: 0.5rem;
|
|
14
14
|
@imageBorder: 1px solid rgba(0, 0, 0, 0.1);
|
|
15
15
|
|
|
16
|
+
/* Image block container */
|
|
17
|
+
@imageBlockContainerLeftMargin: @rem-space-4;
|
|
18
|
+
@imageBlockContainerRightMargin: @rem-space-4;
|
|
19
|
+
@imageMinHeight: @rem-space-6;
|
|
20
|
+
@imageAlignLargeMaxWidth: 50%;
|
|
21
|
+
@imageAlignMediumMaxWidth: 25%;
|
|
22
|
+
@imageAlignSmallMaxWidth: 15%;
|
|
23
|
+
|
|
16
24
|
/*-------------------
|
|
17
25
|
Types
|
|
18
26
|
--------------------*/
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
display: flex;
|
|
15
15
|
color: @copyrightContentColor;
|
|
16
16
|
font-size: @copyrightContentFontSize;
|
|
17
|
+
min-height: @copyrightMinHeight;
|
|
18
|
+
align-items: @copyrightAlignItems;
|
|
17
19
|
line-height: @copyrightLineHeight;
|
|
18
20
|
gap: @copyrightContentPaddingRight;
|
|
19
21
|
}
|
|
@@ -27,3 +29,23 @@
|
|
|
27
29
|
margin: 0; // override default
|
|
28
30
|
}
|
|
29
31
|
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
.copyright-wrapper {
|
|
35
|
+
position: absolute;
|
|
36
|
+
z-index: @z-index-8;
|
|
37
|
+
bottom: @copyrightWrapperBottom;
|
|
38
|
+
width: 100%;
|
|
39
|
+
padding-right: @copyrightWrapperPaddingLeft;
|
|
40
|
+
padding-left: @copyrightWrapperPaddingRight;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.copyright-hover-container {
|
|
44
|
+
position: absolute;
|
|
45
|
+
z-index: @z-index-8;
|
|
46
|
+
bottom: 0;
|
|
47
|
+
padding: @copyrightHoverContainerPadding;
|
|
48
|
+
background-color: @copyrightHoverContainerBackgroundColor;
|
|
49
|
+
border-radius: @copyrightHoverContainerBorderRadius;
|
|
50
|
+
color: @copyrightHoverContainerColor;
|
|
51
|
+
}
|
|
@@ -9,3 +9,19 @@
|
|
|
9
9
|
@copyrightContentFontSize: @font-size-00;
|
|
10
10
|
@copyrightLineHeight: @font-lineheight-0;
|
|
11
11
|
@copyrightContentPaddingRight: @rem-space-1;
|
|
12
|
+
@copyrightWrapperPaddingLeft: @rem-space-3;
|
|
13
|
+
@copyrightWrapperPaddingRight: @rem-space-3;
|
|
14
|
+
@copyrightWrapperBottom: @rem-space-4;
|
|
15
|
+
@copyrightMinHeight: @rem-space-8;
|
|
16
|
+
@copyrightAlignItems: center;
|
|
17
|
+
|
|
18
|
+
/* Image block */
|
|
19
|
+
@floatImageLeftMaxWidth: 50%;
|
|
20
|
+
@floatImageRightMaxWidth: 50%;
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@copyrightHoverContainerPadding: @rem-space-1 @rem-space-2;
|
|
25
|
+
@copyrightHoverContainerBackgroundColor: @tertiaryColor;
|
|
26
|
+
@copyrightHoverContainerBorderRadius: @rem-space-1;
|
|
27
|
+
@copyrightHoverContainerColor: @grey-1;
|
|
@@ -21,6 +21,10 @@ footer {
|
|
|
21
21
|
background-position: @wrapperBackgroundPosition;
|
|
22
22
|
background-size: @mobileWrapperBackgroundSize;
|
|
23
23
|
}
|
|
24
|
+
.footer-wrapper-nobg {
|
|
25
|
+
width: @wrapperWidth;
|
|
26
|
+
padding: @mobileWrapperPadding;
|
|
27
|
+
}
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
footer .theme-sites {
|
|
@@ -144,6 +148,10 @@ footer .footer-wrapper .menu {
|
|
|
144
148
|
font-size: @mobileMenuCopyrightFontSize;
|
|
145
149
|
font-weight: @mobileMenuCopyrightFontWeight;
|
|
146
150
|
}
|
|
151
|
+
|
|
152
|
+
.contact-block .subcontact {
|
|
153
|
+
margin-top: @mobileSubcontactBlockMarginTop;
|
|
154
|
+
}
|
|
147
155
|
}
|
|
148
156
|
|
|
149
157
|
@media only screen and (min-width: @tabletBreakpoint) {
|
|
@@ -221,38 +229,45 @@ footer .footer-wrapper .menu {
|
|
|
221
229
|
.subfooter .logo-header {
|
|
222
230
|
// To match the figma align
|
|
223
231
|
margin-left: @computerLogoHeaderMarginLeft;
|
|
224
|
-
}
|
|
225
232
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
233
|
+
.subfooter .item {
|
|
234
|
+
.header {
|
|
235
|
+
margin-bottom: @computerItemHeaderMarginBottom;
|
|
236
|
+
}
|
|
230
237
|
|
|
231
|
-
|
|
232
|
-
align-items: center;
|
|
233
|
-
font-size: @contactFontSize;
|
|
234
|
-
gap: @contactGap;
|
|
238
|
+
}
|
|
235
239
|
|
|
236
|
-
|
|
237
|
-
font-size: @
|
|
240
|
+
.contact-block .subcontact a {
|
|
241
|
+
font-size: @computerSubContactIconFontSize;
|
|
242
|
+
margin-right: @computerSubContactIconMarginRight;
|
|
238
243
|
}
|
|
239
|
-
}
|
|
240
244
|
|
|
241
|
-
|
|
242
|
-
|
|
245
|
+
.subfooter .contact {
|
|
246
|
+
align-items: center;
|
|
247
|
+
font-size: @contactFontSize;
|
|
248
|
+
gap: @contactGap;
|
|
243
249
|
|
|
244
|
-
|
|
245
|
-
|
|
250
|
+
i.big.icon {
|
|
251
|
+
font-size: @computerContactIconFontSize;
|
|
252
|
+
}
|
|
246
253
|
}
|
|
247
|
-
}
|
|
248
254
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
255
|
+
.subfooter .footer-description {
|
|
256
|
+
margin: @computerFooterDescriptionMargin;
|
|
252
257
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
258
|
+
p {
|
|
259
|
+
font-size: @computerFooterDescriptionFontSize;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.subfooter .social {
|
|
264
|
+
margin: @computerSocialIconsMargin;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.footer .footer-wrapper .menu {
|
|
268
|
+
a {
|
|
269
|
+
font-size: @computerMenuFontSize;
|
|
270
|
+
}
|
|
256
271
|
}
|
|
257
272
|
}
|
|
258
273
|
}
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
@tabletContactGap : @rem-space-4;
|
|
43
43
|
@contactGap : @rem-space-8;
|
|
44
44
|
@mobileContactIconMarginRight : @space-3;
|
|
45
|
+
@mobileSubcontactBlockMarginTop : @space-3;
|
|
45
46
|
@mobileContactIconFontSize : @font-size-4;
|
|
46
47
|
@computerContactIconFontSize : @font-size-9;
|
|
47
48
|
@tabletSubContactIconFontSize : @font-size-0;
|
|
@@ -75,6 +75,12 @@ h2, h3, h4, h5, h6 {
|
|
|
75
75
|
margin-bottom: @rem-space-4;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
// clear any floats if we add a columns block as a floated image
|
|
79
|
+
// can modify the width of the column block children
|
|
80
|
+
.styled-columnsBlock {
|
|
81
|
+
clear: both;
|
|
82
|
+
}
|
|
83
|
+
|
|
78
84
|
// text smaller than body has extra letterspacing as described in docusaurus
|
|
79
85
|
.tiny,
|
|
80
86
|
.caption,
|
|
@@ -99,3 +99,16 @@ h1, h2, h3, h4, h5, h6, p, span, .header {
|
|
|
99
99
|
.fw-light {
|
|
100
100
|
font-weight: @font-weight-3;
|
|
101
101
|
}
|
|
102
|
+
|
|
103
|
+
.hiddenStructure {
|
|
104
|
+
border: 0 !important;
|
|
105
|
+
clip: rect(0 0 0 0) !important;
|
|
106
|
+
clip-path: inset(50%) !important;
|
|
107
|
+
height: 1px !important;
|
|
108
|
+
margin: -1px !important;
|
|
109
|
+
overflow: hidden !important;
|
|
110
|
+
padding: 0 !important;
|
|
111
|
+
position: absolute !important;
|
|
112
|
+
white-space: nowrap !important;
|
|
113
|
+
width: 1px !important;
|
|
114
|
+
}
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
@red-6: #5C1918;
|
|
24
24
|
|
|
25
25
|
@green-0: #C8FFF8;
|
|
26
|
-
@green-1: #
|
|
27
|
-
@green-2: #
|
|
28
|
-
@green-3: #
|
|
29
|
-
@green-4: #
|
|
26
|
+
@green-1: #A0E5DC;
|
|
27
|
+
@green-2: #78CAC0;
|
|
28
|
+
@green-3: #50B0A4;
|
|
29
|
+
@green-4: #289588;
|
|
30
30
|
@green-5: #007B6C;
|
|
31
31
|
@green-6: #005248;
|
|
32
32
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
@yellow-3: #FAC50D;
|
|
37
37
|
@yellow-4: #FDAF20;
|
|
38
38
|
@yellow-5: #FF9933;
|
|
39
|
-
@yellow-6: #
|
|
39
|
+
@yellow-6: #C35527;
|
|
40
40
|
|
|
41
41
|
@blue-0: #A0D7FF;
|
|
42
42
|
@blue-1: #47B3FF;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
|
|
49
49
|
@blue-grey-0: #DAE8F4;
|
|
50
50
|
@blue-grey-1: #ACCAE5;
|
|
51
|
-
@blue-grey-2: #
|
|
51
|
+
@blue-grey-2: #87A7C3;
|
|
52
52
|
@blue-grey-3: #6989A5;
|
|
53
53
|
@blue-grey-4: #4C677F;
|
|
54
54
|
@blue-grey-5: #3D5265;
|
|
@@ -370,6 +370,7 @@
|
|
|
370
370
|
position: relative;
|
|
371
371
|
bottom: 0;
|
|
372
372
|
}
|
|
373
|
+
|
|
373
374
|
.cards-carousel .slick-dots li button:before {
|
|
374
375
|
background-color: @carouselDotsBackgroundColor;
|
|
375
376
|
color: transparent;
|
|
@@ -390,11 +391,13 @@
|
|
|
390
391
|
outline-style: auto;
|
|
391
392
|
}
|
|
392
393
|
|
|
393
|
-
@media only screen and (
|
|
394
|
-
.cards-carousel .slick-dots li
|
|
395
|
-
|
|
396
|
-
|
|
394
|
+
@media only screen and (max-width: @tabletBreakpoint) {
|
|
395
|
+
.cards-carousel .slick-dots li,
|
|
396
|
+
.cards-carousel .slick-dots li button {
|
|
397
|
+
width: @mobileCarouselDotsButtonWidth;
|
|
398
|
+
height: @mobileCarouselDotsButtonHeight;
|
|
397
399
|
}
|
|
400
|
+
|
|
398
401
|
}
|
|
399
402
|
|
|
400
403
|
/*******************************
|
|
@@ -346,8 +346,10 @@
|
|
|
346
346
|
@carouselDotsBorder: 1px solid @darkCerulean;
|
|
347
347
|
@carouselDotsBackgroundColor: @white;
|
|
348
348
|
@carouselDotsActiveBackgroundColor: @darkCerulean;
|
|
349
|
-
@mobileCarouselDotsWidth:
|
|
350
|
-
@mobileCarouselDotsHeight:
|
|
349
|
+
@mobileCarouselDotsWidth: 1.25rem;
|
|
350
|
+
@mobileCarouselDotsHeight: 1.25rem;
|
|
351
|
+
@mobileCarouselDotsButtonWidth: 1.875rem;
|
|
352
|
+
@mobileCarouselDotsButtonHeight: 1.875rem;
|
|
351
353
|
|
|
352
354
|
/* Slick wrapper */
|
|
353
355
|
@slickListMargin: 0 -0.75em;
|