@eeacms/volto-cca-policy 0.1.86 → 0.1.88
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/components/theme/BannerTitle/BannerTitle.jsx +18 -7
- package/src/components/theme/Views/AdaptationOptionView.jsx +9 -1
- package/src/components/theme/Views/CaseStudyView.jsx +5 -7
- package/src/components/theme/Views/CcaEventView.jsx +1 -1
- package/src/components/theme/Views/EventView.jsx +1 -1
- package/src/components/theme/Views/GuidanceView.jsx +9 -2
- package/src/components/theme/Views/IndicatorView.jsx +10 -2
- package/src/components/theme/Views/InformationPortalView.jsx +9 -2
- package/src/components/theme/Views/NewsItemView.jsx +2 -10
- package/src/components/theme/Views/OrganisationView.jsx +10 -2
- package/src/components/theme/Views/ProjectView.jsx +9 -1
- package/src/components/theme/Views/PublicationReportView.jsx +10 -2
- package/src/components/theme/Views/ToolView.jsx +9 -2
- package/src/components/theme/Views/VideoView.jsx +10 -1
- package/src/customizations/volto/middleware/api.js +4 -1
- package/src/index.js +10 -0
- package/theme/globals/search.less +18 -0
- package/theme/globals/site.overrides +7 -226
- package/theme/globals/views.less +215 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,32 @@ 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.1.88](https://github.com/eea/volto-cca-policy/compare/0.1.87...0.1.88) - 1 March 2024
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix(views): remove unused import [kreafox - [`b90c40c`](https://github.com/eea/volto-cca-policy/commit/b90c40c8d15d79ad670794710b6a7a1274657cb7)]
|
|
12
|
+
- fix(views): show missing metadata on DB items [kreafox - [`6ed7638`](https://github.com/eea/volto-cca-policy/commit/6ed763854172398446d6c5f4dc1d34ea516df7ef)]
|
|
13
|
+
|
|
14
|
+
#### :hammer_and_wrench: Others
|
|
15
|
+
|
|
16
|
+
- test: update [kreafox - [`3bb98b1`](https://github.com/eea/volto-cca-policy/commit/3bb98b1f36d92eea76fa46af56ecfbf9a2d5201e)]
|
|
17
|
+
### [0.1.87](https://github.com/eea/volto-cca-policy/compare/0.1.86...0.1.87) - 1 March 2024
|
|
18
|
+
|
|
19
|
+
#### :bug: Bug Fixes
|
|
20
|
+
|
|
21
|
+
- fix(news): replace banner component [kreafox - [`ff8daf9`](https://github.com/eea/volto-cca-policy/commit/ff8daf901feff11fad95099a302014a25fbbd501)]
|
|
22
|
+
- fix(views): show logo on organisation view; split CSS in separate files [kreafox - [`5666679`](https://github.com/eea/volto-cca-policy/commit/5666679bd55072f2d61c8e83681846f2ce0b1f7f)]
|
|
23
|
+
|
|
24
|
+
#### :nail_care: Enhancements
|
|
25
|
+
|
|
26
|
+
- change(banner): more improvements on banner component [kreafox - [`f341525`](https://github.com/eea/volto-cca-policy/commit/f341525f53048d461fcc6d9c79bba7dbfb9e7cdc)]
|
|
27
|
+
|
|
28
|
+
#### :hammer_and_wrench: Others
|
|
29
|
+
|
|
30
|
+
- test: update tests on db items [kreafox - [`9d3a03d`](https://github.com/eea/volto-cca-policy/commit/9d3a03d364d0143be5efb3dc0793a6ff9c4807f3)]
|
|
31
|
+
- Cleanup [Tiberiu Ichim - [`a6581bf`](https://github.com/eea/volto-cca-policy/commit/a6581bf00dba2c99bd1ab4622c7a4f14a55b24c2)]
|
|
32
|
+
- Expand siblings on country profiles [Tiberiu Ichim - [`4cc075a`](https://github.com/eea/volto-cca-policy/commit/4cc075aca6be95a266b732c8ca836de7b39f7d4e)]
|
|
7
33
|
### [0.1.86](https://github.com/eea/volto-cca-policy/compare/0.1.85...0.1.86) - 1 March 2024
|
|
8
34
|
|
|
9
35
|
#### :nail_care: Enhancements
|
package/package.json
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
import config from '@plone/volto/registry';
|
|
2
2
|
|
|
3
|
-
const hasTypeOfBlock = (
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
const hasTypeOfBlock = (obj, targetKey, targetValue) => {
|
|
4
|
+
for (const key in obj) {
|
|
5
|
+
if (obj.hasOwnProperty(key)) {
|
|
6
|
+
if (key === targetKey && obj[key] === targetValue) {
|
|
7
|
+
// console.log(`Key "${targetKey}" with value "${targetValue}" found`);
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
7
10
|
|
|
8
|
-
|
|
11
|
+
if (typeof obj[key] === 'object' && obj[key] !== null) {
|
|
12
|
+
if (hasTypeOfBlock(obj[key], targetKey, targetValue)) {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return false;
|
|
9
20
|
};
|
|
10
21
|
|
|
11
22
|
const BannerTitle = (props) => {
|
|
@@ -15,8 +26,8 @@ const BannerTitle = (props) => {
|
|
|
15
26
|
blocks: { blocksConfig },
|
|
16
27
|
} = config;
|
|
17
28
|
const TitleBlockView = blocksConfig?.title?.view;
|
|
18
|
-
const hasTitleBlock = hasTypeOfBlock('
|
|
19
|
-
const hasCountryFlagBlock = hasTypeOfBlock('
|
|
29
|
+
const hasTitleBlock = hasTypeOfBlock(blocks, '@type', 'title');
|
|
30
|
+
const hasCountryFlagBlock = hasTypeOfBlock(blocks, '@type', 'countryFlag');
|
|
20
31
|
const types = ['Subsite', 'LRF', 'Plone Site'];
|
|
21
32
|
const isHomePage = types.indexOf(content?.['@type']) > -1;
|
|
22
33
|
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ShareInfo,
|
|
8
8
|
BannerTitle,
|
|
9
9
|
} from '@eeacms/volto-cca-policy/helpers';
|
|
10
|
-
import { Segment, Divider } from 'semantic-ui-react';
|
|
10
|
+
import { Segment, Divider, Image } from 'semantic-ui-react';
|
|
11
11
|
import { UniversalLink } from '@plone/volto/components';
|
|
12
12
|
import cx from 'classnames';
|
|
13
13
|
|
|
@@ -109,6 +109,7 @@ function AdaptationOptionView(props) {
|
|
|
109
109
|
websites,
|
|
110
110
|
source,
|
|
111
111
|
ipcc_category,
|
|
112
|
+
logo,
|
|
112
113
|
} = content;
|
|
113
114
|
|
|
114
115
|
const usedSections = dataDisplay.filter((data) =>
|
|
@@ -120,6 +121,13 @@ function AdaptationOptionView(props) {
|
|
|
120
121
|
<BannerTitle content={content} type="Adaptation Option" />
|
|
121
122
|
|
|
122
123
|
<div className="ui container">
|
|
124
|
+
{logo && (
|
|
125
|
+
<Image
|
|
126
|
+
src={logo?.scales?.mini?.download}
|
|
127
|
+
alt={content.title}
|
|
128
|
+
className="db-logo"
|
|
129
|
+
/>
|
|
130
|
+
)}
|
|
123
131
|
<HTMLField value={long_description} />
|
|
124
132
|
<SectionsMenu sections={usedSections} />
|
|
125
133
|
<Divider />
|
|
@@ -8,19 +8,17 @@ import {
|
|
|
8
8
|
ShareInfo,
|
|
9
9
|
BannerTitle,
|
|
10
10
|
} from '@eeacms/volto-cca-policy/helpers';
|
|
11
|
-
import { Divider, Segment, Grid, Icon } from 'semantic-ui-react';
|
|
11
|
+
import { Divider, Segment, Grid, Icon, Image } from 'semantic-ui-react';
|
|
12
12
|
import { ImageGallery } from '@eeacms/volto-cca-policy/components';
|
|
13
13
|
|
|
14
14
|
const PrimaryPhoto = (props) => {
|
|
15
15
|
const { content } = props;
|
|
16
|
+
const { primary_photo, primary_photo_copyright, title } = content;
|
|
16
17
|
|
|
17
|
-
return
|
|
18
|
+
return primary_photo !== null ? (
|
|
18
19
|
<div className="case-studies-review-image-wrapper">
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
alt={content.title}
|
|
22
|
-
/>
|
|
23
|
-
<p>{content.primary_photo_copyright}</p>
|
|
20
|
+
<Image src={primary_photo?.scales?.mini?.download} alt={title} />
|
|
21
|
+
<p>{primary_photo_copyright}</p>
|
|
24
22
|
</div>
|
|
25
23
|
) : null;
|
|
26
24
|
};
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
BannerTitle,
|
|
9
9
|
DocumentsList,
|
|
10
10
|
} from '@eeacms/volto-cca-policy/helpers';
|
|
11
|
-
import { Segment, Divider } from 'semantic-ui-react';
|
|
11
|
+
import { Segment, Divider, Image } from 'semantic-ui-react';
|
|
12
12
|
|
|
13
13
|
const ContributorsList = (props) => {
|
|
14
14
|
const { content } = props;
|
|
@@ -32,12 +32,19 @@ const ContributorsList = (props) => {
|
|
|
32
32
|
|
|
33
33
|
function GuidanceView(props) {
|
|
34
34
|
const { content } = props;
|
|
35
|
-
const { long_description, websites, source, cca_files } = content;
|
|
35
|
+
const { long_description, websites, source, cca_files, logo } = content;
|
|
36
36
|
|
|
37
37
|
return (
|
|
38
38
|
<div className="db-item-view guidance-view">
|
|
39
39
|
<BannerTitle content={content} type="Guidance Document" />
|
|
40
40
|
<div className="ui container">
|
|
41
|
+
{logo && (
|
|
42
|
+
<Image
|
|
43
|
+
src={logo?.scales?.mini?.download}
|
|
44
|
+
alt={content.title}
|
|
45
|
+
className="db-logo"
|
|
46
|
+
/>
|
|
47
|
+
)}
|
|
41
48
|
<h2>Description</h2>
|
|
42
49
|
<HTMLField value={long_description} />
|
|
43
50
|
<Divider />
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ShareInfo,
|
|
8
8
|
BannerTitle,
|
|
9
9
|
} from '@eeacms/volto-cca-policy/helpers';
|
|
10
|
-
import { Segment, Divider } from 'semantic-ui-react';
|
|
10
|
+
import { Segment, Divider, Image } from 'semantic-ui-react';
|
|
11
11
|
|
|
12
12
|
function IndicatorView(props) {
|
|
13
13
|
const { content } = props;
|
|
@@ -17,13 +17,21 @@ function IndicatorView(props) {
|
|
|
17
17
|
source,
|
|
18
18
|
contributor_list,
|
|
19
19
|
other_contributor,
|
|
20
|
+
logo,
|
|
20
21
|
} = content;
|
|
21
22
|
|
|
22
23
|
return (
|
|
23
24
|
<div className="db-item-view indicator-view">
|
|
24
|
-
<BannerTitle content={content} type="Indicator" />
|
|
25
|
+
<BannerTitle content={{ ...content, image: '' }} type="Indicator" />
|
|
25
26
|
|
|
26
27
|
<div className="ui container">
|
|
28
|
+
{logo && (
|
|
29
|
+
<Image
|
|
30
|
+
src={logo?.scales?.mini?.download}
|
|
31
|
+
alt={content.title}
|
|
32
|
+
className="db-logo"
|
|
33
|
+
/>
|
|
34
|
+
)}
|
|
27
35
|
<h2>Description</h2>
|
|
28
36
|
<HTMLField value={long_description} />
|
|
29
37
|
<Divider />
|
|
@@ -7,17 +7,24 @@ import {
|
|
|
7
7
|
ShareInfo,
|
|
8
8
|
BannerTitle,
|
|
9
9
|
} from '@eeacms/volto-cca-policy/helpers';
|
|
10
|
-
import { Segment } from 'semantic-ui-react';
|
|
10
|
+
import { Segment, Image } from 'semantic-ui-react';
|
|
11
11
|
|
|
12
12
|
function InformationPortalView(props) {
|
|
13
13
|
const { content } = props;
|
|
14
|
-
const { long_description, websites, source } = content;
|
|
14
|
+
const { long_description, websites, source, logo } = content;
|
|
15
15
|
|
|
16
16
|
return (
|
|
17
17
|
<div className="db-item-view information-portal-view">
|
|
18
18
|
<BannerTitle content={content} type="Information Portal" />
|
|
19
19
|
|
|
20
20
|
<div className="ui container">
|
|
21
|
+
{logo && (
|
|
22
|
+
<Image
|
|
23
|
+
src={logo?.scales?.mini?.download}
|
|
24
|
+
alt={content.title}
|
|
25
|
+
className="db-logo"
|
|
26
|
+
/>
|
|
27
|
+
)}
|
|
21
28
|
<h2>Description</h2>
|
|
22
29
|
<HTMLField value={long_description} />
|
|
23
30
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { HTMLField } from '@eeacms/volto-cca-policy/helpers';
|
|
4
4
|
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
5
|
-
import config from '@plone/volto/registry';
|
|
6
5
|
import { Label } from 'semantic-ui-react';
|
|
6
|
+
import { BannerTitle } from '@eeacms/volto-cca-policy/components';
|
|
7
7
|
|
|
8
8
|
// const Date = (props) => {
|
|
9
9
|
// const date = props.content?.effective;
|
|
@@ -27,19 +27,11 @@ const SubjectTags = (props) => {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
function CcaEventView(props) {
|
|
30
|
-
const {
|
|
31
|
-
blocks: { blocksConfig },
|
|
32
|
-
} = config;
|
|
33
|
-
const TitleBlockView = blocksConfig?.title?.view;
|
|
34
30
|
const { content } = props;
|
|
35
31
|
|
|
36
32
|
return (
|
|
37
33
|
<div className="cca-newsitem-view">
|
|
38
|
-
<
|
|
39
|
-
{...props}
|
|
40
|
-
data={{ info: [{ description: '' }] }}
|
|
41
|
-
metadata={content}
|
|
42
|
-
/>
|
|
34
|
+
<BannerTitle content={content} />
|
|
43
35
|
<div className="ui container">
|
|
44
36
|
<p>{content.description}</p>
|
|
45
37
|
<HTMLField value={content.text} className="long_description" />
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
ShareInfo,
|
|
9
9
|
BannerTitle,
|
|
10
10
|
} from '@eeacms/volto-cca-policy/helpers';
|
|
11
|
-
import { Segment, Divider } from 'semantic-ui-react';
|
|
11
|
+
import { Segment, Divider, Image } from 'semantic-ui-react';
|
|
12
12
|
|
|
13
13
|
function OrganisationView(props) {
|
|
14
14
|
const { content } = props;
|
|
15
|
-
const { long_description, websites, relatedItems } = content;
|
|
15
|
+
const { long_description, websites, relatedItems, logo } = content;
|
|
16
16
|
|
|
17
17
|
let organisationDocuments = [];
|
|
18
18
|
let contentRelatedItems = [];
|
|
@@ -32,7 +32,15 @@ function OrganisationView(props) {
|
|
|
32
32
|
|
|
33
33
|
<div className="ui container">
|
|
34
34
|
<div>
|
|
35
|
+
{logo && (
|
|
36
|
+
<Image
|
|
37
|
+
src={logo?.scales?.mini?.download}
|
|
38
|
+
alt={content.title}
|
|
39
|
+
className="db-logo"
|
|
40
|
+
/>
|
|
41
|
+
)}
|
|
35
42
|
<h2>Description</h2>
|
|
43
|
+
|
|
36
44
|
<HTMLField value={long_description} />
|
|
37
45
|
<Divider />
|
|
38
46
|
<h2>Reference information</h2>
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
PublishedModifiedInfo,
|
|
7
7
|
ShareInfo,
|
|
8
8
|
} from '@eeacms/volto-cca-policy/helpers';
|
|
9
|
-
import { Divider, Segment } from 'semantic-ui-react';
|
|
9
|
+
import { Divider, Segment, Image } from 'semantic-ui-react';
|
|
10
10
|
|
|
11
11
|
import config from '@plone/volto/registry';
|
|
12
12
|
|
|
@@ -20,6 +20,7 @@ function ProjectView(props) {
|
|
|
20
20
|
acronym,
|
|
21
21
|
title,
|
|
22
22
|
websites,
|
|
23
|
+
logo,
|
|
23
24
|
} = content;
|
|
24
25
|
|
|
25
26
|
const {
|
|
@@ -49,6 +50,13 @@ function ProjectView(props) {
|
|
|
49
50
|
/>
|
|
50
51
|
|
|
51
52
|
<div className="ui container">
|
|
53
|
+
{logo && (
|
|
54
|
+
<Image
|
|
55
|
+
src={logo?.scales?.mini?.download}
|
|
56
|
+
alt={content.title}
|
|
57
|
+
className="db-logo"
|
|
58
|
+
/>
|
|
59
|
+
)}
|
|
52
60
|
<h2>Description</h2>
|
|
53
61
|
<HTMLField value={long_description} />
|
|
54
62
|
|
|
@@ -7,17 +7,25 @@ import {
|
|
|
7
7
|
ReferenceInfo,
|
|
8
8
|
BannerTitle,
|
|
9
9
|
} from '@eeacms/volto-cca-policy/helpers';
|
|
10
|
-
import { Segment } from 'semantic-ui-react';
|
|
10
|
+
import { Segment, Image } from 'semantic-ui-react';
|
|
11
11
|
|
|
12
12
|
function PublicationReportView(props) {
|
|
13
13
|
const { content } = props;
|
|
14
|
-
const { cca_files } = content;
|
|
14
|
+
const { cca_files, logo } = content;
|
|
15
15
|
|
|
16
16
|
return (
|
|
17
17
|
<div className="db-item-view publication-report-view">
|
|
18
18
|
<BannerTitle content={content} type="Publications and Report" />
|
|
19
19
|
|
|
20
20
|
<div className="ui container">
|
|
21
|
+
{logo && (
|
|
22
|
+
<Image
|
|
23
|
+
src={logo?.scales?.mini?.download}
|
|
24
|
+
alt={content.title}
|
|
25
|
+
className="db-logo"
|
|
26
|
+
/>
|
|
27
|
+
)}
|
|
28
|
+
|
|
21
29
|
<ReferenceInfo content={content} />
|
|
22
30
|
<PublishedModifiedInfo {...props} />
|
|
23
31
|
<ShareInfo {...props} />
|
|
@@ -5,16 +5,23 @@ import {
|
|
|
5
5
|
ReferenceInfo,
|
|
6
6
|
BannerTitle,
|
|
7
7
|
} from '@eeacms/volto-cca-policy/helpers';
|
|
8
|
-
import { Segment } from 'semantic-ui-react';
|
|
8
|
+
import { Segment, Image } from 'semantic-ui-react';
|
|
9
9
|
|
|
10
10
|
function ToolView(props) {
|
|
11
|
-
const { content } = props;
|
|
11
|
+
const { content, logo } = props;
|
|
12
12
|
|
|
13
13
|
return (
|
|
14
14
|
<div className="db-item-view tool-view">
|
|
15
15
|
<BannerTitle content={content} type="Tools" />
|
|
16
16
|
|
|
17
17
|
<div className="ui container">
|
|
18
|
+
{logo && (
|
|
19
|
+
<Image
|
|
20
|
+
src={logo?.scales?.mini?.download}
|
|
21
|
+
alt={content.title}
|
|
22
|
+
className="db-logo"
|
|
23
|
+
/>
|
|
24
|
+
)}
|
|
18
25
|
<ReferenceInfo content={content} />
|
|
19
26
|
<PublishedModifiedInfo {...props} />
|
|
20
27
|
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ShareInfo,
|
|
8
8
|
BannerTitle,
|
|
9
9
|
} from '@eeacms/volto-cca-policy/helpers';
|
|
10
|
-
import { Divider, Segment } from 'semantic-ui-react';
|
|
10
|
+
import { Divider, Segment, Image } from 'semantic-ui-react';
|
|
11
11
|
|
|
12
12
|
function VideoView(props) {
|
|
13
13
|
const { content } = props;
|
|
@@ -19,6 +19,7 @@ function VideoView(props) {
|
|
|
19
19
|
long_description,
|
|
20
20
|
other_contributor,
|
|
21
21
|
related_documents_presentations,
|
|
22
|
+
logo,
|
|
22
23
|
} = content;
|
|
23
24
|
|
|
24
25
|
const share_eea = ['https://cmshare.eea.eu', 'shareit.eea.europa.eu'];
|
|
@@ -39,6 +40,14 @@ function VideoView(props) {
|
|
|
39
40
|
<BannerTitle content={content} type="Video" />
|
|
40
41
|
|
|
41
42
|
<div className="ui container">
|
|
43
|
+
{logo && (
|
|
44
|
+
<Image
|
|
45
|
+
src={logo?.scales?.mini?.download}
|
|
46
|
+
alt={content.title}
|
|
47
|
+
className="db-logo"
|
|
48
|
+
/>
|
|
49
|
+
)}
|
|
50
|
+
|
|
42
51
|
{is_cmshare_video && (
|
|
43
52
|
<div className="video-wrapper">
|
|
44
53
|
<center>
|
|
@@ -50,7 +50,10 @@ export function addExpandersToPath(path, type, isAnonymous) {
|
|
|
50
50
|
} = qs.parseUrl(path, { decode: false });
|
|
51
51
|
|
|
52
52
|
const expandersFromConfig = apiExpanders
|
|
53
|
-
.filter((expand) =>
|
|
53
|
+
.filter((expand) => {
|
|
54
|
+
const res = matchPath(url, expand.match) && expand[type];
|
|
55
|
+
return res;
|
|
56
|
+
})
|
|
54
57
|
.map((expand) => expand[type]);
|
|
55
58
|
|
|
56
59
|
const expandMerge = compact(
|
package/src/index.js
CHANGED
|
@@ -485,6 +485,16 @@ const applyConfig = (config) => {
|
|
|
485
485
|
},
|
|
486
486
|
];
|
|
487
487
|
|
|
488
|
+
config.settings.apiExpanders = [
|
|
489
|
+
...config.settings.apiExpanders,
|
|
490
|
+
{
|
|
491
|
+
match: {
|
|
492
|
+
path: /(.*)\/policy-context\/country-profiles\/(.*)/,
|
|
493
|
+
},
|
|
494
|
+
GET_CONTENT: ['siblings'],
|
|
495
|
+
},
|
|
496
|
+
];
|
|
497
|
+
|
|
488
498
|
return compose(installBlocks, installSearchEngine, installStore)(config);
|
|
489
499
|
};
|
|
490
500
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.section-search-the-database .block.call-to-action.align.center a {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
body.searchlib-page .searchlib-block {
|
|
6
|
+
.ui.secondary.pointing.content-section-tabs.menu {
|
|
7
|
+
.active.item .tab-icon .count {
|
|
8
|
+
border-color: @ccaGreenColor;
|
|
9
|
+
background-color: @ccaGreenColor;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.searchlib-page .content-section-tabs.menu .item i.icon.small {
|
|
15
|
+
width: 32px;
|
|
16
|
+
height: 32px;
|
|
17
|
+
font-size: 32px;
|
|
18
|
+
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*******************************/
|
|
4
4
|
@import './mission.less';
|
|
5
5
|
@import './observatory.less';
|
|
6
|
+
@import './views.less';
|
|
7
|
+
@import './search.less';
|
|
6
8
|
|
|
7
9
|
// [class~='view-defaultview'] [id='page-document'] > *,
|
|
8
10
|
// [class~='view-viewview'] [id='page-document'] > * {
|
|
@@ -15,8 +17,11 @@
|
|
|
15
17
|
@green-2 97.12%
|
|
16
18
|
);
|
|
17
19
|
|
|
18
|
-
.
|
|
19
|
-
|
|
20
|
+
.ui.ordered.list,
|
|
21
|
+
.ui.ordered.list .list,
|
|
22
|
+
ol.ui.list,
|
|
23
|
+
ol.ui.list ol {
|
|
24
|
+
padding-left: 1.25rem;
|
|
20
25
|
}
|
|
21
26
|
|
|
22
27
|
body.subsite-root .content-area {
|
|
@@ -79,216 +84,7 @@ p.has--clear--both:empty {
|
|
|
79
84
|
// // }
|
|
80
85
|
// }
|
|
81
86
|
|
|
82
|
-
// Case study view styles
|
|
83
|
-
.case-study-view {
|
|
84
|
-
.case-studies-review-image-wrapper {
|
|
85
|
-
position: relative;
|
|
86
|
-
margin-right: 1.5em;
|
|
87
|
-
float: left;
|
|
88
|
-
|
|
89
|
-
p {
|
|
90
|
-
font-size: 90%;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// Video view styles
|
|
96
|
-
div.video-view {
|
|
97
|
-
video {
|
|
98
|
-
margin-top: 1.5em;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
div.external-video {
|
|
102
|
-
margin-top: 1.5em;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
// C3S Indicator view styles
|
|
107
|
-
div.c3sindicator-view {
|
|
108
|
-
iframe {
|
|
109
|
-
border: none;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.ui.accordion {
|
|
113
|
-
margin: 1.5em 0;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// Geochars widget
|
|
118
|
-
div.geochars-field {
|
|
119
|
-
div.checkbox {
|
|
120
|
-
margin-right: 1em;
|
|
121
|
-
|
|
122
|
-
label {
|
|
123
|
-
padding-left: 1.5em;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.section-metadata {
|
|
129
|
-
.content-area {
|
|
130
|
-
margin-bottom: 0 !important;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
hr {
|
|
135
|
-
height: 1px;
|
|
136
|
-
border: none;
|
|
137
|
-
margin: 2em 0;
|
|
138
|
-
background-color: #e6e7e8;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.ui.modal.slider-modal {
|
|
142
|
-
.content {
|
|
143
|
-
padding: 2em;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.slick-slider {
|
|
147
|
-
padding: 1em 2em;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.slide-image-count {
|
|
151
|
-
text-align: center;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.slick-arrow {
|
|
155
|
-
width: 35px;
|
|
156
|
-
height: 35px;
|
|
157
|
-
|
|
158
|
-
&:before {
|
|
159
|
-
font-size: 30px;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.slick-prev {
|
|
164
|
-
left: -13px;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.slick-next {
|
|
168
|
-
right: -13px;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.db-item-view {
|
|
173
|
-
.ui.divider {
|
|
174
|
-
margin: 2em 0;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.casetstudy-gallery {
|
|
178
|
-
cursor: pointer;
|
|
179
|
-
|
|
180
|
-
.gallery-title {
|
|
181
|
-
padding: 2px 4px;
|
|
182
|
-
background-color: #f2c94c;
|
|
183
|
-
font-weight: bold;
|
|
184
|
-
text-align: center;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.bottom-text {
|
|
189
|
-
margin-bottom: 2em;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.c3s-buttons {
|
|
193
|
-
display: flex;
|
|
194
|
-
flex-direction: row;
|
|
195
|
-
justify-content: space-between;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.adaptation-details {
|
|
199
|
-
display: flex;
|
|
200
|
-
flex-direction: row;
|
|
201
|
-
margin: 2em 0;
|
|
202
|
-
gap: 5em;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.ui.segment {
|
|
206
|
-
margin-bottom: 1.5em;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.section {
|
|
210
|
-
.section-title {
|
|
211
|
-
margin-top: 1em;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.documents-list {
|
|
216
|
-
padding: 0;
|
|
217
|
-
list-style-type: none;
|
|
218
|
-
|
|
219
|
-
li a:before {
|
|
220
|
-
content: '' !important;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.share-info {
|
|
225
|
-
margin: 3.5em 0 !important;
|
|
226
|
-
|
|
227
|
-
.ui.button {
|
|
228
|
-
margin: 0 !important;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.ui.button {
|
|
233
|
-
margin: 1.5em 0 !important;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.content-box {
|
|
237
|
-
margin: 0;
|
|
238
|
-
|
|
239
|
-
h5 {
|
|
240
|
-
color: @secondaryColor;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.content-box-inner {
|
|
244
|
-
padding: 3.5em 0;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
.video-wrapper {
|
|
249
|
-
margin-bottom: 2em;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
.content-metadata {
|
|
253
|
-
h5 {
|
|
254
|
-
margin: 1em 0 0.5em 0;
|
|
255
|
-
color: @secondaryColor;
|
|
256
|
-
|
|
257
|
-
&:first-child {
|
|
258
|
-
margin-top: 0;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
p,
|
|
263
|
-
span {
|
|
264
|
-
color: @grey-4;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
87
|
// General styles
|
|
270
|
-
.btn-right {
|
|
271
|
-
margin: calc(2rem - 0.1em) 0em 1rem;
|
|
272
|
-
float: right;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.published-modified-info {
|
|
276
|
-
margin: 2em 0;
|
|
277
|
-
font-size: 0.8em;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.content-metadata {
|
|
281
|
-
.columned.related-case-studies {
|
|
282
|
-
column-count: 2;
|
|
283
|
-
column-gap: 4em;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.related-case-studies {
|
|
287
|
-
li {
|
|
288
|
-
margin-bottom: 0.5em;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
88
|
|
|
293
89
|
.listing-body-dates:empty {
|
|
294
90
|
margin-bottom: 0;
|
|
@@ -346,21 +142,6 @@ body.subsite {
|
|
|
346
142
|
margin-right: auto;
|
|
347
143
|
}
|
|
348
144
|
|
|
349
|
-
body.searchlib-page .searchlib-block {
|
|
350
|
-
.ui.secondary.pointing.content-section-tabs.menu {
|
|
351
|
-
.active.item .tab-icon .count {
|
|
352
|
-
border-color: @ccaGreenColor;
|
|
353
|
-
background-color: @ccaGreenColor;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
.searchlib-page .content-section-tabs.menu .item i.icon.small {
|
|
359
|
-
width: 32px;
|
|
360
|
-
height: 32px;
|
|
361
|
-
font-size: 32px;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
145
|
// Fix margin in simple item listing
|
|
365
146
|
.u-item.listing-item.simple-listing-item .listing-body {
|
|
366
147
|
margin-top: 0;
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
// Case study view styles
|
|
2
|
+
.case-study-view {
|
|
3
|
+
.case-studies-review-image-wrapper {
|
|
4
|
+
position: relative;
|
|
5
|
+
margin-right: 1.5em;
|
|
6
|
+
float: left;
|
|
7
|
+
|
|
8
|
+
p {
|
|
9
|
+
font-size: 90%;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Video view styles
|
|
15
|
+
div.video-view {
|
|
16
|
+
video {
|
|
17
|
+
margin-top: 1.5em;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
div.external-video {
|
|
21
|
+
margin-top: 1.5em;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// C3S Indicator view styles
|
|
26
|
+
div.c3sindicator-view {
|
|
27
|
+
iframe {
|
|
28
|
+
border: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ui.accordion {
|
|
32
|
+
margin: 1.5em 0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Geochars widget
|
|
37
|
+
div.geochars-field {
|
|
38
|
+
div.checkbox {
|
|
39
|
+
margin-right: 1em;
|
|
40
|
+
|
|
41
|
+
label {
|
|
42
|
+
padding-left: 1.5em;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.content-metadata {
|
|
48
|
+
.columned.related-case-studies {
|
|
49
|
+
column-count: 2;
|
|
50
|
+
column-gap: 4em;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.related-case-studies {
|
|
54
|
+
li {
|
|
55
|
+
margin-bottom: 0.5em;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.btn-right {
|
|
61
|
+
margin: calc(2rem - 0.1em) 0em 1rem;
|
|
62
|
+
float: right;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.published-modified-info {
|
|
66
|
+
margin: 2em 0;
|
|
67
|
+
font-size: 0.8em;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.section-metadata,
|
|
71
|
+
.section-\+\+aq\+\+metadata {
|
|
72
|
+
.content-area {
|
|
73
|
+
margin-bottom: 0 !important;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
hr {
|
|
78
|
+
height: 1px;
|
|
79
|
+
border: none;
|
|
80
|
+
margin: 2em 0;
|
|
81
|
+
background-color: #e6e7e8;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.ui.modal.slider-modal {
|
|
85
|
+
.content {
|
|
86
|
+
padding: 2em;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.slick-slider {
|
|
90
|
+
padding: 1em 2em;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.slide-image-count {
|
|
94
|
+
text-align: center;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.slick-arrow {
|
|
98
|
+
width: 35px;
|
|
99
|
+
height: 35px;
|
|
100
|
+
|
|
101
|
+
&:before {
|
|
102
|
+
font-size: 30px;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.slick-prev {
|
|
107
|
+
left: -13px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.slick-next {
|
|
111
|
+
right: -13px;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.db-item-view {
|
|
116
|
+
.db-logo {
|
|
117
|
+
max-width: 150px !important;
|
|
118
|
+
margin-bottom: 1em;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ui.divider {
|
|
122
|
+
margin: 2em 0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.casetstudy-gallery {
|
|
126
|
+
cursor: pointer;
|
|
127
|
+
|
|
128
|
+
.gallery-title {
|
|
129
|
+
padding: 2px 4px;
|
|
130
|
+
background-color: #f2c94c;
|
|
131
|
+
font-weight: bold;
|
|
132
|
+
text-align: center;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.bottom-text {
|
|
137
|
+
margin-bottom: 2em;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.c3s-buttons {
|
|
141
|
+
display: flex;
|
|
142
|
+
flex-direction: row;
|
|
143
|
+
justify-content: space-between;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.adaptation-details {
|
|
147
|
+
display: flex;
|
|
148
|
+
flex-direction: row;
|
|
149
|
+
margin: 2em 0;
|
|
150
|
+
gap: 5em;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.ui.segment {
|
|
154
|
+
margin-bottom: 1.5em;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.section {
|
|
158
|
+
.section-title {
|
|
159
|
+
margin-top: 1em;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.documents-list {
|
|
164
|
+
padding: 0;
|
|
165
|
+
list-style-type: none;
|
|
166
|
+
|
|
167
|
+
li a:before {
|
|
168
|
+
content: '' !important;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.share-info {
|
|
173
|
+
margin: 3.5em 0 !important;
|
|
174
|
+
|
|
175
|
+
.ui.button {
|
|
176
|
+
margin: 0 !important;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.ui.button {
|
|
181
|
+
margin: 1.5em 0 !important;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.content-box {
|
|
185
|
+
margin: 0;
|
|
186
|
+
|
|
187
|
+
h5 {
|
|
188
|
+
color: @secondaryColor;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.content-box-inner {
|
|
192
|
+
padding: 3.5em 0;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.video-wrapper {
|
|
197
|
+
margin-bottom: 2em;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.content-metadata {
|
|
201
|
+
h5 {
|
|
202
|
+
margin: 1em 0 0.5em 0;
|
|
203
|
+
color: @secondaryColor;
|
|
204
|
+
|
|
205
|
+
&:first-child {
|
|
206
|
+
margin-top: 0;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
p,
|
|
211
|
+
span {
|
|
212
|
+
color: @grey-4;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|