@eeacms/volto-n2k 1.0.22 → 1.0.24

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.
Files changed (28) hide show
  1. package/CHANGELOG.md +22 -3
  2. package/package.json +3 -2
  3. package/src/components/manage/Blocks/BodyClass/index.js +1 -1
  4. package/src/components/manage/Blocks/CddaShape/View.jsx +2 -2
  5. package/src/components/manage/Blocks/ContactBlock/styles.less +1 -1
  6. package/src/components/manage/Blocks/ExploreHabitats/View.jsx +2 -2
  7. package/src/components/manage/Blocks/ExploreSites/View.jsx +2 -2
  8. package/src/components/manage/Blocks/ExploreSpecies/View.jsx +2 -2
  9. package/src/components/manage/Blocks/HabitatDistribution/View.jsx +2 -2
  10. package/src/components/manage/Blocks/HabitatProtectedSites/View.jsx +2 -2
  11. package/src/components/manage/Blocks/HabitatsBanner/Edit.jsx +49 -0
  12. package/src/components/manage/Blocks/HabitatsBanner/View.jsx +184 -21
  13. package/src/components/manage/Blocks/HabitatsBanner/index.js +18 -11
  14. package/src/components/manage/Blocks/HabitatsBanner/schema.js +64 -5
  15. package/src/components/manage/Blocks/HabitatsBanner/style.less +184 -17
  16. package/src/components/manage/Blocks/Landing/index.js +3 -2
  17. package/src/components/manage/Blocks/Landing/style.less +3 -5
  18. package/src/components/manage/Blocks/NavigationAnchors/View.jsx +1 -1
  19. package/src/components/manage/Blocks/NavigationAnchors/styles.less +2 -0
  20. package/src/components/manage/Blocks/SiteBanner/style.less +8 -0
  21. package/src/components/manage/Blocks/SiteShape/View.jsx +1 -1
  22. package/src/components/manage/Blocks/SiteSpeciesList/style.less +1 -1
  23. package/src/components/manage/Blocks/SpeciesBanner/View.jsx +160 -100
  24. package/src/components/manage/Blocks/SpeciesBanner/style.less +161 -72
  25. package/src/components/manage/Blocks/SpeciesDistribution/View.jsx +2 -2
  26. package/src/components/manage/Blocks/SpeciesProtectedSites/View.jsx +2 -2
  27. package/src/icons/arrow-left.svg +9 -0
  28. package/src/icons/arrow-right.svg +9 -0
@@ -1,31 +1,85 @@
1
+ @type: extra;
2
+ @element: custom;
3
+
4
+ @import (multiple, reference, optional) '../../theme.config';
5
+
6
+ @import 'swiper/swiper.less';
7
+
8
+ @{view} {
9
+ .species-banner-details {
10
+ &::before {
11
+ .full-width();
12
+ position: absolute;
13
+ z-index: -1;
14
+ }
15
+
16
+ .carousel {
17
+ .half-width(960px);
18
+
19
+ @media @mobile {
20
+ width: calc(@pageFullWidth - 2rem) !important;
21
+ }
22
+ }
23
+ }
24
+ }
25
+
26
+ @{edit} {
27
+ .species-banner-details {
28
+ &::before {
29
+ .full-width-edit();
30
+ position: absolute;
31
+ z-index: -1;
32
+ }
33
+
34
+ .carousel {
35
+ .half-width-edit(960px);
36
+
37
+ @media @mobile {
38
+ width: calc(@pageFullWidthEdit - 2rem) !important;
39
+ }
40
+ }
41
+ }
42
+ }
43
+
1
44
  div#view .species-banner-details .ui.container > * {
2
45
  margin-top: 0;
3
46
  margin-bottom: 0;
4
47
  }
5
48
 
