design-comuni-plone-theme 11.3.1 → 11.3.3

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 (29) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/CHANGELOG.md +38 -0
  3. package/RELEASE.md +24 -0
  4. package/package.json +1 -1
  5. package/publiccode.yml +2 -2
  6. package/razzle.extend.js +1 -0
  7. package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/BottomBody.jsx +3 -3
  8. package/src/components/ItaliaTheme/Blocks/Listing/CardWithImageTemplate.jsx +4 -2
  9. package/src/components/ItaliaTheme/Blocks/Listing/GridGalleryTemplate.jsx +16 -17
  10. package/src/components/ItaliaTheme/Footer/FooterNavigation.jsx +30 -38
  11. package/src/components/ItaliaTheme/Icons/DesignIcon.jsx +4 -2
  12. package/src/components/ItaliaTheme/View/Commons/Attachments.jsx +2 -1
  13. package/src/components/ItaliaTheme/View/Commons/OfficeCard.jsx +1 -1
  14. package/src/components/ItaliaTheme/View/Commons/VenuesSmall.jsx +1 -1
  15. package/src/components/ItaliaTheme/View/IncaricoView/IncaricoView.jsx +10 -6
  16. package/src/components/ItaliaTheme/View/ServizioView/ServizioAccedi.jsx +9 -8
  17. package/src/config/italiaConfig.js +8 -5
  18. package/src/customizations/volto/components/theme/Navigation/Navigation.jsx +7 -1
  19. package/src/theme/ItaliaTheme/Blocks/_bandiInEvidenceTemplate.scss +9 -7
  20. package/src/theme/ItaliaTheme/Blocks/_iconBlocks.scss +1 -1
  21. package/src/theme/ItaliaTheme/Components/_cardLocationItem.scss +5 -0
  22. package/src/theme/ItaliaTheme/Components/_officeCard.scss +5 -0
  23. package/src/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_cta.scss +8 -1
  24. package/src/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_highlitedContent.scss +9 -4
  25. package/src/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_searchSections.scss +7 -2
  26. package/src/theme/ItaliaTheme/Subsites/ItaliaTheme/_common.scss +5 -10
  27. package/src/theme/ItaliaTheme/Subsites/_mixin.scss +5 -3
  28. package/src/theme/ItaliaTheme/Views/_cartellaModulistica.scss +12 -1
  29. package/src/theme/site.scss +2 -0
Binary file
package/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
 
2
2
 
