@eeacms/volto-cca-policy 0.2.71 → 0.2.73

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,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.2.73](https://github.com/eea/volto-cca-policy/compare/0.2.72...0.2.73) - 22 October 2024
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat: update RAST block navigation based on the new design - refs #278874 [kreafox - [`138ce4d`](https://github.com/eea/volto-cca-policy/commit/138ce4df9ad3a328d1b135e9df9a077c7dac8c80)]
12
+
13
+ #### :house: Internal changes
14
+
15
+ - style: Automated code fix [eea-jenkins - [`43c9245`](https://github.com/eea/volto-cca-policy/commit/43c9245fa8c35853c761ecc47544fd098f8a2978)]
16
+ - style: fix text color in RAST block [kreafox - [`490ab1c`](https://github.com/eea/volto-cca-policy/commit/490ab1cb665910d04c18afd4f26e07913e427706)]
17
+ - style: Automated code fix [eea-jenkins - [`7f54efb`](https://github.com/eea/volto-cca-policy/commit/7f54efb5deafb8773c7db5bac14cf07968ed883e)]
18
+
19
+ ### [0.2.72](https://github.com/eea/volto-cca-policy/compare/0.2.71...0.2.72) - 14 October 2024
20
+
21
+ #### :bug: Bug Fixes
22
+
23
+ - fix: file formatting, cleanup [kreafox - [`bd0ca50`](https://github.com/eea/volto-cca-policy/commit/bd0ca5096912d76c1d6cc7cc55adcaccf501d88a)]
24
+
25
+ #### :house: Internal changes
26
+
27
+ - style: Automated code fix [eea-jenkins - [`78293a1`](https://github.com/eea/volto-cca-policy/commit/78293a1562c33890e957ce3e1f5292b80beb68b8)]
28
+ - style: fix filter & legend styling for country profiles map; cleanup CSS - refs #277718 [kreafox - [`9847b6b`](https://github.com/eea/volto-cca-policy/commit/9847b6b48e0e898c328954af80dac4e708a8987d)]
29
+
30
+ #### :hammer_and_wrench: Others
31
+
32
+ - update README [kreafox - [`be8bb46`](https://github.com/eea/volto-cca-policy/commit/be8bb4608560436f5ea150733fe684435d9f2f4e)]
7
33
  ### [0.2.71](https://github.com/eea/volto-cca-policy/compare/0.2.70...0.2.71) - 9 October 2024
8
34
 
9
35
  #### :hammer_and_wrench: Others
@@ -1596,13 +1622,10 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1596
1622
  - Refs #260715 rast-block wip [Tripon Eugen - [`f19d54e`](https://github.com/eea/volto-cca-policy/commit/f19d54e0b9a6a86bf344eb85b6a1cda7f3de91bf)]
1597
1623
  - Refs #260715 rast-block wip [Tripon Eugen - [`2828537`](https://github.com/eea/volto-cca-policy/commit/2828537b6c084cd1a82162d552fb4ef025b71f9f)]
1598
1624
  - Refs #260715 rast-block updates [Tripon Eugen - [`1e803e5`](https://github.com/eea/volto-cca-policy/commit/1e803e5bd3d3fb7558f261c76c68866be7beb8b5)]
1599
- - test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`0a15e1b`](https://github.com/eea/volto-cca-policy/commit/0a15e1b2ad081233685e80d5b3c60a8663f6b896)]
1600
- - test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`9554e44`](https://github.com/eea/volto-cca-policy/commit/9554e44c92a621a52b2adb5a4830fb084ee5734b)]
1601
1625
  ### [0.1.49](https://github.com/eea/volto-cca-policy/compare/0.1.48...0.1.49) - 15 November 2023
1602
1626
 
1603
1627
  #### :house: Internal changes
1604
1628
 
1605
- - chore: [JENKINS] Refactor automated testing [valentinab25 - [`7b820a6`](https://github.com/eea/volto-cca-policy/commit/7b820a6369c2ddd5203b1a4abe352cb4bb43db7a)]
1606
1629
  - chore: husky, lint-staged use fixed versions [valentinab25 - [`f0a8061`](https://github.com/eea/volto-cca-policy/commit/f0a8061c275c236deb00087c23fac9860a073106)]
1607
1630
 
1608
1631
  #### :hammer_and_wrench: Others
@@ -1619,9 +1642,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1619
1642
  - Refs #259267 - jenkins test [Tripon Eugen - [`cacd31e`](https://github.com/eea/volto-cca-policy/commit/cacd31e7b1afe0983674ed5c7632d2e1d7fa752e)]
1620
1643
  - Refs #259267 - jenkins [Tripon Eugen - [`5b3affe`](https://github.com/eea/volto-cca-policy/commit/5b3affee8401239de10097884c1b7f2349d15ec0)]
1621
1644
  - Refs #259267 - add When, lead image and title to files [Tripon Eugen - [`2cedb23`](https://github.com/eea/volto-cca-policy/commit/2cedb237f898af9057e13fba94b615ef71077204)]
1622
- - test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`4d607a5`](https://github.com/eea/volto-cca-policy/commit/4d607a576e9d0a5c34e48c41b409e7df616ee3d6)]
1623
- - test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`b7f74d5`](https://github.com/eea/volto-cca-policy/commit/b7f74d53513a6edbfbca5cb6d19687929bb1e5db)]
1624
- - test: [JENKINS] Improve cypress time [valentinab25 - [`db65617`](https://github.com/eea/volto-cca-policy/commit/db656173391f65157098d95d388c25f6429753d8)]
1625
1645
  - Refs #259267 - cca event blocks attachments and check not mandatoty fields [Tripon Eugen - [`3138e5a`](https://github.com/eea/volto-cca-policy/commit/3138e5afb5bfbdbed14e27ed457b16867b7fa414)]
1626
1646
  - Refs #256681 - Fix error in CCA Event view menu. ([React Intl] An id must be provided to format a message.) [GhitaB - [`517eeb8`](https://github.com/eea/volto-cca-policy/commit/517eeb817264a47bbfd6b9b7d22aaf22d44ed224)]
1627
1647
  - Refs #161485 - Fix ECDE name conflict. [GhitaB - [`8bfd99f`](https://github.com/eea/volto-cca-policy/commit/8bfd99ff68bb82a04d1c0ed625fa514fcf46289e)]
@@ -1838,7 +1858,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1838
1858
 
1839
1859
  #### :house: Internal changes
1840
1860
 
1841
- - chore: [JENKINS] Remove alpha testing version [valentinab25 - [`ad1ced0`](https://github.com/eea/volto-cca-policy/commit/ad1ced0971ba116c13a3b5fcc039172cc915c919)]
1842
1861
 
1843
1862
  #### :hammer_and_wrench: Others
1844
1863
 
@@ -2319,7 +2338,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2319
2338
  #### :hammer_and_wrench: Others
2320
2339
 
2321
2340
  - Refs #158294 - Update supported languages list. [GhitaB - [`0a4f91f`](https://github.com/eea/volto-cca-policy/commit/0a4f91f39b7edc367bd4c127d6a8f273c7788361)]
2322
- - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`8f1f9ce`](https://github.com/eea/volto-cca-policy/commit/8f1f9ce6c22805670cc0800d3c779b6d619d0f31)]
2323
2341
  ### [0.1.1](https://github.com/eea/volto-cca-policy/compare/0.1.0...0.1.1) - 13 December 2022
2324
2342
 
2325
2343
  #### :hammer_and_wrench: Others
package/README.md CHANGED
@@ -14,6 +14,8 @@
14
14
  [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-cca-policy-develop&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-cca-policy-develop)
15
15
  [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-cca-policy-develop&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-cca-policy-develop)
16
16
 
17
+ Climate-ADAPT Frontend Policy
18
+
17
19
  [Volto](https://github.com/plone/volto) add-on
18
20
 
19
21
  ## Release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.2.71",
3
+ "version": "0.2.73",
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",
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
-
3
2
  import {
4
3
  euCountryNames,
5
4
  setTooltipVisibility,
@@ -9,14 +8,13 @@ import { openlayers as ol } from '@eeacms/volto-openlayers-map';
9
8
  import { useMapContext } from '@eeacms/volto-openlayers-map/api';
10
9
 
11
10
  export const Interactions = ({
12
- tooltipRef,
13
- // onFeatureClick,
14
- countries_metadata,
15
11
  baseUrl,
12
+ highlight,
13
+ tooltipRef,
16
14
  thematicMapMode,
17
15
  euCountryFeatures,
18
- highlight,
19
16
  setStateHighlight,
17
+ countries_metadata,
20
18
  }) => {
21
19
  const map = useMapContext().map;
22
20
 
@@ -44,19 +42,18 @@ export const Interactions = ({
44
42
  feature &&
45
43
  euCountryNames.includes(feature.get('na'))
46
44
  ) {
47
- // if (countries_metadata.length>0) {
48
45
  let countryName = feature.get('na');
49
46
  let noDataReportedMsg = `
50
- No data reported through the reporting mechanism of the Governance Regulation.
51
- Last information is available
52
- <a href="${baseUrl}/${countryName.toLowerCase()}">here</a>`;
47
+ No data reported through the reporting mechanism of the Governance Regulation.
48
+ Last information is available
49
+ <a href="${baseUrl}/${countryName.toLowerCase()}">here</a>`;
53
50
 
54
51
  if (countryName === 'Türkiye') {
55
52
  countryName = 'Turkiye';
56
53
  noDataReportedMsg = `
57
- Data reported in 2021 through the reporting mechanism of the Governance Regulation.
58
- Information is available
59
- <a href="${baseUrl}/${countryName.toLowerCase()}">here</a>`;
54
+ Data reported in 2021 through the reporting mechanism of the Governance Regulation.
55
+ Information is available
56
+ <a href="${baseUrl}/${countryName.toLowerCase()}">here</a>`;
60
57
  }
61
58
 
62
59
  if (!Object.hasOwn(countries_metadata[0], countryName)) {
@@ -78,29 +75,23 @@ Information is available
78
75
  tooltipContent =
79
76
  metadata[0]?.ccivportal_info ||
80
77
  '<span>No portal or platform reported</span>';
81
- // tooltipContent.split('<p style="font-weight:bold;"></p>').join('');
82
78
  }
83
- // overlaySource.addFeature(feature);
79
+
84
80
  map.getTargetElement().style.cursor = 'pointer';
85
81
  const node = tooltipRef.current;
86
82
  const flag = feature.get('flag').src;
87
83
  const cn = countryName.toLowerCase();
88
84
  let tooltipContentDiv = `
89
- <div class="country-tooltip">
90
- <div id="country-name">
91
- <a href="/en/countries-regions/countries/${cn}"><h3>${countryName}</h3></a>
92
- <img class="tooltip-country-flag" src="${flag}" height="33" width="54">
93
- </div>
94
- <div class="tooltip-content">${tooltipContent}</div>
95
- </div>
96
- `;
85
+ <div class="country-tooltip">
86
+ <div id="country-name">
87
+ <a href="/en/countries-regions/countries/${cn}"><h3>${countryName}</h3></a>
88
+ <img class="tooltip-country-flag" src="${flag}" height="33" width="54">
89
+ </div>
90
+ <div class="tooltip-content">${tooltipContent}</div>
91
+ </div>`;
97
92
 
98
93
  setTooltipVisibility(node, tooltipContentDiv, domEvt, true);
99
94
  }
100
-
101
- // if (feature) {
102
- // onFeatureClick(feature);
103
- // }
104
95
  });
105
96
 
106
97
  map.on('pointermove', function (evt) {
@@ -118,6 +109,6 @@ Information is available
118
109
  setStateHighlight(highlight.current);
119
110
  });
120
111
  });
121
- // }, [map, tooltipRef, onFeatureClick]);
112
+
122
113
  return null;
123
114
  };
@@ -1,25 +1,22 @@
1
1
  import React from 'react';
2
2
  import { compose } from 'redux';
3
- import { clientOnly } from '@eeacms/volto-cca-policy/helpers';
4
-
5
- import { Map, Layer, Layers, Controls } from '@eeacms/volto-openlayers-map/api';
6
- import { openlayers as ol } from '@eeacms/volto-openlayers-map';
3
+ import { Grid } from 'semantic-ui-react';
7
4
  import {
8
- euCountryNames as euCountryNamesRaw,
9
- tooltipStyle,
10
5
  getImageUrl,
6
+ tooltipStyle,
11
7
  adjustEuCountryNames,
8
+ euCountryNames as euCountryNamesRaw,
12
9
  } from '@eeacms/volto-cca-policy/helpers/country_map/countryMap';
13
10
  import { withGeoJsonData } from '@eeacms/volto-cca-policy/helpers/country_map/hocs';
14
-
15
- import withResponsiveContainer from '../withResponsiveContainer';
16
- import withVisibilitySensor from '../withVisibilitySensor';
11
+ import { clientOnly } from '@eeacms/volto-cca-policy/helpers';
12
+ import { openlayers as ol } from '@eeacms/volto-openlayers-map';
13
+ import { Map, Layer, Layers, Controls } from '@eeacms/volto-openlayers-map/api';
17
14
  import { makeStyles } from './mapstyle';
18
15
  import { Interactions } from './Interactions';
19
-
20
- import Filter from './Filter';
21
- import { Grid } from 'semantic-ui-react';
22
16
  import { useCountriesMetadata } from './hooks';
17
+ import Filter from './Filter';
18
+ import withResponsiveContainer from '../withResponsiveContainer';
19
+ import withVisibilitySensor from '../withVisibilitySensor';
23
20
  import { addAppURL } from '@plone/volto/helpers';
24
21
 
25
22
  import './styles.less';
@@ -1,4 +1,5 @@
1
1
  @height: 600px;
2
+ @fpHeight: 450px;
2
3
 
3
4
  .countryMapProfile {
4
5
  height: @height;
@@ -55,10 +56,6 @@
55
56
  stroke-width: 0.6;
56
57
  }
57
58
 
58
- .country-outline path {
59
- fill: #e9e9e9;
60
- }
61
-
62
59
  .country-outline path {
63
60
  fill: #f5f5f5;
64
61
  stroke: #d1d1d1;
@@ -69,24 +66,28 @@
69
66
  fill: #0170b7;
70
67
  }
71
68
 
69
+ label {
70
+ margin-bottom: 0.5em;
71
+ }
72
+
72
73
  .legend {
73
- .legend-text {
74
- width: 16em;
75
- }
74
+ margin-top: 1em;
76
75
 
77
76
  .legend-el {
78
77
  display: flex;
79
78
  flex-direction: row;
80
- padding: 0.8em 0;
79
+ padding: 0.6em 0;
81
80
  }
82
81
 
83
82
  .legend-box {
84
- width: 40px;
85
- height: 19px;
86
- margin-top: 3px;
83
+ position: relative;
84
+ top: 4px;
85
+ height: 17px;
86
+ flex: 0 0 17px;
87
87
  margin-right: 0.5em;
88
88
  }
89
89
 
90
+ // Legend color mapping
90
91
  .content-available {
91
92
  background-color: #0170b7;
92
93
  }
@@ -103,12 +104,9 @@
103
104
  background-color: #78d9fc;
104
105
  }
105
106
 
106
- .country-none {
107
- border: 1px solid #ddd;
108
- background-color: #fbfae6;
109
- }
110
-
107
+ .country-none,
111
108
  .country-outside {
109
+ border: 1px solid #ddd;
112
110
  background-color: #fbfae6;
113
111
  }
114
112
  }
@@ -154,10 +152,7 @@
154
152
  background-color: #fff3ac;
155
153
  }
156
154
 
157
- .country-none {
158
- background-color: #f5f5f5;
159
- }
160
-
155
+ .country-none,
161
156
  .country-outside {
162
157
  border: 1px solid #ddd;
163
158
  background-color: #fbfae6;
@@ -168,63 +163,55 @@
168
163
  }
169
164
  }
170
165
 
171
- .country-blue path {
166
+ // Country color mapping and cursor style
167
+ .country-blue path,
168
+ .country-notreported path,
169
+ .country-noportal path,
170
+ .country-nasnapsap path,
171
+ .country-nassap path,
172
+ .country-napsap path,
173
+ .country-nasnap path,
174
+ .country-nas path,
175
+ .country-nap path,
176
+ .country-none path,
177
+ .country-nodata path {
172
178
  cursor: pointer;
173
- // fill: @secondary-blue;
174
179
  }
175
180
 
176
181
  .country-notreported path {
177
- cursor: pointer;
178
182
  fill: #fed7da;
179
183
  }
180
184
 
181
- .country-noportal path {
182
- cursor: pointer;
185
+ .country-noportal path,
186
+ .country-none path {
183
187
  fill: #e0e0e0;
184
188
  }
185
189
 
186
190
  .country-nasnapsap path {
187
- cursor: pointer;
188
191
  fill: url(#nasnapsap);
189
192
  }
190
193
 
191
194
  .country-nassap path {
192
- cursor: pointer;
193
195
  fill: url(#nassap);
194
196
  }
195
197
 
196
198
  .country-napsap path {
197
- cursor: pointer;
198
199
  fill: url(#napsap);
199
200
  }
200
201
 
201
- .country-nasnapsap path {
202
- cursor: pointer;
203
- fill: url(#nasnapsap);
204
- }
205
-
206
202
  .country-nasnap path {
207
- cursor: pointer;
208
203
  fill: #007db6;
209
204
  }
210
205
 
211
206
  .country-nas path {
212
- cursor: pointer;
213
207
  fill: #78d9fc;
214
208
  }
215
209
 
216
210
  .country-nap path {
217
- cursor: pointer;
218
211
  fill: #11cbff;
219
212
  }
220
213
 
221
- .country-none path {
222
- cursor: pointer;
223
- fill: #e0e0e0;
224
- }
225
-
226
214
  .country-nodata path {
227
- cursor: pointer;
228
215
  fill: #f5f5f5;
229
216
  }
230
217
 
@@ -232,7 +219,9 @@
232
219
  fill: #8a9c3a;
233
220
  }
234
221
 
235
- #map-tooltip {
222
+ // Tooltip for countries
223
+ #map-tooltip,
224
+ .country-tooltip {
236
225
  position: absolute;
237
226
  width: 400px;
238
227
  padding: 1em;
@@ -241,12 +230,6 @@
241
230
  }
242
231
 
243
232
  .country-tooltip {
244
- position: absolute;
245
- width: 400px;
246
- padding: 1em;
247
- border: 1px solid #c7c7c7;
248
- background-color: #f7f7f7;
249
-
250
233
  span,
251
234
  li {
252
235
  color: #3a3a3a;
@@ -294,3 +277,37 @@
294
277
  }
295
278
  }
296
279
  }
280
+
281
+ .cca-main-homepage .tabs-block {
282
+ .countryMapProfile {
283
+ min-height: @fpHeight;
284
+
285
+ .ol-map-wrapper,
286
+ .ol-map {
287
+ height: @fpHeight;
288
+ }
289
+
290
+ #country-map-filter {
291
+ padding-right: 0;
292
+ padding-left: 0;
293
+ }
294
+
295
+ .legend-box {
296
+ top: 2px;
297
+ }
298
+
299
+ label,
300
+ .legend .legend-text {
301
+ font-size: 14px !important;
302
+ line-height: 17px;
303
+ }
304
+
305
+ .legend {
306
+ margin-top: 0.2em;
307
+
308
+ .legend-el {
309
+ padding: 1em 0 0 0;
310
+ }
311
+ }
312
+ }
313
+ }
@@ -1,59 +1,76 @@
1
1
  import React from 'react';
2
2
  import { Accordion } from 'semantic-ui-react';
3
- import RASTAccordionContent from './RASTAccordionContent';
4
3
  import { useHistory } from 'react-router-dom';
4
+ import { Icon } from '@plone/volto/components';
5
+
6
+ import RASTAccordionContent from './RASTAccordionContent';
5
7
 
6
- const RASTAccordion = (props) => {
8
+ import step1 from './icons/icon_01.svg';
9
+ import step2 from './icons/icon_02.svg';
10
+ import step3 from './icons/icon_03.svg';
11
+ import step4 from './icons/icon_04.svg';
12
+ import step5 from './icons/icon_05.svg';
13
+ import step6 from './icons/icon_06.svg';
14
+
15
+ const icons = [step1, step2, step3, step4, step5, step6];
16
+
17
+ const RASTAccordion = ({
18
+ items = [],
19
+ activeMenu,
20
+ show_subfolders,
21
+ curent_location,
22
+ }) => {
7
23
  const history = useHistory();
8
- const { items = {}, curent_location, activeMenu, show_subfolders } = props;
9
24
 
10
- const handleClick = (e, item) => {
11
- let itemUrl = '/' + item['@id'].split('/').slice(3).join('/');
12
- history.push(itemUrl);
25
+ const handleNavigation = (url) => {
26
+ history.push(url);
13
27
  };
14
28
 
15
- return (
16
- <>
17
- {items.map((item, index) => {
18
- const { id } = item;
19
- const active = activeMenu === index;
20
-
21
- return (
22
- <Accordion id={id} key={index} className="secondary">
23
- <Accordion.Title
24
- role="button"
25
- tabIndex={0}
26
- active={active}
27
- aria-expanded={active}
28
- index={index}
29
- onClick={(e) => handleClick(e, item)}
30
- onKeyDown={(e) => {
31
- if (e.keyCode === 13 || e.keyCode === 32) {
32
- e.preventDefault();
33
- handleClick(e, item);
34
- }
29
+ const handleKeyDown = (e, url) => {
30
+ if (e.key === 'Enter' || e.key === ' ') {
31
+ e.preventDefault();
32
+ handleNavigation(url);
33
+ }
34
+ };
35
+
36
+ const renderAccordionItem = (item, index) => {
37
+ const active = activeMenu === index;
38
+ // Icons start from the second item
39
+ const icon = icons[index - 1] || null;
40
+
41
+ return (
42
+ <Accordion key={item.id} className={`step-${index}`}>
43
+ <Accordion.Title
44
+ role="button"
45
+ tabIndex={0}
46
+ index={index}
47
+ active={active}
48
+ aria-expanded={active}
49
+ onClick={() => handleNavigation(item.url)}
50
+ onKeyDown={(e) => handleKeyDown(e, item.url)}
51
+ >
52
+ {icon && <Icon name={icon} size="70px" />}
53
+ <span className="item-title">{item.title}</span>
54
+ </Accordion.Title>
55
+
56
+ {show_subfolders && (
57
+ <Accordion.Content active={active}>
58
+ <RASTAccordionContent
59
+ curent_location={curent_location}
60
+ key={index}
61
+ main={{
62
+ title: item.title,
63
+ href: item['@id'],
64
+ url: item.url,
35
65
  }}
36
- >
37
- <span className="item-title">{item.title}</span>
38
- </Accordion.Title>
39
- {show_subfolders ? (
40
- <Accordion.Content active={active}>
41
- <RASTAccordionContent
42
- curent_location={curent_location}
43
- key={index}
44
- main={{
45
- title: item.title,
46
- href: item['@id'],
47
- url: item.url,
48
- }}
49
- />
50
- </Accordion.Content>
51
- ) : null}
52
- </Accordion>
53
- );
54
- })}
55
- </>
56
- );
66
+ />
67
+ </Accordion.Content>
68
+ )}
69
+ </Accordion>
70
+ );
71
+ };
72
+
73
+ return <>{items.map(renderAccordionItem)}</>;
57
74
  };
58
75
 
59
76
  export default RASTAccordion;
@@ -24,28 +24,26 @@ const RASTAccordionContent = (props) => {
24
24
  );
25
25
 
26
26
  return (
27
- <div className="dataset-content">
28
- <div>
29
- {items.length
30
- ? items
31
- .filter((item) => item['@type'] === 'Folder')
32
- .map((item) => {
33
- const active = item['@id'].endsWith(curent_location.pathname);
34
- return (
35
- <List.Item
36
- key={item.id}
37
- className={cx('substep', {
38
- active: active,
39
- })}
40
- >
41
- <Link to={flattenToAppURL(getBaseUrl(item['@id']))}>
42
- {item.title}
43
- </Link>
44
- </List.Item>
45
- );
46
- })
47
- : null}
48
- </div>
27
+ <div>
28
+ {items.length
29
+ ? items
30
+ .filter((item) => item['@type'] === 'Folder')
31
+ .map((item) => {
32
+ const active = item['@id'].endsWith(curent_location.pathname);
33
+ return (
34
+ <List.Item
35
+ key={item.id}
36
+ className={cx('substep', {
37
+ active: active,
38
+ })}
39
+ >
40
+ <Link to={flattenToAppURL(getBaseUrl(item['@id']))}>
41
+ {item.title}
42
+ </Link>
43
+ </List.Item>
44
+ );
45
+ })
46
+ : null}
49
47
  </div>
50
48
  );
51
49
  };
@@ -0,0 +1,62 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 180 180">
3
+ <defs>
4
+ <style>
5
+ .cls-1 {
6
+ fill: none;
7
+ stroke: #000;
8
+ stroke-linecap: round;
9
+ stroke-linejoin: round;
10
+ }
11
+ </style>
12
+ </defs>
13
+ <!-- Generator: Adobe Illustrator 28.7.1, SVG Export Plug-In . SVG Version: 1.2.0 Build 142) -->
14
+ <g>
15
+ <g id="Layer_2">
16
+ <g id="g1975">
17
+ <g id="g1981">
18
+ <path id="path1983" class="cls-1" d="M136.2,87.4h-59.7l-4.8-9.9c-.6-1.2-1.7-1.9-2.9-1.9h-26.2c-1.8,0-3.3,1.6-3.3,3.6v64.7c0,2.6,2,4.7,4.4,4.7h92.5c2.4,0,4.4-2.1,4.4-4.7v-51.8c0-2.6-2-4.7-4.4-4.7Z"/>
19
+ </g>
20
+ <g id="g1985">
21
+ <path id="path1987" class="cls-1" d="M103.6,141.6h-27.2v-1.9c0-8.1,6.1-14.6,13.6-14.6s13.6,6.6,13.6,14.6c0,0,0,1.9,0,1.9Z"/>
22
+ </g>
23
+ <g id="g1989">
24
+ <path id="path1991" class="cls-1" d="M100.4,113.9c0,6.2-4.7,11.2-10.4,11.2s-10.4-5-10.4-11.2,4.7-11.2,10.4-11.2,10.4,5,10.4,11.2Z"/>
25
+ </g>
26
+ <g id="g1993">
27
+ <path id="path1995" class="cls-1" d="M115.9,141.6h-51.7c-2.1,0-3.7-1.8-3.7-4v-38.5c0-2.2,1.7-4,3.7-4h51.7c2.1,0,3.7,1.8,3.7,4v38.5c0,2.2-1.7,4-3.7,4Z"/>
28
+ </g>
29
+ <g id="g1997">
30
+ <path id="path1999" class="cls-1" d="M72.9,50.7h17.8"/>
31
+ </g>
32
+ <g id="g2001">
33
+ <path id="path2003" class="cls-1" d="M72.9,61.4h8.9"/>
34
+ </g>
35
+ <g id="g2005">
36
+ <path id="path2007" class="cls-1" d="M72.9,70.2h8.9"/>
37
+ </g>
38
+ <g id="g2009">
39
+ <path id="path2011" class="cls-1" d="M119,61.4h-28.3"/>
40
+ </g>
41
+ <g id="g2013">
42
+ <path id="path2015" class="cls-1" d="M119,70.2h-28.3"/>
43
+ </g>
44
+ <g id="g2017">
45
+ <path id="path2019" class="cls-1" d="M72.9,78.9h8.9"/>
46
+ </g>
47
+ <g id="g2021">
48
+ <path id="path2023" class="cls-1" d="M119,78.9h-28.3"/>
49
+ </g>
50
+ <g id="g2025">
51
+ <path id="path2027" class="cls-1" d="M136.2,87.4h-59.7l-4.8-9.9c-.6-1.2-1.7-1.9-2.9-1.9h-26.2c-1.8,0-3.3,1.6-3.3,3.6v64.7c0,2.6,2,4.7,4.4,4.7h92.5c2.4,0,4.4-2.1,4.4-4.7v-51.8c0-2.6-2-4.7-4.4-4.7Z"/>
52
+ </g>
53
+ <g id="g2029">
54
+ <path id="path2031" class="cls-1" d="M68.9,75.7c1.2,0,2.4.7,2.9,1.9l4.8,9.9h50.4v-42c0-2.6-2-4.7-4.4-4.7h-53.3c-2.4,0-4.4,2.1-4.4,4.7v30.2h4Z"/>
55
+ </g>
56
+ <g id="g2033">
57
+ <path id="path2035" class="cls-1" d="M64.9,75.7v-30.2c0-2.6,2-4.7,4.4-4.7h45.8v-4.7c0-2.6-2-4.7-4.4-4.7h-53.3c-2.4,0-4.4,2.1-4.4,4.7v39.7h11.9Z"/>
58
+ </g>
59
+ </g>
60
+ </g>
61
+ </g>
62
+ </svg>
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 180 180">
3
+ <defs>
4
+ <style>
5
+ .cls-1 {
6
+ fill: none;
7
+ stroke: #000;
8
+ stroke-linecap: round;
9
+ stroke-linejoin: round;
10
+ }
11
+ </style>
12
+ </defs>
13
+ <!-- Generator: Adobe Illustrator 28.7.1, SVG Export Plug-In . SVG Version: 1.2.0 Build 142) -->
14
+ <g>
15
+ <g id="Layer_2">
16
+ <g id="g2731">
17
+ <g id="g2745">
18
+ <path id="path2747" class="cls-1" d="M40.8,119.3l41.7-67.8c3.4-5.6,11.6-5.6,15,0l41.7,67.8c3.6,5.9-.6,13.4-7.5,13.4H48.3c-6.9,0-11.1-7.6-7.5-13.4Z"/>
19
+ </g>
20
+ <g id="g2749">
21
+ <path id="path2751" class="cls-1" d="M94.1,115c0,2.3-1.9,4.1-4.1,4.1s-4.1-1.9-4.1-4.1,1.8-4.1,4.1-4.1,4.1,1.9,4.1,4.1"/>
22
+ </g>
23
+ <g id="g2753">
24
+ <path id="path2755" class="cls-1" d="M90.1,98.4v-26.7"/>
25
+ </g>
26
+ </g>
27
+ </g>
28
+ </g>
29
+ </svg>
@@ -0,0 +1,38 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 180 180">
3
+ <defs>
4
+ <style>
5
+ .cls-1 {
6
+ fill: none;
7
+ stroke: #000;
8
+ stroke-linecap: round;
9
+ stroke-linejoin: round;
10
+ }
11
+ </style>
12
+ </defs>
13
+ <!-- Generator: Adobe Illustrator 28.7.1, SVG Export Plug-In . SVG Version: 1.2.0 Build 142) -->
14
+ <g>
15
+ <g id="Layer_2">
16
+ <g>
17
+ <g>
18
+ <path class="cls-1" d="M55.7,114.7h.5c9,0,16.2,7.3,16.2,16.2v3.4h-33v-3.4c0-9,7.3-16.2,16.2-16.2h0Z"/>
19
+ <circle class="cls-1" cx="56" cy="105" r="9.7"/>
20
+ </g>
21
+ <g>
22
+ <path class="cls-1" d="M88.7,114.7h.5c9,0,16.2,7.3,16.2,16.2v3.4h-33v-3.4c0-9,7.3-16.2,16.2-16.2h.1Z"/>
23
+ <circle class="cls-1" cx="88.9" cy="105" r="9.7"/>
24
+ </g>
25
+ <g>
26
+ <path class="cls-1" d="M121.7,114.7h.5c9,0,16.2,7.3,16.2,16.2v3.4h-33v-3.4c0-9,7.3-16.2,16.2-16.2h.1Z"/>
27
+ <circle class="cls-1" cx="121.9" cy="105" r="9.7"/>
28
+ </g>
29
+ </g>
30
+ <g>
31
+ <polygon class="cls-1" points="138.4 35.4 138.4 76.5 99 76.5 89 89.1 88.9 89.2 88.9 89.1 78.9 76.5 39.5 76.5 39.5 35.4 138.4 35.4"/>
32
+ <rect class="cls-1" x="51.8" y="48.7" width="14.6" height="14.6"/>
33
+ <polygon class="cls-1" points="99.3 64.1 78.6 64.1 88.9 47.8 88.9 47.7 89 47.8 99.3 64.1"/>
34
+ <path class="cls-1" d="M118,64.2h-.3c-4.5,0-8.1-3.6-8.1-8.1v-.3c0-4.5,3.6-8.1,8.1-8.1h.3c4.5,0,8.1,3.6,8.1,8.1v.3c0,4.5-3.6,8.1-8.1,8.1Z"/>
35
+ </g>
36
+ </g>
37
+ </g>
38
+ </svg>
@@ -0,0 +1,53 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 180 180">
3
+ <defs>
4
+ <style>
5
+ .cls-1 {
6
+ fill: none;
7
+ stroke: #000;
8
+ stroke-linecap: round;
9
+ stroke-linejoin: round;
10
+ }
11
+ </style>
12
+ </defs>
13
+ <!-- Generator: Adobe Illustrator 28.7.1, SVG Export Plug-In . SVG Version: 1.2.0 Build 142) -->
14
+ <g>
15
+ <g id="Layer_2">
16
+ <g id="g2116">
17
+ <g id="g2122">
18
+ <path id="path2124" class="cls-1" d="M107.8,99.6l8.7,8.7,27.5,27.5-9.3,9.3-27.5-27.5-8.7-8.7"/>
19
+ </g>
20
+ <g id="g2126">
21
+ <path id="path2128" class="cls-1" d="M62.5,83.3c0-3.6-2.9-6.6-6.6-6.6s-6.6,2.9-6.6,6.6,2.9,6.6,6.6,6.6,6.6-2.9,6.6-6.6Z"/>
22
+ </g>
23
+ <g id="g2130">
24
+ <path id="path2132" class="cls-1" d="M82.2,63.6c0-3.6-2.9-6.6-6.6-6.6s-6.6,2.9-6.6,6.6,2.9,6.6,6.6,6.6,6.6-2.9,6.6-6.6Z"/>
25
+ </g>
26
+ <g id="g2134">
27
+ <path id="path2136" class="cls-1" d="M102,83.3c0-3.6-2.9-6.6-6.6-6.6s-3.5.7-4.7,1.9c-1.2,1.2-1.9,2.8-1.9,4.7,0,3.6,2.9,6.6,6.6,6.6s6.6-2.9,6.6-6.6Z"/>
28
+ </g>
29
+ <g id="g2138">
30
+ <path id="path2140" class="cls-1" d="M60.6,78.7l10.4-10.4"/>
31
+ </g>
32
+ <g id="g2142">
33
+ <path id="path2144" class="cls-1" d="M80.3,68.2l10.4,10.4"/>
34
+ </g>
35
+ <g id="g2146">
36
+ <path id="path2148" class="cls-1" d="M100,78.7l13.4-13.4,10.2-10.2"/>
37
+ </g>
38
+ <g id="g2150">
39
+ <path id="path2152" class="cls-1" d="M134.8,50.4c0,3.6-2.9,6.6-6.6,6.6s-6.6-2.9-6.6-6.6,2.9-6.6,6.6-6.6,6.6,2.9,6.6,6.6Z"/>
40
+ </g>
41
+ <g id="g2154">
42
+ <path id="path2156" class="cls-1" d="M107.2,117.6l9.3-9.3"/>
43
+ </g>
44
+ <g id="g2158">
45
+ <path id="path2160" class="cls-1" d="M77.7,37.1c0,1.2-1,2.2-2.2,2.2s-2.2-1-2.2-2.2,1-2.2,2.2-2.2,2.2,1,2.2,2.2"/>
46
+ </g>
47
+ <g id="g2162">
48
+ <path id="path2164" class="cls-1" d="M85.3,38.4c13.4,3.4,24.1,13.7,28.1,26.9,1.1,3.6,1.7,7.5,1.7,11.5,0,8.5-2.7,16.4-7.3,22.9-2.6,3.6-5.7,6.7-9.3,9.3-6.5,4.6-14.3,7.3-22.9,7.3-21.8,0-39.6-17.7-39.6-39.5s12.6-33.9,29.7-38.3"/>
49
+ </g>
50
+ </g>
51
+ </g>
52
+ </g>
53
+ </svg>
@@ -0,0 +1,56 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 180 180">
3
+ <defs>
4
+ <style>
5
+ .cls-1 {
6
+ fill: none;
7
+ stroke: #000;
8
+ stroke-linecap: round;
9
+ stroke-linejoin: round;
10
+ }
11
+ </style>
12
+ </defs>
13
+ <!-- Generator: Adobe Illustrator 28.7.1, SVG Export Plug-In . SVG Version: 1.2.0 Build 142) -->
14
+ <g>
15
+ <g id="Layer_2">
16
+ <g id="g3617">
17
+ <g id="g3623">
18
+ <path id="path3625" class="cls-1" d="M73.8,141.4h57.6c5.5,0,10-4.5,10-10"/>
19
+ </g>
20
+ <g id="g3627">
21
+ <path id="path3629" class="cls-1" d="M38.6,131.4c0,5.5,4.5,10,10,10h18"/>
22
+ </g>
23
+ <g id="g3631">
24
+ <path id="path3633" class="cls-1" d="M90,64.8c-2.9,0-5.2-2.3-5.2-5.2s2.3-5.2,5.2-5.2,5.2,2.3,5.2,5.2-2.3,5.2-5.2,5.2ZM111,61.4v-3.8c0-1-.7-1.8-1.7-1.9l-3.1-.5c-.7,0-1.3-.6-1.5-1.2,0-.3-.2-.6-.4-.9-.3-.6-.2-1.4.2-1.9l1.8-2.5c.6-.8.5-1.9-.2-2.5l-2.7-2.7c-.7-.7-1.8-.8-2.5-.2l-2.5,1.8c-.6.4-1.3.5-1.9.2-.3,0-.6-.3-.9-.4-.7-.2-1.1-.8-1.2-1.5l-.5-3.1c0-1-1-1.7-1.9-1.7h-3.8c-1,0-1.8.7-1.9,1.7l-.5,3.1c0,.7-.6,1.3-1.2,1.5-.3,0-.6.2-.9.4-.6.3-1.4.2-1.9-.2l-2.5-1.8c-.8-.6-1.9-.5-2.5.2l-2.7,2.7c-.7.7-.8,1.8-.2,2.5l1.8,2.5c.4.6.5,1.3.2,1.9,0,.3-.3.6-.4.9-.2.7-.8,1.1-1.5,1.2l-3.1.5c-1,0-1.7,1-1.7,1.9v3.8c0,1,.7,1.8,1.7,1.9l3.1.5c.7,0,1.3.6,1.5,1.2,0,.3.2.6.4.9.3.6.2,1.4-.2,1.9l-1.8,2.5c-.6.8-.5,1.9.2,2.5l2.7,2.7c.7.7,1.8.8,2.5.2l2.5-1.8c.6-.4,1.3-.5,1.9-.2.3,0,.6.3.9.4.7.2,1.1.8,1.2,1.5l.5,3.1c0,1,1,1.7,1.9,1.7h3.8c1,0,1.8-.7,1.9-1.7l.5-3.1c0-.7.6-1.3,1.2-1.5.3,0,.6-.2.9-.4.6-.3,1.4-.2,1.9.2l2.5,1.8c.8.6,1.9.5,2.5-.2l2.7-2.7c.7-.7.8-1.8.2-2.5l-1.8-2.5c-.4-.6-.5-1.3-.2-1.9,0-.3.3-.6.4-.9.2-.7.8-1.1,1.5-1.2l3.1-.5c1,0,1.7-1,1.7-1.9h0Z"/>
25
+ </g>
26
+ <g id="g3635">
27
+ <path id="path3637" class="cls-1" d="M38.6,77.3v54.1c0-5.5,4.5-10,10-10s2.9.3,4.2.9c1.4.6,2.9-.4,2.9-1.9v-63.9c0-1.5-.8-2.9-2.1-3.6-1.5-.8-3.1-1.3-5-1.4-5.6,0-10.1,4.6-10.1,10.2v8.3"/>
28
+ </g>
29
+ <g id="g3639">
30
+ <path id="path3641" class="cls-1" d="M124.3,92.1v28.2c0,1.5,1.6,2.5,2.9,1.9,1.3-.6,2.7-.9,4.2-.9,5.5,0,10,4.5,10,10V61.7c0-5.6-4.6-10.3-10.1-10.2-1.8,0-3.5.5-5,1.4-1.3.7-2.1,2.1-2.1,3.6v28.4"/>
31
+ </g>
32
+ <g id="g3643">
33
+ <path id="path3645" class="cls-1" d="M90,97.2v6.3h18.8v6.3"/>
34
+ </g>
35
+ <g id="g3647">
36
+ <path id="path3649" class="cls-1" d="M97.6,97.2h-15.3c-.9,0-1.6-.7-1.6-1.6v-6.9c0-.9.7-1.6,1.6-1.6h15.3c.9,0,1.6.7,1.6,1.6v6.9c0,.9-.7,1.6-1.6,1.6Z"/>
37
+ </g>
38
+ <g id="g3651">
39
+ <path id="path3653" class="cls-1" d="M116.5,119.8h-15.3c-.9,0-1.6-.7-1.6-1.6v-6.9c0-.9.7-1.6,1.6-1.6h15.3c.9,0,1.6.7,1.6,1.6v6.9c0,.9-.7,1.6-1.6,1.6Z"/>
40
+ </g>
41
+ <g id="g3655">
42
+ <path id="path3657" class="cls-1" d="M90,103.5h-18.8v6.3"/>
43
+ </g>
44
+ <g id="g3659">
45
+ <path id="path3661" class="cls-1" d="M63.5,119.8h15.3c.9,0,1.6-.7,1.6-1.6v-6.9c0-.9-.7-1.6-1.6-1.6h-15.3c-.9,0-1.6.7-1.6,1.6v6.9c0,.9.7,1.6,1.6,1.6Z"/>
46
+ </g>
47
+ <g id="g3663">
48
+ <path id="path3665" class="cls-1" d="M90,80.5v6.7"/>
49
+ </g>
50
+ <g id="g3667">
51
+ <path id="path3669" class="cls-1" d="M62,128.5h56"/>
52
+ </g>
53
+ </g>
54
+ </g>
55
+ </g>
56
+ </svg>
@@ -0,0 +1,45 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 180 180">
3
+ <defs>
4
+ <style>
5
+ .cls-1 {
6
+ fill: none;
7
+ stroke: #000;
8
+ stroke-dasharray: 0 0 0 0 63 5.9;
9
+ stroke-linecap: round;
10
+ stroke-linejoin: round;
11
+ }
12
+ </style>
13
+ </defs>
14
+ <!-- Generator: Adobe Illustrator 28.7.1, SVG Export Plug-In . SVG Version: 1.2.0 Build 142) -->
15
+ <g>
16
+ <g id="Layer_2">
17
+ <g id="g19">
18
+ <g id="g25">
19
+ <path id="path27" class="cls-1" d="M90,72.6c9.6,0,17.4,7.8,17.4,17.4s-7.8,17.4-17.4,17.4-17.4-7.8-17.4-17.4,7.8-17.4,17.4-17.4Z"/>
20
+ </g>
21
+ <g id="g29">
22
+ <path id="path31" class="cls-1" d="M90,83.9c3.4,0,6.1,2.7,6.1,6.1s-2.7,6.1-6.1,6.1-6.1-2.7-6.1-6.1,2.7-6.1,6.1-6.1Z"/>
23
+ </g>
24
+ <g id="g33">
25
+ <path id="path35" class="cls-1" d="M55.7,90h0c.5.9,10.6,17.4,34.6,17.4s33.2-16.1,33.9-17.4c-.5-.9-10.6-17.4-34.6-17.4s-33.2,16.1-33.9,17.4Z"/>
26
+ </g>
27
+ <g id="g37">
28
+ <path id="path39" class="cls-1" d="M136.9,90c0,25.9-21,46.9-46.9,46.9s-46.9-21-46.9-46.9,21-46.9,46.9-46.9,46.9,21,46.9,46.9Z"/>
29
+ </g>
30
+ <g id="g41">
31
+ <path id="path43" class="cls-1" d="M90,35.5v16.6"/>
32
+ </g>
33
+ <g id="g45">
34
+ <path id="path47" class="cls-1" d="M90,129.2v15.3"/>
35
+ </g>
36
+ <g id="g49">
37
+ <path id="path51" class="cls-1" d="M144.5,90h-7.6"/>
38
+ </g>
39
+ <g id="g53">
40
+ <path id="path55" class="cls-1" d="M43.1,90h-7.6"/>
41
+ </g>
42
+ </g>
43
+ </g>
44
+ </g>
45
+ </svg>
@@ -3,6 +3,17 @@
3
3
 
4
4
  @import (multiple, reference, optional) '../../theme.config';
5
5
 
6
+ @grey-light: #f1f0f5;
7
+ @grey-dark: #e1e1e1;
8
+ @blue: #004b80;
9
+ @teal: #007b6a;
10
+ @sand: #b78b02;
11
+ @light-blue: #50afa3;
12
+ @purple: #9e85b6;
13
+ @blue-grey: #6889a6;
14
+ @border-color: #3d5265;
15
+ @text-color: #212d39;
16
+
6
17
  .rast-map-block {
7
18
  display: flex;
8
19
  align-items: center;
@@ -104,3 +115,154 @@
104
115
  }
105
116
  }
106
117
  }
118
+
119
+ .rast-block {
120
+ .ui.accordion {
121
+ margin-bottom: 0.7em;
122
+ color: @text-color;
123
+
124
+ &:has(svg) {
125
+ .title:not(.ui) {
126
+ padding: 0.3rem 0.5rem 0.3rem 0;
127
+ }
128
+ }
129
+
130
+ .title {
131
+ justify-content: flex-start;
132
+ border: none;
133
+ background-color: @grey-light;
134
+
135
+ &.active {
136
+ background-color: @grey-dark;
137
+ }
138
+
139
+ .item-title {
140
+ color: @text-color;
141
+ font-size: 15px;
142
+ }
143
+
144
+ > .icon {
145
+ order: unset;
146
+ }
147
+ }
148
+
149
+ .content {
150
+ padding: 1rem;
151
+ background-color: @grey-light;
152
+
153
+ &.active {
154
+ border: 2px solid @grey-dark;
155
+ }
156
+
157
+ .item {
158
+ a {
159
+ color: @text-color;
160
+ font-size: 14px;
161
+ }
162
+
163
+ &:not(:last-child) {
164
+ padding-bottom: 0.8em;
165
+ border-bottom: 1px solid @border-color;
166
+ }
167
+
168
+ &:not(:first-child) {
169
+ padding-top: 0.8em;
170
+ }
171
+ }
172
+
173
+ .substep.active {
174
+ a {
175
+ color: @text-color;
176
+ font-weight: bold;
177
+ }
178
+ }
179
+ }
180
+
181
+ .cls-1 {
182
+ stroke: @text-color;
183
+ stroke-width: 3;
184
+ }
185
+
186
+ &.step-1,
187
+ &.step-2,
188
+ &.step-3,
189
+ &.step-4,
190
+ &.step-5,
191
+ &.step-6 {
192
+ .title.active {
193
+ .item-title {
194
+ color: @white;
195
+ }
196
+
197
+ .icon {
198
+ fill: @white !important;
199
+ }
200
+
201
+ .cls-1 {
202
+ stroke: @white;
203
+ stroke-width: 3;
204
+ }
205
+ }
206
+ }
207
+
208
+ &.step-1 {
209
+ .title.active {
210
+ background-color: @teal;
211
+ }
212
+
213
+ .content {
214
+ border: 2px solid @teal;
215
+ }
216
+ }
217
+
218
+ &.step-2 {
219
+ .title.active {
220
+ background-color: @blue;
221
+ }
222
+
223
+ .content {
224
+ border: 2px solid @blue;
225
+ }
226
+ }
227
+
228
+ &.step-3 {
229
+ .title.active {
230
+ background-color: @blue-grey;
231
+ }
232
+
233
+ .content {
234
+ border: 2px solid @blue-grey;
235
+ }
236
+ }
237
+
238
+ &.step-4 {
239
+ .title.active {
240
+ background-color: @purple;
241
+ }
242
+
243
+ .content {
244
+ border: 2px solid @purple;
245
+ }
246
+ }
247
+
248
+ &.step-5 {
249
+ .title.active {
250
+ background-color: @sand;
251
+ }
252
+
253
+ .content {
254
+ border: 2px solid @sand;
255
+ }
256
+ }
257
+
258
+ &.step-6 {
259
+ .title.active {
260
+ background-color: @light-blue;
261
+ }
262
+
263
+ .content {
264
+ border: 2px solid @light-blue;
265
+ }
266
+ }
267
+ }
268
+ }