@eeacms/volto-cca-policy 0.1.45 → 0.1.46

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 CHANGED
@@ -4,6 +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
+ ### [0.1.46](https://github.com/eea/volto-cca-policy/compare/0.1.45...0.1.46) - 6 October 2023
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat: add icon for external links [kreafox - [`6cfc86b`](https://github.com/eea/volto-cca-policy/commit/6cfc86b1e15773578de3ba6f80467daf5b11b087)]
12
+
13
+ #### :nail_care: Enhancements
14
+
15
+ - change: add padding on listing summary view [kreafox - [`d86e321`](https://github.com/eea/volto-cca-policy/commit/d86e321a905dbb925847b2b0b88c20eea7da0003)]
16
+
17
+ #### :hammer_and_wrench: Others
18
+
19
+ - test: use volto version 16 [kreafox - [`a7ed678`](https://github.com/eea/volto-cca-policy/commit/a7ed678ac981213177d0377d312692b69e36c7d8)]
20
+ - Add style on listing view as well [kreafox - [`b741ca8`](https://github.com/eea/volto-cca-policy/commit/b741ca82a959a1261e8ec54ef0c7ecce9b8bfb15)]
7
21
  ### [0.1.45](https://github.com/eea/volto-cca-policy/compare/0.1.44...0.1.45) - 25 September 2023
8
22
 
9
23
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "description": "@eeacms/volto-cca-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -23,6 +23,38 @@ p.has--clear--both:empty {
23
23
  display: block;
24
24
  }
25
25
 
26
+ // Add icon for external links
27
+ #page-document {
28
+ a[rel='noopener noreferrer']:not(.ui.button),
29
+ a[target='_blank']:not(.ui.button) {
30
+ &:before {
31
+ position: relative;
32
+ top: 2px;
33
+ margin-right: 3px;
34
+ color: inherit;
35
+ content: '\ecaf';
36
+ font-family: remixicon;
37
+ font-size: 1em;
38
+ }
39
+
40
+ &:visited {
41
+ &:before {
42
+ // fix visited link icon color
43
+ // doesn't work with color: inherit
44
+ color: @linkVisitedColor;
45
+ }
46
+ }
47
+
48
+ &:active {
49
+ &:before {
50
+ // fix active link icon color
51
+ // doesn't work with color: inherit
52
+ color: @linkActiveColor;
53
+ }
54
+ }
55
+ }
56
+ }
57
+
26
58
  // Adaptation option view styles
27
59
  div.adaptation-option-view,
28
60
  div.case-study-view {
@@ -260,29 +292,47 @@ body.view-viewview.has-toolbar:not(.has-sidebar):not(.has-sidebar-collapsed) {
260
292
  /* Mission: Latest news updates, Latest events */
261
293
  body.subsite-root.section-mission {
262
294
  div.columns-view {
263
- div.block.listing.default {
295
+ div.block.listing.default,
296
+ div.block.listing.summary {
264
297
  div.items {
265
298
  div.listing-item {
266
- h4 {
267
- padding-left: 1.5em;
268
- margin-bottom: 0.5em;
269
-
270
- &:before {
271
- position: absolute;
272
- left: 0;
273
- content: '\ea6c';
274
- font-family: remixicon !important;
275
- font-style: normal;
276
- font-weight: normal;
277
- }
278
- }
279
- padding-bottom: 0.5em;
280
299
  border: none;
281
300
  margin-bottom: 0px !important;
282
301
  }
302
+
303
+ .listing-body {
304
+ position: relative;
305
+ padding-left: 2em;
306
+
307
+ &:before {
308
+ position: absolute;
309
+ top: -5px;
310
+ left: 0;
311
+ color: inherit;
312
+ content: '\ea6c';
313
+ font-family: remixicon !important;
314
+ font-size: 1.5em;
315
+ }
316
+ }
283
317
  margin-top: 1.5em;
284
318
  }
285
319
  }
320
+
321
+ div.block.listing.summary {
322
+ .u-item {
323
+ padding: 0 0 0.8em 0;
324
+ }
325
+ }
326
+
327
+ div.block.listing.default {
328
+ div.listing-item {
329
+ padding-bottom: 0.5em;
330
+
331
+ h4 {
332
+ margin-bottom: 0.5em;
333
+ }
334
+ }
335
+ }
286
336
  }
287
337
  }
288
338