lato_cms 3.3.3 → 3.3.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98702b2318fec6825561794202027f26da6e3ef8b605b8575aaea4e6f41a4611
4
- data.tar.gz: 214e49d8d9f20b5b832e825e9736ec411c7326b5dfeab542c6e5fbdf3d367698
3
+ metadata.gz: 7a35de5b4390aeb2fa2124719502e44c93735facfaa0170dc135224597f0360d
4
+ data.tar.gz: 14130de771f74326f7860890a4e1613435650dc1dbd1c74dd9ba63780b6bcfbc
5
5
  SHA512:
6
- metadata.gz: f8c8e287a719b2444120ccabb14fddbeef6f8a0f7f1b8b0a69a4e366ab7e5f24161c408f5dc1ad18227d79acfa383daa52077ca05f69115e5adf6316596aa142
7
- data.tar.gz: 2b4cce8d2e5d2be235d70c2812313f76d554e892677e8bb11f1732c2caef458c8f9940caa7ec72f9bb54306b9bfb2f4f694c91287102722bd67a91b677c96ee9
6
+ metadata.gz: 4d4bf488370c709556ae1ad3b7e5523ae6058574192fb2aee81d34f2e64c68de74f6ac96e662ec851f3bcad0119b233b3876bcca3d2bb218e447b6a9690ad910
7
+ data.tar.gz: 792918eefe3aa9d8c5019c3db64bc5d2c204efe8637781275193ed27dcfd76624f72f5405cb3324385538355b7f3f9a6f392c9dbd1c248cdd83c1aaf5173e4aa
@@ -68,6 +68,43 @@ body.controller-pages.action-show {
68
68
  }
69
69
  }
70
70
 
71
+ // Mobile/tablet: two fixed columns don't fit, so preview and editor become
72
+ // full-width stacked layers. The editor sits on top (pages must be editable by
73
+ // default) and the existing sidebar toggle slides it away to reveal the preview.
74
+ @media (max-width: 991.98px) {
75
+ .lato-cms-advanced-editor__row--active {
76
+ position: fixed;
77
+
78
+ > .lato-cms-advanced-editor__preview-col {
79
+ position: absolute;
80
+ inset: 0;
81
+ }
82
+
83
+ > .lato-cms-advanced-editor__editor-col {
84
+ position: absolute;
85
+ inset: 0;
86
+ flex: none;
87
+ width: 100%;
88
+
89
+ > .card {
90
+ border-left: none !important;
91
+ }
92
+
93
+ // Single-panel layout: collapsing means swapping to the preview, not
94
+ // shrinking a column next to it.
95
+ &.lato-cms-advanced-editor__editor-col--collapsed {
96
+ display: none;
97
+ }
98
+ }
99
+
100
+ // Toolbars hold many controls: let them wrap instead of overflowing.
101
+ .card-header {
102
+ flex-wrap: wrap;
103
+ row-gap: 0.5rem;
104
+ }
105
+ }
106
+ }
107
+
71
108
  // Tab to re-open the sidebar when collapsed
72
109
  .lato-cms-advanced-editor__reopen-btn {
73
110
  position: fixed;
@@ -318,6 +355,19 @@ body.controller-pages.action-show {
318
355
  pointer-events: auto;
319
356
  }
320
357
 
358
+ // Touch devices have no hover: reveal the name overlay and the remove button
359
+ // permanently, otherwise media can be seen but never removed on a phone.
360
+ @media (hover: none) {
361
+ .lato-cms-media-field__overlay {
362
+ opacity: 1;
363
+ }
364
+
365
+ .lato-cms-media-field__remove {
366
+ opacity: 1;
367
+ pointer-events: auto;
368
+ }
369
+ }
370
+
321
371
  // Add tile: dashed placeholder, both the empty state and the "add more" affordance.
322
372
  .lato-cms-media-field__tile--add {
323
373
  align-items: center;
@@ -1,3 +1,3 @@
1
1
  module LatoCms
2
- VERSION = "3.3.3"
2
+ VERSION = "3.3.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.3
4
+ version: 3.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante