@vendure/admin-ui 3.2.0 → 3.2.1
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/LICENSE.md +42 -42
- package/core/common/version.d.ts +1 -1
- package/fesm2022/vendure-admin-ui-catalog.mjs +257 -257
- package/fesm2022/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-core.mjs +4140 -4140
- package/fesm2022/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-customer.mjs +119 -119
- package/fesm2022/vendure-admin-ui-customer.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-dashboard.mjs +58 -58
- package/fesm2022/vendure-admin-ui-dashboard.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-login.mjs +2 -2
- package/fesm2022/vendure-admin-ui-login.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-marketing.mjs +35 -35
- package/fesm2022/vendure-admin-ui-marketing.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-order.mjs +186 -186
- package/fesm2022/vendure-admin-ui-order.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-react.mjs +8 -8
- package/fesm2022/vendure-admin-ui-react.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-settings.mjs +441 -441
- package/fesm2022/vendure-admin-ui-settings.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-system.mjs +6 -6
- package/fesm2022/vendure-admin-ui-system.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui.mjs.map +1 -1
- package/package.json +13 -9
- package/static/fonts/fonts.scss +253 -253
- package/static/i18n-messages/ar.json +813 -813
- package/static/i18n-messages/cs.json +813 -813
- package/static/i18n-messages/de.json +813 -813
- package/static/i18n-messages/en.json +817 -817
- package/static/i18n-messages/es.json +813 -813
- package/static/i18n-messages/fa.json +813 -813
- package/static/i18n-messages/fr.json +813 -813
- package/static/i18n-messages/he.json +813 -813
- package/static/i18n-messages/hr.json +813 -813
- package/static/i18n-messages/it.json +813 -813
- package/static/i18n-messages/ja.json +818 -818
- package/static/i18n-messages/nb.json +811 -811
- package/static/i18n-messages/ne.json +813 -813
- package/static/i18n-messages/pl.json +813 -813
- package/static/i18n-messages/pt_BR.json +813 -813
- package/static/i18n-messages/pt_PT.json +814 -814
- package/static/i18n-messages/ru.json +813 -813
- package/static/i18n-messages/sv.json +806 -806
- package/static/i18n-messages/tr.json +814 -814
- package/static/i18n-messages/uk.json +813 -813
- package/static/i18n-messages/zh_Hans.json +813 -813
- package/static/i18n-messages/zh_Hant.json +813 -813
- package/static/index.html +14 -14
- package/static/polyfills.ts +66 -66
- package/static/styles/_mixins.scss +60 -60
- package/static/styles/_variables.scss +11 -11
- package/static/styles/component/prosemirror.scss +513 -513
- package/static/styles/global/_buttons.scss +147 -147
- package/static/styles/global/_clarity.scss +140 -140
- package/static/styles/global/_forms.scss +187 -187
- package/static/styles/global/_global.scss +41 -41
- package/static/styles/global/_overrides.scss +165 -165
- package/static/styles/global/_sass-overrides.scss +7 -7
- package/static/styles/global/_utilities.scss +155 -155
- package/static/styles/rtl.scss +143 -143
- package/static/styles/styles.scss +19 -19
- package/static/styles/theme/dark.scss +591 -591
- package/static/styles/theme/default.scss +254 -254
- package/static/styles/ui-extension-theme.scss +13 -13
- package/static/vendure-ui-config.json +289 -289
|
@@ -1,513 +1,513 @@
|
|
|
1
|
-
label.rich-text-label {
|
|
2
|
-
font-size: var(--font-size-sm);
|
|
3
|
-
color: var(--font-weight-700);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.ProseMirror-menubar {
|
|
7
|
-
position: sticky;
|
|
8
|
-
border: 1px solid var(--color-weight-200);
|
|
9
|
-
border-bottom: none;
|
|
10
|
-
background-color: var(--color-component-bg-200);
|
|
11
|
-
color: var(--color-icon-button);
|
|
12
|
-
border-radius: var(--border-radius-input) var(--border-radius-input) 0 0;
|
|
13
|
-
padding: 6px 12px;
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-wrap: wrap;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.vdr-prosemirror {
|
|
19
|
-
background: var(--color-form-input-bg);
|
|
20
|
-
color: var(--color-text-100);
|
|
21
|
-
min-height: 128px;
|
|
22
|
-
max-height: 600px;
|
|
23
|
-
min-width: 200px;
|
|
24
|
-
border: 1px solid var(--color-weight-200);
|
|
25
|
-
border-radius: 0 0 var(--border-radius-input) var(--border-radius-input);
|
|
26
|
-
transition: border-color 0.2s;
|
|
27
|
-
overflow: auto;
|
|
28
|
-
text-align: initial;
|
|
29
|
-
|
|
30
|
-
&:focus {
|
|
31
|
-
border-color: var(--color-primary-500) !important;
|
|
32
|
-
box-shadow: 0 0 1px 1px var(--color-primary-100);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* Add space around the hr to make clicking it easier */
|
|
36
|
-
|
|
37
|
-
hr {
|
|
38
|
-
padding: 2px 10px;
|
|
39
|
-
border: none;
|
|
40
|
-
margin: 1em 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
hr:after {
|
|
44
|
-
content: '';
|
|
45
|
-
display: block;
|
|
46
|
-
height: 1px;
|
|
47
|
-
background-color: silver;
|
|
48
|
-
line-height: 2px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
img {
|
|
52
|
-
cursor: default;
|
|
53
|
-
max-width: 100%;
|
|
54
|
-
width: revert-layer;
|
|
55
|
-
height: revert-layer;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
a:link,
|
|
59
|
-
a:visited {
|
|
60
|
-
color: var(--color-primary-700);
|
|
61
|
-
text-decoration: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.iframe-wrapper {
|
|
65
|
-
width: 100%;
|
|
66
|
-
text-align: center;
|
|
67
|
-
padding: 6px;
|
|
68
|
-
transition: background-color 0.3s;
|
|
69
|
-
&:hover {
|
|
70
|
-
background-color: var(--color-primary-100);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
.ProseMirror {
|
|
77
|
-
position: relative;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.ProseMirror {
|
|
81
|
-
word-wrap: break-word;
|
|
82
|
-
white-space: pre-wrap;
|
|
83
|
-
-webkit-font-variant-ligatures: none;
|
|
84
|
-
font-variant-ligatures: none;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.ProseMirror pre {
|
|
88
|
-
white-space: pre-wrap;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.ProseMirror li {
|
|
92
|
-
position: relative;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.ProseMirror-hideselection *::selection {
|
|
96
|
-
background: transparent;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.ProseMirror-hideselection *::-moz-selection {
|
|
100
|
-
background: transparent;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.ProseMirror-hideselection {
|
|
104
|
-
caret-color: transparent;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.ProseMirror-selectednode {
|
|
108
|
-
outline: 2px solid var(--color-primary-500);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/* Make sure li selections wrap around markers */
|
|
112
|
-
|
|
113
|
-
li.ProseMirror-selectednode {
|
|
114
|
-
outline: none;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
li.ProseMirror-selectednode:after {
|
|
118
|
-
content: '';
|
|
119
|
-
position: absolute;
|
|
120
|
-
left: -32px;
|
|
121
|
-
right: -2px;
|
|
122
|
-
top: -2px;
|
|
123
|
-
bottom: -2px;
|
|
124
|
-
border: 2px solid var(--color-primary-500);
|
|
125
|
-
pointer-events: none;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.ProseMirror-textblock-dropdown {
|
|
129
|
-
min-width: 3em;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.ProseMirror-menu {
|
|
133
|
-
margin: 0 -4px;
|
|
134
|
-
line-height: 1;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.ProseMirror-tooltip .ProseMirror-menu {
|
|
138
|
-
width: -webkit-fit-content;
|
|
139
|
-
width: fit-content;
|
|
140
|
-
white-space: pre;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.ProseMirror-menuitem {
|
|
144
|
-
margin-inline-end: 3px;
|
|
145
|
-
display: inline-block;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.ProseMirror-menuseparator {
|
|
149
|
-
border-inline-end: 1px solid var(--color-component-border-200);
|
|
150
|
-
margin: 0 12px 0 8px;
|
|
151
|
-
height: 18px;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.ProseMirror-menu-dropdown,
|
|
155
|
-
.ProseMirror-menu-dropdown-menu {
|
|
156
|
-
font-size: 90%;
|
|
157
|
-
white-space: nowrap;
|
|
158
|
-
border-radius: var(--border-radius-input);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.ProseMirror-menu-dropdown {
|
|
162
|
-
vertical-align: 1px;
|
|
163
|
-
cursor: pointer;
|
|
164
|
-
position: relative;
|
|
165
|
-
padding-inline-end: 15px;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.ProseMirror-menu-dropdown-wrap {
|
|
169
|
-
padding: 1px 3px 1px 6px;
|
|
170
|
-
display: inline-block;
|
|
171
|
-
position: relative;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.ProseMirror-menu-dropdown:after {
|
|
175
|
-
content: '';
|
|
176
|
-
border-inline-start: 4px solid transparent;
|
|
177
|
-
border-inline-end: 4px solid transparent;
|
|
178
|
-
border-top: 4px solid currentColor;
|
|
179
|
-
opacity: 0.6;
|
|
180
|
-
position: absolute;
|
|
181
|
-
right: 4px;
|
|
182
|
-
top: calc(50% - 2px);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.ProseMirror-menu-dropdown-menu,
|
|
186
|
-
.ProseMirror-menu-submenu {
|
|
187
|
-
position: absolute;
|
|
188
|
-
background: var(--color-component-bg-100);
|
|
189
|
-
border: 1px solid var(--color-component-border-200);
|
|
190
|
-
padding: 2px;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.ProseMirror-menu-dropdown-menu {
|
|
194
|
-
z-index: 15;
|
|
195
|
-
min-width: 6em;
|
|
196
|
-
color: var(--color-text-200);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.ProseMirror-menu-dropdown-item {
|
|
200
|
-
cursor: pointer;
|
|
201
|
-
padding: 2px 8px 2px 4px;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.ProseMirror-menu-dropdown-item:hover {
|
|
205
|
-
background: var(--color-component-bg-200);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.ProseMirror-menu-submenu-wrap {
|
|
209
|
-
position: relative;
|
|
210
|
-
margin-inline-end: 4px;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.ProseMirror-menu-submenu-label:after {
|
|
214
|
-
content: '';
|
|
215
|
-
border-top: 4px solid transparent;
|
|
216
|
-
border-bottom: 4px solid transparent;
|
|
217
|
-
border-inline-start: 4px solid currentColor;
|
|
218
|
-
opacity: 0.6;
|
|
219
|
-
position: absolute;
|
|
220
|
-
right: -8px;
|
|
221
|
-
top: calc(50% - 4px);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.ProseMirror-menu-submenu {
|
|
225
|
-
display: none;
|
|
226
|
-
min-width: 4em;
|
|
227
|
-
left: 100%;
|
|
228
|
-
top: -3px;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
.ProseMirror-menu-active {
|
|
232
|
-
background: var(--color-component-bg-100);
|
|
233
|
-
border-radius: 4px;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.ProseMirror-menu-active {
|
|
237
|
-
background: var(--color-component-bg-100);
|
|
238
|
-
border-radius: 4px;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.ProseMirror-menu-disabled {
|
|
242
|
-
opacity: 0.3;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.ProseMirror-menu-submenu-wrap:hover .ProseMirror-menu-submenu,
|
|
246
|
-
.ProseMirror-menu-submenu-wrap-active .ProseMirror-menu-submenu {
|
|
247
|
-
display: block;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.ProseMirror-menubar {
|
|
251
|
-
border-top-left-radius: inherit;
|
|
252
|
-
border-top-right-radius: inherit;
|
|
253
|
-
position: relative;
|
|
254
|
-
min-height: 1em;
|
|
255
|
-
color: var(--color-grey-600);
|
|
256
|
-
padding: 1px 6px;
|
|
257
|
-
top: 0;
|
|
258
|
-
left: 0;
|
|
259
|
-
right: 0;
|
|
260
|
-
background: var(--color-component-bg-100);
|
|
261
|
-
z-index: 10;
|
|
262
|
-
-moz-box-sizing: border-box;
|
|
263
|
-
box-sizing: border-box;
|
|
264
|
-
overflow: visible;
|
|
265
|
-
align-items: center;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
.ProseMirror-icon {
|
|
269
|
-
display: inline-block;
|
|
270
|
-
line-height: 0.8;
|
|
271
|
-
vertical-align: -2px; /* Compensate for padding */
|
|
272
|
-
padding: 2px 8px;
|
|
273
|
-
cursor: pointer;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.ProseMirror-menu-disabled.ProseMirror-icon {
|
|
277
|
-
cursor: default;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.ProseMirror-icon svg {
|
|
281
|
-
fill: currentColor;
|
|
282
|
-
height: 1em;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.ProseMirror-icon span {
|
|
286
|
-
vertical-align: text-top;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
.ProseMirror-gapcursor {
|
|
290
|
-
display: none;
|
|
291
|
-
pointer-events: none;
|
|
292
|
-
position: absolute;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.ProseMirror-gapcursor:after {
|
|
296
|
-
content: '';
|
|
297
|
-
display: block;
|
|
298
|
-
position: absolute;
|
|
299
|
-
top: -2px;
|
|
300
|
-
width: 20px;
|
|
301
|
-
border-top: 1px solid black;
|
|
302
|
-
animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
@keyframes ProseMirror-cursor-blink {
|
|
306
|
-
to {
|
|
307
|
-
visibility: hidden;
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.ProseMirror-focused .ProseMirror-gapcursor {
|
|
312
|
-
display: block;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
.ProseMirror ul,
|
|
316
|
-
.ProseMirror ol {
|
|
317
|
-
padding-inline-start: 30px;
|
|
318
|
-
list-style-position: initial;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
.ProseMirror blockquote {
|
|
322
|
-
padding-inline-start: 1em;
|
|
323
|
-
border-inline-start: 3px solid var(--color-grey-100);
|
|
324
|
-
margin-inline-start: 0;
|
|
325
|
-
margin-inline-end: 0;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
.ProseMirror-prompt {
|
|
329
|
-
background: white;
|
|
330
|
-
padding: 5px 10px 5px 15px;
|
|
331
|
-
border: 1px solid silver;
|
|
332
|
-
position: fixed;
|
|
333
|
-
border-radius: 3px;
|
|
334
|
-
z-index: 11;
|
|
335
|
-
box-shadow: -0.5px 2px 5px rgba(0, 0, 0, 0.2);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
.ProseMirror-prompt h5 {
|
|
339
|
-
margin: 0;
|
|
340
|
-
font-weight: normal;
|
|
341
|
-
font-size: 100%;
|
|
342
|
-
color: var(--color-grey-500);
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
.ProseMirror-prompt input[type='text'],
|
|
346
|
-
.ProseMirror-prompt textarea {
|
|
347
|
-
background: var(--color-component-bg-100);
|
|
348
|
-
border: none;
|
|
349
|
-
outline: none;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
.ProseMirror-prompt input[type='text'] {
|
|
353
|
-
padding: 0 4px;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
.ProseMirror-prompt-close {
|
|
357
|
-
position: absolute;
|
|
358
|
-
left: 2px;
|
|
359
|
-
top: 1px;
|
|
360
|
-
color: var(--color-grey-400);
|
|
361
|
-
border: none;
|
|
362
|
-
background: transparent;
|
|
363
|
-
padding: 0;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
.ProseMirror-prompt-close:after {
|
|
367
|
-
content: '✕';
|
|
368
|
-
font-size: 12px;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
.ProseMirror-invalid {
|
|
372
|
-
background: var(--color-warning-200);
|
|
373
|
-
border: 1px solid var(--color-warning-300);
|
|
374
|
-
border-radius: 4px;
|
|
375
|
-
padding: 5px 10px;
|
|
376
|
-
position: absolute;
|
|
377
|
-
min-width: 10em;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
.ProseMirror-prompt-buttons {
|
|
381
|
-
margin-top: 5px;
|
|
382
|
-
display: none;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
#editor,
|
|
386
|
-
.editor {
|
|
387
|
-
background: var(--color-form-input-bg);
|
|
388
|
-
color: black;
|
|
389
|
-
background-clip: padding-box;
|
|
390
|
-
border-radius: 4px;
|
|
391
|
-
border: 2px solid rgba(0, 0, 0, 0.2);
|
|
392
|
-
padding: 5px 0;
|
|
393
|
-
margin-bottom: 23px;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
.ProseMirror p:first-child,
|
|
397
|
-
.ProseMirror h1:first-child,
|
|
398
|
-
.ProseMirror h2:first-child,
|
|
399
|
-
.ProseMirror h3:first-child,
|
|
400
|
-
.ProseMirror h4:first-child,
|
|
401
|
-
.ProseMirror h5:first-child,
|
|
402
|
-
.ProseMirror h6:first-child {
|
|
403
|
-
margin-top: 10px;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
.ProseMirror {
|
|
407
|
-
padding: 4px 8px 4px 14px;
|
|
408
|
-
line-height: 1.2;
|
|
409
|
-
outline: none;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
.ProseMirror p {
|
|
413
|
-
margin-bottom: 0.5rem;
|
|
414
|
-
color: var(--color-text-100) !important;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
.ProseMirror .tableWrapper {
|
|
418
|
-
td,
|
|
419
|
-
th {
|
|
420
|
-
border: 1px solid var(--color-grey-300);
|
|
421
|
-
padding: 3px 6px;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
td p,
|
|
425
|
-
th p {
|
|
426
|
-
margin-top: 0;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
th,
|
|
430
|
-
th p {
|
|
431
|
-
font-weight: bold;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
.ProseMirror table {
|
|
436
|
-
border-collapse: collapse;
|
|
437
|
-
table-layout: fixed;
|
|
438
|
-
width: 100%;
|
|
439
|
-
overflow: hidden;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
.ProseMirror td,
|
|
443
|
-
.ProseMirror th {
|
|
444
|
-
vertical-align: top;
|
|
445
|
-
box-sizing: border-box;
|
|
446
|
-
position: relative;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
.ProseMirror .column-resize-handle {
|
|
450
|
-
position: absolute;
|
|
451
|
-
right: -2px;
|
|
452
|
-
top: 0;
|
|
453
|
-
bottom: 0;
|
|
454
|
-
width: 4px;
|
|
455
|
-
z-index: 20;
|
|
456
|
-
background-color: #adf;
|
|
457
|
-
pointer-events: none;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
.ProseMirror.resize-cursor {
|
|
461
|
-
cursor: ew-resize;
|
|
462
|
-
cursor: col-resize;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
/* Give selected cells a blue overlay */
|
|
466
|
-
.ProseMirror .selectedCell:after {
|
|
467
|
-
z-index: 2;
|
|
468
|
-
position: absolute;
|
|
469
|
-
content: '';
|
|
470
|
-
left: 0;
|
|
471
|
-
right: 0;
|
|
472
|
-
top: 0;
|
|
473
|
-
bottom: 0;
|
|
474
|
-
background: #afdaf355;
|
|
475
|
-
pointer-events: none;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
.menu-separator {
|
|
480
|
-
border-bottom: 1px solid var(--color-grey-400);
|
|
481
|
-
height: 0;
|
|
482
|
-
margin: 6px 0;
|
|
483
|
-
pointer-events: none;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
.menu-item-with-icon {
|
|
487
|
-
display: flex;
|
|
488
|
-
align-items: center;
|
|
489
|
-
|
|
490
|
-
clr-icon,
|
|
491
|
-
.custom-icon {
|
|
492
|
-
margin-inline-end: 4px;
|
|
493
|
-
color: var(--color-text-200);
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
.hr-icon {
|
|
497
|
-
width: 13px;
|
|
498
|
-
height: 8px;
|
|
499
|
-
border-bottom: 2px solid var(--color-text-100);
|
|
500
|
-
margin: -8px 5px 0 2px;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
.h-icon {
|
|
504
|
-
width: 16px;
|
|
505
|
-
text-align: center;
|
|
506
|
-
font-weight: bold;
|
|
507
|
-
font-size: 12px;
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
.context-menu {
|
|
512
|
-
position: fixed;
|
|
513
|
-
}
|
|
1
|
+
label.rich-text-label {
|
|
2
|
+
font-size: var(--font-size-sm);
|
|
3
|
+
color: var(--font-weight-700);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.ProseMirror-menubar {
|
|
7
|
+
position: sticky;
|
|
8
|
+
border: 1px solid var(--color-weight-200);
|
|
9
|
+
border-bottom: none;
|
|
10
|
+
background-color: var(--color-component-bg-200);
|
|
11
|
+
color: var(--color-icon-button);
|
|
12
|
+
border-radius: var(--border-radius-input) var(--border-radius-input) 0 0;
|
|
13
|
+
padding: 6px 12px;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.vdr-prosemirror {
|
|
19
|
+
background: var(--color-form-input-bg);
|
|
20
|
+
color: var(--color-text-100);
|
|
21
|
+
min-height: 128px;
|
|
22
|
+
max-height: 600px;
|
|
23
|
+
min-width: 200px;
|
|
24
|
+
border: 1px solid var(--color-weight-200);
|
|
25
|
+
border-radius: 0 0 var(--border-radius-input) var(--border-radius-input);
|
|
26
|
+
transition: border-color 0.2s;
|
|
27
|
+
overflow: auto;
|
|
28
|
+
text-align: initial;
|
|
29
|
+
|
|
30
|
+
&:focus {
|
|
31
|
+
border-color: var(--color-primary-500) !important;
|
|
32
|
+
box-shadow: 0 0 1px 1px var(--color-primary-100);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Add space around the hr to make clicking it easier */
|
|
36
|
+
|
|
37
|
+
hr {
|
|
38
|
+
padding: 2px 10px;
|
|
39
|
+
border: none;
|
|
40
|
+
margin: 1em 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
hr:after {
|
|
44
|
+
content: '';
|
|
45
|
+
display: block;
|
|
46
|
+
height: 1px;
|
|
47
|
+
background-color: silver;
|
|
48
|
+
line-height: 2px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
img {
|
|
52
|
+
cursor: default;
|
|
53
|
+
max-width: 100%;
|
|
54
|
+
width: revert-layer;
|
|
55
|
+
height: revert-layer;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
a:link,
|
|
59
|
+
a:visited {
|
|
60
|
+
color: var(--color-primary-700);
|
|
61
|
+
text-decoration: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.iframe-wrapper {
|
|
65
|
+
width: 100%;
|
|
66
|
+
text-align: center;
|
|
67
|
+
padding: 6px;
|
|
68
|
+
transition: background-color 0.3s;
|
|
69
|
+
&:hover {
|
|
70
|
+
background-color: var(--color-primary-100);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
.ProseMirror {
|
|
77
|
+
position: relative;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.ProseMirror {
|
|
81
|
+
word-wrap: break-word;
|
|
82
|
+
white-space: pre-wrap;
|
|
83
|
+
-webkit-font-variant-ligatures: none;
|
|
84
|
+
font-variant-ligatures: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.ProseMirror pre {
|
|
88
|
+
white-space: pre-wrap;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.ProseMirror li {
|
|
92
|
+
position: relative;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.ProseMirror-hideselection *::selection {
|
|
96
|
+
background: transparent;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.ProseMirror-hideselection *::-moz-selection {
|
|
100
|
+
background: transparent;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.ProseMirror-hideselection {
|
|
104
|
+
caret-color: transparent;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.ProseMirror-selectednode {
|
|
108
|
+
outline: 2px solid var(--color-primary-500);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Make sure li selections wrap around markers */
|
|
112
|
+
|
|
113
|
+
li.ProseMirror-selectednode {
|
|
114
|
+
outline: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
li.ProseMirror-selectednode:after {
|
|
118
|
+
content: '';
|
|
119
|
+
position: absolute;
|
|
120
|
+
left: -32px;
|
|
121
|
+
right: -2px;
|
|
122
|
+
top: -2px;
|
|
123
|
+
bottom: -2px;
|
|
124
|
+
border: 2px solid var(--color-primary-500);
|
|
125
|
+
pointer-events: none;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.ProseMirror-textblock-dropdown {
|
|
129
|
+
min-width: 3em;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.ProseMirror-menu {
|
|
133
|
+
margin: 0 -4px;
|
|
134
|
+
line-height: 1;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.ProseMirror-tooltip .ProseMirror-menu {
|
|
138
|
+
width: -webkit-fit-content;
|
|
139
|
+
width: fit-content;
|
|
140
|
+
white-space: pre;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.ProseMirror-menuitem {
|
|
144
|
+
margin-inline-end: 3px;
|
|
145
|
+
display: inline-block;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.ProseMirror-menuseparator {
|
|
149
|
+
border-inline-end: 1px solid var(--color-component-border-200);
|
|
150
|
+
margin: 0 12px 0 8px;
|
|
151
|
+
height: 18px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.ProseMirror-menu-dropdown,
|
|
155
|
+
.ProseMirror-menu-dropdown-menu {
|
|
156
|
+
font-size: 90%;
|
|
157
|
+
white-space: nowrap;
|
|
158
|
+
border-radius: var(--border-radius-input);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.ProseMirror-menu-dropdown {
|
|
162
|
+
vertical-align: 1px;
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
position: relative;
|
|
165
|
+
padding-inline-end: 15px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.ProseMirror-menu-dropdown-wrap {
|
|
169
|
+
padding: 1px 3px 1px 6px;
|
|
170
|
+
display: inline-block;
|
|
171
|
+
position: relative;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.ProseMirror-menu-dropdown:after {
|
|
175
|
+
content: '';
|
|
176
|
+
border-inline-start: 4px solid transparent;
|
|
177
|
+
border-inline-end: 4px solid transparent;
|
|
178
|
+
border-top: 4px solid currentColor;
|
|
179
|
+
opacity: 0.6;
|
|
180
|
+
position: absolute;
|
|
181
|
+
right: 4px;
|
|
182
|
+
top: calc(50% - 2px);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.ProseMirror-menu-dropdown-menu,
|
|
186
|
+
.ProseMirror-menu-submenu {
|
|
187
|
+
position: absolute;
|
|
188
|
+
background: var(--color-component-bg-100);
|
|
189
|
+
border: 1px solid var(--color-component-border-200);
|
|
190
|
+
padding: 2px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.ProseMirror-menu-dropdown-menu {
|
|
194
|
+
z-index: 15;
|
|
195
|
+
min-width: 6em;
|
|
196
|
+
color: var(--color-text-200);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.ProseMirror-menu-dropdown-item {
|
|
200
|
+
cursor: pointer;
|
|
201
|
+
padding: 2px 8px 2px 4px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.ProseMirror-menu-dropdown-item:hover {
|
|
205
|
+
background: var(--color-component-bg-200);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.ProseMirror-menu-submenu-wrap {
|
|
209
|
+
position: relative;
|
|
210
|
+
margin-inline-end: 4px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.ProseMirror-menu-submenu-label:after {
|
|
214
|
+
content: '';
|
|
215
|
+
border-top: 4px solid transparent;
|
|
216
|
+
border-bottom: 4px solid transparent;
|
|
217
|
+
border-inline-start: 4px solid currentColor;
|
|
218
|
+
opacity: 0.6;
|
|
219
|
+
position: absolute;
|
|
220
|
+
right: -8px;
|
|
221
|
+
top: calc(50% - 4px);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.ProseMirror-menu-submenu {
|
|
225
|
+
display: none;
|
|
226
|
+
min-width: 4em;
|
|
227
|
+
left: 100%;
|
|
228
|
+
top: -3px;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.ProseMirror-menu-active {
|
|
232
|
+
background: var(--color-component-bg-100);
|
|
233
|
+
border-radius: 4px;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.ProseMirror-menu-active {
|
|
237
|
+
background: var(--color-component-bg-100);
|
|
238
|
+
border-radius: 4px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.ProseMirror-menu-disabled {
|
|
242
|
+
opacity: 0.3;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.ProseMirror-menu-submenu-wrap:hover .ProseMirror-menu-submenu,
|
|
246
|
+
.ProseMirror-menu-submenu-wrap-active .ProseMirror-menu-submenu {
|
|
247
|
+
display: block;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.ProseMirror-menubar {
|
|
251
|
+
border-top-left-radius: inherit;
|
|
252
|
+
border-top-right-radius: inherit;
|
|
253
|
+
position: relative;
|
|
254
|
+
min-height: 1em;
|
|
255
|
+
color: var(--color-grey-600);
|
|
256
|
+
padding: 1px 6px;
|
|
257
|
+
top: 0;
|
|
258
|
+
left: 0;
|
|
259
|
+
right: 0;
|
|
260
|
+
background: var(--color-component-bg-100);
|
|
261
|
+
z-index: 10;
|
|
262
|
+
-moz-box-sizing: border-box;
|
|
263
|
+
box-sizing: border-box;
|
|
264
|
+
overflow: visible;
|
|
265
|
+
align-items: center;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.ProseMirror-icon {
|
|
269
|
+
display: inline-block;
|
|
270
|
+
line-height: 0.8;
|
|
271
|
+
vertical-align: -2px; /* Compensate for padding */
|
|
272
|
+
padding: 2px 8px;
|
|
273
|
+
cursor: pointer;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.ProseMirror-menu-disabled.ProseMirror-icon {
|
|
277
|
+
cursor: default;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.ProseMirror-icon svg {
|
|
281
|
+
fill: currentColor;
|
|
282
|
+
height: 1em;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.ProseMirror-icon span {
|
|
286
|
+
vertical-align: text-top;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.ProseMirror-gapcursor {
|
|
290
|
+
display: none;
|
|
291
|
+
pointer-events: none;
|
|
292
|
+
position: absolute;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.ProseMirror-gapcursor:after {
|
|
296
|
+
content: '';
|
|
297
|
+
display: block;
|
|
298
|
+
position: absolute;
|
|
299
|
+
top: -2px;
|
|
300
|
+
width: 20px;
|
|
301
|
+
border-top: 1px solid black;
|
|
302
|
+
animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
@keyframes ProseMirror-cursor-blink {
|
|
306
|
+
to {
|
|
307
|
+
visibility: hidden;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.ProseMirror-focused .ProseMirror-gapcursor {
|
|
312
|
+
display: block;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.ProseMirror ul,
|
|
316
|
+
.ProseMirror ol {
|
|
317
|
+
padding-inline-start: 30px;
|
|
318
|
+
list-style-position: initial;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.ProseMirror blockquote {
|
|
322
|
+
padding-inline-start: 1em;
|
|
323
|
+
border-inline-start: 3px solid var(--color-grey-100);
|
|
324
|
+
margin-inline-start: 0;
|
|
325
|
+
margin-inline-end: 0;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.ProseMirror-prompt {
|
|
329
|
+
background: white;
|
|
330
|
+
padding: 5px 10px 5px 15px;
|
|
331
|
+
border: 1px solid silver;
|
|
332
|
+
position: fixed;
|
|
333
|
+
border-radius: 3px;
|
|
334
|
+
z-index: 11;
|
|
335
|
+
box-shadow: -0.5px 2px 5px rgba(0, 0, 0, 0.2);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.ProseMirror-prompt h5 {
|
|
339
|
+
margin: 0;
|
|
340
|
+
font-weight: normal;
|
|
341
|
+
font-size: 100%;
|
|
342
|
+
color: var(--color-grey-500);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.ProseMirror-prompt input[type='text'],
|
|
346
|
+
.ProseMirror-prompt textarea {
|
|
347
|
+
background: var(--color-component-bg-100);
|
|
348
|
+
border: none;
|
|
349
|
+
outline: none;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.ProseMirror-prompt input[type='text'] {
|
|
353
|
+
padding: 0 4px;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.ProseMirror-prompt-close {
|
|
357
|
+
position: absolute;
|
|
358
|
+
left: 2px;
|
|
359
|
+
top: 1px;
|
|
360
|
+
color: var(--color-grey-400);
|
|
361
|
+
border: none;
|
|
362
|
+
background: transparent;
|
|
363
|
+
padding: 0;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.ProseMirror-prompt-close:after {
|
|
367
|
+
content: '✕';
|
|
368
|
+
font-size: 12px;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.ProseMirror-invalid {
|
|
372
|
+
background: var(--color-warning-200);
|
|
373
|
+
border: 1px solid var(--color-warning-300);
|
|
374
|
+
border-radius: 4px;
|
|
375
|
+
padding: 5px 10px;
|
|
376
|
+
position: absolute;
|
|
377
|
+
min-width: 10em;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.ProseMirror-prompt-buttons {
|
|
381
|
+
margin-top: 5px;
|
|
382
|
+
display: none;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
#editor,
|
|
386
|
+
.editor {
|
|
387
|
+
background: var(--color-form-input-bg);
|
|
388
|
+
color: black;
|
|
389
|
+
background-clip: padding-box;
|
|
390
|
+
border-radius: 4px;
|
|
391
|
+
border: 2px solid rgba(0, 0, 0, 0.2);
|
|
392
|
+
padding: 5px 0;
|
|
393
|
+
margin-bottom: 23px;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.ProseMirror p:first-child,
|
|
397
|
+
.ProseMirror h1:first-child,
|
|
398
|
+
.ProseMirror h2:first-child,
|
|
399
|
+
.ProseMirror h3:first-child,
|
|
400
|
+
.ProseMirror h4:first-child,
|
|
401
|
+
.ProseMirror h5:first-child,
|
|
402
|
+
.ProseMirror h6:first-child {
|
|
403
|
+
margin-top: 10px;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.ProseMirror {
|
|
407
|
+
padding: 4px 8px 4px 14px;
|
|
408
|
+
line-height: 1.2;
|
|
409
|
+
outline: none;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.ProseMirror p {
|
|
413
|
+
margin-bottom: 0.5rem;
|
|
414
|
+
color: var(--color-text-100) !important;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.ProseMirror .tableWrapper {
|
|
418
|
+
td,
|
|
419
|
+
th {
|
|
420
|
+
border: 1px solid var(--color-grey-300);
|
|
421
|
+
padding: 3px 6px;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
td p,
|
|
425
|
+
th p {
|
|
426
|
+
margin-top: 0;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
th,
|
|
430
|
+
th p {
|
|
431
|
+
font-weight: bold;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.ProseMirror table {
|
|
436
|
+
border-collapse: collapse;
|
|
437
|
+
table-layout: fixed;
|
|
438
|
+
width: 100%;
|
|
439
|
+
overflow: hidden;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.ProseMirror td,
|
|
443
|
+
.ProseMirror th {
|
|
444
|
+
vertical-align: top;
|
|
445
|
+
box-sizing: border-box;
|
|
446
|
+
position: relative;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.ProseMirror .column-resize-handle {
|
|
450
|
+
position: absolute;
|
|
451
|
+
right: -2px;
|
|
452
|
+
top: 0;
|
|
453
|
+
bottom: 0;
|
|
454
|
+
width: 4px;
|
|
455
|
+
z-index: 20;
|
|
456
|
+
background-color: #adf;
|
|
457
|
+
pointer-events: none;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.ProseMirror.resize-cursor {
|
|
461
|
+
cursor: ew-resize;
|
|
462
|
+
cursor: col-resize;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/* Give selected cells a blue overlay */
|
|
466
|
+
.ProseMirror .selectedCell:after {
|
|
467
|
+
z-index: 2;
|
|
468
|
+
position: absolute;
|
|
469
|
+
content: '';
|
|
470
|
+
left: 0;
|
|
471
|
+
right: 0;
|
|
472
|
+
top: 0;
|
|
473
|
+
bottom: 0;
|
|
474
|
+
background: #afdaf355;
|
|
475
|
+
pointer-events: none;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
.menu-separator {
|
|
480
|
+
border-bottom: 1px solid var(--color-grey-400);
|
|
481
|
+
height: 0;
|
|
482
|
+
margin: 6px 0;
|
|
483
|
+
pointer-events: none;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.menu-item-with-icon {
|
|
487
|
+
display: flex;
|
|
488
|
+
align-items: center;
|
|
489
|
+
|
|
490
|
+
clr-icon,
|
|
491
|
+
.custom-icon {
|
|
492
|
+
margin-inline-end: 4px;
|
|
493
|
+
color: var(--color-text-200);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.hr-icon {
|
|
497
|
+
width: 13px;
|
|
498
|
+
height: 8px;
|
|
499
|
+
border-bottom: 2px solid var(--color-text-100);
|
|
500
|
+
margin: -8px 5px 0 2px;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.h-icon {
|
|
504
|
+
width: 16px;
|
|
505
|
+
text-align: center;
|
|
506
|
+
font-weight: bold;
|
|
507
|
+
font-size: 12px;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.context-menu {
|
|
512
|
+
position: fixed;
|
|
513
|
+
}
|