@eeacms/volto-clms-theme 1.1.65 → 1.1.67
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 +12 -3
- package/Jenkinsfile +1 -1
- package/package.json +1 -1
- package/src/components/CLMSTechnicalLibraryView/CLMSTechnicalLibraryView.jsx +45 -0
- package/src/components/CclCard/CclCard.jsx +5 -1
- package/src/index.js +2 -0
- package/theme/site/extras/styles.less +46 -42
- package/theme/site/extras/video.less +62 -19
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,20 @@ 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.1.
|
|
7
|
+
### [1.1.67](https://github.com/eea/volto-clms-theme/compare/1.1.66...1.1.67) - 23 October 2023
|
|
8
8
|
|
|
9
|
-
#### :
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- use land.copernicus.eu tag [Mikel Larreategi - [`7929a3c`](https://github.com/eea/volto-clms-theme/commit/7929a3c3cc24a0901c64d82427ab4b48622fbdef)]
|
|
12
|
+
- styling of floating videos [Mikel Larreategi - [`06703b8`](https://github.com/eea/volto-clms-theme/commit/06703b856f2d1922de2b899e3b9f27b62b6f3803)]
|
|
13
|
+
- style the ul-li items not to hide the bullet points behing floating images [Mikel Larreategi - [`abfa4a8`](https://github.com/eea/volto-clms-theme/commit/abfa4a8b2dc175a012b74f95a4c70280ce6bdf0a)]
|
|
14
|
+
- lint [Mikel Larreategi - [`caad34d`](https://github.com/eea/volto-clms-theme/commit/caad34d662171ed6c965ef0032fa1e7c45d2497c)]
|
|
15
|
+
### [1.1.66](https://github.com/eea/volto-clms-theme/compare/1.1.65...1.1.66) - 23 October 2023
|
|
10
16
|
|
|
11
|
-
|
|
17
|
+
#### :hammer_and_wrench: Others
|
|
18
|
+
|
|
19
|
+
- eslint [Mikel Larreategi - [`e4e4b0f`](https://github.com/eea/volto-clms-theme/commit/e4e4b0fafe9115071863e403d93065e54d1df0f4)]
|
|
20
|
+
### [1.1.65](https://github.com/eea/volto-clms-theme/compare/1.1.64...1.1.65) - 19 October 2023
|
|
12
21
|
|
|
13
22
|
### [1.1.64](https://github.com/eea/volto-clms-theme/compare/1.1.63...1.1.64) - 19 October 2023
|
|
14
23
|
|
package/Jenkinsfile
CHANGED
|
@@ -4,7 +4,7 @@ pipeline {
|
|
|
4
4
|
environment {
|
|
5
5
|
GIT_NAME = "volto-clms-theme"
|
|
6
6
|
NAMESPACE = "@eeacms"
|
|
7
|
-
SONARQUBE_TAGS = "clms.land.copernicus.eu,volto.eea.europa.eu,clmsdemo.devel6cph.eea.europa.eu"
|
|
7
|
+
SONARQUBE_TAGS = "clms.land.copernicus.eu,volto.eea.europa.eu,clmsdemo.devel6cph.eea.europa.eu,land.copernicus.eu"
|
|
8
8
|
DEPENDENCIES = ""
|
|
9
9
|
VOLTO = "16.24.0"
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import CclButton from '../CclButton/CclButton';
|
|
3
|
+
|
|
4
|
+
const CLMSTechnicalLibraryView = (props) => {
|
|
5
|
+
const { content } = props;
|
|
6
|
+
return (
|
|
7
|
+
<div className="ccl-container">
|
|
8
|
+
<>
|
|
9
|
+
<h1 className="page-title">{content.title}</h1>
|
|
10
|
+
{content.description && (
|
|
11
|
+
<div className="technicallibrary-description">
|
|
12
|
+
{content.description}
|
|
13
|
+
</div>
|
|
14
|
+
)}
|
|
15
|
+
<div className="technicallibrary-content">
|
|
16
|
+
{content.ondemand ? (
|
|
17
|
+
<>
|
|
18
|
+
<p>
|
|
19
|
+
You are requesting an on-demand document. Please contact the
|
|
20
|
+
service desk to obtain it.
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
<CclButton to={`/en/contact-service-helpdesk`}>
|
|
24
|
+
Helpdesk
|
|
25
|
+
</CclButton>
|
|
26
|
+
</>
|
|
27
|
+
) : (
|
|
28
|
+
<>
|
|
29
|
+
<p>You can download the file using this link</p>
|
|
30
|
+
<CclButton
|
|
31
|
+
url={`${content['@id']}/@@download/file`}
|
|
32
|
+
download={true}
|
|
33
|
+
target="_blank"
|
|
34
|
+
>
|
|
35
|
+
Download File
|
|
36
|
+
</CclButton>
|
|
37
|
+
</>
|
|
38
|
+
)}
|
|
39
|
+
</div>
|
|
40
|
+
</>
|
|
41
|
+
</div>
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export default CLMSTechnicalLibraryView;
|
|
@@ -62,7 +62,11 @@ const DocCard = ({ card, url, showEditor, children }) => {
|
|
|
62
62
|
<div className="card-doc-header">
|
|
63
63
|
<div className="card-doc-title">
|
|
64
64
|
{card?.['@type'] === 'TechnicalLibrary' ? (
|
|
65
|
-
|
|
65
|
+
card?.ondemand ? (
|
|
66
|
+
<a href={`${card['@id']}`}>{card?.title}</a>
|
|
67
|
+
) : (
|
|
68
|
+
<a href={`${card['@id']}/@@download/file`}>{card?.title}</a>
|
|
69
|
+
)
|
|
66
70
|
) : (
|
|
67
71
|
<Link to={url}>{card?.title}</Link>
|
|
68
72
|
)}
|
package/src/index.js
CHANGED
|
@@ -25,6 +25,7 @@ import CLMSWorkOpportunityView from '@eeacms/volto-clms-theme/components/CLMSWor
|
|
|
25
25
|
import CLMSUseCaseView from './components/CLMSUseCasesView/CLMSUseCasesView';
|
|
26
26
|
import CLMSFAQView from './components/CLMSFAQView/CLMSFAQView';
|
|
27
27
|
import CLMSDataSetAccordionView from './components/CLMSDataSetAccordionView/CLMSDataSetAccordionView';
|
|
28
|
+
import CLMSTechnicalLibraryView from './components/CLMSTechnicalLibraryView/CLMSTechnicalLibraryView';
|
|
28
29
|
|
|
29
30
|
// WIDGET
|
|
30
31
|
import BoundingWidget from './components/Widgets/BoundingWidget';
|
|
@@ -77,6 +78,7 @@ const applyConfig = (config) => {
|
|
|
77
78
|
FAQ: CLMSFAQView,
|
|
78
79
|
Image: ImageView,
|
|
79
80
|
DataSetAccordion: CLMSDataSetAccordionView,
|
|
81
|
+
TechnicalLibrary: CLMSTechnicalLibraryView,
|
|
80
82
|
},
|
|
81
83
|
};
|
|
82
84
|
config.blocks = {
|
|
@@ -27,18 +27,18 @@ hr {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
hr
|
|
30
|
-
+ body:not(.contenttype-lrf:not(.section-cart):not(.section-profile):not(.section-newsletter-notification-subscription):not(.section-newsletter-notification-unsubscription):not(.section-logout))
|
|
31
|
-
main {
|
|
30
|
+
+ body:not(.contenttype-lrf:not(.section-cart):not(.section-profile):not(.section-newsletter-notification-subscription):not(.section-newsletter-notification-unsubscription):not(.section-logout))
|
|
31
|
+
main {
|
|
32
32
|
margin-bottom: 2rem;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
body:not(.contenttype-lrf:not(.section-cart):not(.section-profile):not(.section-newsletter-notification-subscription):not(.section-newsletter-notification-unsubscription):not(.section-logout))
|
|
36
|
-
main:not(.map-main) {
|
|
36
|
+
main:not(.map-main) {
|
|
37
37
|
min-height: 70vh;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.map-body:not(.contenttype-lrf:not(.section-cart):not(.section-profile):not(.section-newsletter-notification-subscription):not(.section-newsletter-notification-unsubscription):not(.section-logout))
|
|
41
|
-
main {
|
|
41
|
+
main {
|
|
42
42
|
margin-bottom: 0;
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -110,7 +110,7 @@ ol > li::marker {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
ul > ul {
|
|
113
|
-
margin-left: 1.125rem
|
|
113
|
+
margin-left: 1.125rem;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
/* Links */
|
|
@@ -169,77 +169,77 @@ body.contenttype-lrf:not(.section-cart):not(.profilecart) main .ccl-container {
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
body:not(.contenttype-lrf:not(.section-cart):not(.section-profile))
|
|
172
|
-
main
|
|
173
|
-
.ccl-container {
|
|
172
|
+
main
|
|
173
|
+
.ccl-container {
|
|
174
174
|
max-width: 100%;
|
|
175
175
|
padding: 0;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
body:not(.contenttype-lrf:not(.section-cart):not(.section-profile))
|
|
179
|
-
main
|
|
180
|
-
.ccl-container
|
|
181
|
-
.cont-w-25 {
|
|
179
|
+
main
|
|
180
|
+
.ccl-container
|
|
181
|
+
.cont-w-25 {
|
|
182
182
|
max-width: 100%;
|
|
183
183
|
flex: 0 0 100%;
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
body:not(.contenttype-lrf:not(.section-cart):not(.section-profile))
|
|
187
|
-
main
|
|
188
|
-
.ccl-container
|
|
189
|
-
.cont-w-50 {
|
|
187
|
+
main
|
|
188
|
+
.ccl-container
|
|
189
|
+
.cont-w-50 {
|
|
190
190
|
max-width: 100%;
|
|
191
191
|
flex: 0 0 100%;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
body:not(.contenttype-lrf:not(.section-cart):not(.section-profile))
|
|
195
|
-
main
|
|
196
|
-
.ccl-container
|
|
197
|
-
.cont-w-75 {
|
|
195
|
+
main
|
|
196
|
+
.ccl-container
|
|
197
|
+
.cont-w-75 {
|
|
198
198
|
max-width: 100%;
|
|
199
199
|
flex: 0 0 100%;
|
|
200
200
|
}
|
|
201
201
|
@media (min-width: 576px) {
|
|
202
202
|
body:not(.contenttype-lrf:not(.section-cart):not(.section-profile))
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
main
|
|
204
|
+
.ccl-container {
|
|
205
205
|
max-width: 540px;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
@media (min-width: 768px) {
|
|
209
209
|
body:not(.contenttype-lrf:not(.section-cart):not(.section-profile))
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
main
|
|
211
|
+
.ccl-container {
|
|
212
212
|
max-width: 720px;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
body:not(.contenttype-lrf:not(.section-cart):not(.section-profile))
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
216
|
+
main
|
|
217
|
+
.ccl-container
|
|
218
|
+
.cont-w-25 {
|
|
219
219
|
max-width: 30%;
|
|
220
220
|
flex: 0 0 30%;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
body:not(.contenttype-lrf:not(.section-cart):not(.section-profile))
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
224
|
+
main
|
|
225
|
+
.ccl-container
|
|
226
|
+
.cont-w-50 {
|
|
227
227
|
max-width: 50%;
|
|
228
228
|
flex: 0 0 50%;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
body:not(.contenttype-lrf:not(.section-cart):not(.section-profile))
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
232
|
+
main
|
|
233
|
+
.ccl-container
|
|
234
|
+
.cont-w-75 {
|
|
235
235
|
max-width: 70%;
|
|
236
236
|
flex: 0 0 70%;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
body:not(.contenttype-lrf:not(.section-cart):not(.section-profile))
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
240
|
+
main
|
|
241
|
+
.ccl-container
|
|
242
|
+
.cont-o-1 {
|
|
243
243
|
order: 1;
|
|
244
244
|
}
|
|
245
245
|
|
|
@@ -253,30 +253,30 @@ main
|
|
|
253
253
|
}
|
|
254
254
|
@media (min-width: 992px) {
|
|
255
255
|
body:not(.contenttype-lrf:not(.section-cart):not(.section-profile))
|
|
256
|
-
|
|
257
|
-
|
|
256
|
+
main
|
|
257
|
+
.ccl-container {
|
|
258
258
|
max-width: 960px;
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
@media (min-width: 1200px) {
|
|
262
262
|
body:not(.contenttype-lrf:not(.section-cart):not(.section-profile))
|
|
263
|
-
|
|
264
|
-
|
|
263
|
+
main
|
|
264
|
+
.ccl-container {
|
|
265
265
|
max-width: 1127px;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
body:not(.contenttype-lrf:not(.section-cart):not(.section-profile))
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
269
|
+
main
|
|
270
|
+
.ccl-container
|
|
271
|
+
.cont-w-25 {
|
|
272
272
|
max-width: 25%;
|
|
273
273
|
flex: 0 0 25%;
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
body:not(.contenttype-lrf:not(.section-cart):not(.section-profile))
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
277
|
+
main
|
|
278
|
+
.ccl-container
|
|
279
|
+
.cont-w-75 {
|
|
280
280
|
max-width: 75%;
|
|
281
281
|
flex: 0 0 75%;
|
|
282
282
|
}
|
|
@@ -489,6 +489,10 @@ main
|
|
|
489
489
|
margin-top: 2rem;
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
+
body.contenttype-document .right-content ul {
|
|
493
|
+
overflow: hidden;
|
|
494
|
+
}
|
|
495
|
+
|
|
492
496
|
.card-container {
|
|
493
497
|
display: flex;
|
|
494
498
|
flex-wrap: wrap;
|
|
@@ -1,23 +1,66 @@
|
|
|
1
|
-
@media (
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
@media (max-width: 992px) {
|
|
2
|
+
.block.video.align.right .privacy-protection-wrapper,
|
|
3
|
+
.block.video.align.left .privacy-protection-wrapper {
|
|
4
|
+
width: 100%;
|
|
5
|
+
margin-right: 0;
|
|
6
|
+
margin-left: 0;
|
|
7
|
+
float: none;
|
|
8
|
+
}
|
|
9
|
+
.block.align.left.video .video-inner,
|
|
10
|
+
.block.align.right.video .video-inner {
|
|
11
|
+
width: 100%;
|
|
12
|
+
}
|
|
13
|
+
.block.align.left.maps iframe,
|
|
14
|
+
.block.align.left.video .video-inner,
|
|
15
|
+
.block.align.left img {
|
|
16
|
+
margin-right: 0 !important;
|
|
17
|
+
float: none;
|
|
18
|
+
margin-bottom: 0;
|
|
19
|
+
}
|
|
20
|
+
.block.align.right.maps iframe,
|
|
21
|
+
.block.align.right.video .video-inner,
|
|
22
|
+
.block.align.right img {
|
|
23
|
+
margin-left: 0 !important;
|
|
24
|
+
float: none;
|
|
25
|
+
margin-bottom: 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
8
28
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
width: 100% !important;
|
|
17
|
-
}
|
|
29
|
+
@media (min-width: 992px) {
|
|
30
|
+
.block.video.align.left .privacy-protection-wrapper {
|
|
31
|
+
width: 50% !important;
|
|
32
|
+
float: left !important;
|
|
33
|
+
margin-right: 1rem;
|
|
34
|
+
.video-inner {
|
|
35
|
+
width: 100% !important;
|
|
18
36
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
37
|
+
}
|
|
38
|
+
.block.video.align.right .privacy-protection-wrapper {
|
|
39
|
+
width: 50% !important;
|
|
40
|
+
float: right !important;
|
|
41
|
+
margin-left: 1rem;
|
|
42
|
+
.video-inner {
|
|
43
|
+
width: 100% !important;
|
|
22
44
|
}
|
|
45
|
+
}
|
|
46
|
+
.block.align.right.maps iframe,
|
|
47
|
+
.block.align.right.video .video-inner,
|
|
48
|
+
.block.align.right img {
|
|
49
|
+
margin-bottom: 1em;
|
|
50
|
+
margin-left: 1em !important;
|
|
51
|
+
float: right;
|
|
52
|
+
}
|
|
53
|
+
.block.align.left.maps iframe,
|
|
54
|
+
.block.align.left.video .video-inner,
|
|
55
|
+
.block.align.left img {
|
|
56
|
+
margin-right: 1em !important;
|
|
57
|
+
margin-bottom: 1em;
|
|
58
|
+
float: left;
|
|
59
|
+
}
|
|
60
|
+
.block.align.right.video .video-inner img,
|
|
61
|
+
.block.align.left.video .video-inner img {
|
|
62
|
+
max-width: 100%;
|
|
63
|
+
margin-left: 0 !important;
|
|
64
|
+
margin-right: 0 !important;
|
|
65
|
+
}
|
|
23
66
|
}
|