@eeacms/volto-marine-policy 1.0.0

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 (154) hide show
  1. package/.coverage.babel.config.js +9 -0
  2. package/.eslintrc.js +65 -0
  3. package/.husky/pre-commit +2 -0
  4. package/.release-it.json +17 -0
  5. package/CHANGELOG.md +5 -0
  6. package/DEVELOP.md +53 -0
  7. package/DEVELOP.md.tpl +106 -0
  8. package/Jenkinsfile.tpl +416 -0
  9. package/LICENSE.md +9 -0
  10. package/Makefile.tpl +165 -0
  11. package/README.md +172 -0
  12. package/README.md.tpl +93 -0
  13. package/RELEASE.md +74 -0
  14. package/babel.config.js +17 -0
  15. package/bootstrap +41 -0
  16. package/cypress.config.js +24 -0
  17. package/docker-compose.yml +32 -0
  18. package/jest-addon.config.js +35 -0
  19. package/jest-addon.config.js.tpl +51 -0
  20. package/jest.setup.js +65 -0
  21. package/locales/de/LC_MESSAGES/volto.po +14 -0
  22. package/locales/en/LC_MESSAGES/volto.po +14 -0
  23. package/locales/it/LC_MESSAGES/volto.po +14 -0
  24. package/locales/ro/LC_MESSAGES/volto.po +14 -0
  25. package/locales/volto.pot +16 -0
  26. package/package.json +68 -0
  27. package/package.json.tpl +70 -0
  28. package/razzle.extend.js +29 -0
  29. package/src/components/Blocks/CustomBlockTemplates/customBlockTemplates.js +25 -0
  30. package/src/components/Blocks/MsfdDataExplorerBlock/Edit.jsx +29 -0
  31. package/src/components/Blocks/MsfdDataExplorerBlock/View.jsx +105 -0
  32. package/src/components/Blocks/MsfdDataExplorerBlock/index.js +23 -0
  33. package/src/components/Blocks/MsfdDataExplorerBlock/schema.jsx +30 -0
  34. package/src/components/Result/MarineMeasureItem.jsx +83 -0
  35. package/src/components/Widgets/MeasureViewWidget.jsx +233 -0
  36. package/src/components/Widgets/String.jsx +15 -0
  37. package/src/components/Widgets/TextAlign.jsx +41 -0
  38. package/src/components/Widgets/measure.css +101 -0
  39. package/src/components/index.js +15 -0
  40. package/src/components/theme/AppExtras/PrintPage/PrintPage.jsx +61 -0
  41. package/src/components/theme/AppExtras/PrintPage/css/printpage.less +29 -0
  42. package/src/components/theme/AppExtras/PrintPage/index.js +3 -0
  43. package/src/components/theme/AppExtras/ScrollToTop/ScrollToTop.jsx +61 -0
  44. package/src/components/theme/AppExtras/ScrollToTop/css/scrolltop.less +19 -0
  45. package/src/components/theme/AppExtras/ScrollToTop/index.js +3 -0
  46. package/src/components/theme/AppExtras/index.js +18 -0
  47. package/src/components/theme/DatabaseItemView/DatabaseItemView.jsx +39 -0
  48. package/src/components/theme/DatabaseItemView/style.less +87 -0
  49. package/src/components/theme/Header/HeroSection.jsx +45 -0
  50. package/src/components/theme/Header/StickyHeader.jsx +51 -0
  51. package/src/components/theme/Header/less/globals.less +18 -0
  52. package/src/components/theme/Header/less/herosection.less +64 -0
  53. package/src/components/theme/Header/less/herosection.variables +18 -0
  54. package/src/components/theme/ItemMetadata/ItemMetadata.jsx +217 -0
  55. package/src/components/theme/ItemMetadata/ItemMetadataSnippet.jsx +69 -0
  56. package/src/components/theme/ItemMetadata/ItemTitle.jsx +29 -0
  57. package/src/components/theme/MetadataListingView/MapPreview.jsx +105 -0
  58. package/src/components/theme/MetadataListingView/MetadataHeader.jsx +66 -0
  59. package/src/components/theme/MetadataListingView/MetadataListingView.jsx +36 -0
  60. package/src/components/theme/MetadataListingView/style.less +219 -0
  61. package/src/components/theme/SimpleListingView/SimpleListingView.jsx +97 -0
  62. package/src/components/theme/SimpleListingView/style.less +33 -0
  63. package/src/components/theme/Tableau/TableauDownload.jsx +86 -0
  64. package/src/components/theme/Tableau/TableauFullscreen.jsx +78 -0
  65. package/src/components/theme/Tableau/TableauShare.jsx +128 -0
  66. package/src/components/theme/View/FullwidthView.jsx +102 -0
  67. package/src/components/theme/View/HeroSectionView.jsx +125 -0
  68. package/src/constants/ActionTypes.js +12 -0
  69. package/src/constants/measureFields.js +56 -0
  70. package/src/customizations/@eeacms/volto-block-style/StyleWrapper/schema.js +217 -0
  71. package/src/customizations/@eeacms/volto-eea-design-system/ui/Header/Header.jsx +358 -0
  72. package/src/customizations/@eeacms/volto-eea-design-system/ui/Header/HeaderMenuPopUp.js +403 -0
  73. package/src/customizations/@eeacms/volto-eea-design-system/ui/Header/HeaderSearchPopUp.js +131 -0
  74. package/src/customizations/@eeacms/volto-eea-design-system/ui/Logo/Logo.jsx +32 -0
  75. package/src/customizations/@eeacms/volto-eea-design-system/ui/Logo/marine_logo.svg +63 -0
  76. package/src/customizations/volto/components/manage/Contents/ContentsBreadcrumbs.jsx +81 -0
  77. package/src/customizations/volto/components/manage/Contents/README.md +1 -0
  78. package/src/customizations/volto/components/manage/Toolbar/PersonalTools.jsx +205 -0
  79. package/src/customizations/volto/components/manage/Toolbar/Toolbar.jsx +624 -0
  80. package/src/customizations/volto/components/theme/Breadcrumbs/Breadcrumbs.jsx +49 -0
  81. package/src/customizations/volto/components/theme/Breadcrumbs/README.md +1 -0
  82. package/src/customizations/volto/components/theme/Header/Header.jsx +272 -0
  83. package/src/helpers/index.js +2 -0
  84. package/src/helpers/useCopyToClipboard.js +25 -0
  85. package/src/helpers/useOutsideClick.js +20 -0
  86. package/src/icons/arrow.svg +3 -0
  87. package/src/icons/basket.svg +3 -0
  88. package/src/icons/newspaper.svg +3 -0
  89. package/src/icons/popup.svg +3 -0
  90. package/src/icons/search.svg +3 -0
  91. package/src/icons/star-full.svg +3 -0
  92. package/src/icons/user.svg +3 -0
  93. package/src/index.js +466 -0
  94. package/src/reducers/breadcrumb/breadcrumb.js +59 -0
  95. package/src/reducers/index.js +2 -0
  96. package/src/reducers/localnavigation/localnavigation.js +69 -0
  97. package/src/search/config.js +98 -0
  98. package/src/search/facets.js +85 -0
  99. package/src/search/index.js +48 -0
  100. package/src/search/views.js +15 -0
  101. package/src/slate-styles.less +43 -0
  102. package/src/static/bise_logo.svg +1 -0
  103. package/src/static/cca_logo.svg +20 -0
  104. package/src/static/ec_logo.svg +343 -0
  105. package/src/static/ec_logo_white.svg +10 -0
  106. package/src/static/eea_logo.svg +14 -0
  107. package/src/static/footer-fishes.svg +21 -0
  108. package/src/static/forest_logo.svg +30 -0
  109. package/src/static/freshwater_logo.svg +12 -0
  110. package/src/static/marine_logo.svg +63 -0
  111. package/src/static/marine_logo_white.svg +44 -0
  112. package/src/utils.js +38 -0
  113. package/theme/assets/fonts/Poppins/Poppins-Bold.ttf +0 -0
  114. package/theme/assets/fonts/Poppins/Poppins-Bold.woff +0 -0
  115. package/theme/assets/fonts/Poppins/Poppins-Bold.woff2 +0 -0
  116. package/theme/assets/fonts/Poppins/Poppins-ExtraBold.ttf +0 -0
  117. package/theme/assets/fonts/Poppins/Poppins-Light.ttf +0 -0
  118. package/theme/assets/fonts/Poppins/Poppins-Light.woff +0 -0
  119. package/theme/assets/fonts/Poppins/Poppins-Light.woff2 +0 -0
  120. package/theme/assets/fonts/Poppins/Poppins-Regular.ttf +0 -0
  121. package/theme/assets/fonts/Poppins/Poppins-Regular.woff +0 -0
  122. package/theme/assets/fonts/Poppins/Poppins-Regular.woff2 +0 -0
  123. package/theme/assets/fonts/Poppins/Poppins-SemiBold.ttf +0 -0
  124. package/theme/assets/fonts/Poppins/Poppins-SemiBold.woff +0 -0
  125. package/theme/assets/fonts/Poppins/Poppins-SemiBold.woff2 +0 -0
  126. package/theme/assets/fonts/Roboto/Roboto-Light.ttf +0 -0
  127. package/theme/assets/fonts/Roboto/Roboto-Light.woff +0 -0
  128. package/theme/assets/fonts/Roboto/Roboto-Light.woff2 +0 -0
  129. package/theme/assets/fonts/Roboto/Roboto-Medium.ttf +0 -0
  130. package/theme/assets/fonts/Roboto/Roboto-Medium.woff +0 -0
  131. package/theme/assets/fonts/Roboto/Roboto-Medium.woff2 +0 -0
  132. package/theme/assets/fonts/Roboto/Roboto-Regular.ttf +0 -0
  133. package/theme/assets/fonts/Roboto/Roboto-Regular.woff +0 -0
  134. package/theme/assets/fonts/Roboto/Roboto-Regular.woff2 +0 -0
  135. package/theme/assets/images/Footer/ec_logo.svg +10 -0
  136. package/theme/assets/images/Header/climate-adapt-logo-1.svg +20 -0
  137. package/theme/assets/images/Header/climate-adapt-logo.svg +22 -0
  138. package/theme/assets/images/spinner.svg +1 -0
  139. package/theme/collections/table.variables +17 -0
  140. package/theme/elements/button.overrides +22 -0
  141. package/theme/extras/banner.variables +5 -0
  142. package/theme/extras/contextNavigation.overrides +60 -0
  143. package/theme/extras/contextNavigation.variables +32 -0
  144. package/theme/extras/footer.variables +6 -0
  145. package/theme/extras/header.overrides +20 -0
  146. package/theme/extras/header.variables +7 -0
  147. package/theme/extras/hero.overrides +4 -0
  148. package/theme/extras/inpageNavigation.variables +5 -0
  149. package/theme/extras/mixins.less +8 -0
  150. package/theme/globals/site.overrides +349 -0
  151. package/theme/globals/site.variables +997 -0
  152. package/theme/theme.config +136 -0
  153. package/theme/tokens/colors.less +9 -0
  154. package/theme/tokens/tokens.less +1 -0
