design-comuni-plone-theme 11.0.1 → 11.1.0

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
@@ -1,5 +1,29 @@
1
1
 
2
2
 
3
+ ## [11.1.0](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.0.2...v11.1.0) (2023-12-20)
4
+
5
+
6
+ ### Features
7
+
8
+ * login with cie ([#443](https://github.com/redturtle/design-comuni-plone-theme/issues/443)) ([21dae70](https://github.com/redturtle/design-comuni-plone-theme/commit/21dae707b3207a0fed69ea6b4b39289ee0b1d90e))
9
+
10
+
11
+ ### Documentation
12
+
13
+ * updated publiccode ([5d169c7](https://github.com/redturtle/design-comuni-plone-theme/commit/5d169c78920a25f5765ae281400bea3aa0e6be1a))
14
+
15
+ ## [11.0.2](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.0.1...v11.0.2) (2023-12-20)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * subsite mixin styles ([#442](https://github.com/redturtle/design-comuni-plone-theme/issues/442)) ([84719fe](https://github.com/redturtle/design-comuni-plone-theme/commit/84719fe08521076c62e09c2ad1fd840fb65e6f45))
21
+
22
+
23
+ ### Documentation
24
+
25
+ * updated publiccode ([aed0730](https://github.com/redturtle/design-comuni-plone-theme/commit/aed073008414c8ca7f4b726410ec20f9333ff297))
26
+
3
27
  ## [11.0.1](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.0.0...v11.0.1) (2023-12-19)
4
28
 
5
29
 
@@ -2358,6 +2358,21 @@ msgstr ""
2358
2358
  msgid "login_agid_other_description"
2359
2359
  msgstr ""
2360
2360
 
2361
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2362
+ # defaultMessage: CIE
2363
+ msgid "login_cie"
2364
+ msgstr ""
2365
+
2366
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2367
+ # defaultMessage: Log in with CIE.
2368
+ msgid "login_cie_description"
2369
+ msgstr ""
2370
+
2371
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2372
+ # defaultMessage: How to activate CIE
2373
+ msgid "login_cie_help"
2374
+ msgstr ""
2375
+
2361
2376
  #: components/ItaliaTheme/LoginAgid/LoginAgid
2362
2377
  #: components/ItaliaTheme/Unauthorized/Unauthorized
2363
2378
  # defaultMessage: Log in as employee
@@ -2379,6 +2394,11 @@ msgstr ""
2379
2394
  msgid "login_spid_help"
2380
2395
  msgstr ""
2381
2396
 
2397
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2398
+ # defaultMessage: Login with CIE
2399
+ msgid "login_with_cie"
2400
+ msgstr ""
2401
+
2382
2402
  #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2383
2403
  # defaultMessage: Login with SPID
2384
2404
  msgid "login_with_spid"
@@ -2343,6 +2343,21 @@ msgstr ""
2343
2343
  msgid "login_agid_other_description"
2344
2344
  msgstr ""
2345
2345
 
2346
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2347
+ # defaultMessage: CIE
2348
+ msgid "login_cie"
2349
+ msgstr ""
2350
+
2351
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2352
+ # defaultMessage: Log in with CIE.
2353
+ msgid "login_cie_description"
2354
+ msgstr ""
2355
+
2356
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2357
+ # defaultMessage: How to activate CIE
2358
+ msgid "login_cie_help"
2359
+ msgstr ""
2360
+
2346
2361
  #: components/ItaliaTheme/LoginAgid/LoginAgid
2347
2362
  #: components/ItaliaTheme/Unauthorized/Unauthorized
2348
2363
  # defaultMessage: Log in as employee
@@ -2364,6 +2379,11 @@ msgstr ""
2364
2379
  msgid "login_spid_help"
2365
2380
  msgstr ""
2366
2381
 
2382
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2383
+ # defaultMessage: Login with CIE
2384
+ msgid "login_with_cie"
2385
+ msgstr ""
2386
+
2367
2387
  #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2368
2388
  # defaultMessage: Login with SPID
2369
2389
  msgid "login_with_spid"
@@ -2352,6 +2352,21 @@ msgstr ""
2352
2352
  msgid "login_agid_other_description"
2353
2353
  msgstr ""
2354
2354
 
2355
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2356
+ # defaultMessage: CIE
2357
+ msgid "login_cie"
2358
+ msgstr ""
2359
+
2360
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2361
+ # defaultMessage: Log in with CIE.
2362
+ msgid "login_cie_description"
2363
+ msgstr ""
2364
+
2365
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2366
+ # defaultMessage: How to activate CIE
2367
+ msgid "login_cie_help"
2368
+ msgstr ""
2369
+
2355
2370
  #: components/ItaliaTheme/LoginAgid/LoginAgid
2356
2371
  #: components/ItaliaTheme/Unauthorized/Unauthorized
2357
2372
  # defaultMessage: Log in as employee
@@ -2373,6 +2388,11 @@ msgstr ""
2373
2388
  msgid "login_spid_help"
2374
2389
  msgstr ""
2375
2390
 
2391
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2392
+ # defaultMessage: Login with CIE
2393
+ msgid "login_with_cie"
2394
+ msgstr ""
2395
+
2376
2396
  #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2377
2397
  # defaultMessage: Login with SPID
2378
2398
  msgid "login_with_spid"
@@ -2360,6 +2360,21 @@ msgstr ""
2360
2360
  msgid "login_agid_other_description"
2361
2361
  msgstr ""
2362
2362
 
2363
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2364
+ # defaultMessage: CIE
2365
+ msgid "login_cie"
2366
+ msgstr ""
2367
+
2368
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2369
+ # defaultMessage: Log in with CIE.
2370
+ msgid "login_cie_description"
2371
+ msgstr ""
2372
+
2373
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2374
+ # defaultMessage: How to activate CIE
2375
+ msgid "login_cie_help"
2376
+ msgstr ""
2377
+
2363
2378
  #: components/ItaliaTheme/LoginAgid/LoginAgid
2364
2379
  #: components/ItaliaTheme/Unauthorized/Unauthorized
2365
2380
  # defaultMessage: Log in as employee
@@ -2381,6 +2396,11 @@ msgstr ""
2381
2396
  msgid "login_spid_help"
2382
2397
  msgstr ""
2383
2398
 
2399
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2400
+ # defaultMessage: Login with CIE
2401
+ msgid "login_with_cie"
2402
+ msgstr ""
2403
+
2384
2404
  #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2385
2405
  # defaultMessage: Login with SPID
2386
2406
  msgid "login_with_spid"
@@ -2343,6 +2343,21 @@ msgstr "Altre utenze"
2343
2343
  msgid "login_agid_other_description"
2344
2344
  msgstr "In alternativa puoi utilizzare le seguenti modalità."
2345
2345
 
2346
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2347
+ # defaultMessage: CIE
2348
+ msgid "login_cie"
2349
+ msgstr ""
2350
+
2351
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2352
+ # defaultMessage: Log in with CIE.
2353
+ msgid "login_cie_description"
2354
+ msgstr "Entra con CIE"
2355
+
2356
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2357
+ # defaultMessage: How to activate CIE
2358
+ msgid "login_cie_help"
2359
+ msgstr "Maggiori informazioni sulla CIE"
2360
+
2346
2361
  #: components/ItaliaTheme/LoginAgid/LoginAgid
2347
2362
  #: components/ItaliaTheme/Unauthorized/Unauthorized
2348
2363
  # defaultMessage: Log in as employee
@@ -2364,6 +2379,11 @@ msgstr "Accedi con SPID, il sistema Pubblico di Identità Digitale."
2364
2379
  msgid "login_spid_help"
2365
2380
  msgstr "Come attivare SPID"
2366
2381
 
2382
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2383
+ # defaultMessage: Login with CIE
2384
+ msgid "login_with_cie"
2385
+ msgstr "Entra con CIE"
2386
+
2367
2387
  #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2368
2388
  # defaultMessage: Login with SPID
2369
2389
  msgid "login_with_spid"
package/locales/volto.pot CHANGED
@@ -1,7 +1,7 @@
1
1
  msgid ""
2
2
  msgstr ""
3
3
  "Project-Id-Version: Plone\n"
4
- "POT-Creation-Date: 2023-12-18T16:06:10.430Z\n"
4
+ "POT-Creation-Date: 2023-12-20T09:24:02.911Z\n"
5
5
  "Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
6
6
  "Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
7
7
  "MIME-Version: 1.0\n"
@@ -2345,6 +2345,21 @@ msgstr ""
2345
2345
  msgid "login_agid_other_description"
2346
2346
  msgstr ""
2347
2347
 
2348
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2349
+ # defaultMessage: CIE
2350
+ msgid "login_cie"
2351
+ msgstr ""
2352
+
2353
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2354
+ # defaultMessage: Log in with CIE.
2355
+ msgid "login_cie_description"
2356
+ msgstr ""
2357
+
2358
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2359
+ # defaultMessage: How to activate CIE
2360
+ msgid "login_cie_help"
2361
+ msgstr ""
2362
+
2348
2363
  #: components/ItaliaTheme/LoginAgid/LoginAgid
2349
2364
  #: components/ItaliaTheme/Unauthorized/Unauthorized
2350
2365
  # defaultMessage: Log in as employee
@@ -2366,6 +2381,11 @@ msgstr ""
2366
2381
  msgid "login_spid_help"
2367
2382
  msgstr ""
2368
2383
 
2384
+ #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2385
+ # defaultMessage: Login with CIE
2386
+ msgid "login_with_cie"
2387
+ msgstr ""
2388
+
2369
2389
  #: components/ItaliaTheme/LoginAgid/LoginAgidButtons
2370
2390
  # defaultMessage: Login with SPID
2371
2391
  msgid "login_with_spid"
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.0.1",
5
+ "version": "11.1.0",
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: '2023-12-19'
230
+ releaseDate: '2023-12-20'
231
231
  softwareType: standalone/web
232
- softwareVersion: 11.0.1
232
+ softwareVersion: 11.1.0
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -14,8 +14,10 @@ import {
14
14
  Icon,
15
15
  LoginButton,
16
16
  } from 'design-comuni-plone-theme/components/ItaliaTheme';
17
+ import { Icon as BaseIcon } from '@plone/volto/components';
17
18
  import { useLocation } from 'react-router-dom';
18
19
  import config from '@plone/volto/registry';
20
+ import cieSVG from 'design-comuni-plone-theme/icons/entra_con_cie.svg';
19
21
 
20
22
  const messages = defineMessages({
21
23
  loginSpid: {
@@ -34,6 +36,22 @@ const messages = defineMessages({
34
36
  id: 'login_spid_help',
35
37
  defaultMessage: 'How to activate SPID',
36
38
  },
39
+ loginCie: {
40
+ id: 'login_cie',
41
+ defaultMessage: 'CIE',
42
+ },
43
+ loginCieDescription: {
44
+ id: 'login_cie_description',
45
+ defaultMessage: 'Log in with CIE.',
46
+ },
47
+ loginCieButton: {
48
+ id: 'login_with_cie',
49
+ defaultMessage: 'Login with CIE',
50
+ },
51
+ loginCieHelp: {
52
+ id: 'login_cie_help',
53
+ defaultMessage: 'How to activate CIE',
54
+ },
37
55
  });
38
56
 
39
57
  // https://v5.reactrouter.com/web/example/query-parameters
@@ -42,61 +60,111 @@ function useQueryV5() {
42
60
  return React.useMemo(() => new URLSearchParams(search), [search]);
43
61
  }
44
62
 
63
+ const SpidButton = ({ spidLoginUrl, qs, intl }) => (
64
+ <div className="login-method">
65
+ <h2>{intl.formatMessage(messages.loginSpid)}</h2>
66
+ <p className="description">
67
+ {intl.formatMessage(messages.loginSpidDescription)}
68
+ </p>
69
+ <div className="authorized-spid-login mb-4">
70
+ <Button
71
+ className="btn-icon"
72
+ color="primary"
73
+ href={`${spidLoginUrl}${qs}`}
74
+ tag="a"
75
+ data-element="personal-area-login"
76
+ size="big"
77
+ >
78
+ <span className="rounded-icon">
79
+ <Icon color="primary" icon="it-user" padding={false} size="" />
80
+ </span>
81
+ <span>{intl.formatMessage(messages.loginSpidButton)}</span>
82
+ </Button>
83
+ <div>
84
+ <UniversalLink href="https://www.spid.gov.it/cos-e-spid/come-attivare-spid">
85
+ <small>{intl.formatMessage(messages.loginSpidHelp)}</small>
86
+ </UniversalLink>
87
+ </div>
88
+ </div>
89
+ </div>
90
+ );
91
+
92
+ const CieButton = ({ cieLoginUrl, qs, intl }) => (
93
+ <div className="login-method">
94
+ <h2>{intl.formatMessage(messages.loginCie)}</h2>
95
+ <p className="description">
96
+ {intl.formatMessage(messages.loginCieDescription)}
97
+ </p>
98
+ <div className="authorized-spid-login mb-4">
99
+ <Button
100
+ className="btn-icon"
101
+ color="primary"
102
+ href={`${cieLoginUrl}${qs}`}
103
+ tag="a"
104
+ data-element="personal-area-login"
105
+ size="big"
106
+ style={{
107
+ padding: 0,
108
+ }}
109
+ title={intl.formatMessage(messages.loginCieButton)}
110
+ >
111
+ <BaseIcon name={cieSVG} style={{ width: '100%', height: '100%' }} />
112
+ </Button>
113
+ <div>
114
+ <UniversalLink href="https://www.cartaidentita.interno.gov.it/">
115
+ <small>{intl.formatMessage(messages.loginCieHelp)}</small>
116
+ </UniversalLink>
117
+ </div>
118
+ </div>
119
+ </div>
120
+ );
121
+
122
+ const ArButton = ({ arLoginUrl, intl }) => (
123
+ <div className="login-method">
124
+ <h2>{intl.formatMessage(messages.loginSpid)}</h2>
125
+ <p className="description">
126
+ {intl.formatMessage(messages.loginSpidDescription)}
127
+ </p>
128
+ <div className="authorized-spid-login mb-4">
129
+ <LoginButton baseLoginUrl={arLoginUrl}>
130
+ <span className="rounded-icon">
131
+ <Icon color="primary" icon="it-user" padding={false} size="" />
132
+ </span>
133
+ <span className="d-none d-lg-block">
134
+ {intl.formatMessage(messages.loginSpidButton)}
135
+ </span>
136
+ </LoginButton>
137
+ </div>
138
+ </div>
139
+ );
140
+
45
141
  const LoginAgidButtons = ({ origin }) => {
46
142
  const intl = useIntl();
47
143
  const query = useQueryV5();
48
144
  const came_from = query.get('came_from') || origin;
49
145
  const qs = came_from ? `?came_from=${came_from}` : '';
146
+ // "ar" => "Area Riservata"
50
147
  const arLoginUrl = config.settings.siteProperties?.arLoginUrl;
51
148
  const spidLoginUrl = __CLIENT__
52
149
  ? window.env.RAZZLE_SPID_LOGIN_URL
53
150
  : process.env.RAZZLE_SPID_LOGIN_URL;
151
+ const cieLoginUrl = __CLIENT__
152
+ ? window.env.RAZZLE_CIE_LOGIN_URL
153
+ : process.env.RAZZLE_CIE_LOGIN_URL;
54
154
 
55
- return spidLoginUrl ? (
56
- <div className="login-method">
57
- <h2>{intl.formatMessage(messages.loginSpid)}</h2>
58
- <p className="description">
59
- {intl.formatMessage(messages.loginSpidDescription)}
60
- </p>
61
- <div className="authorized-spid-login mb-4">
62
- <Button
63
- className="btn-icon"
64
- color="primary"
65
- href={`${spidLoginUrl}${qs}`}
66
- tag="a"
67
- data-element="personal-area-login"
68
- size="big"
69
- >
70
- <span className="rounded-icon">
71
- <Icon color="primary" icon="it-user" padding={false} size="" />
72
- </span>
73
- <span>{intl.formatMessage(messages.loginSpidButton)}</span>
74
- </Button>
75
- <div>
76
- <UniversalLink href="https://www.spid.gov.it/cos-e-spid/come-attivare-spid">
77
- <small>{intl.formatMessage(messages.loginSpidHelp)}</small>
78
- </UniversalLink>
79
- </div>
80
- </div>
81
- </div>
82
- ) : arLoginUrl ? (
83
- <div className="login-method">
84
- <h2>{intl.formatMessage(messages.loginSpid)}</h2>
85
- <p className="description">
86
- {intl.formatMessage(messages.loginSpidDescription)}
87
- </p>
88
- <div className="authorized-spid-login mb-4">
89
- <LoginButton baseLoginUrl={arLoginUrl}>
90
- <span className="rounded-icon">
91
- <Icon color="primary" icon="it-user" padding={false} size="" />
92
- </span>
93
- <span className="d-none d-lg-block">
94
- {intl.formatMessage(messages.loginSpidButton)}
95
- </span>
96
- </LoginButton>
97
- </div>
98
- </div>
99
- ) : null;
155
+ return (
156
+ <>
157
+ {spidLoginUrl && (
158
+ <SpidButton intl={intl} qs={qs} spidLoginUrl={spidLoginUrl} />
159
+ )}
160
+ {cieLoginUrl && (
161
+ <CieButton intl={intl} qs={qs} cieLoginUrl={cieLoginUrl} />
162
+ )}
163
+ {!cieLoginUrl && !spidLoginUrl && arLoginUrl && (
164
+ <ArButton intl={intl} qs={qs} arLoginUrl={arLoginUrl} />
165
+ )}
166
+ </>
167
+ );
100
168
  };
101
169
 
102
170
  export default LoginAgidButtons;
@@ -0,0 +1,52 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 281.5 56.3">
3
+ <title>Entra con CIE</title>
4
+ <g id="Livello_2" data-name="Livello 2">
5
+ <g id="Livello_1-2" data-name="Livello 1">
6
+ <rect width="281.5" height="56.3" fill="#0053a2" />
7
+ <path
8
+ d="M20,11.4l1.4-.6L39,4.8a1.2,1.2,0,0,1,1.3.2,2.8,2.8,0,0,1,.8,1.2c.5,1.3,1.1,2.6,1.6,4a9.2,9.2,0,0,1,.5,3.7,10.3,10.3,0,0,0-.1,1.7,2.9,2.9,0,0,0,0,1.3c0,.5.1,1.1.1,1.6a6.6,6.6,0,0,0,1.2,3c1.2,1.6,2.4,3.1,3.5,4.7a11.3,11.3,0,0,1,1.6,2.6,3,3,0,0,1,.4,1,3.6,3.6,0,0,1-.2,1,7.5,7.5,0,0,1-1.2,1.4l-1.7,1.1-1.3,1a1.6,1.6,0,0,0-.2,1.5,10.4,10.4,0,0,0,.4,1,1.7,1.7,0,0,1-.2,1.8l-.3.4a1.1,1.1,0,0,0-.2,1.1,4.3,4.3,0,0,1,.1.5c.1.4-.1.7-.4,1.1l-.6.8a2.2,2.2,0,0,0-.6,1.9,4.3,4.3,0,0,0,.2,1.1,5,5,0,0,1,.2,2.1,3.2,3.2,0,0,1-1.7,2.8,2.6,2.6,0,0,1-1.7.3l-2.2-.4-8.2-1.7-2.8-.7h-.1a19.8,19.8,0,0,0,9-12.8,19.3,19.3,0,0,0-3-15.3A19.5,19.5,0,0,0,20,11.4Z"
9
+ fill="#fff" />
10
+ <path
11
+ d="M12.2,29.1c-2,0-3.4-.6-4.1-1.7S7,24.5,7,21.9a10.4,10.4,0,0,1,1.1-5.4c.7-1.1,2.1-1.6,4.1-1.6a18.9,18.9,0,0,1,3.9.5v1.8a21.9,21.9,0,0,0-3.6-.3c-1.2,0-2,.3-2.4,1.1s-.7,2-.7,4a8.9,8.9,0,0,0,.6,4,2.6,2.6,0,0,0,2.5,1.1,21.9,21.9,0,0,0,3.6-.3v1.9A28.7,28.7,0,0,1,12.2,29.1Z"
12
+ fill="#fff" />
13
+ <path d="M17.8,17.1V14.8H20v2.3Zm0,11.8V18.8H20V28.9Z" fill="#fff" />
14
+ <path
15
+ d="M29.4,27.1H30v1.6a20.8,20.8,0,0,1-4,.5,3.8,3.8,0,0,1-3.2-1.2,6.1,6.1,0,0,1-1-3.9c0-3.6,1.5-5.4,4.4-5.4s4.2,1.5,4.2,4.6l-.2,1.6H24a2.4,2.4,0,0,0,.6,1.8,2.4,2.4,0,0,0,1.9.6Zm-1.2-4a3.7,3.7,0,0,0-.4-2.1,2.1,2.1,0,0,0-1.6-.6,2.2,2.2,0,0,0-1.7.6,3.8,3.8,0,0,0-.5,2.1Z"
16
+ fill="#fff" />
17
+ <path d="M15.6,45.3V31.5h2.2V45.3Z" fill="#fff" />
18
+ <path
19
+ d="M24.9,45.3H20.1V31.5h4.8c2.1,0,3.6.6,4.3,1.6a8.7,8.7,0,0,1,1.2,5.1,21.9,21.9,0,0,1-.2,2.9,9.3,9.3,0,0,1-.8,2.2C28.6,44.6,27.1,45.3,24.9,45.3Zm3.2-7.1a7.8,7.8,0,0,0-.6-3.6,2.9,2.9,0,0,0-2.6-1.1H22.4v9.8h2.5a2.6,2.6,0,0,0,2.6-1.4,4.9,4.9,0,0,0,.5-1.6C28,39.7,28.1,39,28.1,38.2Z"
20
+ fill="#fff" />
21
+ <line x1="56.7" y1="7.9" x2="56.7" y2="49.2" fill="none" stroke="#fff"
22
+ stroke-miterlimit="10" />
23
+ <path d="M89.6,36.5V19h11.1v2.5H92.5v4.9h6.7v2.5H92.5V34h8.2v2.5Z" fill="#fff" />
24
+ <path
25
+ d="M106.3,36.5h-2.8V23.7h2.8v.8a7.1,7.1,0,0,1,3.5-1.1c1.7,0,2.9.5,3.5,1.5a9.4,9.4,0,0,1,.9,4.8v6.8h-2.7V29.7a6.9,6.9,0,0,0-.5-2.9,1.8,1.8,0,0,0-1.8-.9,7,7,0,0,0-2.5.5l-.4.2Z"
26
+ fill="#fff" />
27
+ <path
28
+ d="M124.4,26.1h-3.6v5.6a4.5,4.5,0,0,0,.3,2.1c.1.4.5.5,1.1.5h2.1l.2,2.2-2.6.3c-1.5,0-2.5-.3-3-1s-.8-1.9-.8-3.7v-6h-1.7V23.7h1.7V20h2.7v3.7h3.6Z"
29
+ fill="#fff" />
30
+ <path
31
+ d="M126.7,36.5V23.7h2.7v1.6a12,12,0,0,1,4.4-1.9v2.8a17,17,0,0,0-3.8,1.2l-.6.2v8.9Z"
32
+ fill="#fff" />
33
+ <path
34
+ d="M145.4,27.7v5.8c0,.4.1.7.3.8a1.5,1.5,0,0,0,.8.4v2.1a5.7,5.7,0,0,1-3.4-.9,9.8,9.8,0,0,1-4.1.9c-2.5,0-3.8-1.3-3.8-4.1a3.4,3.4,0,0,1,1-2.8,5.5,5.5,0,0,1,3.2-1l3.3-.3v-.9a2.1,2.1,0,0,0-.4-1.5,2.5,2.5,0,0,0-1.3-.4l-4.1.2h-.9v-2a25.8,25.8,0,0,1,5.2-.7,4.8,4.8,0,0,1,3.4,1.1A4.5,4.5,0,0,1,145.4,27.7Zm-5.8,3.1a1.8,1.8,0,0,0-1.7,2c0,1.2.5,1.7,1.5,1.7a9.5,9.5,0,0,0,2.8-.4h.4V30.6Z"
35
+ fill="#fff" />
36
+ <path
37
+ d="M159.3,23.4a21.4,21.4,0,0,1,3.2.4h.7v2.2l-3-.2c-1.3,0-2.2.3-2.6.9a5.4,5.4,0,0,0-.7,3.3,6.4,6.4,0,0,0,.6,3.3,3.4,3.4,0,0,0,2.7.9l3-.2v2.3a23.1,23.1,0,0,1-3.9.4c-2,0-3.3-.5-4.1-1.6s-1.2-2.7-1.2-5.1.4-4.1,1.2-5.1A5.2,5.2,0,0,1,159.3,23.4Z"
38
+ fill="#fff" />
39
+ <path
40
+ d="M166.4,25.1a5.4,5.4,0,0,1,4.4-1.7c2.1,0,3.6.6,4.4,1.7a7.8,7.8,0,0,1,1.4,5,8.5,8.5,0,0,1-1.3,5c-.9,1.2-2.4,1.7-4.5,1.7s-3.5-.5-4.4-1.7a8.5,8.5,0,0,1-1.3-5A8.5,8.5,0,0,1,166.4,25.1Zm2.1,8.3a2.5,2.5,0,0,0,2.3,1.1c1.2,0,2-.4,2.3-1.1a6.6,6.6,0,0,0,.6-3.3,6.4,6.4,0,0,0-.6-3.3,2.4,2.4,0,0,0-2.3-1,2.3,2.3,0,0,0-2.2,1,6.2,6.2,0,0,0-.7,3.3A6.6,6.6,0,0,0,168.5,33.4Z"
41
+ fill="#fff" />
42
+ <path
43
+ d="M182.1,36.5h-2.8V23.7h2.8v.8a7.1,7.1,0,0,1,3.5-1.1c1.7,0,2.9.5,3.5,1.5s1,2.5,1,4.8v6.8h-2.8V29.7a6.9,6.9,0,0,0-.5-2.9,1.8,1.8,0,0,0-1.8-.9,7,7,0,0,0-2.5.5l-.4.2Z"
44
+ fill="#fff" />
45
+ <path
46
+ d="M205.2,36.8c-2.6,0-4.3-.7-5.2-2.1s-1.4-3.8-1.4-7,.5-5.6,1.4-6.9,2.6-2.1,5.2-2.1a23.4,23.4,0,0,1,5,.6v2.3a35.7,35.7,0,0,0-4.6-.4,3.3,3.3,0,0,0-3.1,1.4c-.6.9-.9,2.6-.9,5.2a11.6,11.6,0,0,0,.8,5.1,3.4,3.4,0,0,0,3.1,1.4,24.9,24.9,0,0,0,4.7-.4v2.4A30.2,30.2,0,0,1,205.2,36.8Z"
47
+ fill="#fff" />
48
+ <path d="M213.2,36.5V19h2.9V36.5Z" fill="#fff" />
49
+ <path d="M220.1,36.5V19h11.1v2.5H223v4.9h6.7v2.5H223V34h8.2v2.5Z" fill="#fff" />
50
+ </g>
51
+ </g>
52
+ </svg>
@@ -38,6 +38,12 @@
38
38
  }
39
39
  }
40
40
  }
41
+
42
+ &.search {
43
+ .search-wrapper .autocomplete-icon .icon {
44
+ fill: $subsite-primary;
45
+ }
46
+ }
41
47
  }
42
48
 
43
49
  .event-search,
@@ -27,11 +27,6 @@
27
27
  }
28
28
  }
29
29
 
30
- // TO DO: questo serve?
31
- // a.btn-tertiary {
32
- // color: $subsite-tertiary-text;
33
- // }
34
-
35
30
  .btn-outline-tertiary {
36
31
  @include button-outline-variant($subsite-tertiary);
37
32
  }
@@ -45,11 +40,34 @@
45
40
  background-color: $subsite-primary !important;
46
41
  }
47
42
 
43
+ //fix per bg-primary in CT servizio
44
+ // .contenttype-servizio {
45
+ .it-page-section.bg-primary {
46
+ background-color: $subsite-primary-a0 !important;
47
+ }
48
+ // }
49
+
48
50
  .bg-secondary {
49
51
  background-color: $subsite-secondary !important;
50
52
  color: $subsite-secondary-text;
51
53
  }
52
54
 
55
+ //text
56
+ .text-primary {
57
+ color: $subsite-primary-text !important;
58
+ }
59
+ .select-pill.text-primary {
60
+ color: $subsite-primary !important;
61
+
62
+ div {
63
+ color: inherit;
64
+ }
65
+ }
66
+
67
+ .text-secondary {
68
+ color: $subsite-secondary-text !important;
69
+ }
70
+
53
71
  //btn mini
54
72
  .select-all-cts.btn.btn-link.btn-mini,
55
73
  .subsite-header .text a.select-all-cts.btn-link.btn-mini {
@@ -293,6 +311,10 @@
293
311
 
294
312
  // date picker - general
295
313
  .DateRangePicker {
314
+ td.CalendarDay_default {
315
+ color: #484848;
316
+ }
317
+
296
318
  td.CalendarDay__selected {
297
319
  color: $subsite-link-color;
298
320
 
@@ -301,6 +323,12 @@
301
323
  }
302
324
  }
303
325
 
326
+ td.CalendarDay__hovered_span {
327
+ background: $subsite-primary-a0;
328
+ border: $subsite-primary-a0;
329
+ color: $subsite-link-color;
330
+ }
331
+
304
332
  @if $subsite-light-theme {
305
333
  td.CalendarDay__selected_span {
306
334
  background: darken($subsite-primary, 10%);
@@ -312,6 +340,7 @@
312
340
  } @else {
313
341
  td.CalendarDay__selected_span {
314
342
  background: $subsite-primary-a0;
343
+ color: #484848;
315
344
 
316
345
  &:hover {
317
346
  border: 1px double $subsite-primary-a0;
@@ -319,4 +348,20 @@
319
348
  }
320
349
  }
321
350
  }
351
+
352
+ .DayPickerKeyboardShortcuts_show__bottomRight::before {
353
+ border-right-color: $subsite-primary;
354
+ }
355
+
356
+ .DayPickerKeyboardShortcuts_showSpan {
357
+ color: $subsite-primary-text;
358
+ }
359
+
360
+ .react-select__menu-list {
361
+ .select-list {
362
+ .react-select__option--is-focused {
363
+ background-color: $subsite-primary-a0 !important;
364
+ }
365
+ }
366
+ }
322
367
  }
@@ -1,6 +1,11 @@
1
1
  @use '../../all_variables' as *;
2
2
 
3
3
  @mixin card($subsite-primary, $subsite-link-color) {
4
+ //card category
5
+ .card .card-body .category-top a.category {
6
+ color: $subsite-link-color;
7
+ }
8
+
4
9
  // flag
5
10
  .flag-icon {
6
11
  background: $subsite-primary;
@@ -26,13 +26,13 @@
26
26
 
27
27
  //right zone
28
28
  .it-right-zone {
29
- color: $subsite-primary-text;
29
+ color: $subsite-primary-text !important;
30
30
 
31
31
  .it-socials {
32
32
  ul {
33
33
  .icon {
34
- color: $subsite-primary-text;
35
- fill: $subsite-primary-text;
34
+ color: $subsite-primary-text !important;
35
+ fill: $subsite-primary-text !important;
36
36
  }
37
37
  }
38
38
  }
@@ -13,26 +13,14 @@
13
13
  .navbar-nav {
14
14
  li {
15
15
  a.nav-link {
16
- @if $subsite-light-theme {
17
- color: $subsite-primary-text;
18
-
19
- &.active {
20
- border-left-color: $subsite-primary-text;
21
- }
16
+ color: $subsite-primary-text;
22
17
 
23
- svg {
24
- fill: $subsite-primary-text !important;
25
- }
26
- } @else {
27
- color: $subsite-link-color;
28
-
29
- &.active {
30
- border-left-color: $subsite-link-color;
31
- }
18
+ &.active {
19
+ border-left-color: $subsite-primary-text;
20
+ }
32
21
 
33
- svg {
34
- fill: $subsite-link-color !important;
35
- }
22
+ svg {
23
+ fill: $subsite-primary-text !important;
36
24
  }
37
25
  }
38
26
  }
@@ -76,7 +64,7 @@
76
64
  }
77
65
 
78
66
  //Tablet horizontal / small desktop
79
- @media (min-width: #{map-get($grid-breakpoints, lg)}) {
67
+ @media (min-width: #{map-get($grid-breakpoints, md)}) and (max-width: #{map-get($grid-breakpoints, lg)}) {
80
68
  .navbar {
81
69
  background: $subsite-primary;
82
70