design-comuni-plone-theme 12.1.1 → 12.1.2

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.
Binary file
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [12.1.2](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.1.1...v12.1.2) (2025-05-07)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * full width and center alignment of video block ([#941](https://github.com/RedTurtle/design-comuni-plone-theme/issues/941)) ([51b57da](https://github.com/RedTurtle/design-comuni-plone-theme/commit/51b57dac7fb120b29541a3c0261a3ec37397325e))
9
+ * mobile style of callout block ([#944](https://github.com/RedTurtle/design-comuni-plone-theme/issues/944)) ([dcf13fa](https://github.com/RedTurtle/design-comuni-plone-theme/commit/dcf13faaa6617ef8b654ddc3a3f3026c0f805217))
10
+ * multiple location condition in query widget ([#943](https://github.com/RedTurtle/design-comuni-plone-theme/issues/943)) ([8177214](https://github.com/RedTurtle/design-comuni-plone-theme/commit/8177214242124f8e7ebe2413d39085a5a5d293f7))
11
+ * small blocks links image height ([#940](https://github.com/RedTurtle/design-comuni-plone-theme/issues/940)) ([37f3f4c](https://github.com/RedTurtle/design-comuni-plone-theme/commit/37f3f4c6edc604d0b35dc01d895b71997a671b3e))
12
+
13
+
14
+ ### Documentation
15
+
16
+ * updated publiccode and release log ([fe19c88](https://github.com/RedTurtle/design-comuni-plone-theme/commit/fe19c887770a07d86b1d1e86aa7a3eec0eea0143))
17
+
3
18
  ## [12.1.1](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.1.0...v12.1.1) (2025-04-14)
4
19
 
5
20
 
package/RELEASE.md CHANGED
@@ -41,6 +41,14 @@
41
41
  - ...
42
42
  -->
43
43
 
44
+ ## Versione 12.1.2 (07/05/2025)
45
+
46
+ ### Fix
47
+
48
+ - L'altezza delle immagini all'interno del blocco "link solo immagini" è stata aumentata e non ha più un limite massimo. Ora tutte le card avranno la stessa altezza.
49
+ - Sistemato stile del blocco callout per la versione mobile.
50
+ - Sistemati i formati "A pieno schermo" e "Allineamento al centro" del blocco Video, l"immagine in anteprima dava problemi nella visualizzazione di video di Youtube.
51
+
44
52
  ## Versione 12.1.1 (14/04/2025)
45
53
 
46
54
  ### Fix
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": "12.1.1",
5
+ "version": "12.1.2",
6
6
  "main": "src/index.js",
7
7
  "repository": {
8
8
  "type": "git",
@@ -156,7 +156,7 @@
156
156
  "volto-gdpr-privacy": "2.2.12",
157
157
  "volto-google-analytics": "2.0.0",
158
158
  "volto-multilingual-widget": "3.2.1",
159
- "volto-querywidget-with-browser": "0.4.2",
159
+ "volto-querywidget-with-browser": "0.4.4",
160
160
  "volto-rss-block": "3.0.0",
161
161
  "volto-secondarymenu": "4.1.1",
162
162
  "volto-site-settings": "0.4.4",
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: '2025-04-14'
230
+ releaseDate: '2025-05-07'
231
231
  softwareType: standalone/web
232
- softwareVersion: 12.1.1
232
+ softwareVersion: 12.1.2
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -66,6 +66,7 @@ const Edit = (props) => {
66
66
  onSelectBlock={onSelectBlock}
67
67
  />
68
68
  </div>
69
+ {data.style !== 'highlight' && <div className="text-line"></div>}
69
70
  </CalloutTitle>
70
71
  <CalloutText>
71
72
  <TextEditorWidget
@@ -25,6 +25,7 @@ const View = ({ data, id }) => {
25
25
  <CalloutTitle>
26
26
  {data.icon && <Icon icon={data.icon} padding={false} aria-hidden />}
27
27
  <span className="text">{data.title}</span>
28
+ {data.style !== 'highlight' && <span className="text-line"></span>}
28
29
  </CalloutTitle>
29
30
  <CalloutText>
30
31
  <TextBlockView id={id} data={{ value: data.text }} />
@@ -9,7 +9,7 @@
9
9
  position: relative;
10
10
  display: flex;
11
11
  overflow: hidden;
12
- height: 100px;
12
+ height: 100%;
13
13
  align-items: center;
14
14
  justify-content: center;
15
15
  border: 8px solid $white;
@@ -1,46 +1,74 @@
1
1
  .block.video {
2
- .ui.embed {
3
- position: relative;
2
+ .video-inner {
3
+ > div {
4
+ position: relative;
5
+ overflow: hidden;
6
+ max-width: 100%;
7
+ height: 0;
8
+ padding-bottom: 56.25%;
9
+
10
+ .icon-play {
11
+ position: absolute;
12
+ z-index: 2;
13
+ top: 50%;
14
+ left: 50%;
15
+ width: 4rem;
16
+ height: 2.6rem;
17
+ border-radius: 15px;
18
+ background-color: rgba(0, 0, 0, 0.7);
19
+ color: $white;
20
+ cursor: pointer;
21
+ line-height: 2.6rem;
22
+ text-align: center;
23
+ transform: translateX(-50%) translateY(-50%);
24
+ }
25
+ }
26
+
27
+ .ui.embed.active {
28
+ .icon-play,
29
+ img.placeholder {
30
+ display: none;
31
+ }
32
+ }
4
33
 
5
34
  img.placeholder {
6
35
  position: absolute;
7
36
  top: 50%;
8
37
  left: 0;
9
38
  width: 100%;
39
+ min-width: 100%;
40
+ height: unset;
41
+ min-height: 100%;
42
+ object-fit: cover;
10
43
  transform: translateY(-50%);
11
44
  }
45
+ }
12
46
 
13
- .icon-play {
14
- position: absolute;
15
- z-index: 2;
16
- top: 50%;
17
- left: 50%;
18
- width: 4rem;
19
- height: 2.6rem;
20
- border-radius: 15px;
21
- background-color: rgba(0, 0, 0, 0.7);
22
- color: $white;
23
- cursor: pointer;
24
- line-height: 2.6rem;
25
- text-align: center;
26
- transform: translateX(-50%) translateY(-50%);
47
+ .ui.embed img.placeholder {
48
+ cursor: pointer;
49
+ }
27
50
 
28
- svg {
29
- width: 1.2rem;
30
- height: 1.2rem;
31
- }
51
+ &.full {
52
+ .video-inner.full-width > div {
53
+ height: 100%;
54
+ padding-bottom: 0;
55
+ }
56
+ }
32
57
 
33
- &:hover,
34
- &:active,
35
- &:focus {
36
- background-color: $primary;
37
- color: $primary-text;
58
+ @media (max-width: #{map-get($grid-breakpoints, md)}) {
59
+ &.align.right,
60
+ &.align.left {
61
+ .video-inner {
62
+ width: 100%;
63
+ margin-right: 0 !important;
64
+ margin-left: 0 !important;
65
+ float: unset;
38
66
  }
39
- }
40
67
 
41
- &.active {
42
- .icon-play {
43
- display: none;
68
+ img {
69
+ margin-right: 0 !important;
70
+ margin-left: 0 !important;
71
+ float: unset;
44
72
  }
45
73
  }
46
74
  }
@@ -1,8 +1,61 @@
1
1
  div.callout {
2
2
  max-width: none;
3
- padding: 0; //override volto's style
3
+ padding: 0; // override volto's style
4
4
  border: none;
5
5
  border-radius: unset;
6
6
  margin: 0;
7
7
  box-shadow: none;
8
+
9
+ .callout-title {
10
+ display: flex;
11
+ width: calc(100% + 1.389rem * 2 + 1.4rem); // padding + icon
12
+ margin-right: 0;
13
+
14
+ svg.icon {
15
+ min-width: 1.4rem;
16
+ }
17
+
18
+ .text {
19
+ width: auto;
20
+ padding-right: 1rem;
21
+
22
+ &::after {
23
+ display: none;
24
+ }
25
+ }
26
+
27
+ .text-line {
28
+ position: relative;
29
+ top: 0.8rem;
30
+ width: 100%;
31
+ min-width: 3rem;
32
+ height: 2px;
33
+ flex: 1;
34
+ background-color: $color-border-secondary;
35
+ }
36
+ }
37
+
38
+ &.danger {
39
+ .text-line {
40
+ background-color: $danger;
41
+ }
42
+ }
43
+
44
+ &.success {
45
+ .text-line {
46
+ background-color: $success;
47
+ }
48
+ }
49
+
50
+ &.warning {
51
+ .text-line {
52
+ background-color: $warning;
53
+ }
54
+ }
55
+
56
+ &.note {
57
+ .text-line {
58
+ background-color: $primary;
59
+ }
60
+ }
8
61
  }