@eeacms/volto-cca-policy 0.1.10 → 0.1.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,12 @@ 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.1.11](https://github.com/eea/volto-cca-policy/compare/0.1.10...0.1.11) - 21 March 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Be more specific with the full-width layout [kreafox - [`8905a26`](https://github.com/eea/volto-cca-policy/commit/8905a264a33afb0ba2211c82f3f9badae2542684)]
12
+ - Improve full-width layout [kreafox - [`25bc6de`](https://github.com/eea/volto-cca-policy/commit/25bc6de1a00e5b85977f117d4b37ee503227ff52)]
7
13
  ### [0.1.10](https://github.com/eea/volto-cca-policy/compare/0.1.9...0.1.10) - 20 March 2023
8
14
 
9
15
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
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",
@@ -13,21 +13,6 @@ p.has--clear--both:empty {
13
13
  margin-bottom: 0;
14
14
  }
15
15
 
16
- [class~='view-defaultview'] [id='page-document'] > .full,
17
- [class~='view-viewview'] [id='page-document'] > .full {
18
- max-width: initial !important;
19
- }
20
-
21
- .full {
22
- position: relative !important;
23
- right: 50%;
24
- left: 50%;
25
- width: 100vw !important;
26
- max-width: initial !important;
27
- margin-right: -50vw !important;
28
- margin-left: -50vw !important;
29
- }
30
-
31
16
  // Adaptation option view styles
32
17
  div.adaptation-option-view,
33
18
  div.case-study-view {
@@ -182,3 +167,79 @@ body.subsite-mkh {
182
167
  left: 280px !important;
183
168
  }
184
169
  }
170
+
171
+ body.view-viewview .full {
172
+ position: relative !important;
173
+ right: 50%;
174
+ left: 50%;
175
+ width: 100vw !important;
176
+ max-width: initial !important;
177
+ margin-right: -50vw !important;
178
+ margin-left: -50vw !important;
179
+
180
+ > div {
181
+ display: block;
182
+ width: 100% !important;
183
+ margin-right: auto !important;
184
+ margin-left: auto !important;
185
+ }
186
+ }
187
+
188
+ body.view-viewview.has-toolbar:not(.has-sidebar):not(.has-sidebar-collapsed) {
189
+ .full > div {
190
+ width: calc(100% - @toolbarWidth) !important;
191
+ }
192
+ }
193
+
194
+ @media screen and (min-width: @largestMobileScreen) {
195
+ body.view-viewview.has-toolbar.has-sidebar {
196
+ .full > div {
197
+ width: calc(100% - (@toolbarWidth + @sidebarWidth)) !important;
198
+ }
199
+ }
200
+
201
+ body.view-viewview.has-toolbar.has-sidebar-collapsed {
202
+ .full > div {
203
+ width: calc(100% - (@toolbarWidth + @collapsedToolbarWidth)) !important;
204
+ }
205
+ }
206
+
207
+ body.view-viewview.has-toolbar-collapsed:not(.has-sidebar):not(.has-sidebar-collapsed) {
208
+ .full > div {
209
+ width: calc(100% - @collapsedToolbarWidth) !important;
210
+ }
211
+ }
212
+
213
+ body.view-viewview.has-toolbar-collapsed.has-sidebar {
214
+ .full > div {
215
+ .full-width-block {
216
+ width: calc(100% - (@collapsedToolbarWidth + @sidebarWidth)) !important;
217
+ }
218
+ }
219
+ }
220
+
221
+ body.view-viewview.has-toolbar-collapsed.has-sidebar-collapsed {
222
+ .full > div {
223
+ width: calc(
224
+ 100% - (@collapsedToolbarWidth + @collapsedToolbarWidth)
225
+ ) !important;
226
+ }
227
+ }
228
+ }
229
+
230
+ @media only screen and (max-width: 767px) {
231
+ body.view-viewview.has-toolbar-collapsed.has-sidebar-collapsed
232
+ .full.full-width-block,
233
+ body.view-viewview.has-toolbar.has-sidebar-collapsed .full.full-width-block {
234
+ width: 100% !important;
235
+ }
236
+ }
237
+
238
+ @media screen and (max-width: @largestMobileScreen) {
239
+ body.view-viewview.has-toolbar:not(.has-sidebar):not(.has-sidebar-collapsed),
240
+ body.view-viewview.has-toolbar-collapsed:not(.has-sidebar):not(.has-sidebar-collapsed) {
241
+ .full > div {
242
+ width: 100% !important;
243
+ }
244
+ }
245
+ }
@@ -14,3 +14,10 @@
14
14
  // @linkColor: @secondaryColor;
15
15
  // @linkHoverColor: @primaryColor;
16
16
  // @linkActiveColor: @linkHoverColor;
17
+
18
+ // Toolbar
19
+ @toolbarWidth : 80px;
20
+ @collapsedToolbarWidth : 20px;
21
+ @mobileToolbarHeight : 100px;
22
+ @mobileCollapsedToolbarHeight : 20px;
23
+ @sidebarWidth : 375px;