@eeacms/volto-eea-design-system 0.5.3 → 0.5.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.
- package/CHANGELOG.md +21 -0
- package/package.json +1 -1
- package/src/ui/ContentBox/ContentBox.jsx +5 -1
- package/theme/themes/eea/elements/container.overrides +1 -1
- package/theme/themes/eea/extras/contentBox.less +24 -8
- package/theme/themes/eea/extras/custom.overrides +50 -0
- package/theme/themes/eea/extras/header.less +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,29 @@ 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.5.4](https://github.com/eea/volto-eea-design-system/compare/0.5.3...0.5.4)
|
|
8
|
+
|
|
9
|
+
- change(content-box): content box links are now underlined [`f7976f5`](https://github.com/eea/volto-eea-design-system/commit/f7976f50f5807a884522d6dba871a2757a1c5a98)
|
|
10
|
+
- Autobuild of docusaurus docs [`89a258a`](https://github.com/eea/volto-eea-design-system/commit/89a258a84ae58ffa0be79baf99d562213e8c8491)
|
|
11
|
+
- fix(header): ensure transparency goes as high as the search icon [`4470e13`](https://github.com/eea/volto-eea-design-system/commit/4470e132e1e70fba3fdfb33fc63a1cc9d62700e8)
|
|
12
|
+
- Autobuild of docusaurus docs [`4f7fa93`](https://github.com/eea/volto-eea-design-system/commit/4f7fa93e6fa1819946d25df9810378bc2bdd860e)
|
|
13
|
+
- change(cards): fix default card color when inside content-boxes [`6fdf3aa`](https://github.com/eea/volto-eea-design-system/commit/6fdf3aabf9515289b36a5822e21edc5d282c4536)
|
|
14
|
+
- Autobuild of docusaurus docs [`30d02ab`](https://github.com/eea/volto-eea-design-system/commit/30d02abaaa713c6ed13aa8ec629476e25307bccb)
|
|
15
|
+
- change(container): removed override of content-box-inner container [`66fe7d4`](https://github.com/eea/volto-eea-design-system/commit/66fe7d45adc631c3ebf0e8dd11de19d7ff60b894)
|
|
16
|
+
- Autobuild of docusaurus docs [`86f4dec`](https://github.com/eea/volto-eea-design-system/commit/86f4dec858e3f335834ea9f4e9ccfba9c06b25a9)
|
|
17
|
+
- change(homepage): added fixes from custom [`c3e0333`](https://github.com/eea/volto-eea-design-system/commit/c3e03331d328f4fd7c6689f93bc1f1156013b8a9)
|
|
18
|
+
- Autobuild of docusaurus docs [`a33eae9`](https://github.com/eea/volto-eea-design-system/commit/a33eae9062cc7bd44a09a6dc60babbde38811bca)
|
|
19
|
+
- change(contentBox): add background as before element instead of using full-width [`7e0a596`](https://github.com/eea/volto-eea-design-system/commit/7e0a5962c1b9cb0d3ef9a8d7b7208eded34eb3ce)
|
|
20
|
+
- Autobuild of docusaurus docs [`2558a85`](https://github.com/eea/volto-eea-design-system/commit/2558a85b2f98adf77204280909984c76e8e209c1)
|
|
21
|
+
- change(hero): add margin top with the height of the top section on edit [`fefa6bb`](https://github.com/eea/volto-eea-design-system/commit/fefa6bb0f513e221ddb587f081c0e7d0c3067dfd)
|
|
22
|
+
- Autobuild of docusaurus docs [`5c8d4d5`](https://github.com/eea/volto-eea-design-system/commit/5c8d4d5329a91fb177ddaaa4044410566f6651ab)
|
|
23
|
+
- fix(block-style): Content box preview in sidebar [`6362766`](https://github.com/eea/volto-eea-design-system/commit/6362766f5e8dabf778e3864d2bb08966a55fc078)
|
|
24
|
+
|
|
7
25
|
#### [0.5.3](https://github.com/eea/volto-eea-design-system/compare/0.5.2...0.5.3)
|
|
8
26
|
|
|
27
|
+
> 16 June 2022
|
|
28
|
+
|
|
29
|
+
- fix(homepage): hero and homepage view fixes for #151156 [`#199`](https://github.com/eea/volto-eea-design-system/pull/199)
|
|
9
30
|
- Autobuild of docusaurus docs [`084402d`](https://github.com/eea/volto-eea-design-system/commit/084402da0b1a56a5eeda970f330bcc1daf4e4cb1)
|
|
10
31
|
- fix(homepage): hero and homepage fixes for #151156 #198 [`43d4efc`](https://github.com/eea/volto-eea-design-system/commit/43d4efc508750e0e9cbb93b9bffc3721be452c5a)
|
|
11
32
|
- change(container): on section-edit modify only left and right padding values [`fe6e3ec`](https://github.com/eea/volto-eea-design-system/commit/fe6e3ec764643ec01e20ae9dbdde921774ef04cd)
|
package/package.json
CHANGED
|
@@ -4,7 +4,11 @@ import { Container } from 'semantic-ui-react';
|
|
|
4
4
|
function ContentBox({ children, ...rest }) {
|
|
5
5
|
return (
|
|
6
6
|
<div className={`eea content-box ${rest.variant}`}>
|
|
7
|
-
{rest.container ?
|
|
7
|
+
{rest.container ? (
|
|
8
|
+
<Container className={'content-box-inner'}>{children}</Container>
|
|
9
|
+
) : (
|
|
10
|
+
children
|
|
11
|
+
)}
|
|
8
12
|
</div>
|
|
9
13
|
);
|
|
10
14
|
}
|
|
@@ -6,20 +6,26 @@
|
|
|
6
6
|
/*-------------------
|
|
7
7
|
CONTENT BOX
|
|
8
8
|
--------------------*/
|
|
9
|
+
.content-box:before {
|
|
10
|
+
width: @contentBoxWidth;
|
|
11
|
+
margin-left: -50vw;
|
|
12
|
+
background-color: inherit;
|
|
13
|
+
content: " ";
|
|
14
|
+
position: absolute;
|
|
15
|
+
height: 100%;
|
|
16
|
+
z-index: -1;
|
|
17
|
+
margin-right: -50vw;
|
|
18
|
+
left: 50%;
|
|
19
|
+
right: 50%;
|
|
20
|
+
}
|
|
9
21
|
|
|
10
22
|
.content-box {
|
|
11
|
-
width: @contentBoxWidth;
|
|
12
23
|
background-color: @contentBoxBackgroundColor;
|
|
13
24
|
color: @contentBoxColorInverted;
|
|
14
25
|
margin-bottom: @mediumGap;
|
|
15
|
-
|
|
16
26
|
position: relative;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
right: 50%;
|
|
20
|
-
left: 50%;
|
|
21
|
-
|
|
22
|
-
.ui.container {
|
|
27
|
+
|
|
28
|
+
.content-box-inner {
|
|
23
29
|
padding-top: @contentBoxContainerMarginTop;
|
|
24
30
|
padding-bottom: @contentBoxContainerMarginBottom;
|
|
25
31
|
}
|
|
@@ -39,3 +45,13 @@
|
|
|
39
45
|
color: @contentBoxColor;
|
|
40
46
|
}
|
|
41
47
|
}
|
|
48
|
+
|
|
49
|
+
// inherit link
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
[class*="content-box"] a {
|
|
53
|
+
text-decoration: underline;
|
|
54
|
+
}
|
|
55
|
+
.content-box[class*="ary"] a {
|
|
56
|
+
color: inherit;
|
|
57
|
+
}
|
|
@@ -2,3 +2,53 @@
|
|
|
2
2
|
.homepage .stagingBanner {
|
|
3
3
|
display: none !important;
|
|
4
4
|
}
|
|
5
|
+
|
|
6
|
+
// hide breadcrumbs on homepage
|
|
7
|
+
.homepage .breadcrumbs {
|
|
8
|
+
display: none !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// remove margin and padding from homepage content-area since we have the bg image over the header
|
|
12
|
+
.homepage .content-area {
|
|
13
|
+
margin-top: 0 !important;
|
|
14
|
+
padding-top: 0 !important;
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// set color of default cards to black when we are inside a content-box which has the ability to set
|
|
19
|
+
// color classes
|
|
20
|
+
.content-box [class="ui fluid card"] {
|
|
21
|
+
color: #000;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// remove text decoration on links that might be added by content-box a rule
|
|
25
|
+
.grid-block-teaser a {
|
|
26
|
+
text-decoration: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Block style - preset styles
|
|
30
|
+
.style-select-widget {
|
|
31
|
+
.content {
|
|
32
|
+
text-align: center;
|
|
33
|
+
}
|
|
34
|
+
svg.default {
|
|
35
|
+
background-color: @grey-1;
|
|
36
|
+
}
|
|
37
|
+
svg.primary {
|
|
38
|
+
background-color: @primaryColor;
|
|
39
|
+
fill: @white !important;
|
|
40
|
+
}
|
|
41
|
+
svg.secondary {
|
|
42
|
+
background-color: @secondaryColor;
|
|
43
|
+
fill: @white !important;
|
|
44
|
+
}
|
|
45
|
+
svg.tertiary {
|
|
46
|
+
background-color: @tertiaryColor;
|
|
47
|
+
fill: @white !important;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// raise z-index of delete button to go above blocks
|
|
52
|
+
.block .ui.basic.button.delete-button {
|
|
53
|
+
z-index: @z-index-5;
|
|
54
|
+
}
|
|
@@ -180,6 +180,7 @@
|
|
|
180
180
|
background-color: @headerMainSectionTransparency;
|
|
181
181
|
display: block;
|
|
182
182
|
content: " ";
|
|
183
|
+
top: 0;
|
|
183
184
|
z-index: 0;
|
|
184
185
|
width: 100%;
|
|
185
186
|
height: 100%;
|
|
@@ -377,6 +378,10 @@
|
|
|
377
378
|
height: @tabletTopSectionHeight;
|
|
378
379
|
}
|
|
379
380
|
|
|
381
|
+
.homepage .block-editor-hero {
|
|
382
|
+
margin-top: @tabletTopSectionHeight;
|
|
383
|
+
}
|
|
384
|
+
|
|
380
385
|
.top.bar .ui.dropdown .menu {
|
|
381
386
|
margin-top: @tabletDropdownMenuMarginTop;
|
|
382
387
|
}
|
|
@@ -457,6 +462,9 @@
|
|
|
457
462
|
.top.bar {
|
|
458
463
|
height: @computerTopSectionHeight;
|
|
459
464
|
}
|
|
465
|
+
.homepage .block-editor-hero {
|
|
466
|
+
margin-top: @computerTopSectionHeight;
|
|
467
|
+
}
|
|
460
468
|
|
|
461
469
|
.top.bar .ui.dropdown .menu {
|
|
462
470
|
margin-top: @computerDropdownMenuMarginTop;
|