@seliseblocks/mailcraft 0.2.3 → 0.2.5
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/package.json
CHANGED
package/src/render/fields.js
CHANGED
|
@@ -489,7 +489,12 @@ export function renderField(f) {
|
|
|
489
489
|
const value = el('output', { minWidth: '58px', height: '25px', padding: '0 8px', boxSizing: 'border-box', display: 'flex', alignItems: 'center', justifyContent: 'center', border: '1px solid var(--ed-line)', borderRadius: '7px', background: 'var(--ed-panel-2)', color: 'var(--ed-accent)', fontFamily: 'var(--ed-font)', fontSize: '11.5px', fontWeight: '600', whiteSpace: 'nowrap' }, { 'aria-live': 'polite' });
|
|
490
490
|
head.appendChild(value);
|
|
491
491
|
const holder = el('div', { padding: '11px 0 4px' });
|
|
492
|
-
|
|
492
|
+
// `dir=ltr` pins the track like every value-shaped inspector field: under
|
|
493
|
+
// an RTL locale the native input mirrors itself (thumb measured from the
|
|
494
|
+
// right) while the painted fill below stays a left-anchored gradient, so
|
|
495
|
+
// the two showed opposite ends of the range. Pinned, thumb, fill and
|
|
496
|
+
// drag direction always agree.
|
|
497
|
+
const input = el('input', { width: '100%', margin: '0', display: 'block', boxSizing: 'border-box' }, { type: 'range', min: f.min, max: f.max, step: f.step, class: 'mc-slider', 'aria-label': f.label, 'data-focus-key': `f${f.key}`, dir: 'ltr' });
|
|
493
498
|
input.value = f.value;
|
|
494
499
|
const place = () => {
|
|
495
500
|
const pct = (input.value - f.min) / (f.max - f.min || 1);
|
package/src/render/style.js
CHANGED
|
@@ -287,7 +287,12 @@ export const STYLE = `
|
|
|
287
287
|
#mc .mc-workspace [data-mc-sheet="1"] { border: 1px solid rgba(15,23,42,.10); border-radius: 4px; background: #ffffff; box-shadow: 0 2px 5px rgba(15,23,42,.05), 0 14px 38px rgba(15,23,42,.10) !important; }
|
|
288
288
|
#mc[data-chrome="dark"] .mc-workspace [data-mc-sheet="1"] { border-color: rgba(148,163,184,.46); box-shadow: 0 0 0 1px rgba(15,23,42,.48), 0 22px 58px rgba(0,0,0,.38) !important; }
|
|
289
289
|
#mc[data-chrome="dark"] .mc-preview-body [data-mc-sheet="1"] { border: 0; box-shadow: none !important; }
|
|
290
|
-
|
|
290
|
+
/* A real elevation, not a hint: at .04 the panel read as flush with the
|
|
291
|
+
canvas, which is exactly what its border already says -- the shadow is
|
|
292
|
+
there to lift the settings panel above the workspace. Dark chrome needs
|
|
293
|
+
its own, stronger pass: a dark shadow on a dark ground disappears. */
|
|
294
|
+
#mc .mc-inspector { box-shadow: -14px 0 34px rgba(15,23,42,.09), -2px 0 8px rgba(15,23,42,.05); color: var(--ed-panel-label); }
|
|
295
|
+
#mc[data-chrome="dark"] .mc-inspector { box-shadow: -14px 0 34px rgba(0,0,0,.42), -2px 0 8px rgba(0,0,0,.28); }
|
|
291
296
|
#mc .mc-tabbar { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 7px 8px 0; gap: 3px; border-bottom: 0 !important; background: var(--ed-panel) !important; overflow: visible; position: relative; z-index: 12; }
|
|
292
297
|
#mc .mc-tabbar button { position: relative; min-width: 0; height: 39px; border-radius: 8px 8px 0 0 !important; padding: 0 !important; display: flex; align-items: center; justify-content: center; font-family: var(--ed-font) !important; }
|
|
293
298
|
#mc .mc-tabbar button svg { width: 16px; height: 16px; display: block; }
|