@eeacms/volto-bise-policy 1.0.0 → 1.0.2

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 (105) hide show
  1. package/CHANGELOG.md +21 -2
  2. package/package.json +3 -1
  3. package/src/components/manage/Blocks/NewsletterSignup/Edit.jsx +30 -0
  4. package/src/components/manage/Blocks/NewsletterSignup/View.jsx +13 -0
  5. package/src/components/manage/Blocks/NewsletterSignup/index.js +49 -0
  6. package/src/components/manage/Blocks/NewsletterSignup/schema.js +25 -0
  7. package/src/components/manage/Blocks/index.js +2 -0
  8. package/src/customizations/@eeacms/volto-eea-design-system/ui/Header/HeaderMenuPopUp.js +354 -0
  9. package/src/customizations/@eeacms/volto-eea-website-theme/components/theme/SubsiteClass.jsx +70 -0
  10. package/src/customizations/volto/components/manage/Edit/Edit.jsx +519 -0
  11. package/src/customizations/volto/components/manage/Form/BlockDataForm.jsx +28 -0
  12. package/src/customizations/volto/components/manage/Form/BlocksToolbar.jsx +214 -0
  13. package/src/customizations/volto/components/manage/Form/Field.jsx +269 -0
  14. package/src/customizations/volto/components/manage/Form/Form.jsx +804 -0
  15. package/src/customizations/volto/components/theme/Header/Header.jsx +151 -131
  16. package/src/index.js +12 -5
  17. package/theme/collections/message.overrides +10 -0
  18. package/theme/elements/container.overrides +156 -0
  19. package/theme/elements/segment.variables +1 -0
  20. package/theme/extras/header.overrides +107 -13
  21. package/theme/extras/header.variables +12 -0
  22. package/theme/extras/keyfacts.less +3 -3
  23. package/theme/extras/pluggables.less +17 -16
  24. package/theme/fonts/OpenSans-Bold.ttf +0 -0
  25. package/theme/fonts/OpenSans-Regular.ttf +0 -0
  26. package/theme/fonts/OpenSans-Semibold.ttf +0 -0
  27. package/theme/fonts/Rajdhani-Bold.ttf +0 -0
  28. package/theme/fonts/Rajdhani-Regular.ttf +0 -0
  29. package/theme/globals/helpers.less +75 -0
  30. package/theme/globals/natura2000.less +53 -0
  31. package/theme/globals/site.overrides +204 -4
  32. package/theme/globals/site.variables +5 -0
  33. package/theme/modules/accordion.overrides +3 -0
  34. package/theme/modules/accordion.variables +7 -0
  35. package/theme/modules/tab.overrides +176 -0
  36. package/theme/theme.config +1 -0
  37. package/theme/views/card.variables +2 -0
  38. package/locales/bg/LC_MESSAGES/volto.po +0 -14
  39. package/locales/bg.json +0 -1
  40. package/locales/bs/LC_MESSAGES/volto.po +0 -14
  41. package/locales/bs.json +0 -1
  42. package/locales/cs/LC_MESSAGES/volto.po +0 -14
  43. package/locales/cs.json +0 -1
  44. package/locales/da/LC_MESSAGES/volto.po +0 -14
  45. package/locales/da.json +0 -1
  46. package/locales/de/LC_MESSAGES/volto.po +0 -29
  47. package/locales/de.json +0 -1
  48. package/locales/el/LC_MESSAGES/volto.po +0 -14
  49. package/locales/el.json +0 -1
  50. package/locales/en/LC_MESSAGES/volto.po +0 -14
  51. package/locales/en.json +0 -1
  52. package/locales/es/LC_MESSAGES/volto.po +0 -24
  53. package/locales/es.json +0 -1
  54. package/locales/et/LC_MESSAGES/volto.po +0 -14
  55. package/locales/et.json +0 -1
  56. package/locales/eu/LC_MESSAGES/volto.po +0 -19
  57. package/locales/eu.json +0 -1
  58. package/locales/fi/LC_MESSAGES/volto.po +0 -14
  59. package/locales/fi.json +0 -1
  60. package/locales/fr/LC_MESSAGES/volto.po +0 -29
  61. package/locales/fr.json +0 -1
  62. package/locales/ga/LC_MESSAGES/volto.po +0 -14
  63. package/locales/ga.json +0 -1
  64. package/locales/hr/LC_MESSAGES/volto.po +0 -14
  65. package/locales/hr.json +0 -1
  66. package/locales/hu/LC_MESSAGES/volto.po +0 -14
  67. package/locales/hu.json +0 -1
  68. package/locales/is/LC_MESSAGES/volto.po +0 -14
  69. package/locales/is.json +0 -1
  70. package/locales/it/LC_MESSAGES/volto.po +0 -14
  71. package/locales/it.json +0 -1
  72. package/locales/ja/LC_MESSAGES/volto.po +0 -21
  73. package/locales/ja.json +0 -1
  74. package/locales/lt/LC_MESSAGES/volto.po +0 -14
  75. package/locales/lt.json +0 -1
  76. package/locales/lv/LC_MESSAGES/volto.po +0 -14
  77. package/locales/lv.json +0 -1
  78. package/locales/mk/LC_MESSAGES/volto.po +0 -14
  79. package/locales/mk.json +0 -1
  80. package/locales/mt/LC_MESSAGES/volto.po +0 -14
  81. package/locales/mt.json +0 -1
  82. package/locales/nl/LC_MESSAGES/volto.po +0 -33
  83. package/locales/nl.json +0 -1
  84. package/locales/no/LC_MESSAGES/volto.po +0 -14
  85. package/locales/no.json +0 -1
  86. package/locales/pl/LC_MESSAGES/volto.po +0 -14
  87. package/locales/pl.json +0 -1
  88. package/locales/pt/LC_MESSAGES/volto.po +0 -22
  89. package/locales/pt.json +0 -1
  90. package/locales/pt_BR/LC_MESSAGES/volto.po +0 -20
  91. package/locales/pt_BR.json +0 -1
  92. package/locales/ro/LC_MESSAGES/volto.po +0 -20
  93. package/locales/ro.json +0 -1
  94. package/locales/sh/LC_MESSAGES/volto.po +0 -14
  95. package/locales/sh.json +0 -1
  96. package/locales/sk/LC_MESSAGES/volto.po +0 -14
  97. package/locales/sk.json +0 -1
  98. package/locales/sl/LC_MESSAGES/volto.po +0 -14
  99. package/locales/sl.json +0 -1
  100. package/locales/sq/LC_MESSAGES/volto.po +0 -14
  101. package/locales/sq.json +0 -1
  102. package/locales/sv/LC_MESSAGES/volto.po +0 -14
  103. package/locales/sv.json +0 -1
  104. package/locales/tr/LC_MESSAGES/volto.po +0 -14
  105. package/locales/tr.json +0 -1
