@joryio/web-sdk 1.4.0-beta.5 → 1.4.0-beta.6
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/CHANGELOG.md +6 -0
- package/dist/core/config.d.ts +1 -1
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/page-edits.d.ts +1 -1
- package/dist/core/page-edits.d.ts.map +1 -1
- package/dist/core/sdk-host-files.d.ts +1 -1
- package/dist/core/sdk-host-files.d.ts.map +1 -1
- package/dist/editor/editor-model.d.ts +13 -0
- package/dist/editor/editor-model.d.ts.map +1 -0
- package/dist/editor/editor-strings.d.ts +79 -0
- package/dist/editor/editor-strings.d.ts.map +1 -0
- package/dist/editor/editor-ui.d.ts +25 -0
- package/dist/editor/editor-ui.d.ts.map +1 -0
- package/dist/editor/visual-editor.d.ts +59 -8
- package/dist/editor/visual-editor.d.ts.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/joryio-cards-ui.min.js +1 -1
- package/dist/joryio-editor.min.js +2 -2
- package/dist/joryio-editor.min.js.map +1 -1
- package/dist/joryio-sw.js +1 -1
- package/dist/joryio.cjs.js +48 -31
- package/dist/joryio.min.js +2 -2
- package/dist/joryio.min.js.map +1 -1
- package/dist/joryio.mjs +48 -31
- package/dist/joryio.umd.js +48 -31
- package/package.json +1 -1
- package/src/core/config.ts +1 -1
- package/src/core/page-edits.ts +43 -22
- package/src/core/sdk-host-files.ts +15 -10
- package/src/editor/editor-model.ts +102 -0
- package/src/editor/editor-strings.ts +102 -0
- package/src/editor/editor-ui.ts +145 -0
- package/src/editor/visual-editor.ts +815 -105
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The editor's words. English is built in; the dashboard sends the same keys
|
|
3
|
+
* in the marketer's language with `joryio:editor-context` (`strings`, plus
|
|
4
|
+
* `dir` for Hebrew and Arabic), so the five dashboard locales reach the
|
|
5
|
+
* editor without shipping every translation to the customer's site. A key
|
|
6
|
+
* the dashboard does not send stays English. `{name}` placeholders are
|
|
7
|
+
* filled with text, never parsed as HTML.
|
|
8
|
+
*/
|
|
9
|
+
export const EDITOR_STRINGS = {
|
|
10
|
+
title: 'Joryio editor',
|
|
11
|
+
variant: 'Variant {name}',
|
|
12
|
+
hintPoint: 'Point at anything on the page',
|
|
13
|
+
hintEditing: 'Editing · changes show live',
|
|
14
|
+
editsOne: '1 edit',
|
|
15
|
+
editsMany: '{n} edits',
|
|
16
|
+
noEdits: 'No edits yet.',
|
|
17
|
+
undo: 'Undo last edit',
|
|
18
|
+
undoOffline: 'Undo is available once the Joryio dashboard is connected',
|
|
19
|
+
saveReturn: 'Save & return to Joryio',
|
|
20
|
+
clickToEdit: 'click to edit',
|
|
21
|
+
helpTitle: 'Not the right box?',
|
|
22
|
+
helpUp: 'Select the section around it',
|
|
23
|
+
helpDown: 'Select something inside it',
|
|
24
|
+
helpClickKey: 'Click',
|
|
25
|
+
helpClick: 'Edit this one',
|
|
26
|
+
dismiss: 'Dismiss',
|
|
27
|
+
page: 'Page',
|
|
28
|
+
up: 'Select the element around it',
|
|
29
|
+
down: 'Select the first element inside it',
|
|
30
|
+
matchOne: '1 match on page',
|
|
31
|
+
matchMany: 'Matches {n} - all will change',
|
|
32
|
+
matchNone: 'Not found',
|
|
33
|
+
whatToDo: 'What do you want to do?',
|
|
34
|
+
actText: 'Change text',
|
|
35
|
+
actLink: 'Change link',
|
|
36
|
+
actImage: 'Change image',
|
|
37
|
+
actHide: 'Hide it',
|
|
38
|
+
actSlot: 'Add content slot',
|
|
39
|
+
noText: 'No text here',
|
|
40
|
+
notLink: 'Not a link',
|
|
41
|
+
notImage: 'Not an image',
|
|
42
|
+
newText: 'New text',
|
|
43
|
+
was: 'Was: "{value}"',
|
|
44
|
+
insert: 'Insert',
|
|
45
|
+
fallback: 'If a value is missing',
|
|
46
|
+
fallbackHelp: "Shown to visitors we don't know yet.",
|
|
47
|
+
newLink: 'New link address',
|
|
48
|
+
newImage: 'New image address',
|
|
49
|
+
urlBad: 'Enter an address starting with https:// (or http://).',
|
|
50
|
+
hideNote: "The {kind} is removed for people in this campaign's audience. Everyone else still sees it.",
|
|
51
|
+
hiddenFor: 'Hidden for this audience',
|
|
52
|
+
slotName: 'Slot name',
|
|
53
|
+
savedAs: 'Saved as',
|
|
54
|
+
slotHelp: 'Filled by a Placement campaign or a journey step.',
|
|
55
|
+
slotEmpty: 'Enter a name for the slot.',
|
|
56
|
+
where: 'Where',
|
|
57
|
+
posBefore: 'Above it',
|
|
58
|
+
posAfter: 'Below it',
|
|
59
|
+
posReplace: 'Instead of it',
|
|
60
|
+
posPrepend: 'Inside, at the start',
|
|
61
|
+
posAppend: 'Inside, at the end',
|
|
62
|
+
slotPreview: 'Content slot',
|
|
63
|
+
css: 'CSS selector',
|
|
64
|
+
cssHelp: 'For developers. Matches {n} on this page.',
|
|
65
|
+
cssBad: 'Not a selector this page can use.',
|
|
66
|
+
cancel: 'Cancel',
|
|
67
|
+
save: 'Save · {action}',
|
|
68
|
+
noSelector: 'This element has no stable selector. Choose the element around it (arrow up) or another one.',
|
|
69
|
+
kHeading: 'Heading',
|
|
70
|
+
kText: 'Text',
|
|
71
|
+
kLink: 'Link',
|
|
72
|
+
kButton: 'Button',
|
|
73
|
+
kImage: 'Image',
|
|
74
|
+
kList: 'List',
|
|
75
|
+
kSection: 'Section',
|
|
76
|
+
kMain: 'Main',
|
|
77
|
+
kHeader: 'Header',
|
|
78
|
+
kFooter: 'Footer',
|
|
79
|
+
kNav: 'Navigation',
|
|
80
|
+
kForm: 'Form',
|
|
81
|
+
kElement: 'Element',
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export type EditorStringKey = keyof typeof EDITOR_STRINGS;
|
|
85
|
+
export type EditorStrings = Record<EditorStringKey, string>;
|
|
86
|
+
|
|
87
|
+
/** The built-in English, with the dashboard's translations over it (strings only, at most 500 characters each). */
|
|
88
|
+
export function mergeStrings(over: unknown): EditorStrings {
|
|
89
|
+
const out: EditorStrings = { ...EDITOR_STRINGS };
|
|
90
|
+
if (over && typeof over === 'object') {
|
|
91
|
+
for (const k of Object.keys(EDITOR_STRINGS) as EditorStringKey[]) {
|
|
92
|
+
const v = (over as Record<string, unknown>)[k];
|
|
93
|
+
if (typeof v === 'string' && v.trim() && v.length <= 500) out[k] = v;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return out;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** `{name}` placeholders filled in; the result is only ever set as text. */
|
|
100
|
+
export function fill(text: string, vars: Record<string, string | number> = {}): string {
|
|
101
|
+
return text.replace(/\{(\w+)\}/g, (m, k: string) => (k in vars ? String(vars[k]) : m));
|
|
102
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Building blocks of the editor's UI: an element helper that only ever sets
|
|
3
|
+
* attributes and text (never HTML), the icons (fixed SVG paths), and the
|
|
4
|
+
* stylesheet. Everything lives inside the editor's shadow root, so the
|
|
5
|
+
* site's CSS cannot restyle it and this CSS cannot reach the site.
|
|
6
|
+
*
|
|
7
|
+
* Colours are the Joryio product tokens of the design handoff
|
|
8
|
+
* (design_handoff_web_personalization, joryio-tokens.css): navy #071342,
|
|
9
|
+
* teal #31D6C8 / #00A99A, slot lavender #7A6CFF, light panel like the app.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
type Kid = Node | string | null | undefined | false;
|
|
13
|
+
|
|
14
|
+
export function h<K extends keyof HTMLElementTagNameMap>(tag: K, attrs?: Record<string, string | boolean | undefined> | null, ...kids: Kid[]): HTMLElementTagNameMap[K] {
|
|
15
|
+
const el = document.createElement(tag);
|
|
16
|
+
for (const [k, v] of Object.entries(attrs || {})) {
|
|
17
|
+
if (v === undefined || v === false) continue;
|
|
18
|
+
el.setAttribute(k, v === true ? '' : v);
|
|
19
|
+
}
|
|
20
|
+
for (const kid of kids) if (kid !== null && kid !== undefined && kid !== false) el.appendChild(typeof kid === 'string' ? document.createTextNode(kid) : kid);
|
|
21
|
+
return el;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const SVG_NS = 'http://www.w3.org/2000/svg';
|
|
25
|
+
const ICONS = {
|
|
26
|
+
text: ['M4 7V5h16v2M9 19h6M12 5v14'],
|
|
27
|
+
link: ['M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71', 'M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'],
|
|
28
|
+
image: ['M3 5h18v14H3z', 'm3 16 5-5 4 4 3-3 6 6', 'M15.5 8.5h.01'],
|
|
29
|
+
hide: ['M9.88 9.88a3 3 0 1 0 4.24 4.24', 'M10.73 5.08A10.4 10.4 0 0 1 12 5c7 0 10 7 10 7a13.2 13.2 0 0 1-1.67 2.68', 'M6.61 6.61A13.5 13.5 0 0 0 2 12s3 7 10 7a9.7 9.7 0 0 0 5.39-1.61', 'm2 2 20 20'],
|
|
30
|
+
slot: ['M3 3h18v18H3z', 'M7 9h10v6H7z'],
|
|
31
|
+
undo: ['M3 7v6h6', 'M21 17a9 9 0 0 0-15-6.7L3 13'],
|
|
32
|
+
up: ['m18 15-6-6-6 6'],
|
|
33
|
+
down: ['m6 9 6 6 6-6'],
|
|
34
|
+
cursor: ['m4 4 7.07 17 2.51-7.39L21 11.07z'],
|
|
35
|
+
code: ['m16 18 6-6-6-6M8 6l-6 6 6 6'],
|
|
36
|
+
chevron: ['m9 18 6-6-6-6'],
|
|
37
|
+
check: ['M20 6 9 17l-5-5'],
|
|
38
|
+
close: ['M18 6 6 18M6 6l12 12'],
|
|
39
|
+
};
|
|
40
|
+
export type IconName = keyof typeof ICONS;
|
|
41
|
+
|
|
42
|
+
export function icon(name: IconName, size = 15): SVGSVGElement {
|
|
43
|
+
const s = document.createElementNS(SVG_NS, 'svg');
|
|
44
|
+
for (const [k, v] of Object.entries({ width: String(size), height: String(size), viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', 'stroke-width': '1.9', 'stroke-linecap': 'round', 'stroke-linejoin': 'round', 'aria-hidden': 'true' })) s.setAttribute(k, v);
|
|
45
|
+
for (const d of ICONS[name]) {
|
|
46
|
+
const p = document.createElementNS(SVG_NS, 'path');
|
|
47
|
+
p.setAttribute('d', d);
|
|
48
|
+
s.appendChild(p);
|
|
49
|
+
}
|
|
50
|
+
return s as SVGSVGElement;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** The host element's own inline style: nothing of the site's CSS reaches inside, and the host takes no room. */
|
|
54
|
+
export const HOST_STYLE = 'all:initial !important;position:fixed !important;top:0 !important;left:0 !important;width:0 !important;height:0 !important;z-index:2147483647 !important;display:block !important';
|
|
55
|
+
|
|
56
|
+
/** A preview element the editor puts IN the page (a slot, a hidden-element note): its own shadow root too. */
|
|
57
|
+
export const PREVIEW_HOST_STYLE = 'all:initial !important;display:block !important;margin:10px 0 !important';
|
|
58
|
+
|
|
59
|
+
const FONT = 'Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif';
|
|
60
|
+
const MONO = 'ui-monospace,"SF Mono",Menlo,monospace';
|
|
61
|
+
|
|
62
|
+
export const PREVIEW_CSS = `.s,.x{font:12.5px/1.4 ${FONT};border-radius:10px;padding:14px 16px;text-align:center}.s{border:2px dashed #7A6CFF;background:#F4F2FF;color:#4C3FD1}.s b{font-weight:700}.s code{font-family:${MONO}}.s div{font-size:11.5px;color:#6B5FD9;margin-top:3px}.x{border:1.5px dashed #F04438;background:#FEF3F2;color:#B42318;text-align:start;padding:10px 12px;font-size:12px}`;
|
|
63
|
+
|
|
64
|
+
export const EDITOR_CSS = `
|
|
65
|
+
*{box-sizing:border-box}
|
|
66
|
+
.r{font:13px/1.4 ${FONT};color:#242B3A;-webkit-font-smoothing:antialiased}
|
|
67
|
+
button{font:inherit;color:inherit;cursor:pointer}
|
|
68
|
+
button:disabled{cursor:not-allowed}
|
|
69
|
+
button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #31D6C8;outline-offset:1px}
|
|
70
|
+
.box{position:fixed;pointer-events:none;border:2px dashed #00A99A;background:rgba(0,169,154,.07);border-radius:4px;display:none}
|
|
71
|
+
.box.sel{border-style:solid;background:rgba(0,169,154,.04)}
|
|
72
|
+
.chip{position:absolute;bottom:100%;inset-inline-start:-2px;margin-bottom:2px;background:#00A99A;color:#fff;font-size:11px;font-weight:600;padding:3px 8px;border-radius:6px 6px 6px 0;white-space:nowrap;max-width:60vw;overflow:hidden;text-overflow:ellipsis}
|
|
73
|
+
.help{position:fixed;top:16px;inset-inline-end:16px;width:240px;background:#fff;border:1px solid #E5EAF2;border-radius:10px;box-shadow:0 8px 24px rgba(10,18,64,.14);padding:10px 12px}
|
|
74
|
+
.help h3{margin:0 0 6px;font-size:11px;font-weight:700;color:#6B7280;letter-spacing:.5px;text-transform:uppercase}
|
|
75
|
+
.help .row{display:flex;align-items:center;gap:8px;font-size:12px;padding:3px 0}
|
|
76
|
+
.kbd{min-width:38px;text-align:center;font-size:11px;font-weight:600;border:1px solid #E5EAF2;border-radius:5px;padding:1px 5px;background:#F8FAFC}
|
|
77
|
+
.help .x{position:absolute;top:6px;inset-inline-end:6px;border:0;background:none;color:#8990A8;padding:2px;display:grid}
|
|
78
|
+
.dock{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:6px;background:#071342;color:#fff;border-radius:14px;padding:7px 7px 7px 14px;box-shadow:0 12px 32px rgba(10,18,64,.35);white-space:nowrap;max-width:calc(100vw - 24px)}
|
|
79
|
+
.r.open .dock{left:calc(50% - 190px)}
|
|
80
|
+
.r.open[dir=rtl] .dock{left:calc(50% + 190px)}
|
|
81
|
+
.logo{width:22px;height:22px;border-radius:6px;background:#fff;color:#071342;display:grid;place-items:center;font-weight:800;font-size:13px;flex:none}
|
|
82
|
+
.name{font-size:12.5px;font-weight:600;margin-inline-start:4px;overflow:hidden;text-overflow:ellipsis;max-width:200px}
|
|
83
|
+
.sub{font-size:12px;color:#A8AEC1;overflow:hidden;text-overflow:ellipsis;max-width:220px}
|
|
84
|
+
.sep{width:1px;height:22px;background:#2A3366;margin:0 8px;flex:none}
|
|
85
|
+
.hint{font-size:12px;color:#C9CEDD;display:inline-flex;align-items:center;gap:6px}
|
|
86
|
+
.hint svg{color:#31D6C8}
|
|
87
|
+
.db{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border-radius:8px;border:0;background:#1B245A;color:#fff;font-size:12.5px;font-weight:600}
|
|
88
|
+
.ib{height:32px;width:32px;border-radius:8px;border:0;background:transparent;color:#fff;display:grid;place-items:center}
|
|
89
|
+
.ib:disabled{color:#4A527A}
|
|
90
|
+
.go{height:32px;padding:0 14px;border-radius:8px;border:0;background:#31D6C8;color:#071342;font-size:12.5px;font-weight:700}
|
|
91
|
+
.pop{position:absolute;bottom:calc(100% + 10px);left:0;right:0;min-width:280px;max-height:50vh;overflow:auto;background:#fff;color:#242B3A;border-radius:12px;border:1px solid #E5EAF2;box-shadow:0 12px 32px rgba(10,18,64,.18);padding:6px;white-space:normal}
|
|
92
|
+
.pop .e{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;background:none;border-radius:8px;font-size:12.5px;text-align:start}
|
|
93
|
+
.pop .e:hover{background:#F8FAFC}
|
|
94
|
+
.pop .empty{padding:12px;font-size:12.5px;color:#6B7280}
|
|
95
|
+
.num{width:20px;height:20px;border-radius:99px;background:#071342;color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center;flex:none}
|
|
96
|
+
.panel{position:fixed;top:0;bottom:0;inset-inline-end:0;width:380px;max-width:100vw;background:#fff;border-inline-start:1px solid #E5EAF2;box-shadow:-8px 0 24px rgba(10,18,64,.06);display:flex;flex-direction:column}
|
|
97
|
+
.hd{padding:16px 18px 14px;border-bottom:1px solid #E5EAF2}
|
|
98
|
+
.crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:11.5px;color:#6B7280;margin-bottom:6px}
|
|
99
|
+
.crumbs svg{color:#A8AEC1}
|
|
100
|
+
.crumb{border:0;background:transparent;color:#6B7280;font-weight:500;font-size:11.5px;padding:2px 6px;border-radius:5px}
|
|
101
|
+
.crumb.cur{background:#E5F9F6;color:#0F766E;font-weight:600}
|
|
102
|
+
.nav{margin-inline-start:auto;display:flex;gap:2px}
|
|
103
|
+
.nav button{border:1px solid #E5EAF2;background:#fff;border-radius:6px;width:24px;height:22px;display:grid;place-items:center;color:#3A4060;padding:0}
|
|
104
|
+
.nav button:disabled{opacity:.4}
|
|
105
|
+
.tr{display:flex;align-items:center;gap:10px}
|
|
106
|
+
.title{font-size:17px;font-weight:700;color:#0A1240;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
|
|
107
|
+
.pill{margin-inline-start:auto;display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;padding:3px 8px;border-radius:999px;white-space:nowrap;flex:none}
|
|
108
|
+
.pill.ok{background:#E5F9F6;color:#0F766E}
|
|
109
|
+
.pill.many{background:#FFF7E6;color:#92400E}
|
|
110
|
+
.pill.none{background:#FEF3F2;color:#B42318}
|
|
111
|
+
.bd{padding:16px 18px;overflow:auto;flex:1}
|
|
112
|
+
.lbl{display:block;font-size:12.5px;font-weight:600;color:#242B3A;margin-bottom:8px}
|
|
113
|
+
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:18px}
|
|
114
|
+
.tile{display:flex;align-items:center;gap:9px;padding:10px 11px;border-radius:10px;text-align:start;background:#fff;border:1.5px solid #E5EAF2;color:#3A4060}
|
|
115
|
+
.tile[aria-checked=true]{background:#E5F9F6;border-color:#00C8B7;color:#0F766E}
|
|
116
|
+
.tile.slot[aria-checked=true]{background:#F4F2FF;border-color:#7A6CFF;color:#4C3FD1}
|
|
117
|
+
.tile:disabled{opacity:.55}
|
|
118
|
+
.tile b{display:block;font-size:12.5px;font-weight:600;color:#0A1240}
|
|
119
|
+
.tile small{display:block;font-size:10.5px;color:#6B7280}
|
|
120
|
+
.fr{display:flex;align-items:baseline;margin-bottom:8px}
|
|
121
|
+
.fr .lbl{margin:0}
|
|
122
|
+
.was{margin-inline-start:auto;font-size:11.5px;color:#6B7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:55%}
|
|
123
|
+
textarea,input{width:100%;font:inherit;font-size:13.5px;color:#0F1424;padding:10px 12px;border-radius:10px;border:1.5px solid #E5EAF2;background:#fff;outline:none}
|
|
124
|
+
textarea{line-height:1.5;resize:vertical;border-color:#00C8B7}
|
|
125
|
+
input{height:40px;padding:0 12px}
|
|
126
|
+
input.slotin{border-color:#7A6CFF}
|
|
127
|
+
input.mono{font-family:${MONO};font-size:12px;height:36px;background:#F8FAFC;border-width:1px}
|
|
128
|
+
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;align-items:center}
|
|
129
|
+
.chips span{font-size:11.5px;color:#6B7280;margin-inline-end:2px}
|
|
130
|
+
.vc{font-family:${MONO};font-size:11.5px;padding:3px 8px;border-radius:6px;border:1px solid #E5EAF2;background:#F8FAFC;color:#3A4060}
|
|
131
|
+
.help2{font-size:11.5px;color:#6B7280;margin-top:5px}
|
|
132
|
+
.err{font-size:11.5px;color:#B42318;margin-top:5px}
|
|
133
|
+
.mt{margin-top:14px}
|
|
134
|
+
.note{background:#FFF7E6;border:1px solid #FCD34D;border-radius:10px;padding:10px 12px;font-size:12.5px;color:#92400E;line-height:1.5}
|
|
135
|
+
.key{font-family:${MONO};color:#4C3FD1;background:#F4F2FF;padding:1px 6px;border-radius:4px}
|
|
136
|
+
.seg{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;background:#F3F5FA;border-radius:9px;padding:3px}
|
|
137
|
+
.seg button{border:0;background:transparent;border-radius:7px;padding:6px 4px;font-size:12px;color:#3A4060}
|
|
138
|
+
.seg button[aria-checked=true]{background:#fff;color:#0A1240;font-weight:600;box-shadow:0 1px 2px rgba(10,18,64,.08)}
|
|
139
|
+
.css{margin-top:20px;display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;padding:0;color:#6B7280;font-size:12px}
|
|
140
|
+
.ft{padding:12px 18px;border-top:1px solid #E5EAF2;display:flex;gap:10px;background:#F8FAFC}
|
|
141
|
+
.cancel{height:38px;padding:0 14px;border-radius:10px;border:1px solid #E5EAF2;background:#fff;color:#242B3A;font-size:13px;font-weight:600}
|
|
142
|
+
.save{flex:1;height:38px;border-radius:10px;border:0;background:#071342;color:#fff;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
143
|
+
.save:disabled{opacity:.45}
|
|
144
|
+
@media (max-width:760px){.r.open .dock{display:none}.help{display:none}}
|
|
145
|
+
`;
|