3
+ ## [11.3.3](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.3.2...v11.3.3) (2024-01-30)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * alignment of CardPersona images and better layout for tablets, 2 cards max per row at this screen size ([#501](https://github.com/redturtle/design-comuni-plone-theme/issues/501)) ([8a8fe7a](https://github.com/redturtle/design-comuni-plone-theme/commit/8a8fe7af3f4c93036579ff200a69b65dfe19b478))
9
+ * color contrast in icons block ([#498](https://github.com/redturtle/design-comuni-plone-theme/issues/498)) ([2099b12](https://github.com/redturtle/design-comuni-plone-theme/commit/2099b12b535610eee1b5be0382e7e6d58582a91b))
10
+ * ct Cartella Modulistica layout fixes, handle long text and fix mobile layout ([#497](https://github.com/redturtle/design-comuni-plone-theme/issues/497)) ([40ca2c9](https://github.com/redturtle/design-comuni-plone-theme/commit/40ca2c98645f28bafaf65b67929fbf8d67c649d5))
11
+ * gallery grid block scale for index 3 ([#492](https://github.com/redturtle/design-comuni-plone-theme/issues/492)) ([2800f1d](https://github.com/redturtle/design-comuni-plone-theme/commit/2800f1d50f3f158af19b817d6403cee88bba173b))
12
+ * layout and link color for BandiInEvidence ([e064d22](https://github.com/redturtle/design-comuni-plone-theme/commit/e064d22ea57561dcaa92f4a58bd249ad1337ceec))
13
+ * layout for LocationItem and VenuesSmall fixed for tablet ([#505](https://github.com/redturtle/design-comuni-plone-theme/issues/505)) ([656238a](https://github.com/redturtle/design-comuni-plone-theme/commit/656238a82ec88ea9cab6dfc92171fd9b92690655))
14
+ * layout of OfficeCard component in tablet resolutions, fix wrapper of Office cards in all views that can have multiple OfficeCards ([#506](https://github.com/redturtle/design-comuni-plone-theme/issues/506)) ([aa7a1e9](https://github.com/redturtle/design-comuni-plone-theme/commit/aa7a1e9baa71fe1d63b4b28ab734cf0c7d89202a))
15
+ * removed unnecessary link color variable ([a60599a](https://github.com/redturtle/design-comuni-plone-theme/commit/a60599a873992e0a7254e261540fd63cc83ce042))
16
+ * removed width style from card-body, added align-items style to overwrite listing-item style ([aad1c80](https://github.com/redturtle/design-comuni-plone-theme/commit/aad1c800705e0e3d3bc1ad3abdc0a369bba42b3b))
17
+ * styles for highlitedContent block for subsites ([#503](https://github.com/redturtle/design-comuni-plone-theme/issues/503)) ([d51135e](https://github.com/redturtle/design-comuni-plone-theme/commit/d51135e356a7a1203e706f48781fb3ff11392ee9))
18
+ * **subsites:** changed select pill text color when theme is light ([#494](https://github.com/redturtle/design-comuni-plone-theme/issues/494)) ([2421e20](https://github.com/redturtle/design-comuni-plone-theme/commit/2421e202274b0376b1e12ca16f586502a3d2830a))
19
+ * the default maximum b_size allowed in redturtle.volto is 500, this fix remove annoying log warning ([#499](https://github.com/redturtle/design-comuni-plone-theme/issues/499)) ([970e4f4](https://github.com/redturtle/design-comuni-plone-theme/commit/970e4f401f16c4b1fda7cbe2b0ed9a158445ffa9))
20
+ * visualizzazione altri argomenti in blocco argomenti quando il loro numero è esiguo ([#493](https://github.com/redturtle/design-comuni-plone-theme/issues/493)) ([9644292](https://github.com/redturtle/design-comuni-plone-theme/commit/96442927aa9ac3cc85fcf90c8aa64e204231f61b))
21
+
22
+
23
+ ### Maintenance
24
+
25
+ * preparing release v11.3.3 ([4ccd4e2](https://github.com/redturtle/design-comuni-plone-theme/commit/4ccd4e26bd61f84df4d90059862f510b40d44913))
26
+
27
+ ## [11.3.2](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.3.1...v11.3.2) (2024-01-19)
28
+
29
+
30
+ ### Bug Fixes
31
+
32
+ * bug when importing svg icons without viewBox ([#489](https://github.com/redturtle/design-comuni-plone-theme/issues/489)) ([8b2cd7d](https://github.com/redturtle/design-comuni-plone-theme/commit/8b2cd7da5e22ffe1ac279f226a872586ac43bc74))
33
+ * close button of menu in mobile showing when menu is closed ([#491](https://github.com/redturtle/design-comuni-plone-theme/issues/491)) ([e398437](https://github.com/redturtle/design-comuni-plone-theme/commit/e3984374d1f6e096dc089f1fb11263d4b372211b))
34
+ * footer second level navigation disappearing ([#490](https://github.com/redturtle/design-comuni-plone-theme/issues/490)) ([39a54be](https://github.com/redturtle/design-comuni-plone-theme/commit/39a54beeae2571d0f9187582a4ab1e4307a9fb0c))
35
+
36
+
37
+ ### Documentation
38
+
39
+ * updated publiccode and release log ([b9893ff](https://github.com/redturtle/design-comuni-plone-theme/commit/b9893ff17fc2bc4a0088594e00184dff7ad579b2))
40
+
3
41
  ## [11.3.1](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.3.0...v11.3.1) (2024-01-17)
4
42
 
5
43
 
package/RELEASE.md CHANGED
@@ -41,6 +41,30 @@
41
41
  - ...
42
42
  -->
43
43
 
44
+ ## Versione 11.3.3 (30/01/2024)
45
+
46
+ ### Fix
47
+
48
+ - Sistemato il layout del blocco elenco per i Bandi
49
+ - Sistemato il layout del template Galliery a griglia per il blocco elenco, le immagini più piccole ora sono correttamente contenute dentro il loro riquadro e il titolo non fuoriesce più
50
+ - Sistemati problemi negli stili per i sottositi
51
+ - Risolto un problema di visualizzazione degli argomenti indicati come altri argomenti nel blocco Argomenti quando il loro numero è esiguo
52
+ - Sistemato il layout e la visualizzazione della vista del CT Cartella Modulistica per gestire al meglio gli elementi
53
+ titolo, titolo del modulo e link al download in caso di testi lunghi, specialmente su mobile
54
+ - Colore di sfondo per il blocco icone impostato sul colore primario. Sistemato il contrasto tra descrizione e lo sfondo
55
+ - Sistemata la visualizzazione delle card Uffici (card Unità Organizzativa) nelle risoluzioni tablet più comuni
56
+ - Layout delle card per i luoghi migliorato per dispositivi tablet
57
+ - Risolto un problema di visualizzazione e allineamento delle immagini per le card dei blocchi elenco che rappresentano Persone,
58
+ migliorata la visualizzazione e il layout su dispositivi tablet (intervallo dimensioni: 992px-1199px)
59
+
60
+ ## Versione 11.3.2 (19/01/2024)
61
+
62
+ ### Fix
63
+
64
+ - Risolto un problema di visualizzazione di alcune icone social.
65
+ - Risolto un problema con il menù di navigazione del footer, in cui a volte scomparivano le voci di secondo livello.
66
+ - Risolto problema di sovrapposizione del bottone "Chiudi" del menu laterale su mobile quando il menu è chiuso.
67
+
44
68
  ## Versione 11.3.0 (16/01/2024)
45
69
 
46
70
  ### Novità
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "design-comuni-plone-theme",
3
3
  "description": "Volto Theme for Italia design guidelines",
4
4
  "license": "GPL-v3",
5
- "version": "11.3.1",
5
+ "version": "11.3.3",
6
6
  "main": "src/index.js",
7
7
  "keywords": [
8
8
  "volto-addon",
package/publiccode.yml CHANGED
@@ -227,9 +227,9 @@ maintenance:
227
227
  name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
228
228
  platforms:
229
229
  - web
230
- releaseDate: '2024-01-17'
230
+ releaseDate: '2024-01-30'
231
231
  softwareType: standalone/web
232
- softwareVersion: 11.3.1
232
+ softwareVersion: 11.3.3
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
package/razzle.extend.js CHANGED
@@ -63,6 +63,7 @@ const modify = (webpackConfig, { target, dev }, webpackObject) => {
63
63
  params: { removeUselessStrokeAndFill: true },
64
64
  },
65
65
  { name: 'removeViewBox', params: { removeViewBox: false } },
66
+ 'removeDimensions',
66
67
  ],
67
68
  },
68
69
  },
@@ -17,13 +17,13 @@ const messages = defineMessages({
17
17
  const BottomBody = ({ data, intl }) => {
18
18
  return data?.arguments?.length > 0 ? (
19
19
  <Container className="text-center">
20
- <div className="row d-lg-inline-flex pt-5">
21
- <div className="col-lg-3">
20
+ <div className="row d-lg-inline-flex align-items-center pt-5">
21
+ <div className="col-lg-auto">
22
22
  <h6 className="text-uppercase text-center mt-1">
23
23
  {intl?.formatMessage(messages.otherArguments)}
24
24
  </h6>
25
25
  </div>
26
- <div className="col-lg-9 text-start">
26
+ <div className="col-lg-auto">
27
27
  {data?.arguments?.map((argument, index) => (
28
28
  <Chip
29
29
  color="primary"
@@ -104,17 +104,19 @@ const CardWithImageTemplate = (props) => {
104
104
  name: 'BlockExtraTags',
105
105
  dependencies: ['CardWithImageTemplate', item['@type']],
106
106
  }).component;
107
+ const layoutSelected = set_four_columns ? '3' : '4';
107
108
 
108
109
  return (
109
110
  <Col
110
- lg={set_four_columns ? '3' : '4'}
111
+ xl={layoutSelected}
112
+ lg={item['@type'] === 'Persona' ? 6 : layoutSelected}
111
113
  key={item['@id']}
112
114
  className="col-item mb-3"
113
115
  >
114
116
  {item['@type'] === 'Persona' ? (
115
117
  <CardPersona
116
118
  item={item}
117
- className="listing-item card-bg shadow-sm"
119
+ className="card-bg shadow-sm"
118
120
  showImage={showImage}
119
121
  natural_image_size={natural_image_size}
120
122
  show_description={show_description}
@@ -35,7 +35,6 @@ const GridGalleryTemplate = ({
35
35
  linkmore_id_lighthouse,
36
36
  }) => {
37
37
  const intl = useIntl();
38
-
39
38
  return (
40
39
  <div className="grid-gallery-template">
41
40
  <Container className="px-4">
@@ -60,9 +59,8 @@ const GridGalleryTemplate = ({
60
59
  item,
61
60
  className: '',
62
61
  });
63
-
64
62
  let scale = null;
65
- if (index % 7 === 0 || index % 7 === 6) {
63
+ if (index % 7 === 0 || index % 7 === 6 || index % 7 === 3) {
66
64
  scale = 'great';
67
65
  }
68
66
  if (index % 7 === 1 || index % 7 === 5) {
@@ -71,21 +69,18 @@ const GridGalleryTemplate = ({
71
69
  if (index % 7 === 2 || index % 7 === 4) {
72
70
  scale = 'large';
73
71
  }
74
-
75
72
  if (scale && item?.image?.scales?.[scale]) {
76
73
  image = (
77
- <picture className="volto-image responsive">
78
- <img
79
- src={flattenToAppURL(item.image.scales[scale].download)}
80
- width={item.image.scales[scale].width}
81
- height={item.image.scales[scale].height}
82
- alt=""
83
- role="presentation"
84
- aria-hidden="true"
85
- title={item.title}
86
- loading={critical ? 'eager' : 'lazy'}
87
- />
88
- </picture>
74
+ <img
75
+ src={flattenToAppURL(item.image.scales[scale].download)}
76
+ width={item.image.scales[scale].width}
77
+ height={item.image.scales[scale].height}
78
+ alt=""
79
+ role="presentation"
80
+ aria-hidden="true"
81
+ title={item.title}
82
+ loading={critical ? 'eager' : 'lazy'}
83
+ />
89
84
  );
90
85
  }
91
86
 
@@ -98,7 +93,11 @@ const GridGalleryTemplate = ({
98
93
  item={!isEditMode ? item : null}
99
94
  href={isEditMode ? '#' : null}
100
95
  >
101
- {image && image}
96
+ {image && (
97
+ <picture className="volto-image responsive">
98
+ {image}
99
+ </picture>
100
+ )}
102
101
  <h3>{item.title}</h3>
103
102
  </UniversalLink>
104
103
  </div>
@@ -3,14 +3,11 @@
3
3
  * @module components/ItaliaTheme/Footer/FooterNavigation
4
4
  */
5
5
 
6
- import React, { useEffect } from 'react';
7
6
  import { Link } from 'react-router-dom';
8
- import { useDispatch, useSelector } from 'react-redux';
7
+ import { useSelector } from 'react-redux';
9
8
 
10
9
  import { defineMessages, useIntl } from 'react-intl';
11
10
  import { isEqual } from 'lodash';
12
- import { getBaseUrl } from '@plone/volto/helpers';
13
- import { getNavigation } from '@plone/volto/actions';
14
11
  import { UniversalLink } from '@plone/volto/components';
15
12
  import { Row, Col, LinkList, LinkListItem } from 'design-react-kit';
16
13
  import { SectionIcon } from 'design-comuni-plone-theme/components/ItaliaTheme';
@@ -25,23 +22,15 @@ const messages = defineMessages({
25
22
 
26
23
  const FooterNavigation = () => {
27
24
  const intl = useIntl();
28
- const currentLang = useSelector((state) => state.intl.locale);
29
- const dispatch = useDispatch();
30
25
  const items = useSelector((state) => state.navigation.items, isEqual);
31
26
 
32
- let path = '';
33
- if (config.settings.isMultilingual) {
34
- path = '/' + currentLang;
35
- }
36
-
37
- useEffect(() => {
38
- dispatch(
39
- getNavigation(
40
- getBaseUrl(path),
41
- config.settings.siteProperties.footerNavigationDepth,
42
- ),
27
+ // DEPRECATED: isFooterCollapsed to be removed in version 12
28
+ if (config.settings.isFooterCollapsed) {
29
+ // eslint-disable-next-line no-console
30
+ console.warn(
31
+ 'DEPRECATED: config.settings.isFooterCollapsed will be removed in version 12. Use config.settings.siteProperties.footerNavigationDepth instead.',
43
32
  );
44
- }, [path, dispatch]);
33
+ }
45
34
 
46
35
  return (
47
36
  <>
@@ -70,26 +59,29 @@ const FooterNavigation = () => {
70
59
  {item.title}
71
60
  </Link>
72
61
  </h4>
73
- {!config.settings.isFooterCollapsed && item.items && (
74
- <LinkList className="footer-list clearfix" tag="div">
75
- {item.items.map((subitem) => {
76
- return (
77
- <LinkListItem
78
- key={subitem.url}
79
- href={subitem.url}
80
- tag={UniversalLink}
81
- title={
82
- intl.formatMessage(messages.goToPage) +
83
- ': ' +
84
- subitem.title
85
- }
86
- >
87
- {subitem.title}
88
- </LinkListItem>
89
- );
90
- })}
91
- </LinkList>
92
- )}
62
+ {/* DEPRECATED: isFooterCollapsed to be removed in version 12 */}
63
+ {!config.settings.isFooterCollapsed &&
64
+ config.settings.siteProperties.footerNavigationDepth > 1 &&
65
+ item.items && (
66
+ <LinkList className="footer-list clearfix" tag="div">
67
+ {item.items.map((subitem) => {
68
+ return (
69
+ <LinkListItem
70
+ key={subitem.url}
71
+ href={subitem.url}
72
+ tag={UniversalLink}
73
+ title={
74
+ intl.formatMessage(messages.goToPage) +
75
+ ': ' +
76
+ subitem.title
77
+ }
78
+ >
79
+ {subitem.title}
80
+ </LinkListItem>
81
+ );
82
+ })}
83
+ </LinkList>
84
+ )}
93
85
  </Col>
94
86
  ))}
95
87
  </Row>
@@ -41,8 +41,10 @@ const Icon = ({ icon, title, className, size }) => {
41
41
  const { current: name } = ImportedIconRef;
42
42
  return (
43
43
  <svg
44
- xmlns={name.attributes && name.attributes.xmlns}
45
- viewBox={name.attributes && name.attributes.viewBox}
44
+ xmlns={name.attributes?.xmlns}
45
+ viewBox={name.attributes?.viewBox}
46
+ width={name.attributes?.width}
47
+ height={name.attributes?.height}
46
48
  style={{ height: size, width: 'auto' }}
47
49
  className={className}
48
50
  aria-hidden="true"
@@ -54,7 +54,8 @@ const Attachments = ({
54
54
  sort_on: 'getObjPositionInParent',
55
55
  metadata_fields: '_all',
56
56
  fullobjects: 1,
57
- b_size: 900,
57
+ // the default maximum b_size allowed in redturtle.volto is 500
58
+ b_size: 499,
58
59
  },
59
60
  key,
60
61
  ),
@@ -29,7 +29,7 @@ const OfficeCard = ({
29
29
  return (
30
30
  <div
31
31
  className={cx(
32
- 'card card-teaser preview-image-card border-left-card rounded shadow p-3 ',
32
+ 'card card-teaser office-card preview-image-card border-left-card rounded shadow p-3 ',
33
33
  size === 'big' ? 'card-big-io-comune' : 'card-small',
34
34
  {
35
35
  'mb-3': margin_bottom,
@@ -29,7 +29,7 @@ const Location = ({ location, show_icon }) => {
29
29
  const image = Image({ item: location, loading: 'lazy', sizes: '80px' });
30
30
  return (
31
31
  location && (
32
- <div className="card card-teaser shadow border-left-card mt-3 rounded">
32
+ <div className="card card-teaser shadow border-left-card mt-3 rounded location-item">
33
33
  {show_icon && <Icon icon={'it-pin'} />}
34
34
  <div className="card-body">
35
35
  <div className="card-title h5">{location.title}</div>
@@ -127,9 +127,11 @@ const IncaricoView = (props) => {
127
127
  tag_id="ufficio"
128
128
  title={intl.formatMessage(messages.ufficio)}
129
129
  >
130
- {content.unita_organizzativa?.map((item) => (
131
- <OfficeCard key={flattenToAppURL(item['@id'])} office={item} />
132
- ))}
130
+ <div className="card-wrapper card-teaser-wrapper card-teaser-wrapper-equal">
131
+ {content.unita_organizzativa?.map((item) => (
132
+ <OfficeCard key={flattenToAppURL(item['@id'])} office={item} />
133
+ ))}
134
+ </div>
133
135
  </RichTextSection>
134
136
  )}
135
137
  {content.responsabile_struttura?.length > 0 && (
@@ -137,9 +139,11 @@ const IncaricoView = (props) => {
137
139
  tag_id="responsabile"
138
140
  title={intl.formatMessage(messages.responsabile)}
139
141
  >
140
- {content.responsabile_struttura?.map((item) => (
141
- <OfficeCard key={flattenToAppURL(item['@id'])} office={item} />
142
- ))}
142
+ <div className="card-wrapper card-teaser-wrapper card-teaser-wrapper-equal">
143
+ {content.responsabile_struttura?.map((item) => (
144
+ <OfficeCard key={flattenToAppURL(item['@id'])} office={item} />
145
+ ))}
146
+ </div>
143
147
  </RichTextSection>
144
148
  )}
145
149
  {content.atto_nomina?.length > 0 && (
@@ -56,14 +56,15 @@ const ServizioAccedi = ({ content }) => {
56
56
  title={intl.formatMessage(messages.dove_rivolgersi)}
57
57
  lighthouseId="service-generic-access"
58
58
  >
59
- {content.dove_rivolgersi?.map?.((dove) => (
60
- <div
61
- key={dove['@id']}
62
- className="card-wrapper card-teaser-wrapper card-teaser-wrapper-equal"
63
- >
64
- <OfficeCard office={dove} data-element="service-generic-access" />
65
- </div>
66
- ))}
59
+ <div className="card-wrapper card-teaser-wrapper card-teaser-wrapper-equal">
60
+ {content.dove_rivolgersi?.map?.((dove) => (
61
+ <OfficeCard
62
+ office={dove}
63
+ data-element="service-generic-access"
64
+ key={dove['@id']}
65
+ />
66
+ ))}
67
+ </div>
67
68
  <RichText
68
69
  data={content.dove_rivolgersi_extra}
69
70
  lighthouseId="service-generic-access"
@@ -65,8 +65,8 @@ import { schemaListing } from 'design-comuni-plone-theme/components/ItaliaTheme/
65
65
 
66
66
  import reducers from 'design-comuni-plone-theme/reducers';
67
67
 
68
- const ReleaseLog = loadable(() =>
69
- import('design-comuni-plone-theme/components/ReleaseLog/ReleaseLog'),
68
+ const ReleaseLog = loadable(
69
+ () => import('design-comuni-plone-theme/components/ReleaseLog/ReleaseLog'),
70
70
  );
71
71
 
72
72
  const messages = defineMessages({
@@ -104,6 +104,7 @@ export default function applyConfig(voltoConfig) {
104
104
  // },
105
105
  }),
106
106
  isMultilingual: false,
107
+ // DEPRECATED: isFooterCollapsed to be removed in version 12. Use siteProperties.footerNavigationDepth instead.
107
108
  isFooterCollapsed: false, // false(default) -> vedere il footer automatico esploso | true -> implodere il footer menu automatico
108
109
  supportedLanguages: ['it'],
109
110
  defaultLanguage: 'it',
@@ -112,6 +113,7 @@ export default function applyConfig(voltoConfig) {
112
113
  showSelfRegistration: false,
113
114
  useEmailAsLogin: false,
114
115
  defaultPageSize: 24,
116
+ navDepth: 2,
115
117
  cookieExpires: 15552000, //6 month
116
118
  serverConfig: {
117
119
  ...config.settings.serverConfig,
@@ -486,9 +488,10 @@ export default function applyConfig(voltoConfig) {
486
488
  },
487
489
  };
488
490
  // Remove Horizontal Menu variation of TOC Block
489
- config.blocks.blocksConfig.toc.variations = config.blocks.blocksConfig.toc.variations.filter(
490
- (v) => v.id !== 'horizontalMenu',
491
- );
491
+ config.blocks.blocksConfig.toc.variations =
492
+ config.blocks.blocksConfig.toc.variations.filter(
493
+ (v) => v.id !== 'horizontalMenu',
494
+ );
492
495
 
493
496
  // COMPONENTS
494
497
  config.components = {
@@ -87,6 +87,12 @@ const Navigation = ({ pathname }) => {
87
87
  document.body.removeEventListener('click', blocksClickListener);
88
88
  }, []);
89
89
 
90
+ const closeButtonStyle = collapseOpen
91
+ ? {
92
+ display: 'block',
93
+ }
94
+ : { display: 'none' };
95
+
90
96
  return (
91
97
  <Header theme="" type="navbar">
92
98
  {menu?.length > 0 ? (
@@ -148,7 +154,7 @@ const Navigation = ({ pathname }) => {
148
154
  {/* Headerslim Menu - parent site (if subsite) */}
149
155
  {subsite && <ParentSiteMenu />}
150
156
  </div>
151
- <div className="close-div">
157
+ <div className="close-div" style={closeButtonStyle}>
152
158
  <button
153
159
  className="btn close-menu"
154
160
  type="button"
@@ -19,12 +19,15 @@
19
19
  grid-row: 1;
20
20
  }
21
21
 
22
- .card-body {
23
- display: flex;
24
- flex-direction: column;
25
- justify-content: space-between;
26
- padding: 2.5rem;
27
- padding-bottom: 0rem;
22
+ .listing-item {
23
+ align-items: normal;
24
+ .card-body {
25
+ display: flex;
26
+ flex-direction: column;
27
+ justify-content: space-between;
28
+ padding: 2.5rem;
29
+ padding-bottom: 0rem;
30
+ }
28
31
  }
29
32
  }
30
33
 
@@ -122,7 +125,6 @@
122
125
  @media (max-width: #{map-get($grid-breakpoints, sm)}) {
123
126
  display: flex;
124
127
  align-items: center;
125
- color: $analogue-1-a7;
126
128
  font-size: 0.77778rem;
127
129
  font-weight: bold;
128
130
  letter-spacing: 0.9px;
@@ -34,7 +34,7 @@
34
34
  position: absolute;
35
35
  width: 100%;
36
36
  height: 100%;
37
- background-color: rgba($primary, 0.85);
37
+ background-color: $primary;
38
38
  content: '';
39
39
  }
40
40
  }
@@ -0,0 +1,5 @@
1
+ @media (min-width: #{map-get($grid-breakpoints, lg)}) and (max-width: #{map-get($grid-breakpoints, xl)}) {
2
+ .card-wrapper.card-teaser-wrapper .card-teaser.location-item {
3
+ flex: 0 0 100%;
4
+ }
5
+ }
@@ -0,0 +1,5 @@
1
+ @media (min-width: #{map-get($grid-breakpoints, lg)}) and (max-width: #{map-get($grid-breakpoints, xl)}) {
2
+ .card-wrapper.card-teaser-wrapper .card-teaser.office-card {
3
+ flex: 0 0 100%;
4
+ }
5
+ }
@@ -1,6 +1,6 @@
1
1
  @use '../../all_variables' as *;
2
2
 
3
- @mixin block($subsite-secondary) {
3
+ @mixin block($subsite-secondary, $subsite-secondary-text) {
4
4
  .cta-block {
5
5
  .cta-block-wrapper {
6
6
  background-color: $subsite-secondary;
@@ -8,6 +8,13 @@
8
8
  &.has-image {
9
9
  background: none;
10
10
  }
11
+
12
+ a {
13
+ color: $subsite-secondary-text;
14
+ }
11
15
  }
12
16
  }
17
+ .cms-ui .cta-block a {
18
+ color: $subsite-secondary-text;
19
+ }
13
20
  }
@@ -10,7 +10,7 @@
10
10
  .bg-primary {
11
11
  .card .card-body {
12
12
  .categoryicon-top {
13
- .text {
13
+ span {
14
14
  color: $subsite-primary-text;
15
15
  }
16
16
 
@@ -37,10 +37,9 @@
37
37
  }
38
38
 
39
39
  .chip.chip-primary {
40
- border-color: $subsite-link-color;
41
-
40
+ border-color: $subsite-primary-text;
42
41
  & > .chip-label {
43
- color: $subsite-link-color;
42
+ color: $subsite-primary-text;
44
43
  }
45
44
 
46
45
  &:hover,
@@ -83,8 +82,14 @@
83
82
  }
84
83
 
85
84
  .chip.chip-primary {
85
+ border-color: $subsite-secondary-text;
86
+ > .chip-label {
87
+ color: $subsite-secondary-text;
88
+ }
86
89
  &:hover,
87
90
  &:active {
91
+ border-color: $subsite-secondary;
92
+ background-color: $subsite-secondary-text;
88
93
  > .chip-label {
89
94
  color: $subsite-secondary;
90
95
  }
@@ -5,7 +5,8 @@
5
5
  $subsite-primary-text,
6
6
  $subsite-secondary,
7
7
  $subsite-secondary-text,
8
- $subsite-primary-a0
8
+ $subsite-primary-a0,
9
+ $subsite-light-theme
9
10
  ) {
10
11
  .container .block {
11
12
  .searchSections {
@@ -41,7 +42,11 @@
41
42
 
42
43
  &.search {
43
44
  .search-wrapper .autocomplete-icon .icon {
44
- fill: $subsite-primary;
45
+ @if $subsite-light-theme {
46
+ fill: $subsite-secondary;
47
+ } @else {
48
+ fill: $subsite-primary;
49
+ }
45
50
  }
46
51
  }
47
52
  }
@@ -57,7 +57,11 @@
57
57
  color: $subsite-primary-text !important;
58
58
  }
59
59
  .select-pill.text-primary {
60
- color: $subsite-primary !important;
60
+ @if ($subsite-light-theme) {
61
+ color: $subsite-link-color !important;
62
+ } @else {
63
+ color: $subsite-primary !important;
64
+ }
61
65
 
62
66
  div {
63
67
  color: inherit;
@@ -83,15 +87,6 @@
83
87
  }
84
88
  }
85
89
 
86
- // icon external link
87
- .external-link {
88
- @if $subsite-light-theme {
89
- fill: $subsite-link-color !important;
90
- } @else {
91
- fill: $subsite-primary !important;
92
- }
93
- }
94
-
95
90
  .flag-icon {
96
91
  background: $subsite-secondary;
97
92
  }
@@ -129,7 +129,7 @@
129
129
  $subsite-secondary-text
130
130
  );
131
131
  @include it-contacts.block($subsite-primary, $subsite-primary-text);
132
- @include it-cta.block($subsite-secondary);
132
+ @include it-cta.block($subsite-secondary, $subsite-secondary-text);
133
133
  @include it-form.block(
134
134
  $subsite-primary,
135
135
  $subsite-primary-text,
@@ -169,7 +169,8 @@
169
169
  $subsite-primary-text,
170
170
  $subsite-secondary,
171
171
  $subsite-secondary-text,
172
- $subsite-primary-a0
172
+ $subsite-primary-a0,
173
+ $subsite-light-theme
173
174
  );
174
175
  @include it-table-contents.block($subsite-primary);
175
176
  @include it-views.common(
@@ -206,7 +207,8 @@
206
207
 
207
208
  #categoryCollapse .btn-icon.btn.btn-outline-secondary {
208
209
  border-color: $subsite-primary;
209
- box-shadow: inset 0 0 0 1px $subsite-primary,
210
+ box-shadow:
211
+ inset 0 0 0 1px $subsite-primary,
210
212
  0 0 0 0.2rem rgba(var($subsite-primary), 0.2);
211
213
  color: $subsite-primary;
212
214
  }
@@ -48,7 +48,9 @@ $docs-section-margin: 3em;
48
48
  justify-content: space-between;
49
49
  padding: 0.4em 0;
50
50
  gap: 4rem;
51
-
51
+ .title {
52
+ flex: 1;
53
+ }
52
54
  .title-wrap {
53
55
  flex: 1;
54
56
 
@@ -182,6 +184,14 @@ $docs-section-margin: 3em;
182
184
  .documents-section,
183
185
  .document-row-section {
184
186
  .doc-row {
187
+ .doc:not(.modulo) {
188
+ flex-direction: column;
189
+ align-items: flex-start;
190
+ justify-content: center;
191
+ .downloads {
192
+ width: 100%;
193
+ }
194
+ }
185
195
  .doc {
186
196
  flex-wrap: wrap;
187
197
  align-items: center;
@@ -211,6 +221,7 @@ $docs-section-margin: 3em;
211
221
 
212
222
  &.modulo {
213
223
  justify-content: space-between;
224
+ flex-wrap: nowrap;
214
225
 
215
226
  .title,
216
227
  .downloads {
@@ -128,6 +128,8 @@
128
128
  @import 'ItaliaTheme/Components/breadcrumbs';
129
129
  @import 'ItaliaTheme/Components/card';
130
130
  @import 'ItaliaTheme/Components/cardPersona';
131
+ @import 'ItaliaTheme/Components/officeCard';
132
+ @import 'ItaliaTheme/Components/cardLocationItem';
131
133
  @import 'ItaliaTheme/Components/contactsCard';
132
134
  @import 'ItaliaTheme/Components/navscroll';
133
135
  @import 'ItaliaTheme/Components/customerSatisfaction';