@@ -1,18 +1,10 @@
1
- // .search-action {
2
- // background-color: @primaryColor;
3
- // }
4
-
5
- #search-box {
6
- min-height: 100%;
7
- }
8
-
9
- .has-toolbar.homepage .eea.header {
10
- width: 100%;
11
- }
1
+ /*******************************
2
+ Header
3
+ *******************************/
12
4
 
13
5
  /*----------------------------------------------------------------------------
14
- HEADER MAIN BAR DESKTOP
15
- ----------------------------------------------------------------------------*/
6
+ HEADER MAIN BAR
7
+ ----------------------------------------------------------------------------*/
16
8
 
17
9
  #main {
18
10
  .main.bar {
@@ -28,3 +20,105 @@
28
20
  }
29
21
  }
30
22
  }
23
+
24
+ .main-menu .item a,
25
+ .main-menu .item a:hover {
26
+ text-decoration: none;
27
+ }
28
+
29
+ .eea.header {
30
+ z-index: 4;
31
+ }
32
+
33
+ .eea.header .main.bar > .ui.container .ui.grid .column {
34
+ display: flex;
35
+ align-items: center;
36
+
37
+ > * {
38
+ flex: 1;
39
+ }
40
+ }
41
+
42
+ .eea.header .eea-logo {
43
+ margin-top: 0;
44
+ }
45
+
46
+ /************************
47
+ MEGA MENU
48
+ ************************/
49
+
50
+ /*Mega Menu Accordion - Tablet & Mobile */
51
+ #mega-menu .ui.accordion {
52
+ .content {
53
+ background: transparent;
54
+ }
55
+ }
56
+
57
+ /*----------------------------------------------------------------------------
58
+ Natura 2000 subsite
59
+ ----------------------------------------------------------------------------*/
60
+
61
+ .subsite.subsite-natura2000 {
62
+ .eea.header .main.bar {
63
+ backdrop-filter: blur(2px);
64
+ background-color: hsla(0,0%,100%,.8);;
65
+ }
66
+
67
+ .eea.header .main.bar > .ui.container {
68
+ height: 92px;
69
+ }
70
+
71
+ .eea.header .main-menu {
72
+ align-items: center;
73
+ }
74
+
75
+ @media only screen and (min-width: @mobileBreakpoint) {
76
+ .eea.header .main.bar > .ui.container {
77
+ height: 92px;
78
+ }
79
+
80
+ .eea.header .eea-logo {
81
+ max-width: fit-content;
82
+ height: 60px;
83
+ }
84
+
85
+ .burger-action.mobile,
86
+ .search-action {
87
+ width: 58px;
88
+ height: 92px;
89
+ }
90
+ }
91
+
92
+ @media only screen and (min-width: @tabletBreakpoint) {
93
+ .eea.header .main.bar > .ui.container {
94
+ height: 92px;
95
+ }
96
+
97
+ .eea.header .eea-logo {
98
+ max-width: fit-content;
99
+ height: 60px;
100
+ }
101
+
102
+ .burger-action.mobile,
103
+ .search-action {
104
+ width: 58px;
105
+ height: 92px;
106
+ }
107
+ }
108
+
109
+ @media only screen and (min-width: @computerBreakpoint) {
110
+ .eea.header .eea-logo {
111
+ max-width: fit-content;
112
+ height: 60px;
113
+ }
114
+ }
115
+ }
116
+
117
+
118
+ // #search-box {
119
+ // min-height: 100%;
120
+ // }
121
+
122
+ // .has-toolbar.homepage .eea.header {
123
+ // width: 100%;
124
+ // }
@@ -5,3 +5,15 @@
5
5
  /* Search box */