6
49
  .species-banner-details {
7
- padding: 1.5em 0;
8
- background-color: #00a390;
50
+ position: relative;
51
+ padding: 0;
52
+ margin-bottom: 1rem;
9
53
  color: #fff !important;
10
54
  font-family: 'RajdhaniB', 'Helvetica Neue', Arial, Helvetica, sans-serif;
11
55
 
56
+ &::before {
57
+ display: block;
58
+ height: 100%;
59
+ background-color: #00a390;
60
+ content: '';
61
+ }
62
+
12
63
  .species-details {
13
64
  display: flex;
14
- flex-flow: row;
15
65
  align-items: center;
16
66
  justify-content: space-between;
17
- gap: 2rem;
18
-
19
- @media only screen and (max-width: 800px) {
20
- flex-flow: column;
21
- }
22
67
 
23
68
  .species-metadata {
69
+ display: flex;
70
+ width: 50%;
71
+ height: 320px !important;
72
+ flex: 0 0 50%;
73
+ flex-direction: column;
74
+ justify-content: center;
75
+ word-wrap: break-word;
76
+
24
77
  .name {
25
78
  margin-top: 0 !important;
26
79
  margin-bottom: 0 !important;
27
80
  color: #fff !important;
28
81
  font-family: inherit;
82
+
29
83
  font-family: RajdhaniB, 'Helvetica Neue', Arial, Helvetica, sans-serif;
30
84
  font-size: 54px;
31
85
  line-height: 54px;
@@ -56,96 +110,131 @@ div#view .species-banner-details .ui.container > * {
56
110
  text-transform: uppercase;
57
111
  }
58
112
 
59
- .info {
60
- margin-bottom: 1rem;
113
+ .info,
114
+ .info > * {
61
115
  font-family: 'RajdhaniR', 'Helvetica Neue', Arial, Helvetica, sans-serif;
62
116
  font-size: 18px;
63
117
  font-weight: 600;
64
118
  line-height: 18px;
119
+
120
+ a {
121
+ color: #fff;
122
+
123
+ &:hover {
124
+ color: #fff;
125
+ }
126
+ }
65
127
  }
66
128
  }
67
129
 
68
- .slick-slider {
69
- .slick-arrow {
70
- display: block !important;
130
+ .carousel {
131
+ display: flex;
132
+ height: 320px;
133
+
134
+ p {
135
+ font-family: 'RajdhaniB', 'Helvetica Neue', Arial, Helvetica, sans-serif;
71
136
  }
72
- }
73
137
 
74
- .species-pictures {
75
- width: 400px;
76
- height: 400px;
77
- margin-bottom: 1rem;
78
-
79
- .picture-wrapper {
80
- position: relative;
81
- display: flex !important;
82
- overflow: hidden;
83
- width: 400px;
84
- height: 400px;
85
- flex-flow: column;
86
- align-items: center;
87
- justify-content: center;
88
- background-color: #000;
89
- border-radius: 10px;
138
+ img {
139
+ width: 100%;
140
+ }
90
141
 
91
- img {
92
- width: auto;
93
- max-width: 400px;
94
- height: auto;
95
- max-height: 400px;
96
- filter: drop-shadow(-2px 2px 3px rgba(0, 0, 0, 0.4));
142
+ &.one-slide .swiper {
143
+ width: 100%;
144
+ }
145
+
146
+ &.two-slides .swiper {
147
+ width: 50%;
148
+
149
+ @media @mobile {
150
+ width: 100%;
151
+
152
+ &.preview.preview-one {
153
+ display: none;
154
+ }
97
155
  }
156
+ }
98
157
 
99
- .source {
100
- position: absolute;
101
- bottom: 0;
102
- left: 0;
158
+ &.three-slides .swiper {
159
+ width: 33.33%;
160
+
161
+ @media @tablet {
162
+ width: 50%;
163
+
164
+ &.preview.preview-two {
165
+ display: none;
166
+ }
167
+ }
168
+
169
+ @media @mobile {
103
170
  width: 100%;
104
- padding: 0.5rem 1rem;
105
- background-color: rgba(0, 0, 0, 0.7);
106
- border-bottom-left-radius: 3px;
107
- border-bottom-right-radius: 3px;
108
-
109
- a {
110
- margin-top: 1rem;
111
- color: #fff !important;
112
-
113
- &:hover {
114
- color: #fff !important;
115
- text-decoration: underline;
116
- }
171
+
172
+ &.preview.preview-two,
173
+ &.preview.preview-one {
174
+ display: none;
117
175
  }
118
176
  }
119
177
  }
120
178
 
121
- &:not(.with-slider) {
122
- display: flex;
123
- flex-flow: column;
124
- justify-content: center;
179
+ .swiper {
180
+ &.preview .swiper-slide {
181
+ filter: grayscale(100%);
182
+ }
125
183
 
126
- .picture-wrapper {
127
- height: fit-content;
184
+ img {
185
+ display: block;
186
+ width: 100%;
187
+ height: 100%;
188
+ object-fit: cover;
128
189
  }
129
190
  }
130
191
 
131
- .find-image {
132
- padding: 0.25rem 1rem;
133
- text-align: left;
192
+ .arrows {
193
+ position: absolute;
194
+ z-index: 2;
195
+ bottom: 0;
196
+ left: 0;
197
+ display: flex;
198
+ width: 100%;
199
+ align-items: center;
134
200
 
135
- a {
136
- color: #fff;
201
+ button {
202
+ padding: 0;
203
+ border: none;
204
+ margin: 0;
205
+ background-color: transparent;
206
+ }
207
+
208
+ .icon {
209
+ display: block;
210
+ width: 32px;
211
+ background-color: #fff;
212
+ cursor: pointer;
213
+ }
214
+
215
+ p {
216
+ overflow: hidden;
217
+ width: calc(100% - 64px);
218
+ padding: 0.25rem 0.25rem 0.25rem 1rem;
219
+ margin: 0;
220
+ backdrop-filter: brightness(0.5);
221
+ text-overflow: ellipsis;
222
+ white-space: nowrap;
137
223
  }
138
224
  }
139
225
  }
140
- }
141
226
 
142
- .slick-slide:not(.slick-active) {
143
- opacity: 0;
144
- transition: opacity 0.6s;
145
- }
227
+ @media @mobile {
228
+ flex-flow: column;
146
229
 
147
- .slick-slide {
148
- opacity: 1;
149
- transition: opacity 0.4s;
230
+ .species-metadata {
231
+ width: 100%;
232
+ margin-top: 2rem;
233
+ }
234
+
235
+ .carousel {
236
+ margin: 0 1rem 1rem 1rem;
237
+ }
238
+ }
150
239
  }
151
240
  }
@@ -100,8 +100,8 @@ const View = (props) => {
100
100
  <Interactions pointer={false} select={false} />
101
101
  </Map>
102
102
  </div>
103
- <Container className="map-info-notice">
104
- <Message>
103
+ <Container>
104
+ <Message className="map-info-notice">
105
105
  <p>
106
106
  The designations employed and the presentation of material on this
107
107
  map do not imply the expression of any opinion whatsoever on the
@@ -96,8 +96,8 @@ const View = (props) => {
96
96
  <Interactions pointer={false} select={false} />
97
97
  </Map>
98
98
  </div>
99
- <Container className="map-info-notice">
100
- <Message>
99
+ <Container>
100
+ <Message className="map-info-notice">
101
101
  <p>
102
102
  The designations employed and the presentation of material on this
103
103
  map do not imply the expression of any opinion whatsoever on the
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 24.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 32 32" style="enable-background:new 0 0 32 32;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill-rule:evenodd;clip-rule:evenodd;}
7
+ </style>
8
+ <path class="st0" d="M32,0H0v32h32V0z M12,16l10.1,10.1l-2.5,2.5L7,16L19.6,3.4l2.5,2.5L12,16z"/>
9
+ </svg>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 24.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 32 32" style="enable-background:new 0 0 32 32;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill-rule:evenodd;clip-rule:evenodd;}
7
+ </style>
8
+ <path class="st0" d="M0,32h32V0L0,0L0,32z M9.9,5.9l2.5-2.5L25,16L12.4,28.6l-2.5-2.5L20,16L9.9,5.9z"/>
9
+ </svg>