@eeacms/volto-eea-design-system 1.11.0 → 1.12.1

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,46 @@ 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.12.1](https://github.com/eea/volto-eea-design-system/compare/1.12.0...1.12.1) - 24 May 2023
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix(header): Increase z-index on top bar #350 from eea/fix-header [ichim-david - [`59bc935`](https://github.com/eea/volto-eea-design-system/commit/59bc935470da8e97f80c22f05f40231df242555f)]
12
+ - fix(header): Increase z-index on top bar [kreafox - [`ccaa08d`](https://github.com/eea/volto-eea-design-system/commit/ccaa08d61b2681368f94ebf6304fa70073eac0db)]
13
+ - fix(subsite): Fix z-index to make it clickable - refs #253352 [alin - [`e0203fd`](https://github.com/eea/volto-eea-design-system/commit/e0203fd8e7c0887cddfcf5d140ca1c3cdaa54e4d)]
14
+ - fix: Stop image disappear over and over - ref253080 [dobri1408 - [`a8208e7`](https://github.com/eea/volto-eea-design-system/commit/a8208e7dd656d54cb975f8e7a9887775cfa4bd94)]
15
+
16
+ #### :house: Internal changes
17
+
18
+ - style: remove unnecessary z-index on content-area [Miu Razvan - [`f5e574f`](https://github.com/eea/volto-eea-design-system/commit/f5e574f5a15ac0844e7b5ce184003e0e89e7d76b)]
19
+
20
+ ### [1.12.0](https://github.com/eea/volto-eea-design-system/compare/1.11.0...1.12.0) - 19 May 2023
21
+
22
+ #### :boom: Breaking Change
23
+
24
+ - breaking(menu): removed css hiding of home link [David Ichim - [`81bdcc6`](https://github.com/eea/volto-eea-design-system/commit/81bdcc6857b724927c92d4b9de463629a3f9fdd6)]
25
+
26
+ #### :bug: Bug Fixes
27
+
28
+ - fix(container): width of position ov view-wrapper container [David Ichim - [`c3230cb`](https://github.com/eea/volto-eea-design-system/commit/c3230cb3a946801dd6a00e2ea4d7215445ac8a81)]
29
+
30
+ #### :nail_care: Enhancements
31
+
32
+ - change(mega-menu): removed need for hardcoded sub-section of countries mega menu [David Ichim - [`d8dab69`](https://github.com/eea/volto-eea-design-system/commit/d8dab69a03595784e208cddc076788bc3399bc85)]
33
+
34
+ #### :hammer_and_wrench: Others
35
+
36
+ - Release #347 from eea/develop [ichim-david - [`3eaa504`](https://github.com/eea/volto-eea-design-system/commit/3eaa50494ba5480c460c7d83141eff954579e962)]
37
+ - bump package version as we have some breaking changes [David Ichim - [`064e170`](https://github.com/eea/volto-eea-design-system/commit/064e170ee40a8e58533a2e6db0ed6b58c38ad7bb)]
38
+ - printing at topics [Dobricean Ioan Dorian - [`6c9e4a0`](https://github.com/eea/volto-eea-design-system/commit/6c9e4a072785e74022e7557132ae067e00066ef0)]
39
+ - printing at topics [Dobricean Ioan Dorian - [`341866a`](https://github.com/eea/volto-eea-design-system/commit/341866ab4ade6ba29c160e857003ca4dbda7106b)]
40
+ - printing at topics [Dobricean Ioan Dorian - [`b9d6853`](https://github.com/eea/volto-eea-design-system/commit/b9d6853ee717cc208419593590539697ced3b709)]
41
+ - Use variables instead of hardcoded dimensions [dana-cfc4 - [`064b2a4`](https://github.com/eea/volto-eea-design-system/commit/064b2a4e004e8f71aaae2ac710159f004e928777)]
42
+ - (fix): Remove copyright of hero block and extra spaces on print [dana-cfc4 - [`afbf212`](https://github.com/eea/volto-eea-design-system/commit/afbf2122ec1133979df22864ce243d50afb647b6)]
43
+ - (fix): Remove header and hero block extra space [dana-cfc4 - [`03d08fb`](https://github.com/eea/volto-eea-design-system/commit/03d08fbe5f99ef082a87a22697cafe593f7ea5e3)]
44
+ - moved customcss [Dobricean Ioan Dorian - [`8af6b0f`](https://github.com/eea/volto-eea-design-system/commit/8af6b0f620a5b9c71ed2b20c485e650c0553e56c)]
45
+ - break hero block [Dobricean Ioan Dorian - [`cfa7d0d`](https://github.com/eea/volto-eea-design-system/commit/cfa7d0d0c8e7db505d6ca2a1cadb9ac9b9f99a64)]
46
+ - hero print [Dobricean Ioan Dorian - [`a988c8c`](https://github.com/eea/volto-eea-design-system/commit/a988c8c745569e58e031c0f6cf680e58dccc2c6d)]
7
47
  ### [1.11.0](https://github.com/eea/volto-eea-design-system/compare/1.0.7...1.11.0) - 11 May 2023
8
48
 
9
49
  #### :boom: Breaking Change
@@ -49,6 +89,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
49
89
 
50
90
  #### :hammer_and_wrench: Others
51
91
 
92
+ - Release 1.11.0 #344 from eea/develop [ichim-david - [`02ccaa1`](https://github.com/eea/volto-eea-design-system/commit/02ccaa149d26b387e197eabec841691abd752fc2)]
52
93
  - Release 1.11.0 [alin - [`acc76ea`](https://github.com/eea/volto-eea-design-system/commit/acc76ea7b81e31a8d83179cb0af48482a8f84709)]
53
94
  - bump package version [David Ichim - [`3dfa3f0`](https://github.com/eea/volto-eea-design-system/commit/3dfa3f088a4c012ac1bb36f3ef08fac9079f3f81)]
54
95
  - added possibility to configure button url [Zoltan Szabo - [`91cd277`](https://github.com/eea/volto-eea-design-system/commit/91cd27764f646429f168c09361b370632e900c80)]
@@ -285,6 +326,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
285
326
 
286
327
  - Release 1.0.0-beta.5 [Alin Voinea - [`e4417e1`](https://github.com/eea/volto-eea-design-system/commit/e4417e121477511c350ae3fbe4e70aadb445ed86)]
287
328
  - better useOnScreen hook [Andrei Grigore - [`c214b6b`](https://github.com/eea/volto-eea-design-system/commit/c214b6b76443f81c795ce2f3aa457562ec088b30)]
329
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`b227cf8`](https://github.com/eea/volto-eea-design-system/commit/b227cf8a8c44b9d91e9fda8a7999fb0a42bacdca)]
288
330
  - feature(mobile): increased performance by lazy loading footer images #303 from eea/increase_performance [ichim-david - [`80d1df1`](https://github.com/eea/volto-eea-design-system/commit/80d1df1c459680331d486f9e8e6a95c9db0adbf6)]
289
331
  - prettier [David Ichim - [`a7f8384`](https://github.com/eea/volto-eea-design-system/commit/a7f838470c1bcc4e2be115d514d92a1b686a5e9b)]
290
332
  - fixed less build failure due to changes in footer.less [David Ichim - [`190bc8c`](https://github.com/eea/volto-eea-design-system/commit/190bc8cfa88191b45808f1e27c6e2737ee3d15b1)]
@@ -355,6 +397,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
355
397
 
356
398
  #### :house: Internal changes
357
399
 
400
+ - chore(docusaurus): ignore website/.yarn [Giorgos Stamatis - [`0b33ffd`](https://github.com/eea/volto-eea-design-system/commit/0b33ffd1dda61b126e3cc5ff48888124d6aee41b)]
358
401
  - style(header): react syntax fix [Antonis Tarantilis - [`3add127`](https://github.com/eea/volto-eea-design-system/commit/3add1271c785a92bea0ef925d7bc562cef1e0d92)]
359
402
 
360
403
  #### :house: Documentation changes
@@ -551,6 +594,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
551
594
 
552
595
  - Release 1.0.0-alpha.10 [Alin Voinea - [`7014d08`](https://github.com/eea/volto-eea-design-system/commit/7014d080ce114bd0bc039abeecbd7229333b0971)]
553
596
  - Add variable definitions [kreafox - [`293fe65`](https://github.com/eea/volto-eea-design-system/commit/293fe65e2f24e6290e1286229169a77f9be4750e)]
597
+ - Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`ef58a6f`](https://github.com/eea/volto-eea-design-system/commit/ef58a6f5ad8deea26b1395a86778fe1159b7617b)]
554
598
  - Back to dev [Alin Voinea - [`31d4616`](https://github.com/eea/volto-eea-design-system/commit/31d461662b9184a7bbe190e86f3c47fab39229fe)]
555
599
  ### [1.0.0-alpha.9](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.8...1.0.0-alpha.9) - 28 December 2022
556
600
 
@@ -608,6 +652,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
608
652
  - bump package version [David Ichim - [`b4628be`](https://github.com/eea/volto-eea-design-system/commit/b4628bed134abc76e38a243d4e98143e19cef989)]
609
653
  - feature(docusaurus, storybook): logos selection for sites plus inverted options #253 from eea/doc-logo-page [ichim-david - [`dbfc90d`](https://github.com/eea/volto-eea-design-system/commit/dbfc90d035dc40e9d4054347f00fde4de486d63d)]
610
654
  - (feat): Add ability to disable the language select from website top menu - refs #158616 [dobri1408 - [`411c8e4`](https://github.com/eea/volto-eea-design-system/commit/411c8e4afaf0b2b9edfdeeecdca22aa4cc41f329)]
655
+ - Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`c4769e9`](https://github.com/eea/volto-eea-design-system/commit/c4769e987d525f5dcafac8e6cf8a89fd8111667d)]
611
656
  - test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`92feea0`](https://github.com/eea/volto-eea-design-system/commit/92feea09796c9ef0530f65fa1d34139905133215)]
612
657
  - Proof reading page header section [ichim-david - [`230239e`](https://github.com/eea/volto-eea-design-system/commit/230239e1b22734fb8606656985bc5e513731e244)]
613
658
  ### [1.0.0-alpha.7](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.6...1.0.0-alpha.7) - 16 December 2022
@@ -639,6 +684,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
639
684
  #### :hammer_and_wrench: Others
640
685
 
641
686
  - Release 1.0.0-alpha.7 [Alin Voinea - [`7e66bcc`](https://github.com/eea/volto-eea-design-system/commit/7e66bcc296b389bc55073e7f99681534977dce3a)]
687
+ - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`ce47e9b`](https://github.com/eea/volto-eea-design-system/commit/ce47e9b163bcb4eda988e3a87718b54ffbd3f99f)]
642
688
  - added back descriptionDistance variable until package release [David Ichim - [`3af811a`](https://github.com/eea/volto-eea-design-system/commit/3af811a8d86a132e16de118697ba5a4302a8a4da)]
643
689
  - Back to dev [Alin Voinea - [`cb531c9`](https://github.com/eea/volto-eea-design-system/commit/cb531c933c907bdbb88c9de0f1df2eb7ce899a4c)]
644
690
  - Proper paths if the package is not installed, but in development [Tiberiu Ichim - [`7a2655f`](https://github.com/eea/volto-eea-design-system/commit/7a2655f7cf9d3c687f172eefcf2b4cff4b12f832)]
@@ -726,6 +772,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
726
772
  #### :hammer_and_wrench: Others
727
773
 
728
774
  - feature(Docusaurus): Updates on color palette information including thematic websites #231 from eea/refactor-docusaurus [ichim-david - [`ec7843d`](https://github.com/eea/volto-eea-design-system/commit/ec7843dea07f626dc1c71ae1baa8bb5b0caa52f3)]
775
+ - Upgrade Jenkinsfile storybook to yarn 3 [Alin Voinea - [`d20de8d`](https://github.com/eea/volto-eea-design-system/commit/d20de8d6e21a14660b7b5125a80218a8a6f19e62)]
729
776
  - Back to dev [Alin Voinea - [`563fbc5`](https://github.com/eea/volto-eea-design-system/commit/563fbc5fac0d4b0295690d0a3a4e04271753f18a)]
730
777
  - perf(docusaurus): added remixicon and roboto locally [Giorgos Stamatis - [`b67b1a7`](https://github.com/eea/volto-eea-design-system/commit/b67b1a72bc9cdc7c62a25967e81b430f8b62d558)]
731
778
  ### [1.0.0-alpha.4](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.3...1.0.0-alpha.4) - 22 November 2022
@@ -818,6 +865,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
818
865
  - modified left value of full width classes with toolbars [David Ichim - [`70d82d4`](https://github.com/eea/volto-eea-design-system/commit/70d82d47fbc2c00a3a709de0d5c087c8443a1eae)]
819
866
  - WIP settings column grid width when using full size class [David Ichim - [`affc7ac`](https://github.com/eea/volto-eea-design-system/commit/affc7ac99527aa92d5a192d90dc8c9ec46a66404)]
820
867
  - fix eslint [Miu Razvan - [`30c52e4`](https://github.com/eea/volto-eea-design-system/commit/30c52e4eb443555ca44c1b35df064e73d52c0a8b)]
868
+ - Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`76a41c7`](https://github.com/eea/volto-eea-design-system/commit/76a41c786995fd54afe4d1c345de939f683ffa70)]
821
869
  - fix broken variable call for contentBox.variables introduced in previous commit by mistake [David Ichim - [`d249c11`](https://github.com/eea/volto-eea-design-system/commit/d249c1160d19bedb174a2fde3fdab48d9ce297d4)]
822
870
  - clean up [Miu Razvan - [`89f3cb3`](https://github.com/eea/volto-eea-design-system/commit/89f3cb33d70a14806a953f0acd1807e94169ee5c)]
823
871
  - Feature(container): flexible container size #260 from eea/feature-flexible-container [ichim-david - [`8f84c5b`](https://github.com/eea/volto-eea-design-system/commit/8f84c5b67afe9cbe01b2a44a8f92a9a554e1036a)]
@@ -919,6 +967,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
919
967
 
920
968
  #### :nail_care: Enhancements
921
969
 
970
+ - change(jenkins): added yarn policy for storybook building [ichim-david - [`3d1b844`](https://github.com/eea/volto-eea-design-system/commit/3d1b844efeea40b99c00c9aa97089e0a0be58a57)]
922
971
  - change(docusaurus): typography updates [ichim-david - [`60a93a4`](https://github.com/eea/volto-eea-design-system/commit/60a93a4aece4e478ae13c2dfe697fd3703aa178a)]
923
972
  - change(accordion): allow customization of accordion title with css variables [David Ichim - [`15e7d27`](https://github.com/eea/volto-eea-design-system/commit/15e7d27f02c640df582f51a51ef36e645723f842)]
924
973
  - change(content-box): added css variables that will set text color and background for children [David Ichim - [`86cac53`](https://github.com/eea/volto-eea-design-system/commit/86cac531cc94386b6022e1be80dba826b39f2443)]
@@ -953,6 +1002,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
953
1002
  #### :hammer_and_wrench: Others
954
1003
 
955
1004
  - Merge pull request #243 from eea/develop [ichim-david - [`576564c`](https://github.com/eea/volto-eea-design-system/commit/576564ce395ee6ac9e74bcb19d5c4f0b4cd3c33b)]
1005
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`4a5be6e`](https://github.com/eea/volto-eea-design-system/commit/4a5be6eec78dae230626e61ea2c77e7f3c62510d)]
956
1006
  - Back to dev [Alin Voinea - [`b251255`](https://github.com/eea/volto-eea-design-system/commit/b251255a7ed14d8290717726d86eaf54b87aa2d4)]
957
1007
  ### [0.9.0](https://github.com/eea/volto-eea-design-system/compare/0.8.1...0.9.0) - 19 September 2022
958
1008
 
@@ -1708,6 +1758,10 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1708
1758
  #### :hammer_and_wrench: Others
1709
1759
 
1710
1760
  - prettier changes [David Ichim - [`134da52`](https://github.com/eea/volto-eea-design-system/commit/134da52549b9d5eac5a12b7ad3005073500ac2c4)]
1761
+ - [JENKINSFILE] remove debug, add error per stage [valentinab25 - [`903eecd`](https://github.com/eea/volto-eea-design-system/commit/903eecdb6bcbb8d73cff5e447d80c85e2a2c906d)]
1762
+ - [JENKINSFILE] mention comment author in comment [valentinab25 - [`39a26aa`](https://github.com/eea/volto-eea-design-system/commit/39a26aa1ff0f35e93e8df9f442c29c5ab79ff493)]
1763
+ - [JENKINSFILE] format PR comments [valentinab25 - [`739438c`](https://github.com/eea/volto-eea-design-system/commit/739438c64950c745d630d1998314a2bed595b23a)]
1764
+ - [JENKINSFILE] Add failure comment, no jenkins fail [valentinab25 - [`c325bf1`](https://github.com/eea/volto-eea-design-system/commit/c325bf14f3fb0da150f2a56cda0a9f03d8d8a628)]
1711
1765
  ### [0.2.3](https://github.com/eea/volto-eea-design-system/compare/0.2.2...0.2.3) - 29 April 2022
1712
1766
 
1713
1767
  #### :rocket: New Features
@@ -2132,6 +2186,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2132
2186
  - set profile section overflow to auto [nileshgulia1 - [`71ab47f`](https://github.com/eea/volto-eea-design-system/commit/71ab47f89a433233c14b394c3824e607dd18a393)]
2133
2187
  - remove segment custom width [nileshgulia1 - [`1d3ea40`](https://github.com/eea/volto-eea-design-system/commit/1d3ea40f98bbdc1eab95b4da739a659b5e29ec16)]
2134
2188
  - fix profile section css overflow [nileshgulia1 - [`db5126f`](https://github.com/eea/volto-eea-design-system/commit/db5126fc902e191d1e18fb7e4c54877c8d8786e6)]
2189
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`647a6e3`](https://github.com/eea/volto-eea-design-system/commit/647a6e3e2093f2c4884c356eb148453551c8f33f)]
2135
2190
  - fix warning related to proptype [nileshgulia1 - [`946c6c6`](https://github.com/eea/volto-eea-design-system/commit/946c6c6bc9dece0985ae4b9f9cad6ece2be0ff2c)]
2136
2191
  - removed override already present in card.less [ichim-david - [`50d2ab2`](https://github.com/eea/volto-eea-design-system/commit/50d2ab26f85c8f409da02ec128cc1df34848ca69)]
2137
2192
  - update [Miu Razvan - [`bbcab87`](https://github.com/eea/volto-eea-design-system/commit/bbcab87ef4c8475f347f0daf4ab7e428e69c2316)]
@@ -2218,6 +2273,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2218
2273
  - remove segment custom width [nileshgulia1 - [`4a60d84`](https://github.com/eea/volto-eea-design-system/commit/4a60d84d5fe76578b7760aa1dad6eef9a20916a7)]
2219
2274
  - Reformat header.less [Tiberiu Ichim - [`1f99dfc`](https://github.com/eea/volto-eea-design-system/commit/1f99dfc82c165304ca5600ce5138c1233615ab69)]
2220
2275
  - fix profile section css overflow [nileshgulia1 - [`8fd2654`](https://github.com/eea/volto-eea-design-system/commit/8fd265413149f1b5e033dffa0fbcb5ef5ecad15f)]
2276
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6051724`](https://github.com/eea/volto-eea-design-system/commit/6051724437a38675e659c797bb5586ef81286ec0)]
2221
2277
  - fix warning related to proptype [nileshgulia1 - [`824b9be`](https://github.com/eea/volto-eea-design-system/commit/824b9beff77aae139882cd50a1d670a02ec6f723)]
2222
2278
  - refactor breadcrumbs component, make it functional and customizable [nileshgulia1 - [`4ec374e`](https://github.com/eea/volto-eea-design-system/commit/4ec374e20565eb0a5aed0ff67a02cd6f77eba1f0)]
2223
2279
  - removed override already present in card.less [ichim-david - [`93c4e5a`](https://github.com/eea/volto-eea-design-system/commit/93c4e5aac9cc85ff2cc6c04180f6655d5f5616dc)]
@@ -2786,6 +2842,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2786
2842
  - Refs #142010 - Optimize Volto-addons gitflow pipelines [valentinab25 - [`3af46d2`](https://github.com/eea/volto-eea-design-system/commit/3af46d2b14fa0b1ef44736f25b0f9ac93b23d18d)]
2787
2843
  - Refs #140454 updated eea-design-system readme with extra info on package contents [David Ichim - [`d2efc3d`](https://github.com/eea/volto-eea-design-system/commit/d2efc3ddae7b91efc82cf3bce8fb8e42d696a780)]
2788
2844
  - Refs #140454 add h1 to the list of elements that are max 800px and centered [David Ichim - [`7d3c30f`](https://github.com/eea/volto-eea-design-system/commit/7d3c30f409aa4cb43810839f8960589456cc1b2e)]
2845
+ - Add Sonarqube tag using ims-frontend addons list [EEA Jenkins - [`8d657d0`](https://github.com/eea/volto-eea-design-system/commit/8d657d056cde5163cfe90ac66bc973f55d82e5e9)]
2789
2846
  ### [0.1.0](https://github.com/eea/volto-eea-design-system/compare/0.0.1...0.1.0) - 17 November 2021
2790
2847
 
2791
2848
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "1.11.0",
3
+ "version": "1.12.1",
4
4
  "description": "@eeacms/volto-eea-design-system: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -1,3 +1,3 @@
1
1
  export useClickOutside from './useClickOutside';
2
2
  export usePrevious from './usePrevious';
3
- export useOnScreen from './useOnScreen';
3
+ export useFirstVisited from './useFirstVisited';
@@ -1,13 +1,14 @@
1
1
  /* eslint-disable react-hooks/exhaustive-deps */
2
2
  import React from 'react';
3
3
 
4
- function useOnScreen(ref, rootMargin = '0px') {
5
- const [isIntersecting, setIntersecting] = React.useState(false);
4
+ function useFirstVisited(ref, rootMargin = '0px') {
5
+ const [intersected, setIntersected] = React.useState(false);
6
6
 
7
7
  React.useEffect(() => {
8
+ if (intersected) return;
8
9
  const observer = new IntersectionObserver(
9
10
  ([entry]) => {
10
- setIntersecting(entry.isIntersecting);
11
+ setIntersected(intersected === false ? entry.isIntersecting : true);
11
12
  },
12
13
  {
13
14
  rootMargin,
@@ -24,8 +25,8 @@ function useOnScreen(ref, rootMargin = '0px') {
24
25
  }
25
26
  observer.disconnect();
26
27
  };
27
- }, [ref, rootMargin]);
28
- return isIntersecting;
28
+ }, [ref, rootMargin, intersected]);
29
+ return intersected;
29
30
  }
30
31
 
31
- export default useOnScreen;
32
+ export default useFirstVisited;
@@ -12,7 +12,7 @@ import FooterHeader from '@eeacms/volto-eea-design-system/ui/Footer/FooterHeader
12
12
  import SubFooter from '@eeacms/volto-eea-design-system/ui/Footer/SubFooter';
13
13
  import Social from '@eeacms/volto-eea-design-system/ui/Footer/Social';
14
14
  import Contact from '@eeacms/volto-eea-design-system/ui/Footer/Contact';
15
- import useOnScreen from '../../helpers/useOnScreen';
15
+ import { useFirstVisited } from '@eeacms/volto-eea-design-system/helpers';
16
16
  import Description from '@eeacms/volto-eea-design-system/ui/Footer/Description';
17
17
 
18
18
  /**
@@ -26,7 +26,7 @@ const Footer = (props) => {
26
26
  const { children } = props;
27
27
 
28
28
  const bgImgRef = React.useRef();
29
- const onScreen = useOnScreen(bgImgRef);
29
+ const onScreen = useFirstVisited(bgImgRef);
30
30
  return (
31
31
  <footer id={'footer'}>
32
32
  <div
@@ -88,7 +88,7 @@ const Countries = ({ menuItem, renderMenuItem }) => (
88
88
  <Grid.Column width={8}>
89
89
  {menuItem.items.map((section, index) => (
90
90
  <React.Fragment key={index}>
91
- {section.title === 'EEA member countries' && (
91
+ {index === 0 && (
92
92
  <ItemGrid
93
93
  sectionTitle={section.title}
94
94
  item={section}
@@ -103,7 +103,7 @@ const Countries = ({ menuItem, renderMenuItem }) => (
103
103
  <Grid columns={1} className="nested-grid">
104
104
  {menuItem.items.map((section, index) => (
105
105
  <React.Fragment key={index}>
106
- {section.title !== 'EEA member countries' && (
106
+ {index !== 0 && (
107
107
  <Grid.Column>
108
108
  <ItemGrid
109
109
  sectionTitle={section.title}
@@ -100,106 +100,3 @@
100
100
  flex: 1 0 auto;
101
101
  align-items: center;
102
102
  }
103
-
104
- //@media only screen and (max-width: @mobileWidth) {
105
- // .ui.segment.header-wrapper {
106
- // position: sticky !important;
107
- // z-index: 3;
108
- // background: @white;
109
- // }
110
- //
111
- // .ui.segment {
112
- // position: initial !important;
113
- // }
114
- //
115
- // .header .logo-nav-wrapper {
116
- // margin: 10px 0 10px;
117
- // }
118
- //}
119
- //
120
- //.ui.segment.header-wrapper {
121
- // padding: 0;
122
- //}
123
- //
124
- //.ui.segment .header {
125
- // padding: 0 15px;
126
- //}
127
- //
128
- //.header .logo-nav-wrapper {
129
- // align-items: center;
130
- //
131
- // .navigation {
132
- // display: flex;
133
- // width: 100%;
134
- // align-items: center;
135
- // justify-content: center;
136
- // }
137
- //}
138
- //
139
- //.header .logo-nav-wrapper .ui.pointing.secondary {
140
- // display: flex;
141
- // width: 100%;
142
- // max-width: 100%;
143
- // justify-content: unset;
144
- // margin: 0 !important;
145
- //
146
- // .navigation-links {
147
- // display: inline-flex;
148
- // width: 100%;
149
- // justify-content: center;
150
- // }
151
- //
152
- // .tools-wrapper {
153
- // display: flex;
154
- // flex: 1 0 auto;
155
- // align-items: center;
156
- // }
157
- //
158
- // .tools-search-wrapper {
159
- // margin-left: 0;
160
- // }
161
- //
162
- // .search form {
163
- // padding-top: 0 !important;
164
- // }
165
- //}
166
- //
167
- //@media only screen and (max-width: 766px) {
168
- // // #141204 take into account that for the header wrapper on mobile views
169
- // // we have the volto toolbar on top
170
- // .has-toolbar-collapsed .header-wrapper {
171
- // top: 20px;
172
- // }
173
- //
174
- // .has-toolbar .header-wrapper {
175
- // top: 100px;
176
- // }
177
- //}
178
- //
179
- //@media only screen and (min-width: 768px) and (max-width: @mobileWidth) {
180
- // // #141204 use fixed position instead of sticky in order to always
181
- // // have the header on top from 768px to 1279px
182
- // .ui.segment.header-wrapper {
183
- // position: fixed !important;
184
- // top: 0;
185
- // }
186
- //
187
- // .header-wrapper {
188
- // width: 100%; // when position fixed div behaves as inline
189
- // }
190
- //
191
- // .has-toolbar .header-wrapper {
192
- // width: calc(100% - 80px); // toolbar width
193
- // }
194
- //
195
- // .has-toolbar-collapsed .header-wrapper {
196
- // width: calc(100% - 20px);
197
- // }
198
- //}
199
- //
200
- //.ui.right.sidebar.metadata-sidebar.menu,
201
- //.ui.left.sidebar.metadata-sidebar.menu {
202
- // .ui.header {
203
- // padding: 0;
204
- // }
205
- //}
@@ -8,6 +8,13 @@
8
8
  padding-left: 0;
9
9
  }
10
10
 
11
+ @media print {
12
+ .ui.basic.segment.content-area {
13
+ margin-top: 0;
14
+ padding-top: 0;
15
+ }
16
+ }
17
+
11
18
  .ui.primary.segment {
12
19
  border-bottom: @4px solid @greyBorderColor;
13
20
  font-size: @16px;
@@ -228,4 +228,16 @@
228
228
  }
229
229
  }
230
230
 
231
+ @media print {
232
+ .eea.banner .gradient .content,
233
+ .eea.banner .image .gradient .content {
234
+ padding-top: @printContentPadding;
235
+ }
236
+
237
+ .eea.banner .gradient .content > div > div {
238
+ padding-top: 0;
239
+ padding-bottom: 0;
240
+ }
241
+ }
242
+
231
243
  .loadUIOverrides();
@@ -17,11 +17,13 @@
17
17
  @mobileContentPadding : 1rem 0 1.25rem;
18
18
  @tabletContentPadding : 3rem 0 1.25rem;
19
19
  @computerContentPadding : 5rem 0 1.25rem;
20
+ @printContentPadding : 15px;
20
21
 
21
22
  @mobileContentPaddingWithImage : 6.25rem 0 1.25rem;
22
23
  @tabletContentPaddingWithImage : 12.5rem 0 1.25rem;
23
24
  @computerContentPaddingWithImage : 15.625rem 0 1.25rem;
24
25
 
26
+
25
27
  /* Title */
26
28
  @titleFontWeight : @bold;
27
29
  @titleMaxWidth : 100%;
@@ -109,13 +109,6 @@
109
109
  }
110
110
  }
111
111
 
112
-
113
- // ensure background of content-box goes above the content area
114
- // draft image for non published pages
115
- .view-viewview:not(.wf-state-published) .content-area {
116
- z-index: 0;
117
- }
118
-
119
112
  // remove margin from block headings overriding blocks.less rule
120
113
  .block h1:last-child, .block h2:last-child, .block h3:last-child, .block h4:last-child, .block h5:last-child {
121
114
  margin: 0;
@@ -216,6 +216,9 @@ footer .footer-wrapper .menu {
216
216
  padding: @computerWrapperPadding;
217
217
  background-size: @computerWrapperBackgroundSize;
218
218
  }
219
+ .footer-wrapper-nobg {
220
+ padding: @computerWrapperPadding;
221
+ }
219
222
  }
220
223
 
221
224
  footer .theme-sites {
@@ -234,7 +237,6 @@ footer .footer-wrapper .menu {
234
237
  .header {
235
238
  margin-bottom: @computerItemHeaderMarginBottom;
236
239
  }
237
-
238
240
  }
239
241
 
240
242
  .contact-block .subcontact a {
@@ -281,10 +281,6 @@
281
281
  }
282
282
  }
283
283
 
284
- #main .main-menu .item:first-child {
285
- display: none; // hide home nav item
286
- }
287
-
288
284
  .main-menu.inverted {
289
285
  .item a {
290
286
  color: @mainMenuItemInvertedColor;
@@ -322,7 +318,8 @@
322
318
  }
323
319
 
324
320
  .eea.header .subsite-logo {
325
- position: relative;
321
+ position: @subsitePosition;
322
+ z-index: @subsiteZIndex;
326
323
  color: @subsiteColor;
327
324
  font-family: @subsiteFontFamily;
328
325
  font-size: @mobileSubsiteFontSize;
@@ -874,11 +871,6 @@
874
871
  }
875
872
  }
876
873
 
877
- // hide home link and accordion content from mobile menu
878
- #main #mega-menu .mobile > .ui.accordion > .title:first-child {
879
- display: none;
880
- }
881
-
882
874
  // hide content of accordion titles that are not active
883
875
  #main #mega-menu .ui.accordion .title:first-child + .content:not(.active) {
884
876
  display: none;
@@ -33,7 +33,7 @@
33
33
  @topSectionItemFontSize : @font-size-00;
34
34
  @mobileTopSectionItemFontSize : @font-size-00;
35
35
  @tabletTopSectionItemFontSize : @font-size-00;
36
- @topSectionZIndex : @z-index-1;
36
+ @topSectionZIndex : @z-index-3;
37
37
  @dropdownColor : @blue-grey-6;
38
38
  @mobileDropdownFontSize : @font-size-00;
39
39
  @tabletDropdownFontSize : @font-size-00;
@@ -130,6 +130,8 @@
130
130
 
131
131
 
132
132
  /* Subsite */
133
+ @subsitePosition : relative;
134
+ @subsiteZIndex : 1;
133
135
  @subsiteFontFamily : @headerFont;
134
136
  @subsiteFontWeight : @headerFontWeight;
135
137
  @subsiteColor : @linkColor;
@@ -100,4 +100,37 @@
100
100
  }
101
101
  }
102
102
 
103
+ @media print {
104
+ .eea.hero-block.full-height,
105
+ .eea.hero-block.full-height .hero-block-image-wrapper,
106
+ .eea.hero-block.full-height .hero-block-inner-wrapper {
107
+ min-height: unset;
108
+ }
109
+
110
+ .hero-block-inner-wrapper {
111
+ padding-top: @heroBlockPrintPadding;
112
+ padding-bottom: @heroBlockPrintPadding;
113
+ }
114
+
115
+ .hero-block-image-wrapper {
116
+ left: 0 !important;
117
+ right: 0 !important;
118
+ padding-left: 0 !important;
119
+ margin-left: 0 !important;
120
+ margin-right: 0 !important;
121
+ padding-right: 0% !important;
122
+ width: 100% !important;
123
+ break-inside: avoid-page;
124
+ }
125
+
126
+ .hero-block {
127
+ break-inside: avoid-page;
128
+ }
129
+
130
+ .hero-block-body .eea.copyright {
131
+ display: none;
132
+ visibility: hidden;
133
+ }
134
+ }
135
+
103
136
  .loadUIOverrides();
@@ -26,6 +26,7 @@
26
26
  @heroBlockWrapperPadding : 5rem;
27
27
  @tableHeroBlockWrapperPadding: 6rem;
28
28
  @desktopHeroBlockWrapperPadding: 194px 96px;
29
+ @heroBlockPrintPadding: 20px;
29
30
 
30
31
  /* Body */
31
32
  @mobileHeroBlockBodyGap : @rem-space-6;
@@ -29,7 +29,9 @@ h2, h3, h4, h5, h6 {
29
29
  color: @contentAreaColor;
30
30
  }
31
31
 
32
- [id="page-document"] > * {
32
+ [id="page-document"] > *,
33
+ .view-wrapper > *
34
+ {
33
35
  margin-left: auto !important;
34
36
  margin-right: auto !important;
35
37
  }
@@ -37,7 +39,8 @@ h2, h3, h4, h5, h6 {
37
39
  [class~="view-defaultview"] [id="page-document"] > *,
38
40
  [class~="view-viewview"] [id="page-document"] > *,
39
41
  #main .container_width,
40
- #main .has--size--container_width
42
+ #main .has--size--container_width,
43
+ .view-wrapper > *
41
44
  {
42
45
  max-width: @containerWidth !important;
43
46
  }
@@ -150,3 +153,38 @@ a {
150
153
  }
151
154
  }
152
155
  }
156
+
157
+ @media print {
158
+ .skiplinks-wrapper,
159
+ .top.bar,
160
+ .main.bar.transparency,
161
+ .main-menu,
162
+ .eea .header .action,
163
+ .slider-arrow,
164
+ #footer,
165
+ #page-header .action,
166
+ #inpage-navigation {
167
+ display: none;
168
+ visibility: hidden;
169
+ }
170
+ .logo {
171
+ margin-left: 0;
172
+ }
173
+ .static-banner {
174
+ display: none;
175
+ visibility: hidden;
176
+ }
177
+ .image {
178
+ page-break-inside: avoid;
179
+ }
180
+ img {
181
+ page-break-inside: avoid;
182
+ }
183
+ .card {
184
+ page-break-inside: avoid;
185
+
186
+ }
187
+ .grid-block-teaser .card{
188
+ page-break-inside: auto;
189
+ }
190
+ }