@eeacms/volto-bise-policy 1.0.9 → 1.0.11

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,14 @@ 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
+ ### [1.0.11](https://github.com/eea/volto-bise-policy/compare/1.0.10...1.0.11) - 7 June 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - update [Miu Razvan - [`a1147bf`](https://github.com/eea/volto-bise-policy/commit/a1147bf20d506549246b5ff30d6149a200010139)]
12
+ - update style [Miu Razvan - [`015591e`](https://github.com/eea/volto-bise-policy/commit/015591eabd1672f13a3d047b9a4789a570a02de5)]
13
+ ### [1.0.10](https://github.com/eea/volto-bise-policy/compare/1.0.9...1.0.10) - 7 June 2023
14
+
7
15
  ### [1.0.9](https://github.com/eea/volto-bise-policy/compare/1.0.8...1.0.9) - 6 June 2023
8
16
 
9
17
  #### :nail_care: Enhancements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-bise-policy",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "@eeacms/volto-bise-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
package/src/index.js CHANGED
@@ -14,6 +14,15 @@ const restrictedBlocks = [
14
14
  'embed_eea_map_block',
15
15
  ];
16
16
 
17
+ const customBlocks = [
18
+ 'html',
19
+ 'countryFlag',
20
+ 'tableau_block',
21
+ 'body_classname',
22
+ 'redirect',
23
+ 'navigationBlock',
24
+ ];
25
+
17
26
  const applyConfig = (config) => {
18
27
  // Volto specific settings
19
28
  config.settings = {
@@ -120,6 +129,11 @@ const applyConfig = (config) => {
120
129
  config.blocks.blocksConfig.hero_image_left.schemaEnhancer = addStylingFieldsetSchemaEnhancer;
121
130
  }
122
131
 
132
+ config = [installBlocks, installStyles].reduce(
133
+ (acc, apply) => apply(acc),
134
+ config,
135
+ );
136
+
123
137
  // Disable some blocks
124
138
  restrictedBlocks.forEach((block) => {
125
139
  if (config.blocks.blocksConfig[block]) {
@@ -127,10 +141,18 @@ const applyConfig = (config) => {
127
141
  }
128
142
  });
129
143
 
130
- return [installBlocks, installStyles].reduce(
131
- (acc, apply) => apply(acc),
132
- config,
133
- );
144
+ // Set custom blocks
145
+ config.blocks.groupBlocksOrder = [
146
+ ...config.blocks.groupBlocksOrder,
147
+ { id: 'custom_blocks', title: 'Custom blocks' },
148
+ ];
149
+ customBlocks.forEach((block) => {
150
+ if (config.blocks.blocksConfig[block]) {
151
+ config.blocks.blocksConfig[block].group = 'custom_blocks';
152
+ }
153
+ });
154
+
155
+ return config;
134
156
  };
135
157
 
136
158
  export default applyConfig;
@@ -87,14 +87,14 @@ export default (config) => {
87
87
  config.settings.pluggableStyles = [
88
88
  ...(config.settings.pluggableStyles || []),
89
89
  {
90
- id: 'content-box-tertiary',
91
- title: 'Tertiary',
90
+ id: 'content-box-light-green',
91
+ title: 'Light green',
92
92
  previewComponent: () => (
93
- <Icon name={contentBoxSVG} size="88px" className="tertiary" />
93
+ <Icon name={contentBoxSVG} size="88px" className="light-green" />
94
94
  ),
95
95
  viewComponent: (props) => {
96
96
  return (
97
- <div className="content-box tertiary">
97
+ <div className="content-box light-green">
98
98
  <div className="content-box-inner">{props.children}</div>
99
99
  </div>
100
100
  );
@@ -75,7 +75,8 @@
75
75
 
76
76
  .eea.header .eea-logo {
77
77
  max-width: fit-content;
78
- height: 60px;
78
+ max-height: 60px;
79
+ height: auto;
79
80
  }
80
81
 
81
82
  .burger-action.mobile,
@@ -92,7 +93,8 @@
92
93
 
93
94
  .eea.header .eea-logo {
94
95
  max-width: fit-content;
95
- height: 60px;
96
+ max-height: 60px;
97
+ height: auto;
96
98
  }
97
99
 
98
100
  .burger-action.mobile,
@@ -105,7 +107,8 @@
105
107
  @media only screen and (min-width: @computerBreakpoint) {
106
108
  .eea.header .eea-logo {
107
109
  max-width: fit-content;
108
- height: 60px;
110
+ max-height: 60px;
111
+ height: auto;
109
112
  }
110
113
  }
111
114
  }
@@ -109,9 +109,20 @@ p.has--clear--both:empty {
109
109
  }
110
110
  }
111
111
 
112
- .smart-table .search-description {
113
- margin-bottom: 2rem;
114
- color: #6b6b6b;
112
+ .smart-table {
113
+ .search-description {
114
+ margin-bottom: 2rem;
115
+ color: #6b6b6b;
116
+ }
117
+
118
+ .ui.search {
119
+ .ui.input {
120
+ max-width: unset;
121
+ > input {
122
+ border-radius: 12px;
123
+ }
124
+ }
125
+ }
115
126
  }
116
127
 
117
128
  .subsite.subsite-natura2000.subsite-root {
@@ -272,4 +283,26 @@ p.has--clear--both:empty {
272
283
 
273
284
  .simple-data-table {
274
285
  padding: 0;
275
- }
286
+ }
287
+
288
+ .content-box {
289
+ &.light-green {
290
+ background-color: @green-1;
291
+ color: @tertiaryColor;
292
+ }
293
+ }
294
+
295
+ .style-select-widget {
296
+ svg.light-green {
297
+ background-color:@green-1;
298
+ fill: @tertiaryColor !important;
299
+ }
300
+ }
301
+
302
+ #sidebar > .sidebar-container > .tabs-wrapper > .ui.menu {
303
+ flex-wrap: nowrap;
304
+ }
305
+
306
+ .ui.button.full-size-sidenav-btn {
307
+ padding: 6px !important;
308
+ }
@@ -16,6 +16,6 @@
16
16
  }
17
17
  }
18
18
 
19
- // #toolbar {
20
- // z-index: @zIndex + 1;
21
- // }
19
+ #toolbar {
20
+ z-index: @zIndex + 1;
21
+ }
@@ -1,9 +1,9 @@
1
1
  @green-0: #C8FFF8;
2
- @green-1: #85FFF1;
3
- @green-2: #00F5D8;
4
- @green-3: #00CCB4;
5
- @green-4: #00A390; // @secondaryColor
6
- @green-5: #007B6C;
2
+ @green-1: #A0E5DC;
3
+ @green-2: #78CAC0;
4
+ @green-3: #50B0A4;
5
+ @green-4: #289588; // @secondaryColor
6
+ @green-5: #007B6C;
7
7
  @green-6: #005248; // @primaryColor
8
8
 
9
9
  @yellow-0: #FEF6CD;