@@ -0,0 +1,349 @@
1
+ /*******************************
2
+ Global Overrides
3
+ *******************************/
4
+
5
+ #page-document > blockquote {
6
+ margin-right: revert !important;
7
+ margin-left: revert !important;
8
+ }
9
+
10
+ body {
11
+ .default.tabs {
12
+ .ui.text.container {
13
+ max-width: 100% !important;
14
+ }
15
+
16
+ .ui.segment {
17
+ background: initial;
18
+ }
19
+ }
20
+
21
+ // Content box primary table
22
+ .content-box:before {
23
+ width: 110vw;
24
+ }
25
+
26
+ .content-box.primary-table {
27
+ background-color: @primaryColor;
28
+
29
+ tr {
30
+ border-bottom: none !important;
31
+
32
+ th,
33
+ td {
34
+ border-left: 1px solid white !important;
35
+ color: white !important;
36
+ }
37
+
38
+ td:first-of-type,
39
+ th:first-of-type {
40
+ border-left: none !important;
41
+ }
42
+
43
+ th {
44
+ border-bottom: 1px solid white !important;
45
+ }
46
+
47
+ td {
48
+ border-top: 1px solid white !important;
49
+ }
50
+ }
51
+ }
52
+
53
+ // Header
54
+ @media only screen and (min-width: 992px) {
55
+ .eea.header .eea-logo {
56
+ max-width: 252px;
57
+ }
58
+ }
59
+
60
+ @media only screen and (min-width: 992px) {
61
+ .eea.header {
62
+ .ui.grid > .row > [class*='four wide computer'].column,
63
+ .ui.grid > .column.row > [class*='four wide computer'].column,
64
+ .ui.grid > [class*='four wide computer'].column,
65
+ .ui.column.grid > [class*='four wide computer'].column {
66
+ width: 25% !important;
67
+ }
68
+
69
+ .ui.grid > .row > [class*='eight wide computer'].column,
70
+ .ui.grid > .column.row > [class*='eight wide computer'].column,
71
+ .ui.grid > [class*='eight wide computer'].column,
72
+ .ui.column.grid > [class*='eight wide computer'].column {
73
+ width: 75% !important;
74
+ }
75
+ }
76
+ }
77
+
78
+ .hero-block-text p {
79
+ line-height: 2em;
80
+ }
81
+
82
+ .tableau-image-placeholder {
83
+ display: none;
84
+ }
85
+
86
+ .minipastanaga,
87
+ .pastanagalogo {
88
+ display: none;
89
+ }
90
+
91
+ .eea.header .top.bar {
92
+ line-height: 1em;
93
+ }
94
+
95
+ .subfooter .footer-description {
96
+ margin-top: 3em;
97
+ margin-bottom: 1em;
98
+
99
+ p {
100
+ font-size: 1.125rem;
101
+ }
102
+ }
103
+
104
+ .eea.banner .gradient .content .metadata {
105
+ display: flex;
106
+ gap: 1em;
107
+ }
108
+
109
+ .search-action {
110
+ background-color: @primaryColor;
111
+ }
112
+
113
+ .eea.banner {
114
+ background: @primaryColor;
115
+ }
116
+
117
+ #mega-menu {
118
+ background: @primaryColor;
119
+ }
120
+
121
+ #search-box {
122
+ background: linear-gradient(
123
+ 13.69deg,
124
+ @darkPrimaryColor 1.17%,
125
+ @primaryColor 80%
126
+ );
127
+ }
128
+
129
+ footer {
130
+ background: linear-gradient(
131
+ 212.33deg,
132
+ @primaryColor 6.78%,
133
+ @darkPrimaryColor 69.54%,
134
+ @darkPrimaryColor 98.23%
135
+ );
136
+ }
137
+ }
138
+
139
+ body.view-viewview.has-toolbar:not(.homepage) #mega-menu {
140
+ @media only screen and (min-width: @tabletBreakpoint) {
141
+ width: calc(100% - @toolbarWidth);
142
+ }
143
+
144
+ @media only screen and (min-width: @computerBreakpoint) {
145
+ padding-right: 10px;
146
+ padding-left: 10px;
147
+ }
148
+ }
149
+
150
+ body.view-viewview .imagecards-block.full {
151
+ right: 0px;
152
+ left: 0px;
153
+ }
154
+
155
+ body.view-viewview .full {
156
+ position: relative !important;
157
+ right: 50%;
158
+ left: 50%;
159
+ width: 100vw !important;
160
+ max-width: initial !important;
161
+ margin-right: -50vw !important;
162
+ margin-left: -50vw !important;
163
+
164
+ > div {
165
+ display: block;
166
+ width: 100% !important;
167
+ margin-right: auto !important;
168
+ margin-left: auto !important;
169
+ }
170
+ }
171
+
172
+ .searchlib-block .sui-search-box {
173
+ max-width: 100% !important;
174
+ }
175
+
176
+ @media only screen and (min-width: @largeMonitorBreakpoint) {
177
+ .ui.container {
178
+ width: @largeMonitorWidth !important;
179
+ }
180
+ }
181
+ @media screen and (min-width: @largestMobileScreen) {
182
+ body.view-viewview.has-toolbar.has-sidebar {
183
+ .full > div {
184
+ width: calc(100% - (@toolbarWidth + @sidebarWidth)) !important;
185
+ }
186
+ }
187
+
188
+ body.view-viewview.has-toolbar.has-sidebar-collapsed {
189
+ .full > div {
190
+ width: calc(100% - (@toolbarWidth + @collapsedToolbarWidth)) !important;
191
+ }
192
+ }
193
+
194
+ body.view-viewview.has-toolbar-collapsed:not(.has-sidebar):not(.has-sidebar-collapsed) {
195
+ .full > div {
196
+ width: calc(100% - @collapsedToolbarWidth) !important;
197
+ }
198
+ }
199
+
200
+ body.view-viewview.has-toolbar-collapsed.has-sidebar {
201
+ .full > div {
202
+ .full-width-block {
203
+ width: calc(100% - (@collapsedToolbarWidth + @sidebarWidth)) !important;
204
+ }
205
+ }
206
+ }
207
+
208
+ body.view-viewview.has-toolbar-collapsed.has-sidebar-collapsed {
209
+ .full > div {
210
+ width: calc(
211
+ 100% - (@collapsedToolbarWidth + @collapsedToolbarWidth)
212
+ ) !important;
213
+ }
214
+ }
215
+ }
216
+
217
+ @media only screen and (max-width: 767px) {
218
+ body.view-viewview.has-toolbar-collapsed.has-sidebar-collapsed
219
+ .full.full-width-block,
220
+ body.view-viewview.has-toolbar.has-sidebar-collapsed .full.full-width-block {
221
+ width: 100% !important;
222
+ }
223
+ }
224
+
225
+ @media screen and (max-width: @largestMobileScreen) {
226
+ body.view-viewview.has-toolbar:not(.has-sidebar):not(.has-sidebar-collapsed),
227
+ body.view-viewview.has-toolbar-collapsed:not(.has-sidebar):not(.has-sidebar-collapsed) {
228
+ .full > div {
229
+ width: 100% !important;
230
+ }
231
+ }
232
+ }
233
+
234
+ .searchapp input:focus,
235
+ .searchapp .sui-select__control--is-focused {
236
+ border: none !important;
237
+ }
238
+
239
+ body.searchlib-page .searchlib-block .back-link {
240
+ display: none;
241
+ }
242
+
243
+ .sui-search-box .search-input .terms-box .terms-box-left,
244
+ .sui-search-box .search-input .terms-box input {
245
+ border-bottom: 2px solid @secondaryColor !important;
246
+ }
247
+
248
+ .sui-search-box .search-input .terms-box .terms-box-left .search-icon svg {
249
+ fill: @secondaryColor !important;
250
+ }
251
+
252
+ .sui-search-box .search-input .input-controls i.close.icon,
253
+ .search-body-footer .ui.button.pagination-item.active,
254
+ .searchlib-block .dropdown-facets-list .dropdown-facet .facet-title i.icon,
255
+ .searchlib-block .dropdown-facets-list .ui.button.sui-button,
256
+ .searchlib-block
257
+ .dropdown-facets-list
258
+ .dropdown-facet
259
+ .ui.button.basic.facet-btn.active
260
+ > .facet-title,
261
+ body.searchlib-page
262
+ .searchlib-block
263
+ .above-results
264
+ .sorting
265
+ .inline.dropdown
266
+ > span {
267
+ color: @secondaryColor !important;
268
+ }
269
+
270
+ .sui-search-box .search-input .input-controls i.close.icon:before,
271
+ .sui-search-box .search-input .input-controls i.close.icon:after,
272
+ body.searchlib-page
273
+ .searchlib-block
274
+ .ui.segment.active-filter-list
275
+ .ui.label.filter-value
276
+ i.close.icon:before,
277
+ body.searchlib-page
278
+ .searchlib-block
279
+ .ui.segment.active-filter-list
280
+ .ui.label.filter-value
281
+ i.close.icon:after {
282
+ background-color: @secondaryColor !important;
283
+ }
284
+
285
+ .search-body-footer .ui.button.pagination-item.active:after {
286
+ border-bottom: 5px solid @secondaryColor !important;
287
+ }
288
+
289
+ section .searchlib-block .ui.button.sui-button.basic {
290
+ display: none;
291
+ }
292
+
293
+ .sui-search-box .search-input .input-controls .clear-button {
294
+ border: 2px solid @secondaryColor !important;
295
+ }
296
+
297
+ // Custom page header
298
+ #page-header .content-box {
299
+ margin-bottom: 0px;
300
+ }
301
+
302
+ body.custom-page-header #page-header {
303
+ margin-right: auto !important;
304
+ margin-left: auto !important;
305
+ }
306
+
307
+ body.custom-page-header .breadcrumbs {
308
+ background-color: #e6e7e8 !important;
309
+
310
+ .ui.breadcrumb ol li {
311
+ vertical-align: middle;
312
+ }
313
+
314
+ .ui.breadcrumb a.section {
315
+ vertical-align: text-bottom;
316
+ }
317
+
318
+ .ui.breadcrumb .section.active {
319
+ vertical-align: text-bottom;
320
+ }
321
+ }
322
+
323
+ // Style fixes on /countries-and-regional-seas/regional-conventions
324
+ .section-ospar-convention,
325
+ .section-helcom-convention,
326
+ .section-barcelona-convention,
327
+ .section-bucharest-convention {
328
+ .ui.basic.segment.content-area {
329
+ padding-top: 0 !important;
330
+ margin-top: 0 !important;
331
+ }
332
+
333
+ .breadcrumbs {
334
+ background-color: #f9f9f9 !important;
335
+ }
336
+
337
+ .block.image {
338
+ margin-bottom: 0;
339
+ }
340
+
341
+ .styled-group:first-of-type {
342
+ margin: 0;
343
+ }
344
+
345
+ .ui.grid > .row > .column-blocks-wrapper,
346
+ .column-blocks-wrapper {
347
+ margin-bottom: 0;
348
+ }
349
+ }