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 +4 -4
- data/app/assets/stylesheets/lato_cms/application.scss +50 -0
- data/lib/lato_cms/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7a35de5b4390aeb2fa2124719502e44c93735facfaa0170dc135224597f0360d
|
|
4
|
+
data.tar.gz: 14130de771f74326f7860890a4e1613435650dc1dbd1c74dd9ba63780b6bcfbc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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;
|
data/lib/lato_cms/version.rb
CHANGED