design-comuni-plone-theme 11.10.1 → 12.0.0-alpha.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.
Files changed (194) hide show
  1. package/.github/workflows/slate.yml +47 -0
  2. package/.yarn/cache/@babel-helper-module-imports-npm-7.24.3-edb733448b-c23492189b.zip +0 -0
  3. package/.yarn/cache/@babel-types-npm-7.24.0-a0508cb308-4b574a37d4.zip +0 -0
  4. package/.yarn/cache/babel-plugin-lodash-npm-3.3.4-c7161075b6-044a4261e6.zip +0 -0
  5. package/.yarn/cache/require-package-name-npm-2.0.1-ac9a206b63-00f4e9e467.zip +0 -0
  6. package/.yarn/cache/{volto-form-block-npm-3.7.2-f24953a510-7387a1b85a.zip → volto-form-block-npm-3.8.2-e49cbe07d5-5b72a06a5e.zip} +0 -0
  7. package/.yarn/install-state.gz +0 -0
  8. package/CHANGELOG.md +878 -904
  9. package/RELEASE.md +8 -0
  10. package/locales/de/LC_MESSAGES/volto.po +86 -18
  11. package/locales/en/LC_MESSAGES/volto.po +86 -18
  12. package/locales/es/LC_MESSAGES/volto.po +86 -18
  13. package/locales/fr/LC_MESSAGES/volto.po +86 -18
  14. package/locales/it/LC_MESSAGES/volto.po +86 -18
  15. package/locales/volto.pot +87 -19
  16. package/package.json +4 -2
  17. package/publiccode.yml +2 -2
  18. package/src/components/Collapse.jsx +1 -0
  19. package/src/components/ItaliaTheme/Blocks/Accordion/Block/EditBlock.jsx +29 -24
  20. package/src/components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock.jsx +4 -12
  21. package/src/components/ItaliaTheme/Blocks/Accordion/Edit.jsx +67 -6
  22. package/src/components/ItaliaTheme/Blocks/Alert/Edit.jsx +60 -113
  23. package/src/components/ItaliaTheme/Blocks/Alert/Sidebar.jsx +1 -0
  24. package/src/components/ItaliaTheme/Blocks/Alert/View.jsx +5 -14
  25. package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/Block.jsx +16 -11
  26. package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/Body.jsx +2 -1
  27. package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/Edit.jsx +39 -1
  28. package/src/components/ItaliaTheme/Blocks/CTABlock/Block.jsx +35 -95
  29. package/src/components/ItaliaTheme/Blocks/Callout/Edit.jsx +108 -0
  30. package/src/components/ItaliaTheme/Blocks/Callout/Sidebar.jsx +173 -0
  31. package/src/components/ItaliaTheme/Blocks/Callout/View.jsx +45 -0
  32. package/src/components/ItaliaTheme/Blocks/ContactsBlock/Block/EditBlock.jsx +84 -63
  33. package/src/components/ItaliaTheme/Blocks/ContactsBlock/Block/ViewBlock.jsx +19 -39
  34. package/src/components/ItaliaTheme/Blocks/ContactsBlock/Edit.jsx +92 -19
  35. package/src/components/ItaliaTheme/Blocks/ContactsBlock/View.jsx +13 -21
  36. package/src/components/ItaliaTheme/Blocks/CountDown/Edit.jsx +21 -25
  37. package/src/components/ItaliaTheme/Blocks/CountDown/View.jsx +6 -15
  38. package/src/components/ItaliaTheme/Blocks/IconBlocks/Block/EditBlock.jsx +40 -15
  39. package/src/components/ItaliaTheme/Blocks/IconBlocks/Block/ViewBlock.jsx +6 -21
  40. package/src/components/ItaliaTheme/Blocks/IconBlocks/Edit.jsx +93 -20
  41. package/src/components/ItaliaTheme/Blocks/IconBlocks/Sidebar.jsx +1 -9
  42. package/src/components/ItaliaTheme/Blocks/IconBlocks/View.jsx +4 -17
  43. package/src/components/ItaliaTheme/Blocks/NumbersBlock/Block/EditBlock.jsx +46 -15
  44. package/src/components/ItaliaTheme/Blocks/NumbersBlock/Block/ViewBlock.jsx +2 -18
  45. package/src/components/ItaliaTheme/Blocks/NumbersBlock/Edit.jsx +84 -11
  46. package/src/components/ItaliaTheme/Blocks/NumbersBlock/View.jsx +2 -11
  47. package/src/components/ItaliaTheme/Blocks/TextCard/CardWithImage/Block.jsx +33 -67
  48. package/src/components/ItaliaTheme/Blocks/TextCard/CardWithImage/Edit.jsx +2 -8
  49. package/src/components/ItaliaTheme/Blocks/TextCard/SimpleCard/BodyWrapper.jsx +2 -1
  50. package/src/components/ItaliaTheme/Blocks/TextCard/SimpleCard/Edit.jsx +98 -84
  51. package/src/components/ItaliaTheme/Blocks/TextCard/SimpleCard/View.jsx +20 -3
  52. package/src/components/ItaliaTheme/Blocks/__tests__/Accordion.test.jsx +11 -28
  53. package/src/components/ItaliaTheme/Blocks/__tests__/Alert.test.jsx +10 -14
  54. package/src/components/ItaliaTheme/Blocks/__tests__/ArgumentsInEvidence.test.jsx +20 -28
  55. package/src/components/ItaliaTheme/Blocks/__tests__/CTABlock.test.jsx +14 -29
  56. package/src/components/ItaliaTheme/Blocks/__tests__/CardWithImage.test.jsx +11 -28
  57. package/src/components/ItaliaTheme/Blocks/__tests__/ContactsBlock.test.jsx +75 -140
  58. package/src/components/ItaliaTheme/Blocks/__tests__/Countdown.test.jsx +20 -28
  59. package/src/components/ItaliaTheme/Blocks/__tests__/IconBlocks.test.jsx +22 -56
  60. package/src/components/ItaliaTheme/Blocks/__tests__/NumbersBlock.test.jsx +14 -43
  61. package/src/components/ItaliaTheme/Blocks/__tests__/SimpleCard.test.jsx +14 -30
  62. package/src/components/ItaliaTheme/Footer/FooterInfos.jsx +22 -8
  63. package/src/components/ItaliaTheme/Footer/FooterNavigation.jsx +3 -3
  64. package/src/components/ItaliaTheme/MegaMenu/MegaMenu.jsx +5 -1
  65. package/src/components/ItaliaTheme/Slider/SingleSlideWrapper.jsx +2 -3
  66. package/src/components/ItaliaTheme/View/BandoView/BandoApprofondimenti.jsx +1 -2
  67. package/src/components/ItaliaTheme/View/CartellaModulisticaView/DocRow.jsx +14 -5
  68. package/src/components/ItaliaTheme/View/Commons/Attachment.jsx +19 -3
  69. package/src/components/ItaliaTheme/View/Commons/Attachments.jsx +0 -1
  70. package/src/components/ItaliaTheme/View/Commons/DownloadFileFormat.jsx +11 -7
  71. package/src/components/ItaliaTheme/View/Commons/Module.jsx +7 -6
  72. package/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeaderLinkServizio.jsx +6 -2
  73. package/src/components/ItaliaTheme/View/Commons/RichTextRender.jsx +8 -6
  74. package/src/components/ItaliaTheme/View/Commons/__tests__/RichText.test.jsx +14 -17
  75. package/src/components/ItaliaTheme/View/ServizioView/ServizioAccedi.jsx +5 -6
  76. package/src/components/ItaliaTheme/View/ServizioView/ServizioMetatag.jsx +4 -0
  77. package/src/components/ItaliaTheme/View/__tests__/CartellaModulisticaView.test.jsx +12 -1
  78. package/src/components/ItaliaTheme/View/__tests__/IncaricoView.test.jsx +24 -30
  79. package/src/components/ItaliaTheme/View/__tests__/PageView.test.jsx +24 -2
  80. package/src/components/ItaliaTheme/View/__tests__/PersonaView.test.jsx +96 -92
  81. package/src/components/ItaliaTheme/View/__tests__/ServizioAChiSiRivolge.test.jsx +240 -286
  82. package/src/components/ItaliaTheme/View/__tests__/ServizioAccedi.test.jsx +240 -286
  83. package/src/components/ItaliaTheme/View/__tests__/ServizioCasiParticolari.test.jsx +240 -286
  84. package/src/components/ItaliaTheme/View/__tests__/ServizioComeFare.test.jsx +240 -286
  85. package/src/components/ItaliaTheme/View/__tests__/ServizioCondizioni.test.jsx +240 -286
  86. package/src/components/ItaliaTheme/View/__tests__/ServizioContatti.test.jsx +240 -286
  87. package/src/components/ItaliaTheme/View/__tests__/ServizioCosE.test.jsx +240 -286
  88. package/src/components/ItaliaTheme/View/__tests__/ServizioCosaServe.test.jsx +240 -286
  89. package/src/components/ItaliaTheme/View/__tests__/ServizioCosaSiOttiene.test.jsx +240 -286
  90. package/src/components/ItaliaTheme/View/__tests__/ServizioCostiVincoli.test.jsx +240 -286
  91. package/src/components/ItaliaTheme/View/__tests__/ServizioMetadati.test.jsx +240 -286
  92. package/src/components/ItaliaTheme/View/__tests__/ServizioModulistica.test.jsx +240 -286
  93. package/src/components/ItaliaTheme/View/__tests__/ServizioProcedure.test.jsx +240 -286
  94. package/src/components/ItaliaTheme/View/__tests__/ServizioSitiEsterni.test.jsx +240 -286
  95. package/src/components/ItaliaTheme/View/__tests__/ServizioTempiScadenze.test.jsx +240 -286
  96. package/src/components/ItaliaTheme/View/__tests__/ServizioUlterioriInformazioni.test.jsx +240 -286
  97. package/src/components/ItaliaTheme/View/__tests__/ServizioView.test.jsx +470 -560
  98. package/src/components/ItaliaTheme/View/__tests__/TrasparenzaView.test.jsx +12 -1
  99. package/src/components/ItaliaTheme/manage/Widgets/ColorListWidget.jsx +11 -2
  100. package/src/components/ItaliaTheme/manage/Widgets/HtmlSlateWidget.jsx +154 -0
  101. package/src/components/ItaliaTheme/manage/Widgets/RichTextWidget.jsx +88 -0
  102. package/src/components/ItaliaTheme/manage/Widgets/SimpleTextEditorWidget.jsx +158 -0
  103. package/src/components/ItaliaTheme/manage/Widgets/TextEditorWidget.jsx +167 -270
  104. package/src/config/Blocks/ListingOptions/index.js +0 -1
  105. package/src/config/Blocks/ListingOptions/utils.js +0 -7
  106. package/src/config/Blocks/blocks.js +29 -8
  107. package/src/config/Blocks/listingVariations.js +1 -1
  108. package/src/config/Slate/Alignment/AlignMenu.jsx +169 -0
  109. package/src/config/Slate/Alignment/index.js +42 -0
  110. package/src/config/Slate/Blockquote/BlockquoteMenu.jsx +151 -0
  111. package/src/config/Slate/Blockquote/index.js +12 -0
  112. package/src/config/Slate/Headings/HeadingsMenu.jsx +139 -0
  113. package/src/config/Slate/Headings/headingsMenu.scss +44 -0
  114. package/src/config/Slate/Headings/index.js +62 -0
  115. package/src/config/Slate/Link/deserializer.js +25 -0
  116. package/src/config/Slate/Link/index.js +126 -0
  117. package/src/config/Slate/Link/renderer.jsx +99 -0
  118. package/src/config/Slate/LinkButton/index.js +47 -0
  119. package/src/config/Slate/TextLarger/index.js +51 -0
  120. package/src/config/Slate/Underline/index.js +10 -0
  121. package/src/config/Slate/config.js +43 -0
  122. package/src/config/Slate/deserializers.js +66 -0
  123. package/src/config/Slate/dropdownStyle.scss +14 -0
  124. package/src/config/Slate/dropdownUtils.js +422 -0
  125. package/src/config/Slate/extensions/breakList.js +91 -0
  126. package/src/config/Slate/handlers.js +243 -0
  127. package/src/config/Slate/utils.js +73 -0
  128. package/src/config/Widgets/widgets.js +1 -2
  129. package/src/config/italiaConfig.js +7 -54
  130. package/src/customizations/volto/components/manage/AnchorPlugin/components/LinkButton/AddLinkForm.jsx +360 -0
  131. package/src/customizations/volto/components/manage/Blocks/HeroImageLeft/Edit.jsx +75 -200
  132. package/src/customizations/volto/components/manage/Blocks/Video/Edit.jsx +1 -1
  133. package/src/customizations/volto/components/manage/Form/BlocksToolbar.jsx +1 -1
  134. package/src/customizations/volto/components/manage/UniversalLink/UniversalLink.jsx +59 -6
  135. package/src/customizations/volto-form-block/components/Field.jsx +45 -22
  136. package/src/customizations/volto-form-block/components/FormResult.jsx +74 -0
  137. package/src/customizations/volto-form-block/components/FormView.jsx +79 -66
  138. package/src/customizations/volto-form-block/components/Widget/Button.jsx +50 -0
  139. package/src/helpers/EnhanceLink.js +44 -0
  140. package/src/helpers/FormValidation/FormValidationHelpers.js +3 -0
  141. package/src/helpers/blocks.js +86 -0
  142. package/src/helpers/files.js +14 -14
  143. package/src/helpers/index.js +4 -3
  144. package/src/helpers/richTextHelper.js +10 -0
  145. package/src/icons/Group.svg +1 -0
  146. package/src/icons/blocco-icone.svg +0 -3
  147. package/src/icons/blockquote-card-dark.svg +1 -0
  148. package/src/icons/blockquote-card.svg +1 -0
  149. package/src/icons/blockquote-simple.svg +1 -0
  150. package/src/icons/text-larger.svg +1 -0
  151. package/src/theme/ItaliaTheme/Blocks/_accordion.scss +1 -10
  152. package/src/theme/ItaliaTheme/Blocks/_alert.scss +53 -1
  153. package/src/theme/ItaliaTheme/Blocks/_bandiInEvidenceTemplate.scss +1 -0
  154. package/src/theme/ItaliaTheme/Blocks/_callout.scss +32 -0
  155. package/src/theme/ItaliaTheme/Blocks/_contacts.scss +15 -32
  156. package/src/theme/ItaliaTheme/Blocks/_ctaBlock.scss +0 -14
  157. package/src/theme/ItaliaTheme/Blocks/_gridBlock.scss +1 -1
  158. package/src/theme/ItaliaTheme/Blocks/_hero.scss +1 -8
  159. package/src/theme/ItaliaTheme/Blocks/_iconBlocks.scss +0 -30
  160. package/src/theme/ItaliaTheme/Blocks/_imageCardTextBlock.scss +3 -2
  161. package/src/theme/ItaliaTheme/Blocks/_numbers.scss +1 -5
  162. package/src/theme/ItaliaTheme/Blocks/_simpleCardTextBlock.scss +8 -2
  163. package/src/theme/ItaliaTheme/Blocks/_tableOfContents.scss +1 -0
  164. package/src/theme/ItaliaTheme/Components/_megamenu.scss +0 -4
  165. package/src/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_cta.scss +1 -0
  166. package/src/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_searchSections.scss +1 -0
  167. package/src/theme/ItaliaTheme/Subsites/bootstrap-italia/custom/_headercenter.scss +1 -0
  168. package/src/theme/ItaliaTheme/Views/_cartellaModulistica.scss +11 -2
  169. package/src/theme/ItaliaTheme/Views/_slider.scss +3 -3
  170. package/src/theme/ItaliaTheme/Widgets/_iconWidget.scss +4 -0
  171. package/src/theme/ItaliaTheme/_main.scss +42 -54
  172. package/src/theme/_cms-ui.scss +59 -161
  173. package/src/theme/extras/_forms.scss +2 -14
  174. package/src/theme/site.scss +1 -0
  175. package/test-setup-config.js +58 -0
  176. package/src/components/ItaliaTheme/Blocks/TextCard/SimpleCard/Block.jsx +0 -151
  177. package/src/config/RichTextEditor/LinkEntity.jsx +0 -27
  178. package/src/config/RichTextEditor/Plugins/AnchorPlugin/components/Link/index.jsx +0 -44
  179. package/src/config/RichTextEditor/Plugins/AnchorPlugin/components/LinkButton/AddLinkForm.jsx +0 -349
  180. package/src/config/RichTextEditor/Plugins/AnchorPlugin/components/LinkButton/index.js +0 -150
  181. package/src/config/RichTextEditor/Plugins/AnchorPlugin/index.js +0 -88
  182. package/src/config/RichTextEditor/ToolbarButtons/AlignButton.jsx +0 -61
  183. package/src/config/RichTextEditor/ToolbarButtons/ButtonsButton.jsx +0 -14
  184. package/src/config/RichTextEditor/ToolbarButtons/CalloutsButton.jsx +0 -38
  185. package/src/config/RichTextEditor/ToolbarButtons/DraftJsDropdownButton.jsx +0 -106
  186. package/src/config/RichTextEditor/ToolbarButtons/HeadingsButton.jsx +0 -57
  187. package/src/config/RichTextEditor/ToolbarButtons/TextSizeButton.jsx +0 -65
  188. package/src/config/RichTextEditor/ToolbarButtons/UnderlineButton.jsx +0 -14
  189. package/src/config/RichTextEditor/config.js +0 -253
  190. package/src/config/volto-gdpr-privacy-defaultPanelConfig.js +0 -292
  191. package/src/customizations/volto/components/manage/Blocks/ToC/View.jsx +0 -134
  192. package/src/customizations/volto/components/manage/Blocks/ToC/variations/DefaultTocRenderer.jsx +0 -99
  193. package/src/customizations/volto/config/RichTextEditor/Plugins.jsx +0 -63
  194. package/src/helpers/redraftHelper.js +0 -9
@@ -1,3 +1,28 @@
1
+ .alert-colors-widget {
2
+ .color-list-widget {
3
+ .ui.button.info {
4
+ &,
5
+ &.active {
6
+ background-color: $alert-info;
7
+ }
8
+ }
9
+
10
+ .ui.button.warning {
11
+ &,
12
+ &.active {
13
+ background-color: $alert-warning;
14
+ }
15
+ }
16
+
17
+ .ui.button.danger {
18
+ &,
19
+ &.active {
20
+ background-color: $alert-danger;
21
+ }
22
+ }
23
+ }
24
+ }
25
+
1
26
  .public-ui {
2
27
  .block.alertblock,
3
28
  .alertblock {
@@ -5,7 +30,7 @@
5
30
  height: auto;
6
31
  }
7
32
 
8
- .draftjs-buttons a {
33
+ a.btn.btn-primary.inline-link {
9
34
  background-color: $white;
10
35
  color: $body-color;
11
36
 
@@ -19,6 +44,15 @@
19
44
  background-color: $alert-danger;
20
45
  color: $alert-danger-text;
21
46
 
47
+ h1,
48
+ h2,
49
+ h3,
50
+ h4,
51
+ h5,
52
+ h6 {
53
+ color: $alert-danger-text;
54
+ }
55
+
22
56
  a {
23
57
  color: $alert-danger-text;
24
58
  }
@@ -28,6 +62,15 @@
28
62
  background-color: $alert-warning;
29
63
  color: $alert-warning-text;
30
64
 
65
+ h1,
66
+ h2,
67
+ h3,
68
+ h4,
69
+ h5,
70
+ h6 {
71
+ color: $alert-warning-text;
72
+ }
73
+
31
74
  a {
32
75
  color: $alert-warning-text;
33
76
  }
@@ -37,6 +80,15 @@
37
80
  background-color: $alert-info;
38
81
  color: $alert-info-text;
39
82
 
83
+ h1,
84
+ h2,
85
+ h3,
86
+ h4,
87
+ h5,
88
+ h6 {
89
+ color: $alert-info-text;
90
+ }
91
+
40
92
  a {
41
93
  color: $alert-info-text;
42
94
  }
@@ -21,6 +21,7 @@
21
21
 
22
22
  .listing-item {
23
23
  align-items: normal;
24
+
24
25
  .card-body {
25
26
  display: flex;
26
27
  flex-direction: column;
@@ -0,0 +1,32 @@
1
+ body.cms-ui {
2
+ .block-editor-callout_block {
3
+ .public-ui {
4
+ .callout {
5
+ .callout-title {
6
+ display: flex;
7
+
8
+ .icon {
9
+ max-width: 32px;
10
+ flex: 1 0 100%;
11
+ }
12
+
13
+ .text {
14
+ padding-right: calc(10px + 0.7rem);
15
+ background-color: #fff;
16
+
17
+ &:after {
18
+ z-index: -1;
19
+ }
20
+ }
21
+ }
22
+
23
+ p {
24
+ &,
25
+ * {
26
+ font-family: 'Lora', Georgia, serif !important; //as bootstrap-italia says
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
32
+ }
@@ -54,17 +54,6 @@
54
54
  font-weight: bold;
55
55
  line-height: 3rem;
56
56
  text-align: center;
57
-
58
- .DraftEditor-root {
59
- .public-DraftEditor-content {
60
- text-align: center;
61
- }
62
-
63
- .public-DraftEditorPlaceholder-root {
64
- width: 100%;
65
- text-align: center;
66
- }
67
- }
68
57
  }
69
58
 
70
59
  .description {
@@ -72,17 +61,6 @@
72
61
 
73
62
  line-height: 1.65em;
74
63
  text-align: center;
75
-
76
- .DraftEditor-root {
77
- .public-DraftEditor-content {
78
- text-align: center;
79
- }
80
-
81
- .public-DraftEditorPlaceholder-root {
82
- width: 100%;
83
- text-align: center;
84
- }
85
- }
86
64
  }
87
65
  }
88
66
 
@@ -115,10 +93,15 @@
115
93
  font-size: 1.35rem;
116
94
  font-weight: bold;
117
95
  line-height: 1.4em;
96
+
97
+ margin-bottom: 1rem;
118
98
  }
119
99
 
120
100
  .contact-text {
121
101
  font-size: 0.9rem;
102
+ .detached-slate-editor {
103
+ margin-bottom: 1rem;
104
+ }
122
105
  }
123
106
 
124
107
  .contact-info {
@@ -136,9 +119,19 @@
136
119
  margin-bottom: 1rem;
137
120
  }
138
121
 
122
+ [role='textbox'] {
123
+ //slate editor
124
+ width: 100%;
125
+ &[data-slate-editor='true'] {
126
+ min-height: 1em;
127
+ }
128
+ }
129
+
139
130
  .icon-wrapper {
140
131
  margin-top: 0.2rem;
141
132
  margin-right: 1rem;
133
+ display: flex;
134
+ align-items: center;
142
135
  }
143
136
 
144
137
  .tel {
@@ -154,10 +147,6 @@
154
147
  flex: 1 1 auto;
155
148
  word-break: break-word;
156
149
 
157
- .DraftEditor-editorContainer {
158
- line-height: 1.48em;
159
- }
160
-
161
150
  p {
162
151
  line-height: 1.48em;
163
152
 
@@ -166,12 +155,6 @@
166
155
  }
167
156
  }
168
157
  }
169
-
170
- .public-DraftStyleDefault-block {
171
- &:last-of-type {
172
- margin-bottom: 0;
173
- }
174
- }
175
158
  }
176
159
  }
177
160
 
@@ -56,20 +56,6 @@
56
56
  }
57
57
  }
58
58
 
59
- /* EDIT */
60
- .cta_title,
61
- .cta_content {
62
- .public-DraftEditor-content,
63
- .public-DraftStyleDefault-block {
64
- text-align: center;
65
- }
66
-
67
- .public-DraftEditorPlaceholder-root {
68
- width: 100%;
69
- text-align: center;
70
- }
71
- }
72
-
73
59
  &.has-image {
74
60
  position: relative;
75
61
  display: block;
@@ -57,7 +57,7 @@
57
57
  //in edit (cms-ui)
58
58
  .gridBlock-container {
59
59
  position: relative;
60
- max-width: 1320px;
60
+ max-width: 1127px;
61
61
  padding: 0 4px;
62
62
  margin: auto;
63
63
 
@@ -8,6 +8,7 @@
8
8
 
9
9
  .block-inner-wrapper {
10
10
  align-items: stretch;
11
+ z-index: 0;
11
12
  }
12
13
 
13
14
  .hero-image {
@@ -42,14 +43,6 @@
42
43
  p {
43
44
  max-height: unset;
44
45
  }
45
-
46
- .edit-title {
47
- .public-DraftEditorPlaceholder-inner {
48
- font-size: $h1-font-size;
49
- font-weight: bold;
50
- line-height: 1.25;
51
- }
52
- }
53
46
  }
54
47
 
55
48
  .stores-buttons {
@@ -66,17 +66,6 @@
66
66
  font-weight: bold;
67
67
  line-height: 3rem;
68
68
  text-align: center;
69
-
70
- .DraftEditor-root {
71
- .public-DraftEditor-content {
72
- text-align: center;
73
- }
74
-
75
- .public-DraftEditorPlaceholder-root {
76
- width: 100%;
77
- text-align: center;
78
- }
79
- }
80
69
  }
81
70
 
82
71
  .description {
@@ -94,17 +83,6 @@
94
83
  a {
95
84
  color: #fff;
96
85
  }
97
-
98
- .DraftEditor-root {
99
- .public-DraftEditor-content {
100
- text-align: center;
101
- }
102
-
103
- .public-DraftEditorPlaceholder-root {
104
- width: 100%;
105
- text-align: center;
106
- }
107
- }
108
86
  }
109
87
  }
110
88
 
@@ -197,18 +175,10 @@
197
175
  font-weight: bold;
198
176
  line-height: 1.8rem;
199
177
  text-align: center;
200
-
201
- .public-DraftEditor-content {
202
- text-align: center;
203
- }
204
178
  }
205
179
 
206
180
  .iconblock-text {
207
181
  text-align: center;
208
-
209
- .public-DraftEditor-content {
210
- text-align: center;
211
- }
212
182
  }
213
183
 
214
184
  a.read-more {
@@ -2,9 +2,10 @@
2
2
  .card {
3
3
  .card-body {
4
4
  .card-text {
5
- .DraftEditor-root * {
5
+ .slate-editor * {
6
+ line-height: 1.5em;
6
7
  font-family: 'Lora, Georgia, serif';
7
- font-size: 0.875rem;
8
+ font-size: 1.1rem;
8
9
  }
9
10
  }
10
11
  }
@@ -88,11 +88,7 @@
88
88
  font-weight: 500;
89
89
  line-height: 1em;
90
90
 
91
- .DraftEditor-root
92
- .DraftEditor-editorContainer
93
- .public-DraftEditor-content
94
- span,
95
- .public-DraftEditorPlaceholder-root .public-DraftEditorPlaceholder-inner {
91
+ .simple-text-editor-widget {
96
92
  font-family: $font-family-monospace !important;
97
93
  }
98
94
  }
@@ -1,10 +1,16 @@
1
1
  .block.simple-text-block {
2
2
  .card {
3
3
  .card-body {
4
+ .card-title {
5
+ .simple-text-editor-widget {
6
+ font-weight: 600;
7
+ }
8
+ }
4
9
  .card-text {
5
- .DraftEditor-root * {
10
+ .slate-editor * {
6
11
  font-family: 'Lora, Georgia, serif';
7
- font-size: 0.875rem;
12
+ line-height: 1.5em;
13
+ font-size: 1.1rem;
8
14
  }
9
15
  }
10
16
  }
@@ -40,6 +40,7 @@ $space-left: 1rem;
40
40
  margin-top: 0.5rem;
41
41
  font-size: 1rem;
42
42
  font-weight: 600;
43
+ width: 100%;
43
44
 
44
45
  &::before {
45
46
  position: absolute;
@@ -25,10 +25,6 @@
25
25
  }
26
26
  }
27
27
 
28
- .DraftEditor-root {
29
- padding: 0.5rem 1rem;
30
- }
31
-
32
28
  .category-top {
33
29
  display: flex;
34
30
  flex-wrap: wrap;
@@ -14,6 +14,7 @@
14
14
  }
15
15
  }
16
16
  }
17
+
17
18
  .cms-ui .cta-block a {
18
19
  color: $subsite-secondary-text;
19
20
  }
@@ -100,6 +100,7 @@
100
100
  }
101
101
  }
102
102
 
103
+ .date-filter,
103
104
  &.date-filter {
104
105
  .DateRangePickerInput {
105
106
  .DateInput_input {
@@ -87,6 +87,7 @@
87
87
  a {
88
88
  &.rounded-icon {
89
89
  background-color: $subsite-primary-text;
90
+
90
91
  svg {
91
92
  @if $subsite-light-theme {
92
93
  color: color-contrast($subsite-primary-text);
@@ -48,9 +48,11 @@ $docs-section-margin: 3em;
48
48
  justify-content: space-between;
49
49
  padding: 0.4em 0;
50
50
  gap: 4rem;
51
+
51
52
  .title {
52
53
  flex: 1;
53
54
  }
55
+
54
56
  .title-wrap {
55
57
  flex: 1;
56
58
 
@@ -77,7 +79,8 @@ $docs-section-margin: 3em;
77
79
  justify-content: center;
78
80
 
79
81
  a {
80
- width: 2.4em;
82
+ // width: 2.4em;
83
+ margin-left: 0.5rem;
81
84
  text-align: center;
82
85
 
83
86
  svg {
@@ -85,6 +88,10 @@ $docs-section-margin: 3em;
85
88
  height: 1.4rem !important;
86
89
  font-size: 1.3em;
87
90
  }
91
+
92
+ .enhance-link {
93
+ font-size: 0.8rem;
94
+ }
88
95
  }
89
96
  }
90
97
 
@@ -188,10 +195,12 @@ $docs-section-margin: 3em;
188
195
  flex-direction: column;
189
196
  align-items: flex-start;
190
197
  justify-content: center;
198
+
191
199
  .downloads {
192
200
  width: 100%;
193
201
  }
194
202
  }
203
+
195
204
  .doc {
196
205
  flex-wrap: wrap;
197
206
  align-items: center;
@@ -220,8 +229,8 @@ $docs-section-margin: 3em;
220
229
  }
221
230
 
222
231
  &.modulo {
223
- justify-content: space-between;
224
232
  flex-wrap: nowrap;
233
+ justify-content: space-between;
225
234
 
226
235
  .title,
227
236
  .downloads {
@@ -9,14 +9,14 @@
9
9
  }
10
10
 
11
11
  .it-single-slide-wrapper {
12
- &:focus {
13
- border: 1px solid;
14
- }
15
12
  figure {
16
13
  a {
17
14
  display: block;
18
15
  }
19
16
  }
17
+ .enhance-link {
18
+ display: none;
19
+ }
20
20
  }
21
21
 
22
22
  .no-external-if-link > .external-link {
@@ -3,6 +3,10 @@
3
3
  font-size: 40px;
4
4
  }
5
5
 
6
+ .show-icon-italia {
7
+ height: 2rem;
8
+ }
9
+
6
10
  .icon-container {
7
11
  width: 15px;
8
12
  }
@@ -80,20 +80,25 @@ iframe {
80
80
 
81
81
  .public-ui,
82
82
  .cms-ui {
83
- blockquote {
84
- position: relative;
85
- margin: 1.5rem 2rem;
86
- font-family: $font-family-serif;
83
+ blockquote,
84
+ .blockquote {
85
+ display: flow-root; //serve per quando i blockquote sono affiancati alle immagini allineate a dx o sx
86
+ border-color: $primary !important;
87
+
88
+ ul:first-child,
89
+ ol:first-child {
90
+ margin-top: 0;
91
+ }
87
92
 
88
- &:before {
89
- position: absolute;
90
- top: -1.8rem;
91
- left: -2rem;
92
- display: block;
93
- height: 0;
94
- color: $neutral-2-b2;
95
- content: '“';
96
- font-size: 400%;
93
+ ul:last-child,
94
+ ol:last-child {
95
+ margin-bottom: 0;
96
+ }
97
+
98
+ &.dark {
99
+ a {
100
+ color: $primary-text;
101
+ }
97
102
  }
98
103
  }
99
104
 
@@ -109,63 +114,46 @@ iframe {
109
114
  }
110
115
  }
111
116
 
112
- .callout-bg {
113
- padding: 1.25rem;
114
- margin: 1.25rem 0;
115
- background-color: $primary-c1;
116
-
117
- p,
118
- .public-DraftStyleDefault-block {
119
- &:last-of-type {
120
- margin-bottom: 0;
121
- }
122
- }
117
+ .text-larger {
118
+ //.text-larger: stile applicabile da editor Slate
119
+ font-size: 1.75em;
123
120
  }
121
+ }
124
122
 
125
- .draftjs-text-smaller {
126
- font-size: 0.75em;
127
- }
123
+ //slate LINK
124
+ // .inline-link {
125
+ // margin-left: 0.5rem;
126
+ // margin-right: 0.5rem;
127
+ // }
128
128
 
129
- .draftjs-text-larger {
130
- font-size: 1.75em;
131
- }
129
+ .slate-editor-link {
130
+ clear: both;
132
131
 
133
- .draftjs-buttons {
132
+ &.btn {
133
+ display: inline-block;
134
+ padding: 12px 24px;
135
+ border-radius: $btn-border-radius;
134
136
  margin: 0;
135
- clear: both;
137
+ font-weight: 600;
138
+ text-align: center;
139
+ text-decoration: none;
136
140
 
137
- a {
138
- display: inline-block;
139
- padding: 1em 2em;
140
- border-radius: $btn-border-radius;
141
- margin: 0.5em 1em 0.5em 0;
141
+ &:hover,
142
+ &:active {
143
+ font-weight: 600;
144
+ }
145
+
146
+ &.btn-primary {
142
147
  background-color: $primary;
143
148
  color: $primary-text;
144
- font-weight: 700;
145
- text-align: center;
146
- text-decoration: none;
147
149
 
148
150
  &:hover,
149
151
  &:active {
150
152
  background-color: darken($primary, 8);
151
153
  color: $primary-text;
152
- font-weight: 700;
153
154
  }
154
155
  }
155
156
  }
156
-
157
- div[class^='draftJsToolbar__toolbar__'] {
158
- line-height: 1rem;
159
-
160
- .icon {
161
- font-size: 1rem;
162
- }
163
-
164
- .ui.input > input {
165
- height: auto;
166
- font-size: 0.8rem;
167
- }
168
- }
169
157
  }
170
158
 
171
159
  #text-body {