6
6
  @searchBoxBackgroundGradient : linear-gradient(45deg, @primaryColor 12%, @secondaryColor 80%);
7
7
  @megaMenuBackgroundColor : linear-gradient(45deg, @primaryColor 12%, @secondaryColor 80%);
8
+
9
+
10
+ /*-----------------
11
+ HEADER ACTIONS
12
+ ------------------*/
13
+
14
+ /* Actions (Mega menu & Search) */
15
+ @burgerActionBackgroundColor: @primaryColor;
16
+
17
+ /* Mega menu */
18
+ @mobileMegaMenuWidth: 100%;
19
+
@@ -159,7 +159,7 @@
159
159
  }
160
160
 
161
161
 
162
- @media only screen and (max-width: 1279px) and (min-width: 1072px) {
162
+ @media only screen and (min-width: 1072px) and (max-width: 1279px) {
163
163
  .title-wrapper,
164
164
  .facts-wrapper {
165
165
  width: 50%!important;
@@ -169,8 +169,8 @@
169
169
  @media only screen and (max-width: 1071px) {
170
170
  .keyfacts-block {
171
171
  .block-wrapper {
172
- display: block;
173
- max-height: unset;
172
+ display: block !important;
173
+ max-height: unset !important;
174
174
 
175
175
  .title-wrapper {
176
176
  padding: 2rem 0.5rem;
@@ -128,9 +128,9 @@ div#view .ui.container > {
128
128
  }
129
129
 
130
130
  ul.n2k-list {
131
- padding-left: 28px;
132
- margin: 0;
133
- margin-bottom: 1rem;
131
+ padding-left: 28px !important;
132
+ margin: 0 !important;
133
+ margin-bottom: 1rem !important;
134
134
 
135
135
  li {
136
136
  position: relative;
@@ -141,23 +141,24 @@ ul.n2k-list {
141
141
  }
142
142
 
143
143
  li:before {
144
- position: absolute;
145
- top: 50%;
146
- left: -28px;
147
- width: 18px;
148
- height: 18px;
149
- background: url(../assets/icons/plus.png);
150
- background-repeat: no-repeat;
151
- background-size: cover;
152
- content: '';
153
- opacity: 1;
154
- transform: translateY(-50%);
144
+ position: absolute !important;
145
+ top: 50% !important;
146
+ left: -28px !important;
147
+ width: 18px !important;
148
+ height: 18px !important;
149
+ margin: 0 !important;
150
+ background: url(../assets/icons/plus.png) !important;
151
+ background-repeat: no-repeat !important;
152
+ background-size: cover !important;
153
+ content: '' !important;
154
+ opacity: 1 !important;
155
+ transform: translateY(-50%) !important;
155
156
  }
156
157
  }
157
158
 
158
159
  .n2k-green-border {
159
160
  padding: 1rem;
160
- border: 1px solid #72a34a;
161
+ border: 1px solid @secondaryColor;
161
162
  margin-bottom: 1rem;
162
163
  border-radius: 10px;
163
164
 
@@ -169,7 +170,7 @@ ul.n2k-list {
169
170
  .n2k-circle {
170
171
  position: relative;
171
172
  margin-bottom: 1rem;
172
- background-color: #72a34a;
173
+ background-color: @secondaryColor;
173
174
  border-radius: 50%;
174
175
  color: #fff;
175
176
  text-align: center;
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,75 @@
1
+ /* Helpers classes */
2
+ .w-100 {
3
+ width: 100%;
4
+ }
5
+
6
+ .w-90 {
7
+ width: 90%;
8
+ }
9
+
10
+ .w-80 {
11
+ width: 80%;
12
+ }
13
+
14
+ .w-70 {
15
+ width: 70%;
16
+ }
17
+
18
+ .w-60 {
19
+ width: 60%;
20
+ }
21
+
22
+ .w-50 {
23
+ width: 50%;
24
+ }
25
+
26
+ .w-40 {
27
+ width: 40%;
28
+ }
29
+
30
+ .w-30 {
31
+ width: 30%;
32
+ }
33
+
34
+ .w-20 {
35
+ width: 20%;
36
+ }
37
+
38
+ .m-auto {
39
+ margin: auto;
40
+ }
41
+
42
+ .my-0 {
43
+ margin-top: 0 !important;
44
+ margin-bottom: 0 !important;
45
+ }
46
+
47
+ .my-1 {
48
+ margin-top: 1rem !important;
49
+ margin-bottom: 1rem !important;
50
+ }
51
+
52
+ .my-2 {
53
+ margin-top: 2rem !important;
54
+ margin-bottom: 2rem !important;
55
+ }
56
+
57
+ .ma-0 {
58
+ margin: 0 !important;
59
+ }
60
+
61
+ .font-weight-normal,
62
+ .font-weight-normal h1,
63
+ .font-weight-normal h2,
64
+ .font-weight-normal h3,
65
+ .font-weight-normal h4 {
66
+ font-weight: normal !important;
67
+ }
68
+
69
+ .font-weight-bold,
70
+ .font-weight-bold h1,
71
+ .font-weight-bold h2,
72
+ .font-weight-bold h3,
73
+ .font-weight-bold h4 {
74
+ font-weight: bold !important;
75
+ }
@@ -0,0 +1,53 @@
1
+ .styled.protected-habitats
2
+ > .tabs-block.default
3
+ > .styled
4
+ > .tabs.default
5
+ > .ui.menu {
6
+ border-bottom: 2px solid #dadada;
7
+ margin-bottom: 1rem;
8
+ border-radius: 0;
9
+ }
10
+
11
+ .protected-habitats {
12
+ margin-top: 0 !important;
13
+
14
+ .default.tabs {
15
+ .ui.menu {
16
+ border-bottom: none !important;
17
+ background-color: #00a390 !important;
18
+ padding-bottom: 0 !important;
19
+ margin-left: 0 !important;
20
+
21
+ &::after,
22
+ &::before {
23
+ display: none !important;
24
+ }
25
+
26
+ .item {
27
+ padding: 1rem !important;
28
+ border-radius: 0 !important;
29
+ color: #fff !important;
30
+ border-bottom: none !important;
31
+ margin-bottom: 0 !important;
32
+
33
+ p {
34
+ font-size: 16px !important;
35
+ }
36
+
37
+ &.active:hover,
38
+ &:hover {
39
+ text-decoration: none !important;
40
+ padding-bottom: calc(1rem - 3px) !important;
41
+ border-bottom: 3px solid #fff !important;
42
+ color: #fff !important;
43
+ }
44
+
45
+ &.active {
46
+ padding-bottom: calc(1rem - 3px) !important;
47
+ border-bottom: 3px solid #fff !important;
48
+ color: #fff !important;
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
@@ -7,6 +7,68 @@
7
7
  @import '../extras/pluggables.less';
8
8
  @import '../extras/stylemenu.less';
9
9
  @import '../extras/tocnav.less';
10
+ @import './helpers.less';
11
+ @import './natura2000.less';
12
+
13
+ // :root {
14
+ // .define-color(primary, #005248);
15
+ // .define-color(secondary, #00a390);
16
+ // .define-color(tertiary, #3d5265);
17
+ // .define-color(light-primary, #007b6c);
18
+ // .define-color(light-secondary, #00a390);
19
+ // .define-color(light-tertiary, #54728c);
20
+ // .define-color(dark-primary, #005248);
21
+ // .define-color(dark-secondary, #005248);
22
+ // .define-color(dark-tertiary, #2e3e4c);
23
+ // }
24
+
25
+ // body::-webkit-scrollbar {
26
+ // width: @scrollbarWidth;
27
+ // }
28
+
29
+ // body::-webkit-scrollbar-track {
30
+ // background: #F9F9F9;
31
+ // }
32
+
33
+ // body::-webkit-scrollbar-thumb {
34
+ // background-color: #B4B4B4;
35
+ // border-radius: 20px;
36
+ // border: 3px solid #FAF9F9;
37
+ // }
38
+
39
+ // body::-webkit-scrollbar-thumb:hover {
40
+ // background-color: #6A6A6A;
41
+ // }
42
+
43
+ @font-face {
44
+ font-family: 'OpenSans';
45
+ font-weight: normal;
46
+ src: url('../fonts/OpenSans-Regular.ttf') format('truetype');
47
+ }
48
+
49
+ @font-face {
50
+ font-family: 'OpenSans';
51
+ font-weight: 600;
52
+ src: url('../fonts/OpenSans-Semibold.ttf') format('truetype');
53
+ }
54
+
55
+ @font-face {
56
+ font-family: 'OpenSans';
57
+ font-weight: 800;
58
+ src: url('../fonts/OpenSans-Bold.ttf') format('truetype');
59
+ }
60
+
61
+ @font-face {
62
+ font-family: 'RajdhaniR';
63
+ font-weight: 400;
64
+ src: url('../fonts/Rajdhani-Regular.ttf') format('truetype');
65
+ }
66
+
67
+ @font-face {
68
+ font-family: 'RajdhaniB';
69
+ font-weight: 600;
70
+ src: url('../fonts/Rajdhani-Bold.ttf') format('truetype');
71
+ }
10
72
 
11
73
  a {
12
74
  color: @linkColor;
@@ -64,15 +126,153 @@ p.has--clear--both:empty {
64
126
  }
65
127
  }
66
128
 
129
+ .smart-table .search-description {
130
+ margin-bottom: 2rem;
131
+ color: #6b6b6b;
132
+ }
133
+
134
+ .subsite.subsite-natura2000.subsite-root {
135
+ footer {
136
+ display: none;
137
+ }
138
+
139
+ .ui.content-area {
140
+ padding-bottom: 0;
141
+ }
142
+ }
143
+
67
144
  .subsite.subsite-natura2000 {
68
- &.contenttype-lrf {
145
+ &.grey-bg {
146
+ .content-area {
147
+ margin-bottom: 0 !important;
148
+ padding-bottom: 0;
149
+ }
150
+
151
+ #view {
152
+ padding-bottom: 4rem !important;
153
+ background-color: #f8f8f8 !important;
154
+ }
155
+ }
156
+
157
+ .eea.banner,
158
+ .breadcrumbs,
159
+ .block-editor-title {
160
+ display: none;
161
+ }
162
+
163
+ &:not(.section-edit) {
69
164
  .ui.basic.segment.content-area {
70
165
  padding-top: 0;
71
166
  margin-top: 0;
72
167
  }
73
168
  }
74
169
 
75
- .subsite-logo {
76
- background-color: red;
170
+ .styled-with-bg {
171
+ padding: 0 !important;
172
+ }
173
+
174
+ /* TEXT */
175
+ h1,
176
+ h2,
177
+ h3,
178
+ h4,
179
+ h5,
180
+ h6,
181
+ p,
182
+ a,
183
+ span,
184
+ button {
185
+ font-family: OpenSans, 'Raleway', sans-serif;
186
+ }
187
+
188
+ h1,
189
+ h2,
190
+ h3,
191
+ h4,
192
+ h5,
193
+ h6 {
194
+ color: @primaryColor !important;
195
+ }
196
+
197
+ h2 {
198
+ font-weight: 600;
199
+ }
200
+
201
+ a {
202
+ color: @secondaryColor;
203
+ font-weight: 600;
204
+
205
+ h1,
206
+ h2,
207
+ h3,
208
+ h4,
209
+ h5,
210
+ h6 {
211
+ color: @secondaryColor !important;
212
+ }
213
+
214
+ &:hover {
215
+ color: @secondaryColor;
216
+ text-decoration: underline;
217
+
218
+ h1,
219
+ h2,
220
+ h3,
221
+ h4,
222
+ h5,
223
+ h6 {
224
+ color: @secondaryColor !important;
225
+ }
226
+ }
227
+ }
228
+
229
+ .light-links {
230
+ h1,
231
+ h2,
232
+ h3,
233
+ h4,
234
+ h5,
235
+ h6 {
236
+ color: @secondaryColor !important;
237
+ }
238
+
239
+ a {
240
+ color: @secondaryColor;
241
+
242
+ &:hover {
243
+ color: @secondaryColor;
244
+ text-decoration: underline;
245
+
246
+ h1,
247
+ h2,
248
+ h3,
249
+ h4,
250
+ h5,
251
+ h6 {
252
+ color: @secondaryColor !important;
253
+ }
254
+ }
255
+ }
256
+ }
257
+
258
+ .dark-links {
259
+ a {
260
+ color: @primaryColor;
261
+
262
+ &:hover {
263
+ color: @primaryColor;
264
+ text-decoration: underline;
265
+ }
266
+ }
267
+ }
268
+
269
+ .ui.overlay.sidebar {
270
+ z-index: 800;
271
+ }
272
+ }
273
+
274
+ .subsite.subsite-natura2000:not(.subsite-root) {
275
+ .ui.content-area {
276
+ margin-bottom: 2rem;
77
277
  }
78
- }
278
+ }
@@ -4,6 +4,9 @@
4
4
 
5
5
  @import '@eeacms/volto-bise-policy/../theme/tokens/tokens';
6
6
 
7
+ @fontName: 'OpenSans';
8
+ @fontSize: 16px;
9
+
7
10
  /*-------------------
8
11
  Brand Colors
9
12
  --------------------*/
@@ -20,3 +23,5 @@
20
23
  @linkColor: @secondaryColor;
21
24
  @linkHoverColor: @primaryColor;
22
25
  @linkActiveColor: @linkHoverColor;
26
+
27
+ @scrollbarWidth: 15px;
@@ -0,0 +1,3 @@
1
+ .ui.accordion:not([class*='ary']) .active.title i {
2
+ color: @iconColorActive;
3
+ }
@@ -0,0 +1,7 @@
1
+ /*******************************
2
+ Accordion
3
+ *******************************/
4
+
5
+ /* Icon */
6
+ @iconColor: #fff;
7
+ @iconColorActive: #fff;