@zero-library/common 2.2.13 → 2.3.0
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/dist/index.cjs.js +5847 -3016
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +879 -585
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +179 -17
- package/dist/index.d.ts +179 -17
- package/dist/index.esm.js +5792 -2965
- package/dist/index.esm.js.map +1 -1
- package/package.json +28 -22
package/dist/index.css
CHANGED
|
@@ -79,6 +79,67 @@
|
|
|
79
79
|
background-color: rgba(0, 0, 0, 0.3);
|
|
80
80
|
transition-delay: 0s;
|
|
81
81
|
}
|
|
82
|
+
.styles_module_nsPreviewPdfImage {
|
|
83
|
+
width: 100%;
|
|
84
|
+
height: 100%;
|
|
85
|
+
}
|
|
86
|
+
.styles_module_nsPreviewPdfImage .styles_module_pdfImageNav .styles_module_pdfImageNavItem {
|
|
87
|
+
position: absolute;
|
|
88
|
+
width: 100%;
|
|
89
|
+
padding: 2px 8px;
|
|
90
|
+
}
|
|
91
|
+
.styles_module_nsPreviewPdfImage .styles_module_pdfImageNav .styles_module_pdfImageNavItem .styles_module_pdfImageNavItemImgWrapper {
|
|
92
|
+
width: 346px;
|
|
93
|
+
border: 8px solid transparent;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
transition: all 0.3s ease;
|
|
96
|
+
}
|
|
97
|
+
.styles_module_nsPreviewPdfImage .styles_module_pdfImageNav .styles_module_pdfImageNavItem .styles_module_pdfImageNavItemImgWrapper:hover {
|
|
98
|
+
border-color: rgba(0, 0, 0, 0.3);
|
|
99
|
+
}
|
|
100
|
+
.styles_module_nsPreviewPdfImage .styles_module_pdfImageNav .styles_module_pdfImageNavItem .styles_module_pdfImageNavItemImgWrapper.styles_module_pdfImageNavItemActive {
|
|
101
|
+
border-color: rgba(0, 0, 0, 0.3);
|
|
102
|
+
}
|
|
103
|
+
.styles_module_nsPreviewPdfImage .styles_module_pdfImageNav .styles_module_pdfImageNavItem .styles_module_pdfImageNavItemImgWrapper .styles_module_pdfImageNavItemImg {
|
|
104
|
+
height: 100%;
|
|
105
|
+
width: 100%;
|
|
106
|
+
}
|
|
107
|
+
.styles_module_nsPreviewPdfImage .styles_module_pdfImageNav .styles_module_pdfImageNavItem .styles_module_pdfImageNavItemTip {
|
|
108
|
+
font-size: 12px;
|
|
109
|
+
padding: 8px;
|
|
110
|
+
color: rgba(0, 0, 0, 0.88);
|
|
111
|
+
}
|
|
112
|
+
.styles_module_nsPreviewPdfImage .styles_module_pdfImageBody .styles_module_pdfImageBodyToolbar {
|
|
113
|
+
position: absolute;
|
|
114
|
+
bottom: 20px;
|
|
115
|
+
left: 50%;
|
|
116
|
+
transform: translateX(-50%);
|
|
117
|
+
background: #fff;
|
|
118
|
+
padding: 8px 16px 6px;
|
|
119
|
+
border-radius: 6px;
|
|
120
|
+
box-shadow: 0 0 15px rgba(1, 1, 1, 0.1);
|
|
121
|
+
z-index: 1;
|
|
122
|
+
}
|
|
123
|
+
.styles_module_nsPreviewPdfImage .styles_module_pdfImageBody .styles_module_pdfImageBodyItem {
|
|
124
|
+
position: absolute;
|
|
125
|
+
width: 100%;
|
|
126
|
+
}
|
|
127
|
+
.styles_module_nsPreviewPdfImage .styles_module_pdfImageBody .styles_module_pdfImageBodyItem .styles_module_pdfImageBodyItemInnerWrapper {
|
|
128
|
+
margin: 0 auto;
|
|
129
|
+
}
|
|
130
|
+
.styles_module_nsPreviewPdfImage .styles_module_pdfImageBody .styles_module_pdfImageBodyItem .styles_module_pdfImageBodyItemInnerWrapper .styles_module_pdfImageBodyItemInner {
|
|
131
|
+
height: 100%;
|
|
132
|
+
width: 100%;
|
|
133
|
+
transition: box-shadow 0.3s;
|
|
134
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
|
135
|
+
}
|
|
136
|
+
.styles_module_nsPreviewPdfImage .styles_module_pdfImageBody .styles_module_pdfImageBodyItem .styles_module_pdfImageBodyItemInnerWrapper .styles_module_pdfImageBodyItemInner.styles_module_pdfImageBodyItemActive {
|
|
137
|
+
box-shadow: 0 0 10px var(--ant-color-primary);
|
|
138
|
+
}
|
|
139
|
+
.styles_module_nsPreviewPdfImage .styles_module_pdfImageBody .styles_module_pdfImageBodyItem .styles_module_pdfImageBodyItemInnerWrapper .styles_module_pdfImageBodyItemInner .styles_module_pdfImageBodyItemImg {
|
|
140
|
+
height: 100%;
|
|
141
|
+
width: 100%;
|
|
142
|
+
}
|
|
82
143
|
.styles_module_nsPreviewVideo {
|
|
83
144
|
max-width: 100%;
|
|
84
145
|
max-height: 100%;
|
|
@@ -102,6 +163,11 @@
|
|
|
102
163
|
background: gray;
|
|
103
164
|
}
|
|
104
165
|
|
|
166
|
+
/* src/components/LazyComponent/styles.module.less */
|
|
167
|
+
.styles_module_skeleton {
|
|
168
|
+
width: 100% !important;
|
|
169
|
+
}
|
|
170
|
+
|
|
105
171
|
/* src/components/RenderMarkdown/markdown.less */
|
|
106
172
|
.ns-markdown .cube-hl {
|
|
107
173
|
background-color: var(--ant-yellow);
|
|
@@ -175,47 +241,8 @@
|
|
|
175
241
|
display: block;
|
|
176
242
|
}
|
|
177
243
|
|
|
178
|
-
/* src/components/MarkdownEditor/
|
|
179
|
-
|
|
180
|
-
--tt-toolbar-height: 44px;
|
|
181
|
-
--tt-theme-text: var(--tt-gray-light-900);
|
|
182
|
-
}
|
|
183
|
-
.dark .editor-parent {
|
|
184
|
-
--tt-theme-text: var(--tt-gray-dark-900);
|
|
185
|
-
}
|
|
186
|
-
.editor-parent .tiptap.ProseMirror {
|
|
187
|
-
font-family: "DM Sans", sans-serif;
|
|
188
|
-
}
|
|
189
|
-
.editor-parent .content-wrapper {
|
|
190
|
-
height: calc(100% - var(--tt-toolbar-height));
|
|
191
|
-
overflow-y: auto;
|
|
192
|
-
}
|
|
193
|
-
.editor-parent .content-wrapper > div[data-tippy-root] {
|
|
194
|
-
z-index: 900 !important;
|
|
195
|
-
}
|
|
196
|
-
.editor-parent .simple-editor-content {
|
|
197
|
-
max-width: 1000px;
|
|
198
|
-
width: 100%;
|
|
199
|
-
margin: 0 auto;
|
|
200
|
-
min-height: 100%;
|
|
201
|
-
display: flex;
|
|
202
|
-
flex-direction: column;
|
|
203
|
-
}
|
|
204
|
-
.editor-parent .simple-editor-content .tiptap.ProseMirror {
|
|
205
|
-
padding: 18px;
|
|
206
|
-
flex: 1;
|
|
207
|
-
}
|
|
208
|
-
@media screen and (width <= 480px) {
|
|
209
|
-
.editor-parent .simple-editor-content .tiptap.ProseMirror {
|
|
210
|
-
padding: 1rem 1.5rem;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
.editor-parent .simple-editor-content.no-toolbar .tiptap.ProseMirror {
|
|
214
|
-
padding: 0;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/* src/components/MarkdownEditor/styles/_keyframe-animations.less */
|
|
218
|
-
@keyframes fadeIn {
|
|
244
|
+
/* src/components/MarkdownEditor/styles.module.less */
|
|
245
|
+
@keyframes styles_module_fadeIn {
|
|
219
246
|
from {
|
|
220
247
|
opacity: 0;
|
|
221
248
|
}
|
|
@@ -223,7 +250,7 @@
|
|
|
223
250
|
opacity: 1;
|
|
224
251
|
}
|
|
225
252
|
}
|
|
226
|
-
@keyframes
|
|
253
|
+
@keyframes styles_module_fadeOut {
|
|
227
254
|
from {
|
|
228
255
|
opacity: 1;
|
|
229
256
|
}
|
|
@@ -231,7 +258,7 @@
|
|
|
231
258
|
opacity: 0;
|
|
232
259
|
}
|
|
233
260
|
}
|
|
234
|
-
@keyframes
|
|
261
|
+
@keyframes styles_module_zoomIn {
|
|
235
262
|
from {
|
|
236
263
|
transform: scale(0.95);
|
|
237
264
|
}
|
|
@@ -239,7 +266,7 @@
|
|
|
239
266
|
transform: scale(1);
|
|
240
267
|
}
|
|
241
268
|
}
|
|
242
|
-
@keyframes
|
|
269
|
+
@keyframes styles_module_zoomOut {
|
|
243
270
|
from {
|
|
244
271
|
transform: scale(1);
|
|
245
272
|
}
|
|
@@ -247,7 +274,7 @@
|
|
|
247
274
|
transform: scale(0.95);
|
|
248
275
|
}
|
|
249
276
|
}
|
|
250
|
-
@keyframes
|
|
277
|
+
@keyframes styles_module_zoom {
|
|
251
278
|
0% {
|
|
252
279
|
opacity: 0;
|
|
253
280
|
transform: scale(0.95);
|
|
@@ -257,7 +284,7 @@
|
|
|
257
284
|
transform: scale(1);
|
|
258
285
|
}
|
|
259
286
|
}
|
|
260
|
-
@keyframes
|
|
287
|
+
@keyframes styles_module_slideFromTop {
|
|
261
288
|
from {
|
|
262
289
|
transform: translateY(-0.5rem);
|
|
263
290
|
}
|
|
@@ -265,7 +292,7 @@
|
|
|
265
292
|
transform: translateY(0);
|
|
266
293
|
}
|
|
267
294
|
}
|
|
268
|
-
@keyframes
|
|
295
|
+
@keyframes styles_module_slideFromRight {
|
|
269
296
|
from {
|
|
270
297
|
transform: translateX(0.5rem);
|
|
271
298
|
}
|
|
@@ -273,7 +300,7 @@
|
|
|
273
300
|
transform: translateX(0);
|
|
274
301
|
}
|
|
275
302
|
}
|
|
276
|
-
@keyframes
|
|
303
|
+
@keyframes styles_module_slideFromLeft {
|
|
277
304
|
from {
|
|
278
305
|
transform: translateX(-0.5rem);
|
|
279
306
|
}
|
|
@@ -281,7 +308,7 @@
|
|
|
281
308
|
transform: translateX(0);
|
|
282
309
|
}
|
|
283
310
|
}
|
|
284
|
-
@keyframes
|
|
311
|
+
@keyframes styles_module_slideFromBottom {
|
|
285
312
|
from {
|
|
286
313
|
transform: translateY(0.5rem);
|
|
287
314
|
}
|
|
@@ -289,7 +316,7 @@
|
|
|
289
316
|
transform: translateY(0);
|
|
290
317
|
}
|
|
291
318
|
}
|
|
292
|
-
@keyframes
|
|
319
|
+
@keyframes styles_module_spin {
|
|
293
320
|
from {
|
|
294
321
|
transform: rotate(0deg);
|
|
295
322
|
}
|
|
@@ -297,200 +324,6 @@
|
|
|
297
324
|
transform: rotate(360deg);
|
|
298
325
|
}
|
|
299
326
|
}
|
|
300
|
-
|
|
301
|
-
/* src/components/MarkdownEditor/styles/_reset.less */
|
|
302
|
-
.tiptap.ProseMirror {
|
|
303
|
-
}
|
|
304
|
-
.tiptap.ProseMirror hr {
|
|
305
|
-
height: 0;
|
|
306
|
-
color: inherit;
|
|
307
|
-
border-top-width: 1px;
|
|
308
|
-
}
|
|
309
|
-
.tiptap.ProseMirror abbr:where([title]) {
|
|
310
|
-
text-decoration: underline dotted;
|
|
311
|
-
}
|
|
312
|
-
.tiptap.ProseMirror h1,
|
|
313
|
-
.tiptap.ProseMirror h2,
|
|
314
|
-
.tiptap.ProseMirror h3,
|
|
315
|
-
.tiptap.ProseMirror h4,
|
|
316
|
-
.tiptap.ProseMirror h5,
|
|
317
|
-
.tiptap.ProseMirror h6 {
|
|
318
|
-
font-size: inherit;
|
|
319
|
-
font-weight: inherit;
|
|
320
|
-
}
|
|
321
|
-
.tiptap.ProseMirror a {
|
|
322
|
-
color: inherit;
|
|
323
|
-
text-decoration: inherit;
|
|
324
|
-
}
|
|
325
|
-
.tiptap.ProseMirror b,
|
|
326
|
-
.tiptap.ProseMirror strong {
|
|
327
|
-
font-weight: bolder;
|
|
328
|
-
}
|
|
329
|
-
.tiptap.ProseMirror code,
|
|
330
|
-
.tiptap.ProseMirror kbd,
|
|
331
|
-
.tiptap.ProseMirror samp,
|
|
332
|
-
.tiptap.ProseMirror pre {
|
|
333
|
-
font-family:
|
|
334
|
-
ui-monospace,
|
|
335
|
-
SFMono-Regular,
|
|
336
|
-
Menlo,
|
|
337
|
-
Monaco,
|
|
338
|
-
Consolas,
|
|
339
|
-
"Liberation Mono",
|
|
340
|
-
"Courier New",
|
|
341
|
-
monospace;
|
|
342
|
-
font-feature-settings: normal;
|
|
343
|
-
font-variation-settings: normal;
|
|
344
|
-
font-size: 1em;
|
|
345
|
-
}
|
|
346
|
-
.tiptap.ProseMirror small {
|
|
347
|
-
font-size: 80%;
|
|
348
|
-
}
|
|
349
|
-
.tiptap.ProseMirror sub,
|
|
350
|
-
.tiptap.ProseMirror sup {
|
|
351
|
-
font-size: 75%;
|
|
352
|
-
line-height: 0;
|
|
353
|
-
position: relative;
|
|
354
|
-
vertical-align: baseline;
|
|
355
|
-
}
|
|
356
|
-
.tiptap.ProseMirror sub {
|
|
357
|
-
bottom: -0.25em;
|
|
358
|
-
}
|
|
359
|
-
.tiptap.ProseMirror sup {
|
|
360
|
-
top: -0.5em;
|
|
361
|
-
}
|
|
362
|
-
.tiptap.ProseMirror table {
|
|
363
|
-
text-indent: 0;
|
|
364
|
-
border-color: inherit;
|
|
365
|
-
border-collapse: collapse;
|
|
366
|
-
}
|
|
367
|
-
.tiptap.ProseMirror button,
|
|
368
|
-
.tiptap.ProseMirror input,
|
|
369
|
-
.tiptap.ProseMirror optgroup,
|
|
370
|
-
.tiptap.ProseMirror select,
|
|
371
|
-
.tiptap.ProseMirror textarea {
|
|
372
|
-
font-family: inherit;
|
|
373
|
-
font-feature-settings: inherit;
|
|
374
|
-
font-variation-settings: inherit;
|
|
375
|
-
font-size: 100%;
|
|
376
|
-
font-weight: inherit;
|
|
377
|
-
line-height: inherit;
|
|
378
|
-
letter-spacing: inherit;
|
|
379
|
-
color: inherit;
|
|
380
|
-
margin: 0;
|
|
381
|
-
padding: 0;
|
|
382
|
-
}
|
|
383
|
-
.tiptap.ProseMirror button,
|
|
384
|
-
.tiptap.ProseMirror select {
|
|
385
|
-
text-transform: none;
|
|
386
|
-
}
|
|
387
|
-
.tiptap.ProseMirror button,
|
|
388
|
-
.tiptap.ProseMirror input:where([type=button]),
|
|
389
|
-
.tiptap.ProseMirror input:where([type=reset]),
|
|
390
|
-
.tiptap.ProseMirror input:where([type=submit]) {
|
|
391
|
-
appearance: button;
|
|
392
|
-
background-color: transparent;
|
|
393
|
-
background-image: none;
|
|
394
|
-
}
|
|
395
|
-
.tiptap.ProseMirror :-moz-focusring {
|
|
396
|
-
outline: auto;
|
|
397
|
-
}
|
|
398
|
-
.tiptap.ProseMirror :-moz-ui-invalid {
|
|
399
|
-
box-shadow: none;
|
|
400
|
-
}
|
|
401
|
-
.tiptap.ProseMirror progress {
|
|
402
|
-
vertical-align: baseline;
|
|
403
|
-
}
|
|
404
|
-
.tiptap.ProseMirror ::-webkit-inner-spin-button,
|
|
405
|
-
.tiptap.ProseMirror ::-webkit-outer-spin-button {
|
|
406
|
-
height: auto;
|
|
407
|
-
}
|
|
408
|
-
.tiptap.ProseMirror [type=search] {
|
|
409
|
-
appearance: textfield;
|
|
410
|
-
outline-offset: -2px;
|
|
411
|
-
}
|
|
412
|
-
.tiptap.ProseMirror ::-webkit-search-decoration {
|
|
413
|
-
appearance: none;
|
|
414
|
-
}
|
|
415
|
-
.tiptap.ProseMirror ::-webkit-file-upload-button {
|
|
416
|
-
appearance: button;
|
|
417
|
-
font: inherit;
|
|
418
|
-
}
|
|
419
|
-
.tiptap.ProseMirror summary {
|
|
420
|
-
display: list-item;
|
|
421
|
-
}
|
|
422
|
-
.tiptap.ProseMirror blockquote,
|
|
423
|
-
.tiptap.ProseMirror dl,
|
|
424
|
-
.tiptap.ProseMirror dd,
|
|
425
|
-
.tiptap.ProseMirror h1,
|
|
426
|
-
.tiptap.ProseMirror h2,
|
|
427
|
-
.tiptap.ProseMirror h3,
|
|
428
|
-
.tiptap.ProseMirror h4,
|
|
429
|
-
.tiptap.ProseMirror h5,
|
|
430
|
-
.tiptap.ProseMirror h6,
|
|
431
|
-
.tiptap.ProseMirror hr,
|
|
432
|
-
.tiptap.ProseMirror figure,
|
|
433
|
-
.tiptap.ProseMirror p,
|
|
434
|
-
.tiptap.ProseMirror pre {
|
|
435
|
-
margin: 0;
|
|
436
|
-
}
|
|
437
|
-
.tiptap.ProseMirror fieldset {
|
|
438
|
-
margin: 0;
|
|
439
|
-
padding: 0;
|
|
440
|
-
}
|
|
441
|
-
.tiptap.ProseMirror legend {
|
|
442
|
-
padding: 0;
|
|
443
|
-
}
|
|
444
|
-
.tiptap.ProseMirror ol,
|
|
445
|
-
.tiptap.ProseMirror ul,
|
|
446
|
-
.tiptap.ProseMirror menu {
|
|
447
|
-
list-style: none;
|
|
448
|
-
margin: 0;
|
|
449
|
-
padding: 0;
|
|
450
|
-
}
|
|
451
|
-
.tiptap.ProseMirror dialog {
|
|
452
|
-
padding: 0;
|
|
453
|
-
}
|
|
454
|
-
.tiptap.ProseMirror textarea {
|
|
455
|
-
resize: vertical;
|
|
456
|
-
}
|
|
457
|
-
.tiptap.ProseMirror input::placeholder,
|
|
458
|
-
.tiptap.ProseMirror textarea::-moz-placeholder {
|
|
459
|
-
opacity: 1;
|
|
460
|
-
color: #9ca3af;
|
|
461
|
-
}
|
|
462
|
-
.tiptap.ProseMirror input::placeholder,
|
|
463
|
-
.tiptap.ProseMirror textarea::placeholder {
|
|
464
|
-
opacity: 1;
|
|
465
|
-
color: #9ca3af;
|
|
466
|
-
}
|
|
467
|
-
.tiptap.ProseMirror button,
|
|
468
|
-
.tiptap.ProseMirror [role=button] {
|
|
469
|
-
cursor: pointer;
|
|
470
|
-
}
|
|
471
|
-
.tiptap.ProseMirror :disabled {
|
|
472
|
-
cursor: default;
|
|
473
|
-
}
|
|
474
|
-
.tiptap.ProseMirror img,
|
|
475
|
-
.tiptap.ProseMirror svg,
|
|
476
|
-
.tiptap.ProseMirror video,
|
|
477
|
-
.tiptap.ProseMirror canvas,
|
|
478
|
-
.tiptap.ProseMirror audio,
|
|
479
|
-
.tiptap.ProseMirror iframe,
|
|
480
|
-
.tiptap.ProseMirror embed,
|
|
481
|
-
.tiptap.ProseMirror object {
|
|
482
|
-
display: block;
|
|
483
|
-
}
|
|
484
|
-
.tiptap.ProseMirror img,
|
|
485
|
-
.tiptap.ProseMirror video {
|
|
486
|
-
max-width: 100%;
|
|
487
|
-
height: auto;
|
|
488
|
-
}
|
|
489
|
-
.tiptap.ProseMirror [hidden]:where(:not([hidden=until-found])) {
|
|
490
|
-
display: none;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
/* src/components/MarkdownEditor/styles/_variables.less */
|
|
494
327
|
:root {
|
|
495
328
|
--tt-gray-light-a-50: rgba(56, 56, 56, 0.04);
|
|
496
329
|
--tt-gray-light-a-100: rgba(15, 22, 36, 0.05);
|
|
@@ -613,7 +446,7 @@
|
|
|
613
446
|
--tt-card-bg-color: var(--white);
|
|
614
447
|
--tt-card-border-color: var(--tt-gray-light-a-100);
|
|
615
448
|
}
|
|
616
|
-
.
|
|
449
|
+
.styles_module_dark {
|
|
617
450
|
--tt-bg-color: var(--black);
|
|
618
451
|
--tt-border-color: var(--tt-gray-dark-a-200);
|
|
619
452
|
--tt-border-color-tint: var(--tt-gray-dark-a-100);
|
|
@@ -630,84 +463,150 @@
|
|
|
630
463
|
0px 2px 3px 0px rgba(0, 0, 0, 0.12);
|
|
631
464
|
}
|
|
632
465
|
:root {
|
|
633
|
-
--tt-text-
|
|
634
|
-
--tt-text-
|
|
635
|
-
--tt-text-
|
|
636
|
-
--tt-text-
|
|
637
|
-
--tt-text-
|
|
638
|
-
--tt-text-
|
|
639
|
-
--tt-text-
|
|
640
|
-
--tt-text-
|
|
641
|
-
--tt-text-
|
|
642
|
-
--tt-text-
|
|
643
|
-
--tt-text-
|
|
644
|
-
--tt-text-
|
|
645
|
-
--tt-text-
|
|
646
|
-
--tt-text-
|
|
647
|
-
--tt-text-
|
|
648
|
-
--tt-text-
|
|
649
|
-
--tt-text-
|
|
650
|
-
--tt-text-
|
|
651
|
-
}
|
|
652
|
-
.
|
|
653
|
-
--tt-text-
|
|
654
|
-
--tt-text-
|
|
655
|
-
--tt-text-
|
|
656
|
-
--tt-text-
|
|
657
|
-
--tt-text-
|
|
658
|
-
--tt-text-
|
|
659
|
-
--tt-text-
|
|
660
|
-
--tt-text-
|
|
661
|
-
--tt-text-
|
|
662
|
-
--tt-text-
|
|
663
|
-
--tt-text-
|
|
664
|
-
--tt-text-
|
|
665
|
-
--tt-text-
|
|
666
|
-
--tt-text-
|
|
667
|
-
--tt-text-
|
|
668
|
-
--tt-text-
|
|
669
|
-
--tt-text-
|
|
670
|
-
--tt-text-
|
|
466
|
+
--tt-color-text-gray: hsl(45, 2%, 46%);
|
|
467
|
+
--tt-color-text-brown: hsl(19, 31%, 47%);
|
|
468
|
+
--tt-color-text-orange: hsl(30, 89%, 45%);
|
|
469
|
+
--tt-color-text-yellow: hsl(38, 62%, 49%);
|
|
470
|
+
--tt-color-text-green: hsl(148, 32%, 39%);
|
|
471
|
+
--tt-color-text-blue: hsl(202, 54%, 43%);
|
|
472
|
+
--tt-color-text-purple: hsl(274, 32%, 54%);
|
|
473
|
+
--tt-color-text-pink: hsl(328, 49%, 53%);
|
|
474
|
+
--tt-color-text-red: hsl(2, 62%, 55%);
|
|
475
|
+
--tt-color-text-gray-contrast: hsla(39, 26%, 26%, 0.15);
|
|
476
|
+
--tt-color-text-brown-contrast: hsla(18, 43%, 69%, 0.35);
|
|
477
|
+
--tt-color-text-orange-contrast: hsla(24, 73%, 55%, 0.27);
|
|
478
|
+
--tt-color-text-yellow-contrast: hsla(44, 82%, 59%, 0.39);
|
|
479
|
+
--tt-color-text-green-contrast: hsla(126, 29%, 60%, 0.27);
|
|
480
|
+
--tt-color-text-blue-contrast: hsla(202, 54%, 59%, 0.27);
|
|
481
|
+
--tt-color-text-purple-contrast: hsla(274, 37%, 64%, 0.27);
|
|
482
|
+
--tt-color-text-pink-contrast: hsla(331, 60%, 71%, 0.27);
|
|
483
|
+
--tt-color-text-red-contrast: hsla(8, 79%, 79%, 0.4);
|
|
484
|
+
}
|
|
485
|
+
.styles_module_dark {
|
|
486
|
+
--tt-color-text-gray: hsl(0, 0%, 61%);
|
|
487
|
+
--tt-color-text-brown: hsl(18, 35%, 58%);
|
|
488
|
+
--tt-color-text-orange: hsl(25, 53%, 53%);
|
|
489
|
+
--tt-color-text-yellow: hsl(36, 54%, 55%);
|
|
490
|
+
--tt-color-text-green: hsl(145, 32%, 47%);
|
|
491
|
+
--tt-color-text-blue: hsl(202, 64%, 52%);
|
|
492
|
+
--tt-color-text-purple: hsl(270, 55%, 62%);
|
|
493
|
+
--tt-color-text-pink: hsl(329, 57%, 58%);
|
|
494
|
+
--tt-color-text-red: hsl(1, 69%, 60%);
|
|
495
|
+
--tt-color-text-gray-contrast: hsla(0, 0%, 100%, 0.09);
|
|
496
|
+
--tt-color-text-brown-contrast: hsla(17, 45%, 50%, 0.25);
|
|
497
|
+
--tt-color-text-orange-contrast: hsla(27, 82%, 53%, 0.2);
|
|
498
|
+
--tt-color-text-yellow-contrast: hsla(35, 49%, 47%, 0.2);
|
|
499
|
+
--tt-color-text-green-contrast: hsla(151, 55%, 39%, 0.2);
|
|
500
|
+
--tt-color-text-blue-contrast: hsla(202, 54%, 43%, 0.2);
|
|
501
|
+
--tt-color-text-purple-contrast: hsla(271, 56%, 60%, 0.18);
|
|
502
|
+
--tt-color-text-pink-contrast: hsla(331, 67%, 58%, 0.22);
|
|
503
|
+
--tt-color-text-red-contrast: hsla(0, 67%, 60%, 0.25);
|
|
671
504
|
}
|
|
672
505
|
:root {
|
|
673
|
-
--tt-highlight-yellow: #fef9c3;
|
|
674
|
-
--tt-highlight-green: #dcfce7;
|
|
675
|
-
--tt-highlight-blue: #e0f2fe;
|
|
676
|
-
--tt-highlight-purple: #f3e8ff;
|
|
677
|
-
--tt-highlight-red: #ffe4e6;
|
|
678
|
-
--tt-highlight-gray: #f8f8f7;
|
|
679
|
-
--tt-highlight-brown: #f4eeee;
|
|
680
|
-
--tt-highlight-orange: #fbecdd;
|
|
681
|
-
--tt-highlight-pink: #fcf1f6;
|
|
682
|
-
--tt-highlight-yellow-contrast: #fbe604;
|
|
683
|
-
--tt-highlight-green-contrast: #c7fad8;
|
|
684
|
-
--tt-highlight-blue-contrast: #ceeafd;
|
|
685
|
-
--tt-highlight-purple-contrast: #e4ccff;
|
|
686
|
-
--tt-highlight-red-contrast: #ffccd0;
|
|
687
|
-
--tt-highlight-gray-contrast: rgba(84, 72, 49, 0.15);
|
|
688
|
-
--tt-highlight-brown-contrast: rgba(210, 162, 141, 0.35);
|
|
689
|
-
--tt-highlight-orange-contrast: rgba(224, 124, 57, 0.27);
|
|
690
|
-
--tt-highlight-pink-contrast: rgba(225, 136, 179, 0.27);
|
|
691
|
-
}
|
|
692
|
-
.
|
|
693
|
-
--tt-highlight-yellow: #6b6524;
|
|
694
|
-
--tt-highlight-green: #509568;
|
|
695
|
-
--tt-highlight-blue: #6e92aa;
|
|
696
|
-
--tt-highlight-purple: #583e74;
|
|
697
|
-
--tt-highlight-red: #743e42;
|
|
698
|
-
--tt-highlight-gray: #2f2f2f;
|
|
699
|
-
--tt-highlight-brown: #4a3228;
|
|
700
|
-
--tt-highlight-orange: #5c3b23;
|
|
701
|
-
--tt-highlight-pink: #4e2c3c;
|
|
702
|
-
--tt-highlight-yellow-contrast: #58531e;
|
|
703
|
-
--tt-highlight-green-contrast: #47855d;
|
|
704
|
-
--tt-highlight-blue-contrast: #5e86a1;
|
|
705
|
-
--tt-highlight-purple-contrast: #4c3564;
|
|
706
|
-
--tt-highlight-red-contrast: #643539;
|
|
707
|
-
--tt-highlight-gray-contrast: rgba(255, 255, 255, 0.094);
|
|
708
|
-
--tt-highlight-brown-contrast: rgba(184, 101, 69, 0.25);
|
|
709
|
-
--tt-highlight-orange-contrast: rgba(233, 126, 37, 0.2);
|
|
710
|
-
--tt-highlight-pink-contrast: rgba(220, 76, 145, 0.22);
|
|
506
|
+
--tt-color-highlight-yellow: #fef9c3;
|
|
507
|
+
--tt-color-highlight-green: #dcfce7;
|
|
508
|
+
--tt-color-highlight-blue: #e0f2fe;
|
|
509
|
+
--tt-color-highlight-purple: #f3e8ff;
|
|
510
|
+
--tt-color-highlight-red: #ffe4e6;
|
|
511
|
+
--tt-color-highlight-gray: #f8f8f7;
|
|
512
|
+
--tt-color-highlight-brown: #f4eeee;
|
|
513
|
+
--tt-color-highlight-orange: #fbecdd;
|
|
514
|
+
--tt-color-highlight-pink: #fcf1f6;
|
|
515
|
+
--tt-color-highlight-yellow-contrast: #fbe604;
|
|
516
|
+
--tt-color-highlight-green-contrast: #c7fad8;
|
|
517
|
+
--tt-color-highlight-blue-contrast: #ceeafd;
|
|
518
|
+
--tt-color-highlight-purple-contrast: #e4ccff;
|
|
519
|
+
--tt-color-highlight-red-contrast: #ffccd0;
|
|
520
|
+
--tt-color-highlight-gray-contrast: rgba(84, 72, 49, 0.15);
|
|
521
|
+
--tt-color-highlight-brown-contrast: rgba(210, 162, 141, 0.35);
|
|
522
|
+
--tt-color-highlight-orange-contrast: rgba(224, 124, 57, 0.27);
|
|
523
|
+
--tt-color-highlight-pink-contrast: rgba(225, 136, 179, 0.27);
|
|
524
|
+
}
|
|
525
|
+
.styles_module_dark {
|
|
526
|
+
--tt-color-highlight-yellow: #6b6524;
|
|
527
|
+
--tt-color-highlight-green: #509568;
|
|
528
|
+
--tt-color-highlight-blue: #6e92aa;
|
|
529
|
+
--tt-color-highlight-purple: #583e74;
|
|
530
|
+
--tt-color-highlight-red: #743e42;
|
|
531
|
+
--tt-color-highlight-gray: #2f2f2f;
|
|
532
|
+
--tt-color-highlight-brown: #4a3228;
|
|
533
|
+
--tt-color-highlight-orange: #5c3b23;
|
|
534
|
+
--tt-color-highlight-pink: #4e2c3c;
|
|
535
|
+
--tt-color-highlight-yellow-contrast: #58531e;
|
|
536
|
+
--tt-color-highlight-green-contrast: #47855d;
|
|
537
|
+
--tt-color-highlight-blue-contrast: #5e86a1;
|
|
538
|
+
--tt-color-highlight-purple-contrast: #4c3564;
|
|
539
|
+
--tt-color-highlight-red-contrast: #643539;
|
|
540
|
+
--tt-color-highlight-gray-contrast: rgba(255, 255, 255, 0.094);
|
|
541
|
+
--tt-color-highlight-brown-contrast: rgba(184, 101, 69, 0.25);
|
|
542
|
+
--tt-color-highlight-orange-contrast: rgba(233, 126, 37, 0.2);
|
|
543
|
+
--tt-color-highlight-pink-contrast: rgba(220, 76, 145, 0.22);
|
|
544
|
+
}
|
|
545
|
+
.styles_module_editorParent {
|
|
546
|
+
--tt-toolbar-height: 44px;
|
|
547
|
+
--tt-theme-text: var(--tt-gray-light-900);
|
|
548
|
+
}
|
|
549
|
+
.styles_module_dark .styles_module_editorParent {
|
|
550
|
+
--tt-theme-text: var(--tt-gray-dark-900);
|
|
551
|
+
}
|
|
552
|
+
.styles_module_editorParent .styles_module_extraToolbar {
|
|
553
|
+
border-bottom: 1px solid var(--tt-toolbar-border-color);
|
|
554
|
+
min-height: var(--tt-toolbar-height);
|
|
555
|
+
padding: 0 8px;
|
|
556
|
+
}
|
|
557
|
+
.styles_module_editorParent .styles_module_editorFloatingToolbar {
|
|
558
|
+
max-width: 350px;
|
|
559
|
+
}
|
|
560
|
+
.styles_module_editorParent .styles_module_contentWrapper {
|
|
561
|
+
height: calc(100% - var(--tt-toolbar-height));
|
|
562
|
+
overflow-y: auto;
|
|
563
|
+
}
|
|
564
|
+
.styles_module_editorParent .styles_module_contentWrapper .styles_module_simpleEditorContent {
|
|
565
|
+
max-width: 1000px;
|
|
566
|
+
width: 100%;
|
|
567
|
+
margin: 0 auto;
|
|
568
|
+
min-height: 100%;
|
|
569
|
+
display: flex;
|
|
570
|
+
flex-direction: column;
|
|
571
|
+
}
|
|
572
|
+
.styles_module_editorParent .styles_module_contentWrapper .styles_module_simpleEditorContent .editor-annotation,
|
|
573
|
+
.editorParent .contentWrapper .simpleEditorContent .editor-collection {
|
|
574
|
+
display: inline-block;
|
|
575
|
+
transition: all 0.2s ease;
|
|
576
|
+
}
|
|
577
|
+
.styles_module_editorParent .styles_module_contentWrapper .styles_module_simpleEditorContent .editor-annotation {
|
|
578
|
+
border-bottom: 1px dashed #ff9500;
|
|
579
|
+
}
|
|
580
|
+
.styles_module_editorParent .styles_module_contentWrapper .styles_module_simpleEditorContent .editor-annotation:hover {
|
|
581
|
+
background-color: rgba(255, 149, 0, 0.2);
|
|
582
|
+
}
|
|
583
|
+
.styles_module_editorParent .styles_module_contentWrapper .styles_module_simpleEditorContent .editor-annotation .editor-annotation--selected {
|
|
584
|
+
background-color: rgba(255, 149, 0, 0.4);
|
|
585
|
+
}
|
|
586
|
+
.styles_module_editorParent .styles_module_contentWrapper .styles_module_simpleEditorContent .editor-collection {
|
|
587
|
+
border-bottom: 1px dashed #34afbe;
|
|
588
|
+
}
|
|
589
|
+
.styles_module_editorParent .styles_module_contentWrapper .styles_module_simpleEditorContent .editor-collection:hover {
|
|
590
|
+
background-color: rgba(52, 175, 190, 0.2);
|
|
591
|
+
}
|
|
592
|
+
.styles_module_editorParent .styles_module_contentWrapper .styles_module_simpleEditorContent .editor-collection .editor-collection--selected {
|
|
593
|
+
background-color: rgba(52, 175, 190, 0.4);
|
|
594
|
+
}
|
|
595
|
+
.styles_module_editorParent .styles_module_contentWrapper .styles_module_simpleEditorContent .tiptap.ProseMirror {
|
|
596
|
+
font-family: "DM Sans", sans-serif;
|
|
597
|
+
padding: 18px;
|
|
598
|
+
flex: 1;
|
|
599
|
+
}
|
|
600
|
+
@media screen and (width <= 480px) {
|
|
601
|
+
.styles_module_editorParent .styles_module_contentWrapper .styles_module_simpleEditorContent .tiptap.ProseMirror {
|
|
602
|
+
padding: 1rem 1.5rem;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
.styles_module_editorParent .styles_module_contentWrapper .styles_module_simpleEditorContent.styles_module_noToolbar .tiptap.ProseMirror {
|
|
606
|
+
padding: 0;
|
|
607
|
+
}
|
|
608
|
+
.styles_module_extraSidebarParent .extra-sidebar {
|
|
609
|
+
width: 350px;
|
|
711
610
|
}
|
|
712
611
|
|
|
713
612
|
/* src/components/MarkdownEditor/components/tiptap-ui-primitive/tooltip/tooltip.less */
|
|
@@ -722,7 +621,7 @@
|
|
|
722
621
|
--tt-kbd: var(--tt-gray-light-a-400);
|
|
723
622
|
}
|
|
724
623
|
.tiptap-tooltip {
|
|
725
|
-
z-index:
|
|
624
|
+
z-index: 200;
|
|
726
625
|
overflow: hidden;
|
|
727
626
|
border-radius: var(--tt-radius-md, 0.375rem);
|
|
728
627
|
background-color: var(--tt-tooltip-bg);
|
|
@@ -990,18 +889,23 @@
|
|
|
990
889
|
|
|
991
890
|
/* src/components/MarkdownEditor/components/tiptap-ui-primitive/button/button-group.less */
|
|
992
891
|
.tiptap-button-group {
|
|
993
|
-
|
|
892
|
+
position: relative;
|
|
994
893
|
display: flex;
|
|
995
|
-
|
|
996
|
-
flex-direction: column;
|
|
894
|
+
vertical-align: middle;
|
|
997
895
|
}
|
|
998
|
-
.tiptap-button-group[data-orientation=vertical]
|
|
999
|
-
.tiptap-button-group [data-orientation=vertical] {
|
|
896
|
+
.tiptap-button-group[data-orientation=vertical] {
|
|
1000
897
|
flex-direction: column;
|
|
898
|
+
align-items: flex-start;
|
|
899
|
+
justify-content: center;
|
|
900
|
+
min-width: max-content;
|
|
901
|
+
}
|
|
902
|
+
.tiptap-button-group[data-orientation=vertical] > .tiptap-button {
|
|
903
|
+
width: 100%;
|
|
1001
904
|
}
|
|
1002
|
-
.tiptap-button-group[data-orientation=horizontal]
|
|
1003
|
-
.
|
|
905
|
+
.tiptap-button-group[data-orientation=horizontal] {
|
|
906
|
+
gap: 0.125rem;
|
|
1004
907
|
flex-direction: row;
|
|
908
|
+
align-items: center;
|
|
1005
909
|
}
|
|
1006
910
|
|
|
1007
911
|
/* src/components/MarkdownEditor/components/tiptap-ui-primitive/button/button.less */
|
|
@@ -1029,10 +933,17 @@
|
|
|
1029
933
|
.tiptap-button:focus-visible {
|
|
1030
934
|
outline: none;
|
|
1031
935
|
}
|
|
1032
|
-
.tiptap-button[data-highlighted=true]
|
|
936
|
+
.tiptap-button[data-highlighted=true],
|
|
937
|
+
.tiptap-button[data-focus-visible=true] {
|
|
1033
938
|
background-color: var(--tt-button-hover-bg-color);
|
|
1034
939
|
color: var(--tt-button-hover-text-color);
|
|
1035
940
|
}
|
|
941
|
+
.tiptap-button[data-weight=small] {
|
|
942
|
+
width: 1.5rem;
|
|
943
|
+
min-width: 1.5rem;
|
|
944
|
+
padding-right: 0;
|
|
945
|
+
padding-left: 0;
|
|
946
|
+
}
|
|
1036
947
|
.tiptap-button[data-size=large] {
|
|
1037
948
|
font-size: 0.9375rem;
|
|
1038
949
|
height: 2.375rem;
|
|
@@ -1061,7 +972,6 @@
|
|
|
1061
972
|
.tiptap-button .tiptap-button-icon-sub,
|
|
1062
973
|
.tiptap-button .tiptap-button-dropdown-arrows,
|
|
1063
974
|
.tiptap-button .tiptap-button-dropdown-small {
|
|
1064
|
-
pointer-events: none;
|
|
1065
975
|
flex-shrink: 0;
|
|
1066
976
|
}
|
|
1067
977
|
.tiptap-button .tiptap-button-icon {
|
|
@@ -1119,14 +1029,14 @@
|
|
|
1119
1029
|
.tiptap-button:has(> svg):not(:has(> :not(svg)))[data-size=small] {
|
|
1120
1030
|
gap: 0.125rem;
|
|
1121
1031
|
}
|
|
1122
|
-
.tiptap-button:has(> svg:nth-of-type(2)):has(> .tiptap-button-dropdown-small):not(:has(> svg:nth-of-type(3))
|
|
1032
|
+
.tiptap-button:has(> svg:nth-of-type(2)):has(> .tiptap-button-dropdown-small):not(:has(> svg:nth-of-type(3))):not(:has(> .tiptap-button-text)) {
|
|
1123
1033
|
gap: 0;
|
|
1124
1034
|
padding-right: 0.25rem;
|
|
1125
1035
|
}
|
|
1126
|
-
.tiptap-button:has(> svg:nth-of-type(2)):has(> .tiptap-button-dropdown-small):not(:has(> svg:nth-of-type(3))
|
|
1036
|
+
.tiptap-button:has(> svg:nth-of-type(2)):has(> .tiptap-button-dropdown-small):not(:has(> svg:nth-of-type(3))):not(:has(> .tiptap-button-text))[data-size=large] {
|
|
1127
1037
|
padding-right: 0.375rem;
|
|
1128
1038
|
}
|
|
1129
|
-
.tiptap-button:has(> svg:nth-of-type(2)):has(> .tiptap-button-dropdown-small):not(:has(> svg:nth-of-type(3))
|
|
1039
|
+
.tiptap-button:has(> svg:nth-of-type(2)):has(> .tiptap-button-dropdown-small):not(:has(> svg:nth-of-type(3))):not(:has(> .tiptap-button-text))[data-size=small] {
|
|
1130
1040
|
padding-right: 0.25rem;
|
|
1131
1041
|
}
|
|
1132
1042
|
.tiptap-button .tiptap-button-emoji {
|
|
@@ -1156,23 +1066,28 @@
|
|
|
1156
1066
|
.tiptap-button .tiptap-button-dropdown-small {
|
|
1157
1067
|
color: var(--tt-button-default-dropdown-arrows-color);
|
|
1158
1068
|
}
|
|
1159
|
-
.tiptap-button:hover,
|
|
1160
|
-
.tiptap-button[data-active-item=true]:not([disabled])
|
|
1069
|
+
.tiptap-button:hover:not([data-active-item=true]):not([disabled]),
|
|
1070
|
+
.tiptap-button[data-active-item=true]:not([disabled]),
|
|
1071
|
+
.tiptap-button[data-highlighted]:not([disabled]):not([data-highlighted=false]) {
|
|
1161
1072
|
background-color: var(--tt-button-hover-bg-color);
|
|
1162
1073
|
color: var(--tt-button-hover-text-color);
|
|
1163
1074
|
}
|
|
1164
|
-
.tiptap-button:hover .tiptap-button-icon,
|
|
1165
|
-
.tiptap-button[data-active-item=true]:not([disabled]) .tiptap-button-icon
|
|
1075
|
+
.tiptap-button:hover:not([data-active-item=true]):not([disabled]) .tiptap-button-icon,
|
|
1076
|
+
.tiptap-button[data-active-item=true]:not([disabled]) .tiptap-button-icon,
|
|
1077
|
+
.tiptap-button[data-highlighted]:not([disabled]):not([data-highlighted=false]) .tiptap-button-icon {
|
|
1166
1078
|
color: var(--tt-button-hover-icon-color);
|
|
1167
1079
|
}
|
|
1168
|
-
.tiptap-button:hover .tiptap-button-icon-sub,
|
|
1169
|
-
.tiptap-button[data-active-item=true]:not([disabled]) .tiptap-button-icon-sub
|
|
1080
|
+
.tiptap-button:hover:not([data-active-item=true]):not([disabled]) .tiptap-button-icon-sub,
|
|
1081
|
+
.tiptap-button[data-active-item=true]:not([disabled]) .tiptap-button-icon-sub,
|
|
1082
|
+
.tiptap-button[data-highlighted]:not([disabled]):not([data-highlighted=false]) .tiptap-button-icon-sub {
|
|
1170
1083
|
color: var(--tt-button-hover-icon-sub-color);
|
|
1171
1084
|
}
|
|
1172
|
-
.tiptap-button:hover .tiptap-button-dropdown-arrows,
|
|
1085
|
+
.tiptap-button:hover:not([data-active-item=true]):not([disabled]) .tiptap-button-dropdown-arrows,
|
|
1173
1086
|
.tiptap-button[data-active-item=true]:not([disabled]) .tiptap-button-dropdown-arrows,
|
|
1174
|
-
.tiptap-button:
|
|
1175
|
-
.tiptap-button[data-active-item=true]:not([disabled]) .tiptap-button-dropdown-small
|
|
1087
|
+
.tiptap-button[data-highlighted]:not([disabled]):not([data-highlighted=false]) .tiptap-button-dropdown-arrows,
|
|
1088
|
+
.tiptap-button:hover:not([data-active-item=true]):not([disabled]) .tiptap-button-dropdown-small,
|
|
1089
|
+
.tiptap-button[data-active-item=true]:not([disabled]) .tiptap-button-dropdown-small,
|
|
1090
|
+
.tiptap-button[data-highlighted]:not([disabled]):not([data-highlighted=false]) .tiptap-button-dropdown-small {
|
|
1176
1091
|
color: var(--tt-button-hover-dropdown-arrows-color);
|
|
1177
1092
|
}
|
|
1178
1093
|
.tiptap-button[data-active-state=on]:not([disabled]),
|
|
@@ -1270,6 +1185,7 @@
|
|
|
1270
1185
|
.tiptap-separator[data-orientation=horizontal] {
|
|
1271
1186
|
height: 1px;
|
|
1272
1187
|
width: 100%;
|
|
1188
|
+
margin: 0.5rem 0;
|
|
1273
1189
|
}
|
|
1274
1190
|
.tiptap-separator[data-orientation=vertical] {
|
|
1275
1191
|
height: 1.5rem;
|
|
@@ -1322,11 +1238,10 @@
|
|
|
1322
1238
|
.tiptap-toolbar[data-variant=fixed]::-webkit-scrollbar {
|
|
1323
1239
|
display: none;
|
|
1324
1240
|
}
|
|
1325
|
-
@media (width
|
|
1241
|
+
@media (max-width: 480px) {
|
|
1326
1242
|
.tiptap-toolbar[data-variant=fixed] {
|
|
1327
|
-
position:
|
|
1243
|
+
position: absolute;
|
|
1328
1244
|
top: auto;
|
|
1329
|
-
bottom: 0;
|
|
1330
1245
|
height: calc(var(--tt-toolbar-height) + var(--tt-safe-area-bottom));
|
|
1331
1246
|
border-top: 1px solid var(--tt-toolbar-border-color);
|
|
1332
1247
|
border-bottom: none;
|
|
@@ -1356,7 +1271,7 @@
|
|
|
1356
1271
|
box-shadow: none;
|
|
1357
1272
|
background-color: transparent;
|
|
1358
1273
|
}
|
|
1359
|
-
@media screen and (width
|
|
1274
|
+
@media screen and (max-width: 480px) {
|
|
1360
1275
|
.tiptap-toolbar[data-variant=floating] {
|
|
1361
1276
|
width: 100%;
|
|
1362
1277
|
border-radius: 0;
|
|
@@ -1365,6 +1280,36 @@
|
|
|
1365
1280
|
}
|
|
1366
1281
|
}
|
|
1367
1282
|
|
|
1283
|
+
/* src/components/MarkdownEditor/components/tiptap-node/blockquote-node/blockquote-node.less */
|
|
1284
|
+
.tiptap.ProseMirror {
|
|
1285
|
+
--blockquote-bg-color: var(--tt-gray-light-900);
|
|
1286
|
+
}
|
|
1287
|
+
.dark .tiptap.ProseMirror {
|
|
1288
|
+
--blockquote-bg-color: var(--tt-gray-dark-900);
|
|
1289
|
+
}
|
|
1290
|
+
.tiptap.ProseMirror blockquote {
|
|
1291
|
+
position: relative;
|
|
1292
|
+
padding-left: 1em;
|
|
1293
|
+
padding-top: 0.375em;
|
|
1294
|
+
padding-bottom: 0.375em;
|
|
1295
|
+
margin: 1.5rem 0;
|
|
1296
|
+
}
|
|
1297
|
+
.tiptap.ProseMirror blockquote p {
|
|
1298
|
+
margin-top: 0;
|
|
1299
|
+
}
|
|
1300
|
+
.tiptap.ProseMirror blockquote::before,
|
|
1301
|
+
.tiptap.ProseMirror blockquote.is-empty::before {
|
|
1302
|
+
position: absolute;
|
|
1303
|
+
bottom: 0;
|
|
1304
|
+
left: 0;
|
|
1305
|
+
top: 0;
|
|
1306
|
+
height: 100%;
|
|
1307
|
+
width: 0.25em;
|
|
1308
|
+
background-color: var(--blockquote-bg-color);
|
|
1309
|
+
content: "";
|
|
1310
|
+
border-radius: 0;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1368
1313
|
/* src/components/MarkdownEditor/components/tiptap-node/code-block-node/code-block-node.less */
|
|
1369
1314
|
.tiptap.ProseMirror {
|
|
1370
1315
|
--tt-inline-code-bg-color: var(--tt-gray-light-a-100);
|
|
@@ -1410,22 +1355,81 @@
|
|
|
1410
1355
|
color: inherit;
|
|
1411
1356
|
}
|
|
1412
1357
|
|
|
1413
|
-
/* src/components/MarkdownEditor/components/tiptap-node/
|
|
1414
|
-
.tiptap.ProseMirror
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
outline: 0.125rem solid transparent;
|
|
1422
|
-
border-radius: var(--tt-radius-xs, 0.25rem);
|
|
1358
|
+
/* src/components/MarkdownEditor/components/tiptap-node/heading-node/heading-node.less */
|
|
1359
|
+
.tiptap.ProseMirror h1,
|
|
1360
|
+
.tiptap.ProseMirror h2,
|
|
1361
|
+
.tiptap.ProseMirror h3,
|
|
1362
|
+
.tiptap.ProseMirror h4 {
|
|
1363
|
+
position: relative;
|
|
1364
|
+
color: inherit;
|
|
1365
|
+
font-style: inherit;
|
|
1423
1366
|
}
|
|
1424
|
-
.tiptap.ProseMirror
|
|
1425
|
-
|
|
1367
|
+
.tiptap.ProseMirror h1:first-child,
|
|
1368
|
+
.tiptap.ProseMirror h2:first-child,
|
|
1369
|
+
.tiptap.ProseMirror h3:first-child,
|
|
1370
|
+
.tiptap.ProseMirror h4:first-child,
|
|
1371
|
+
.tiptap.ProseMirror h1:first-of-type,
|
|
1372
|
+
.tiptap.ProseMirror h2:first-of-type,
|
|
1373
|
+
.tiptap.ProseMirror h3:first-of-type,
|
|
1374
|
+
.tiptap.ProseMirror h4:first-of-type {
|
|
1375
|
+
margin-top: 0;
|
|
1426
1376
|
}
|
|
1427
|
-
.tiptap.ProseMirror
|
|
1428
|
-
|
|
1377
|
+
.tiptap.ProseMirror h1 {
|
|
1378
|
+
font-size: 1.5em;
|
|
1379
|
+
font-weight: 700;
|
|
1380
|
+
margin-top: 3em;
|
|
1381
|
+
}
|
|
1382
|
+
.tiptap.ProseMirror h2 {
|
|
1383
|
+
font-size: 1.25em;
|
|
1384
|
+
font-weight: 700;
|
|
1385
|
+
margin-top: 2.5em;
|
|
1386
|
+
}
|
|
1387
|
+
.tiptap.ProseMirror h3 {
|
|
1388
|
+
font-size: 1.125em;
|
|
1389
|
+
font-weight: 600;
|
|
1390
|
+
margin-top: 2em;
|
|
1391
|
+
}
|
|
1392
|
+
.tiptap.ProseMirror h4 {
|
|
1393
|
+
font-size: 1em;
|
|
1394
|
+
font-weight: 600;
|
|
1395
|
+
margin-top: 2em;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
/* src/components/MarkdownEditor/components/tiptap-node/horizontal-rule-node/horizontal-rule-node.less */
|
|
1399
|
+
.tiptap.ProseMirror {
|
|
1400
|
+
--horizontal-rule-color: var(--tt-gray-light-a-200);
|
|
1401
|
+
}
|
|
1402
|
+
.dark .tiptap.ProseMirror {
|
|
1403
|
+
--horizontal-rule-color: var(--tt-gray-dark-a-200);
|
|
1404
|
+
}
|
|
1405
|
+
.tiptap.ProseMirror hr {
|
|
1406
|
+
border: none;
|
|
1407
|
+
height: 1px;
|
|
1408
|
+
background-color: var(--horizontal-rule-color);
|
|
1409
|
+
}
|
|
1410
|
+
.tiptap.ProseMirror [data-type=horizontalRule] {
|
|
1411
|
+
margin-top: 2.25em;
|
|
1412
|
+
margin-bottom: 2.25em;
|
|
1413
|
+
padding-top: 0.75rem;
|
|
1414
|
+
padding-bottom: 0.75rem;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
/* src/components/MarkdownEditor/components/tiptap-node/image-node/image-node.less */
|
|
1418
|
+
.tiptap.ProseMirror img {
|
|
1419
|
+
max-width: 100%;
|
|
1420
|
+
height: auto;
|
|
1421
|
+
display: block;
|
|
1422
|
+
}
|
|
1423
|
+
.tiptap.ProseMirror > img:not([data-type=emoji] img) {
|
|
1424
|
+
margin: 2rem 0;
|
|
1425
|
+
outline: 0.125rem solid transparent;
|
|
1426
|
+
border-radius: var(--tt-radius-xs, 0.25rem);
|
|
1427
|
+
}
|
|
1428
|
+
.tiptap.ProseMirror img:not([data-type=emoji] img).ProseMirror-selectednode {
|
|
1429
|
+
outline-color: var(--tt-brand-color-500);
|
|
1430
|
+
}
|
|
1431
|
+
.tiptap.ProseMirror .tiptap-thread:has(> img) {
|
|
1432
|
+
margin: 2rem 0;
|
|
1429
1433
|
}
|
|
1430
1434
|
.tiptap.ProseMirror .tiptap-thread:has(> img) img {
|
|
1431
1435
|
outline: 0.125rem solid transparent;
|
|
@@ -1475,6 +1479,7 @@
|
|
|
1475
1479
|
}
|
|
1476
1480
|
.tiptap.ProseMirror li p {
|
|
1477
1481
|
margin-top: 0;
|
|
1482
|
+
line-height: 1.6;
|
|
1478
1483
|
}
|
|
1479
1484
|
.tiptap.ProseMirror ol {
|
|
1480
1485
|
list-style: decimal;
|
|
@@ -1492,7 +1497,7 @@
|
|
|
1492
1497
|
list-style: circle;
|
|
1493
1498
|
}
|
|
1494
1499
|
.tiptap.ProseMirror ul:not([data-type=taskList]) ul ul {
|
|
1495
|
-
list-style:
|
|
1500
|
+
list-style: square;
|
|
1496
1501
|
}
|
|
1497
1502
|
.tiptap.ProseMirror ul[data-type=taskList] {
|
|
1498
1503
|
padding-left: 0.25em;
|
|
@@ -1514,8 +1519,8 @@
|
|
|
1514
1519
|
}
|
|
1515
1520
|
.tiptap.ProseMirror ul[data-type=taskList] li label {
|
|
1516
1521
|
position: relative;
|
|
1517
|
-
padding-top:
|
|
1518
|
-
padding-right:
|
|
1522
|
+
padding-top: 0.375rem;
|
|
1523
|
+
padding-right: 0.5rem;
|
|
1519
1524
|
}
|
|
1520
1525
|
.tiptap.ProseMirror ul[data-type=taskList] li label input[type=checkbox] {
|
|
1521
1526
|
position: absolute;
|
|
@@ -1544,6 +1549,7 @@
|
|
|
1544
1549
|
height: 0.75em;
|
|
1545
1550
|
background-color: var(--tt-checklist-check-icon-color);
|
|
1546
1551
|
opacity: 0;
|
|
1552
|
+
-webkit-mask: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.4142%204.58579C22.1953%205.36683%2022.1953%206.63317%2021.4142%207.41421L10.4142%2018.4142C9.63317%2019.1953%208.36684%2019.1953%207.58579%2018.4142L2.58579%2013.4142C1.80474%2012.6332%201.80474%2011.3668%202.58579%2010.5858C3.36683%209.80474%204.63317%209.80474%205.41421%2010.5858L9%2014.1716L18.5858%204.58579C19.3668%203.80474%2020.6332%203.80474%2021.4142%204.58579Z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E) center / contain no-repeat;
|
|
1547
1553
|
mask: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.4142%204.58579C22.1953%205.36683%2022.1953%206.63317%2021.4142%207.41421L10.4142%2018.4142C9.63317%2019.1953%208.36684%2019.1953%207.58579%2018.4142L2.58579%2013.4142C1.80474%2012.6332%201.80474%2011.3668%202.58579%2010.5858C3.36683%209.80474%204.63317%209.80474%205.41421%2010.5858L9%2014.1716L18.5858%204.58579C19.3668%203.80474%2020.6332%203.80474%2021.4142%204.58579Z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E) center / contain no-repeat;
|
|
1548
1554
|
}
|
|
1549
1555
|
.tiptap.ProseMirror ul[data-type=taskList] li label input[type=checkbox]:checked + span {
|
|
@@ -1560,81 +1566,56 @@
|
|
|
1560
1566
|
|
|
1561
1567
|
/* src/components/MarkdownEditor/components/tiptap-node/paragraph-node/paragraph-node.less */
|
|
1562
1568
|
.tiptap.ProseMirror {
|
|
1563
|
-
--
|
|
1569
|
+
--tt-collaboration-carets-label: var(--tt-gray-light-900);
|
|
1564
1570
|
--link-text-color: var(--tt-brand-color-500);
|
|
1565
|
-
--separator-color: var(--tt-gray-light-a-200);
|
|
1566
1571
|
--thread-text: var(--tt-gray-light-900);
|
|
1567
1572
|
--placeholder-color: var(--tt-gray-light-a-400);
|
|
1568
|
-
--
|
|
1569
|
-
--tiptap-
|
|
1573
|
+
--thread-bg-color: var(--tt-color-yellow-inc-2);
|
|
1574
|
+
--tiptap-ai-insertion-color: var(--tt-brand-color-600);
|
|
1570
1575
|
}
|
|
1571
1576
|
.dark .tiptap.ProseMirror {
|
|
1572
|
-
--
|
|
1577
|
+
--tt-collaboration-carets-label: var(--tt-gray-dark-100);
|
|
1573
1578
|
--link-text-color: var(--tt-brand-color-400);
|
|
1574
|
-
--separator-color: var(--tt-gray-dark-a-200);
|
|
1575
1579
|
--thread-text: var(--tt-gray-dark-900);
|
|
1576
1580
|
--placeholder-color: var(--tt-gray-dark-a-400);
|
|
1577
|
-
--
|
|
1578
|
-
--tiptap-
|
|
1581
|
+
--thread-bg-color: var(--tt-color-yellow-dec-2);
|
|
1582
|
+
--tiptap-ai-insertion-color: var(--tt-brand-color-400);
|
|
1583
|
+
}
|
|
1584
|
+
.tiptap.ProseMirror > * {
|
|
1585
|
+
position: relative;
|
|
1579
1586
|
}
|
|
1580
1587
|
.tiptap.ProseMirror {
|
|
1581
1588
|
white-space: pre-wrap;
|
|
1582
1589
|
outline: none;
|
|
1583
1590
|
caret-color: var(--tt-cursor-color);
|
|
1584
1591
|
}
|
|
1585
|
-
.tiptap.ProseMirror p:not(:first-child) {
|
|
1592
|
+
.tiptap.ProseMirror p:not(:first-child):not(td p):not(th p) {
|
|
1586
1593
|
font-size: 1rem;
|
|
1587
1594
|
line-height: 1.6;
|
|
1588
1595
|
font-weight: normal;
|
|
1589
1596
|
margin-top: 20px;
|
|
1590
1597
|
}
|
|
1591
|
-
.tiptap.ProseMirror:not(.readonly
|
|
1598
|
+
.tiptap.ProseMirror:not(.readonly):not(.ProseMirror-hideselection) ::selection {
|
|
1592
1599
|
background-color: var(--tt-selection-color);
|
|
1593
1600
|
}
|
|
1594
|
-
.tiptap.ProseMirror:not(.readonly
|
|
1601
|
+
.tiptap.ProseMirror:not(.readonly):not(.ProseMirror-hideselection) .selection::selection {
|
|
1595
1602
|
background: transparent;
|
|
1596
1603
|
}
|
|
1597
1604
|
.tiptap.ProseMirror .selection {
|
|
1598
1605
|
display: inline;
|
|
1599
1606
|
background-color: var(--tt-selection-color);
|
|
1600
1607
|
}
|
|
1608
|
+
.tiptap.ProseMirror .ProseMirror-selectednode:not(img):not(pre):not(.react-renderer) {
|
|
1609
|
+
border-radius: var(--tt-radius-md);
|
|
1610
|
+
background-color: var(--tt-selection-color);
|
|
1611
|
+
}
|
|
1601
1612
|
.tiptap.ProseMirror .ProseMirror-hideselection {
|
|
1602
1613
|
caret-color: transparent;
|
|
1603
1614
|
}
|
|
1604
|
-
.tiptap.ProseMirror > p.is-editor-empty::before {
|
|
1605
|
-
content: attr(data-placeholder);
|
|
1606
|
-
pointer-events: none;
|
|
1607
|
-
color: var(--placeholder-color);
|
|
1608
|
-
float: left;
|
|
1609
|
-
height: 0;
|
|
1610
|
-
}
|
|
1611
1615
|
.tiptap.ProseMirror.resize-cursor {
|
|
1612
1616
|
cursor: ew-resize;
|
|
1613
1617
|
cursor: col-resize;
|
|
1614
1618
|
}
|
|
1615
|
-
.tiptap.ProseMirror .ProseMirror-gapcursor {
|
|
1616
|
-
display: none;
|
|
1617
|
-
pointer-events: none;
|
|
1618
|
-
position: absolute;
|
|
1619
|
-
}
|
|
1620
|
-
.tiptap.ProseMirror .ProseMirror-gapcursor::after {
|
|
1621
|
-
content: "";
|
|
1622
|
-
display: block;
|
|
1623
|
-
position: absolute;
|
|
1624
|
-
top: 1em;
|
|
1625
|
-
width: 1.25em;
|
|
1626
|
-
border-top: 1px solid black;
|
|
1627
|
-
animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
|
|
1628
|
-
}
|
|
1629
|
-
.tiptap.ProseMirror.ProseMirror-focused .ProseMirror-gapcursor,
|
|
1630
|
-
.tiptap.ProseMirror.ProseMirror.ProseMirror-focused .ProseMirror-gapcursor {
|
|
1631
|
-
display: block;
|
|
1632
|
-
}
|
|
1633
|
-
@keyframes ProseMirror-cursor-blink {
|
|
1634
|
-
to {
|
|
1635
|
-
visibility: hidden;
|
|
1636
|
-
}
|
|
1637
|
-
}
|
|
1638
1619
|
.tiptap.ProseMirror a span {
|
|
1639
1620
|
text-decoration: underline;
|
|
1640
1621
|
}
|
|
@@ -1644,29 +1625,10 @@
|
|
|
1644
1625
|
.tiptap.ProseMirror u span {
|
|
1645
1626
|
text-decoration: underline;
|
|
1646
1627
|
}
|
|
1647
|
-
.tiptap.ProseMirror
|
|
1648
|
-
|
|
1649
|
-
padding-left: 1em;
|
|
1650
|
-
padding-top: 0.375em;
|
|
1651
|
-
padding-bottom: 0.375em;
|
|
1652
|
-
margin: 1.5rem 0;
|
|
1628
|
+
.tiptap.ProseMirror .tiptap-ai-insertion {
|
|
1629
|
+
color: var(--tiptap-ai-insertion-color);
|
|
1653
1630
|
}
|
|
1654
|
-
.tiptap.ProseMirror
|
|
1655
|
-
margin-top: 0;
|
|
1656
|
-
}
|
|
1657
|
-
.tiptap.ProseMirror blockquote::before,
|
|
1658
|
-
.tiptap.ProseMirror blockquote.is-empty::before {
|
|
1659
|
-
position: absolute;
|
|
1660
|
-
bottom: 0;
|
|
1661
|
-
left: 0;
|
|
1662
|
-
top: 0;
|
|
1663
|
-
height: 100%;
|
|
1664
|
-
width: 0.25em;
|
|
1665
|
-
background-color: var(--blockquote-bg-color);
|
|
1666
|
-
content: "";
|
|
1667
|
-
border-radius: 0;
|
|
1668
|
-
}
|
|
1669
|
-
.tiptap.ProseMirror .collaboration-cursor__caret {
|
|
1631
|
+
.tiptap.ProseMirror .collaboration-carets__caret {
|
|
1670
1632
|
border-right: 1px solid transparent;
|
|
1671
1633
|
border-left: 1px solid transparent;
|
|
1672
1634
|
pointer-events: none;
|
|
@@ -1675,7 +1637,8 @@
|
|
|
1675
1637
|
position: relative;
|
|
1676
1638
|
word-break: normal;
|
|
1677
1639
|
}
|
|
1678
|
-
.tiptap.ProseMirror .collaboration-
|
|
1640
|
+
.tiptap.ProseMirror .collaboration-carets__label {
|
|
1641
|
+
color: var(--tt-collaboration-carets-label);
|
|
1679
1642
|
border-radius: 0.25rem;
|
|
1680
1643
|
border-bottom-left-radius: 0;
|
|
1681
1644
|
font-size: 0.75rem;
|
|
@@ -1694,52 +1657,6 @@
|
|
|
1694
1657
|
height: 1.25em;
|
|
1695
1658
|
cursor: text;
|
|
1696
1659
|
}
|
|
1697
|
-
.tiptap.ProseMirror h1,
|
|
1698
|
-
.tiptap.ProseMirror h2,
|
|
1699
|
-
.tiptap.ProseMirror h3,
|
|
1700
|
-
.tiptap.ProseMirror h4 {
|
|
1701
|
-
position: relative;
|
|
1702
|
-
color: inherit;
|
|
1703
|
-
font-style: inherit;
|
|
1704
|
-
}
|
|
1705
|
-
.tiptap.ProseMirror h1:first-child,
|
|
1706
|
-
.tiptap.ProseMirror h2:first-child,
|
|
1707
|
-
.tiptap.ProseMirror h3:first-child,
|
|
1708
|
-
.tiptap.ProseMirror h4:first-child {
|
|
1709
|
-
margin-top: 0;
|
|
1710
|
-
}
|
|
1711
|
-
.tiptap.ProseMirror h1 {
|
|
1712
|
-
font-size: 1.5em;
|
|
1713
|
-
font-weight: 700;
|
|
1714
|
-
margin-top: 3em;
|
|
1715
|
-
}
|
|
1716
|
-
.tiptap.ProseMirror h2 {
|
|
1717
|
-
font-size: 1.25em;
|
|
1718
|
-
font-weight: 700;
|
|
1719
|
-
margin-top: 2.5em;
|
|
1720
|
-
}
|
|
1721
|
-
.tiptap.ProseMirror h3 {
|
|
1722
|
-
font-size: 1.125em;
|
|
1723
|
-
font-weight: 600;
|
|
1724
|
-
margin-top: 2em;
|
|
1725
|
-
}
|
|
1726
|
-
.tiptap.ProseMirror h4 {
|
|
1727
|
-
font-size: 1em;
|
|
1728
|
-
font-weight: 600;
|
|
1729
|
-
margin-top: 2em;
|
|
1730
|
-
}
|
|
1731
|
-
.tiptap.ProseMirror hr {
|
|
1732
|
-
margin-top: 3em;
|
|
1733
|
-
margin-bottom: 3em;
|
|
1734
|
-
border: none;
|
|
1735
|
-
height: 1px;
|
|
1736
|
-
background-color: var(--separator-color);
|
|
1737
|
-
}
|
|
1738
|
-
.tiptap.ProseMirror.ProseMirror-focused hr.ProseMirror-selectednode {
|
|
1739
|
-
border-radius: 9999px;
|
|
1740
|
-
outline: 3px solid var(--tt-brand-color-500);
|
|
1741
|
-
outline-offset: 2px;
|
|
1742
|
-
}
|
|
1743
1660
|
.tiptap.ProseMirror a {
|
|
1744
1661
|
color: var(--link-text-color);
|
|
1745
1662
|
text-decoration: underline;
|
|
@@ -1756,7 +1673,7 @@
|
|
|
1756
1673
|
}
|
|
1757
1674
|
.tiptap.ProseMirror .tiptap-thread.tiptap-thread--unresolved.tiptap-thread--inline.tiptap-thread--selected,
|
|
1758
1675
|
.tiptap.ProseMirror .tiptap-thread.tiptap-thread--unresolved.tiptap-thread--inline.tiptap-thread--hovered {
|
|
1759
|
-
background-color: var(--
|
|
1676
|
+
background-color: var(--thread-bg-color);
|
|
1760
1677
|
border-bottom-color: transparent;
|
|
1761
1678
|
}
|
|
1762
1679
|
.tiptap.ProseMirror .tiptap-thread.tiptap-thread--unresolved.tiptap-thread--block:has(img) {
|
|
@@ -1775,7 +1692,7 @@
|
|
|
1775
1692
|
.tiptap.ProseMirror .tiptap-thread.tiptap-thread--unresolved.tiptap-thread--block:not(:has(img)) {
|
|
1776
1693
|
border-radius: 0.25rem;
|
|
1777
1694
|
border-bottom: 0.125rem dashed var(--tt-color-yellow-base);
|
|
1778
|
-
|
|
1695
|
+
border-top: 0.125rem dashed var(--tt-color-yellow-base);
|
|
1779
1696
|
outline: 0.25rem solid transparent;
|
|
1780
1697
|
}
|
|
1781
1698
|
.tiptap.ProseMirror .tiptap-thread.tiptap-thread--unresolved.tiptap-thread--block:not(:has(img)).tiptap-thread--hovered,
|
|
@@ -1792,107 +1709,324 @@
|
|
|
1792
1709
|
margin-top: 3rem;
|
|
1793
1710
|
margin-bottom: 3rem;
|
|
1794
1711
|
}
|
|
1795
|
-
.
|
|
1796
|
-
|
|
1797
|
-
margin: 0 0.25rem;
|
|
1798
|
-
border: 1px solid var(--tiptap-mathematics-border-color);
|
|
1799
|
-
font-family: monospace;
|
|
1800
|
-
font-size: 0.875rem;
|
|
1801
|
-
}
|
|
1802
|
-
.tiptap.ProseMirror .Tiptap-mathematics-render {
|
|
1803
|
-
padding: 0 0.25rem;
|
|
1804
|
-
}
|
|
1805
|
-
.tiptap.ProseMirror .Tiptap-mathematics-render--editable {
|
|
1806
|
-
cursor: pointer;
|
|
1807
|
-
transition: background 0.2s;
|
|
1808
|
-
}
|
|
1809
|
-
.tiptap.ProseMirror .Tiptap-mathematics-render--editable:hover {
|
|
1810
|
-
background: var(--tiptap-mathematics-bg-color);
|
|
1811
|
-
}
|
|
1812
|
-
.tiptap.ProseMirror .Tiptap-mathematics-editor,
|
|
1813
|
-
.tiptap.ProseMirror .Tiptap-mathematics-render {
|
|
1814
|
-
border-radius: var(--tt-radius-xs);
|
|
1815
|
-
display: inline-block;
|
|
1712
|
+
.is-empty:not(.with-slash)[data-placeholder]:has(> .ProseMirror-trailingBreak:only-child)::before {
|
|
1713
|
+
content: attr(data-placeholder);
|
|
1816
1714
|
}
|
|
1817
|
-
.is-empty[data-placeholder]:has(> .ProseMirror-trailingBreak:only-child)::before {
|
|
1818
|
-
content: "
|
|
1715
|
+
.is-empty.with-slash[data-placeholder]:has(> .ProseMirror-trailingBreak:only-child)::before {
|
|
1716
|
+
content: "\5f00\59cb\5199\4f5c\ff0c\8f93\5165'/'\67e5\770b\547d\4ee4\2026";
|
|
1717
|
+
font-style: italic;
|
|
1819
1718
|
}
|
|
1820
|
-
.is-empty[data-placeholder]:has(> .ProseMirror-trailingBreak:only-child)
|
|
1719
|
+
.is-empty[data-placeholder]:has(> .ProseMirror-trailingBreak:only-child):before {
|
|
1821
1720
|
pointer-events: none;
|
|
1822
1721
|
height: 0;
|
|
1823
1722
|
position: absolute;
|
|
1824
|
-
|
|
1723
|
+
width: 100%;
|
|
1724
|
+
text-align: inherit;
|
|
1725
|
+
left: 0;
|
|
1726
|
+
right: 0;
|
|
1825
1727
|
}
|
|
1826
|
-
.is-empty[data-placeholder]:has(> .ProseMirror-trailingBreak)
|
|
1728
|
+
.is-empty[data-placeholder]:has(> .ProseMirror-trailingBreak):before {
|
|
1827
1729
|
color: var(--placeholder-color);
|
|
1828
1730
|
}
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1731
|
+
.prosemirror-dropcursor-block,
|
|
1732
|
+
.prosemirror-dropcursor-inline {
|
|
1733
|
+
background: var(--tt-brand-color-400) !important;
|
|
1734
|
+
border-radius: 0.25rem;
|
|
1735
|
+
margin-left: -1px;
|
|
1736
|
+
margin-right: -1px;
|
|
1737
|
+
width: 100%;
|
|
1738
|
+
height: 0.188rem;
|
|
1739
|
+
cursor: grabbing;
|
|
1836
1740
|
}
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
--tt-
|
|
1841
|
-
--tt-
|
|
1741
|
+
|
|
1742
|
+
/* src/components/MarkdownEditor/components/tiptap-ui-primitive/badge/badge-colors.less */
|
|
1743
|
+
.tiptap-badge {
|
|
1744
|
+
--tt-badge-border-color: var(--tt-gray-light-a-200);
|
|
1745
|
+
--tt-badge-border-color-subdued: var(--tt-gray-light-a-200);
|
|
1746
|
+
--tt-badge-border-color-emphasized: var(--tt-gray-light-a-600);
|
|
1747
|
+
--tt-badge-text-color: var(--tt-gray-light-a-500);
|
|
1748
|
+
--tt-badge-text-color-subdued: var(--tt-gray-light-a-400);
|
|
1749
|
+
--tt-badge-text-color-emphasized: var(--tt-gray-light-a-600);
|
|
1750
|
+
--tt-badge-bg-color: var(--white);
|
|
1751
|
+
--tt-badge-bg-color-subdued: var(--white);
|
|
1752
|
+
--tt-badge-bg-color-emphasized: var(--white);
|
|
1753
|
+
--tt-badge-icon-color: var(--tt-gray-light-a-500);
|
|
1754
|
+
--tt-badge-icon-color-subdued: var(--tt-gray-light-a-400);
|
|
1755
|
+
--tt-badge-icon-color-emphasized: var(--tt-brand-color-600);
|
|
1756
|
+
}
|
|
1757
|
+
.dark .tiptap-badge {
|
|
1758
|
+
--tt-badge-border-color: var(--tt-gray-dark-a-200);
|
|
1759
|
+
--tt-badge-border-color-subdued: var(--tt-gray-dark-a-200);
|
|
1760
|
+
--tt-badge-border-color-emphasized: var(--tt-gray-dark-a-500);
|
|
1761
|
+
--tt-badge-text-color: var(--tt-gray-dark-a-500);
|
|
1762
|
+
--tt-badge-text-color-subdued: var(--tt-gray-dark-a-400);
|
|
1763
|
+
--tt-badge-text-color-emphasized: var(--tt-gray-dark-a-600);
|
|
1764
|
+
--tt-badge-bg-color: var(--black);
|
|
1765
|
+
--tt-badge-bg-color-subdued: var(--black);
|
|
1766
|
+
--tt-badge-bg-color-emphasized: var(--black);
|
|
1767
|
+
--tt-badge-icon-color: var(--tt-gray-dark-a-500);
|
|
1768
|
+
--tt-badge-icon-color-subdued: var(--tt-gray-dark-a-400);
|
|
1769
|
+
--tt-badge-icon-color-emphasized: var(--tt-brand-color-400);
|
|
1770
|
+
}
|
|
1771
|
+
.tiptap-badge[data-style=ghost] {
|
|
1772
|
+
--tt-badge-border-color: var(--tt-gray-light-a-200);
|
|
1773
|
+
--tt-badge-border-color-subdued: var(--tt-gray-light-a-200);
|
|
1774
|
+
--tt-badge-border-color-emphasized: var(--tt-gray-light-a-600);
|
|
1775
|
+
--tt-badge-text-color: var(--tt-gray-light-a-500);
|
|
1776
|
+
--tt-badge-text-color-subdued: var(--tt-gray-light-a-400);
|
|
1777
|
+
--tt-badge-text-color-emphasized: var(--tt-gray-light-a-600);
|
|
1778
|
+
--tt-badge-bg-color: var(--transparent);
|
|
1779
|
+
--tt-badge-bg-color-subdued: var(--transparent);
|
|
1780
|
+
--tt-badge-bg-color-emphasized: var(--transparent);
|
|
1781
|
+
--tt-badge-icon-color: var(--tt-gray-light-a-500);
|
|
1782
|
+
--tt-badge-icon-color-subdued: var(--tt-gray-light-a-400);
|
|
1783
|
+
--tt-badge-icon-color-emphasized: var(--tt-brand-color-600);
|
|
1784
|
+
}
|
|
1785
|
+
.dark .tiptap-badge[data-style=ghost] {
|
|
1786
|
+
--tt-badge-border-color: var(--tt-gray-dark-a-200);
|
|
1787
|
+
--tt-badge-border-color-subdued: var(--tt-gray-dark-a-200);
|
|
1788
|
+
--tt-badge-border-color-emphasized: var(--tt-gray-dark-a-500);
|
|
1789
|
+
--tt-badge-text-color: var(--tt-gray-dark-a-500);
|
|
1790
|
+
--tt-badge-text-color-subdued: var(--tt-gray-dark-a-400);
|
|
1791
|
+
--tt-badge-text-color-emphasized: var(--tt-gray-dark-a-600);
|
|
1792
|
+
--tt-badge-bg-color: var(--transparent);
|
|
1793
|
+
--tt-badge-bg-color-subdued: var(--transparent);
|
|
1794
|
+
--tt-badge-bg-color-emphasized: var(--transparent);
|
|
1795
|
+
--tt-badge-icon-color: var(--tt-gray-dark-a-500);
|
|
1796
|
+
--tt-badge-icon-color-subdued: var(--tt-gray-dark-a-400);
|
|
1797
|
+
--tt-badge-icon-color-emphasized: var(--tt-brand-color-400);
|
|
1798
|
+
}
|
|
1799
|
+
.tiptap-badge[data-style=gray] {
|
|
1800
|
+
--tt-badge-border-color: var(--tt-gray-light-a-200);
|
|
1801
|
+
--tt-badge-border-color-subdued: var(--tt-gray-light-a-200);
|
|
1802
|
+
--tt-badge-border-color-emphasized: var(--tt-gray-light-a-500);
|
|
1803
|
+
--tt-badge-text-color: var(--tt-gray-light-a-500);
|
|
1804
|
+
--tt-badge-text-color-subdued: var(--tt-gray-light-a-400);
|
|
1805
|
+
--tt-badge-text-color-emphasized: var(--white);
|
|
1806
|
+
--tt-badge-bg-color: var(--tt-gray-light-a-100);
|
|
1807
|
+
--tt-badge-bg-color-subdued: var(--tt-gray-light-a-50);
|
|
1808
|
+
--tt-badge-bg-color-emphasized: var(--tt-gray-light-a-700);
|
|
1809
|
+
--tt-badge-icon-color: var(--tt-gray-light-a-500);
|
|
1810
|
+
--tt-badge-icon-color-subdued: var(--tt-gray-light-a-400);
|
|
1811
|
+
--tt-badge-icon-color-emphasized: var(--white);
|
|
1812
|
+
}
|
|
1813
|
+
.dark .tiptap-badge[data-style=gray] {
|
|
1814
|
+
--tt-badge-border-color: var(--tt-gray-dark-a-200);
|
|
1815
|
+
--tt-badge-border-color-subdued: var(--tt-gray-dark-a-200);
|
|
1816
|
+
--tt-badge-border-color-emphasized: var(--tt-gray-dark-a-500);
|
|
1817
|
+
--tt-badge-text-color: var(--tt-gray-dark-a-500);
|
|
1818
|
+
--tt-badge-text-color-subdued: var(--tt-gray-dark-a-400);
|
|
1819
|
+
--tt-badge-text-color-emphasized: var(--black);
|
|
1820
|
+
--tt-badge-bg-color: var(--tt-gray-dark-a-100);
|
|
1821
|
+
--tt-badge-bg-color-subdued: var(--tt-gray-dark-a-50);
|
|
1822
|
+
--tt-badge-bg-color-emphasized: var(--tt-gray-dark-a-800);
|
|
1823
|
+
--tt-badge-icon-color: var(--tt-gray-dark-a-500);
|
|
1824
|
+
--tt-badge-icon-color-subdued: var(--tt-gray-dark-a-400);
|
|
1825
|
+
--tt-badge-icon-color-emphasized: var(--black);
|
|
1826
|
+
}
|
|
1827
|
+
.tiptap-badge[data-style=green] {
|
|
1828
|
+
--tt-badge-border-color: var(--tt-color-green-inc-2);
|
|
1829
|
+
--tt-badge-border-color-subdued: var(--tt-color-green-inc-3);
|
|
1830
|
+
--tt-badge-border-color-emphasized: var(--tt-color-green-dec-2);
|
|
1831
|
+
--tt-badge-text-color: var(--tt-color-green-dec-3);
|
|
1832
|
+
--tt-badge-text-color-subdued: var(--tt-color-green-dec-2);
|
|
1833
|
+
--tt-badge-text-color-emphasized: var(--tt-color-green-inc-5);
|
|
1834
|
+
--tt-badge-bg-color: var(--tt-color-green-inc-4);
|
|
1835
|
+
--tt-badge-bg-color-subdued: var(--tt-color-green-inc-5);
|
|
1836
|
+
--tt-badge-bg-color-emphasized: var(--tt-color-green-dec-1);
|
|
1837
|
+
--tt-badge-icon-color: var(--tt-color-green-dec-3);
|
|
1838
|
+
--tt-badge-icon-color-subdued: var(--tt-color-green-dec-2);
|
|
1839
|
+
--tt-badge-icon-color-emphasized: var(--tt-color-green-inc-5);
|
|
1840
|
+
}
|
|
1841
|
+
.dark .tiptap-badge[data-style=green] {
|
|
1842
|
+
--tt-badge-border-color: var(--tt-color-green-dec-2);
|
|
1843
|
+
--tt-badge-border-color-subdued: var(--tt-color-green-dec-3);
|
|
1844
|
+
--tt-badge-border-color-emphasized: var(--tt-color-green-base);
|
|
1845
|
+
--tt-badge-text-color: var(--tt-color-green-inc-3);
|
|
1846
|
+
--tt-badge-text-color-subdued: var(--tt-color-green-inc-2);
|
|
1847
|
+
--tt-badge-text-color-emphasized: var(--tt-color-green-dec-5);
|
|
1848
|
+
--tt-badge-bg-color: var(--tt-color-green-dec-4);
|
|
1849
|
+
--tt-badge-bg-color-subdued: var(--tt-color-green-dec-5);
|
|
1850
|
+
--tt-badge-bg-color-emphasized: var(--tt-color-green-inc-1);
|
|
1851
|
+
--tt-badge-icon-color: var(--tt-color-green-inc-3);
|
|
1852
|
+
--tt-badge-icon-color-subdued: var(--tt-color-green-inc-2);
|
|
1853
|
+
--tt-badge-icon-color-emphasized: var(--tt-color-green-dec-5);
|
|
1854
|
+
}
|
|
1855
|
+
.tiptap-badge[data-style=yellow] {
|
|
1856
|
+
--tt-badge-border-color: var(--tt-color-yellow-inc-2);
|
|
1857
|
+
--tt-badge-border-color-subdued: var(--tt-color-yellow-inc-3);
|
|
1858
|
+
--tt-badge-border-color-emphasized: var(--tt-color-yellow-dec-1);
|
|
1859
|
+
--tt-badge-text-color: var(--tt-color-yellow-dec-3);
|
|
1860
|
+
--tt-badge-text-color-subdued: var(--tt-color-yellow-dec-2);
|
|
1861
|
+
--tt-badge-text-color-emphasized: var(--tt-color-yellow-dec-3);
|
|
1862
|
+
--tt-badge-bg-color: var(--tt-color-yellow-inc-4);
|
|
1863
|
+
--tt-badge-bg-color-subdued: var(--tt-color-yellow-inc-5);
|
|
1864
|
+
--tt-badge-bg-color-emphasized: var(--tt-color-yellow-base);
|
|
1865
|
+
--tt-badge-icon-color: var(--tt-color-yellow-dec-3);
|
|
1866
|
+
--tt-badge-icon-color-subdued: var(--tt-color-yellow-dec-2);
|
|
1867
|
+
--tt-badge-icon-color-emphasized: var(--tt-color-yellow-dec-3);
|
|
1868
|
+
}
|
|
1869
|
+
.dark .tiptap-badge[data-style=yellow] {
|
|
1870
|
+
--tt-badge-border-color: var(--tt-color-yellow-dec-2);
|
|
1871
|
+
--tt-badge-border-color-subdued: var(--tt-color-yellow-dec-3);
|
|
1872
|
+
--tt-badge-border-color-emphasized: var(--tt-color-yellow-inc-1);
|
|
1873
|
+
--tt-badge-text-color: var(--tt-color-yellow-inc-3);
|
|
1874
|
+
--tt-badge-text-color-subdued: var(--tt-color-yellow-inc-2);
|
|
1875
|
+
--tt-badge-text-color-emphasized: var(--tt-color-yellow-dec-3);
|
|
1876
|
+
--tt-badge-bg-color: var(--tt-color-yellow-dec-4);
|
|
1877
|
+
--tt-badge-bg-color-subdued: var(--tt-color-yellow-dec-5);
|
|
1878
|
+
--tt-badge-bg-color-emphasized: var(--tt-color-yellow-base);
|
|
1879
|
+
--tt-badge-icon-color: var(--tt-color-yellow-inc-3);
|
|
1880
|
+
--tt-badge-icon-color-subdued: var(--tt-color-yellow-inc-2);
|
|
1881
|
+
--tt-badge-icon-color-emphasized: var(--tt-color-yellow-dec-3);
|
|
1882
|
+
}
|
|
1883
|
+
.tiptap-badge[data-style=red] {
|
|
1884
|
+
--tt-badge-border-color: var(--tt-color-red-inc-2);
|
|
1885
|
+
--tt-badge-border-color-subdued: var(--tt-color-red-inc-3);
|
|
1886
|
+
--tt-badge-border-color-emphasized: var(--tt-color-red-dec-2);
|
|
1887
|
+
--tt-badge-text-color: var(--tt-color-red-dec-3);
|
|
1888
|
+
--tt-badge-text-color-subdued: var(--tt-color-red-dec-2);
|
|
1889
|
+
--tt-badge-text-color-emphasized: var(--tt-color-red-inc-5);
|
|
1890
|
+
--tt-badge-bg-color: var(--tt-color-red-inc-4);
|
|
1891
|
+
--tt-badge-bg-color-subdued: var(--tt-color-red-inc-5);
|
|
1892
|
+
--tt-badge-bg-color-emphasized: var(--tt-color-red-dec-1);
|
|
1893
|
+
--tt-badge-icon-color: var(--tt-color-red-dec-3);
|
|
1894
|
+
--tt-badge-icon-color-subdued: var(--tt-color-red-dec-2);
|
|
1895
|
+
--tt-badge-icon-color-emphasized: var(--tt-color-red-inc-5);
|
|
1896
|
+
}
|
|
1897
|
+
.dark .tiptap-badge[data-style=red] {
|
|
1898
|
+
--tt-badge-border-color: var(--tt-color-red-dec-2);
|
|
1899
|
+
--tt-badge-border-color-subdued: var(--tt-color-red-dec-3);
|
|
1900
|
+
--tt-badge-border-color-emphasized: var(--tt-color-red-base);
|
|
1901
|
+
--tt-badge-text-color: var(--tt-color-red-inc-3);
|
|
1902
|
+
--tt-badge-text-color-subdued: var(--tt-color-red-inc-2);
|
|
1903
|
+
--tt-badge-text-color-emphasized: var(--tt-color-red-dec-5);
|
|
1904
|
+
--tt-badge-bg-color: var(--tt-color-red-dec-4);
|
|
1905
|
+
--tt-badge-bg-color-subdued: var(--tt-color-red-dec-5);
|
|
1906
|
+
--tt-badge-bg-color-emphasized: var(--tt-color-red-inc-1);
|
|
1907
|
+
--tt-badge-icon-color: var(--tt-color-red-inc-3);
|
|
1908
|
+
--tt-badge-icon-color-subdued: var(--tt-color-red-inc-2);
|
|
1909
|
+
--tt-badge-icon-color-emphasized: var(--tt-color-red-dec-5);
|
|
1910
|
+
}
|
|
1911
|
+
.tiptap-badge[data-style=brand] {
|
|
1912
|
+
--tt-badge-border-color: var(--tt-brand-color-300);
|
|
1913
|
+
--tt-badge-border-color-subdued: var(--tt-brand-color-200);
|
|
1914
|
+
--tt-badge-border-color-emphasized: var(--tt-brand-color-600);
|
|
1915
|
+
--tt-badge-text-color: var(--tt-brand-color-800);
|
|
1916
|
+
--tt-badge-text-color-subdued: var(--tt-brand-color-700);
|
|
1917
|
+
--tt-badge-text-color-emphasized: var(--tt-brand-color-50);
|
|
1918
|
+
--tt-badge-bg-color: var(--tt-brand-color-100);
|
|
1919
|
+
--tt-badge-bg-color-subdued: var(--tt-brand-color-50);
|
|
1920
|
+
--tt-badge-bg-color-emphasized: var(--tt-brand-color-600);
|
|
1921
|
+
--tt-badge-icon-color: var(--tt-brand-color-800);
|
|
1922
|
+
--tt-badge-icon-color-subdued: var(--tt-brand-color-700);
|
|
1923
|
+
--tt-badge-icon-color-emphasized: var(--tt-brand-color-100);
|
|
1924
|
+
}
|
|
1925
|
+
.dark .tiptap-badge[data-style=brand] {
|
|
1926
|
+
--tt-badge-border-color: var(--tt-brand-color-700);
|
|
1927
|
+
--tt-badge-border-color-subdued: var(--tt-brand-color-800);
|
|
1928
|
+
--tt-badge-border-color-emphasized: var(--tt-brand-color-400);
|
|
1929
|
+
--tt-badge-text-color: var(--tt-brand-color-200);
|
|
1930
|
+
--tt-badge-text-color-subdued: var(--tt-brand-color-300);
|
|
1931
|
+
--tt-badge-text-color-emphasized: var(--tt-brand-color-950);
|
|
1932
|
+
--tt-badge-bg-color: var(--tt-brand-color-900);
|
|
1933
|
+
--tt-badge-bg-color-subdued: var(--tt-brand-color-950);
|
|
1934
|
+
--tt-badge-bg-color-emphasized: var(--tt-brand-color-400);
|
|
1935
|
+
--tt-badge-icon-color: var(--tt-brand-color-200);
|
|
1936
|
+
--tt-badge-icon-color-subdued: var(--tt-brand-color-300);
|
|
1937
|
+
--tt-badge-icon-color-emphasized: var(--tt-brand-color-900);
|
|
1842
1938
|
}
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
background-color: var(--tt-popover-bg-color);
|
|
1850
|
-
padding: var(--padding);
|
|
1851
|
-
color: var(--tt-popover-text-color);
|
|
1852
|
-
box-shadow: var(--tt-shadow-elevated-md);
|
|
1853
|
-
outline: none;
|
|
1854
|
-
overflow: auto;
|
|
1939
|
+
|
|
1940
|
+
/* src/components/MarkdownEditor/components/tiptap-ui-primitive/badge/badge-group.less */
|
|
1941
|
+
.tiptap-badge-group {
|
|
1942
|
+
align-items: center;
|
|
1943
|
+
display: flex;
|
|
1944
|
+
flex-wrap: wrap;
|
|
1855
1945
|
gap: 0.25rem;
|
|
1856
1946
|
}
|
|
1857
|
-
.tiptap-
|
|
1858
|
-
|
|
1947
|
+
.tiptap-badge-group [data-orientation=vertical] {
|
|
1948
|
+
flex-direction: column;
|
|
1859
1949
|
}
|
|
1860
|
-
.tiptap-
|
|
1861
|
-
|
|
1950
|
+
.tiptap-badge-group [data-orientation=horizontal] {
|
|
1951
|
+
flex-direction: row;
|
|
1862
1952
|
}
|
|
1863
|
-
|
|
1864
|
-
|
|
1953
|
+
|
|
1954
|
+
/* src/components/MarkdownEditor/components/tiptap-ui-primitive/badge/badge.less */
|
|
1955
|
+
.tiptap-badge {
|
|
1956
|
+
font-size: 0.625rem;
|
|
1957
|
+
font-weight: 700;
|
|
1958
|
+
font-feature-settings: "salt" on, "cv01" on;
|
|
1959
|
+
line-height: 1.15;
|
|
1960
|
+
height: 1.25rem;
|
|
1961
|
+
min-width: 1.25rem;
|
|
1962
|
+
padding: 0.25rem;
|
|
1963
|
+
display: flex;
|
|
1964
|
+
align-items: center;
|
|
1965
|
+
justify-content: center;
|
|
1966
|
+
border: solid 1px;
|
|
1967
|
+
border-radius: var(--tt-radius-sm, 0.375rem);
|
|
1968
|
+
transition-property:
|
|
1969
|
+
background,
|
|
1970
|
+
color,
|
|
1971
|
+
opacity;
|
|
1972
|
+
transition-duration: var(--tt-transition-duration-default);
|
|
1973
|
+
transition-timing-function: var(--tt-transition-easing-default);
|
|
1974
|
+
}
|
|
1975
|
+
.tiptap-badge[data-size=large] {
|
|
1865
1976
|
font-size: 0.75rem;
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1977
|
+
height: 1.5rem;
|
|
1978
|
+
min-width: 1.5rem;
|
|
1979
|
+
padding: 0.375rem;
|
|
1980
|
+
border-radius: var(--tt-radius-md, 0.375rem);
|
|
1870
1981
|
}
|
|
1871
|
-
.tiptap-
|
|
1872
|
-
|
|
1982
|
+
.tiptap-badge[data-size=small] {
|
|
1983
|
+
height: 1rem;
|
|
1984
|
+
min-width: 1rem;
|
|
1985
|
+
padding: 0.125rem;
|
|
1986
|
+
border-radius: var(--tt-radius-xs, 0.25rem);
|
|
1873
1987
|
}
|
|
1874
|
-
.tiptap-
|
|
1875
|
-
|
|
1988
|
+
.tiptap-badge .tiptap-badge-text {
|
|
1989
|
+
padding: 0 0.125rem;
|
|
1990
|
+
flex-grow: 1;
|
|
1991
|
+
text-align: left;
|
|
1876
1992
|
}
|
|
1877
|
-
.tiptap-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
animation: slideFromBottom 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
1993
|
+
.tiptap-badge[data-text-trim=on] .tiptap-badge-text {
|
|
1994
|
+
text-overflow: ellipsis;
|
|
1995
|
+
overflow: hidden;
|
|
1881
1996
|
}
|
|
1882
|
-
.tiptap-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1997
|
+
.tiptap-badge .tiptap-badge-icon {
|
|
1998
|
+
pointer-events: none;
|
|
1999
|
+
flex-shrink: 0;
|
|
2000
|
+
width: 0.625rem;
|
|
2001
|
+
height: 0.625rem;
|
|
1886
2002
|
}
|
|
1887
|
-
.tiptap-
|
|
1888
|
-
.
|
|
1889
|
-
.
|
|
1890
|
-
animation: slideFromTop 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
2003
|
+
.tiptap-badge[data-size=large] .tiptap-badge-icon {
|
|
2004
|
+
width: 0.75rem;
|
|
2005
|
+
height: 0.75rem;
|
|
1891
2006
|
}
|
|
1892
|
-
.tiptap-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
2007
|
+
.tiptap-badge {
|
|
2008
|
+
background-color: var(--tt-badge-bg-color);
|
|
2009
|
+
border-color: var(--tt-badge-border-color);
|
|
2010
|
+
color: var(--tt-badge-text-color);
|
|
2011
|
+
}
|
|
2012
|
+
.tiptap-badge .tiptap-badge-icon {
|
|
2013
|
+
color: var(--tt-badge-icon-color);
|
|
2014
|
+
}
|
|
2015
|
+
.tiptap-badge[data-appearance=emphasized] {
|
|
2016
|
+
background-color: var(--tt-badge-bg-color-emphasized);
|
|
2017
|
+
border-color: var(--tt-badge-border-color-emphasized);
|
|
2018
|
+
color: var(--tt-badge-text-color-emphasized);
|
|
2019
|
+
}
|
|
2020
|
+
.tiptap-badge[data-appearance=emphasized] .tiptap-badge-icon {
|
|
2021
|
+
color: var(--tt-badge-icon-color-emphasized);
|
|
2022
|
+
}
|
|
2023
|
+
.tiptap-badge[data-appearance=subdued] {
|
|
2024
|
+
background-color: var(--tt-badge-bg-color-subdued);
|
|
2025
|
+
border-color: var(--tt-badge-border-color-subdued);
|
|
2026
|
+
color: var(--tt-badge-text-color-subdued);
|
|
2027
|
+
}
|
|
2028
|
+
.tiptap-badge[data-appearance=subdued] .tiptap-badge-icon {
|
|
2029
|
+
color: var(--tt-badge-icon-color-subdued);
|
|
1896
2030
|
}
|
|
1897
2031
|
|
|
1898
2032
|
/* src/components/MarkdownEditor/components/tiptap-ui-primitive/popover/popover.less */
|
|
@@ -1907,26 +2041,13 @@
|
|
|
1907
2041
|
--tt-popover-text-color: var(--tt-gray-dark-a-600);
|
|
1908
2042
|
}
|
|
1909
2043
|
.tiptap-popover {
|
|
1910
|
-
--padding: 0.25rem;
|
|
1911
|
-
--border-width: 1px;
|
|
1912
2044
|
z-index: 50;
|
|
1913
|
-
border-radius: calc(var(--padding) + var(--tt-radius-lg) + var(--border-width));
|
|
1914
|
-
border: var(--border-width) solid var(--tt-popover-border-color);
|
|
1915
|
-
background-color: var(--tt-popover-bg-color);
|
|
1916
|
-
padding: var(--padding);
|
|
1917
|
-
color: var(--tt-popover-text-color);
|
|
1918
|
-
box-shadow: var(--tt-shadow-elevated-md);
|
|
1919
2045
|
outline: none;
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
align-items: center;
|
|
1923
|
-
gap: 0.25rem;
|
|
1924
|
-
}
|
|
1925
|
-
.tiptap-popover button {
|
|
1926
|
-
width: 100%;
|
|
2046
|
+
transform-origin: var(--radix-popover-content-transform-origin);
|
|
2047
|
+
max-height: var(--radix-popover-content-available-height);
|
|
1927
2048
|
}
|
|
1928
|
-
.tiptap-popover
|
|
1929
|
-
|
|
2049
|
+
.tiptap-popover > * {
|
|
2050
|
+
max-height: var(--radix-popover-content-available-height);
|
|
1930
2051
|
}
|
|
1931
2052
|
.tiptap-popover[data-state=open] {
|
|
1932
2053
|
animation: fadeIn 150ms cubic-bezier(0.16, 1, 0.3, 1), zoomIn 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
@@ -1955,7 +2076,75 @@
|
|
|
1955
2076
|
animation: slideFromRight 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
1956
2077
|
}
|
|
1957
2078
|
|
|
1958
|
-
/* src/components/MarkdownEditor/components/tiptap-ui
|
|
2079
|
+
/* src/components/MarkdownEditor/components/tiptap-ui-primitive/card/card.less */
|
|
2080
|
+
:root {
|
|
2081
|
+
--tiptap-card-bg-color: var(--white);
|
|
2082
|
+
--tiptap-card-border-color: var(--tt-gray-light-a-100);
|
|
2083
|
+
--tiptap-card-group-label-color: var(--tt-gray-light-a-800);
|
|
2084
|
+
}
|
|
2085
|
+
.dark {
|
|
2086
|
+
--tiptap-card-bg-color: var(--tt-gray-dark-50);
|
|
2087
|
+
--tiptap-card-border-color: var(--tt-gray-dark-a-100);
|
|
2088
|
+
--tiptap-card-group-label-color: var(--tt-gray-dark-a-800);
|
|
2089
|
+
}
|
|
2090
|
+
.tiptap-card {
|
|
2091
|
+
--padding: 0.375rem;
|
|
2092
|
+
--border-width: 1px;
|
|
2093
|
+
border-radius: calc(var(--padding) + var(--tt-radius-lg));
|
|
2094
|
+
box-shadow: var(--tt-shadow-elevated-md);
|
|
2095
|
+
background-color: var(--tiptap-card-bg-color);
|
|
2096
|
+
border: 1px solid var(--tiptap-card-border-color);
|
|
2097
|
+
display: flex;
|
|
2098
|
+
flex-direction: column;
|
|
2099
|
+
outline: none;
|
|
2100
|
+
align-items: center;
|
|
2101
|
+
position: relative;
|
|
2102
|
+
min-width: 0;
|
|
2103
|
+
word-wrap: break-word;
|
|
2104
|
+
background-clip: border-box;
|
|
2105
|
+
}
|
|
2106
|
+
.tiptap-card-header {
|
|
2107
|
+
padding: 0.375rem;
|
|
2108
|
+
flex: 0 0 auto;
|
|
2109
|
+
display: flex;
|
|
2110
|
+
align-items: center;
|
|
2111
|
+
justify-content: space-between;
|
|
2112
|
+
width: 100%;
|
|
2113
|
+
border-bottom: var(--border-width) solid var(--tiptap-card-border-color);
|
|
2114
|
+
}
|
|
2115
|
+
.tiptap-card-body {
|
|
2116
|
+
padding: 0.375rem;
|
|
2117
|
+
flex: 1 1 auto;
|
|
2118
|
+
overflow-y: auto;
|
|
2119
|
+
}
|
|
2120
|
+
.tiptap-card-item-group {
|
|
2121
|
+
position: relative;
|
|
2122
|
+
display: flex;
|
|
2123
|
+
vertical-align: middle;
|
|
2124
|
+
min-width: max-content;
|
|
2125
|
+
}
|
|
2126
|
+
.tiptap-card-item-group[data-orientation=vertical] {
|
|
2127
|
+
flex-direction: column;
|
|
2128
|
+
justify-content: center;
|
|
2129
|
+
}
|
|
2130
|
+
.tiptap-card-item-group[data-orientation=horizontal] {
|
|
2131
|
+
gap: 0.25rem;
|
|
2132
|
+
flex-direction: row;
|
|
2133
|
+
align-items: center;
|
|
2134
|
+
}
|
|
2135
|
+
.tiptap-card-group-label {
|
|
2136
|
+
padding-top: 0.75rem;
|
|
2137
|
+
padding-left: 0.5rem;
|
|
2138
|
+
padding-right: 0.5rem;
|
|
2139
|
+
padding-bottom: 0.25rem;
|
|
2140
|
+
font-size: 0.75rem;
|
|
2141
|
+
font-weight: 600;
|
|
2142
|
+
line-height: normal;
|
|
2143
|
+
text-transform: capitalize;
|
|
2144
|
+
color: var(--tiptap-card-group-label-color);
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
/* src/components/MarkdownEditor/components/tiptap-ui/color-highlight-button/color-highlight-button.less */
|
|
1959
2148
|
.tiptap-button-highlight {
|
|
1960
2149
|
position: relative;
|
|
1961
2150
|
width: 1.25rem;
|
|
@@ -1989,28 +2178,76 @@
|
|
|
1989
2178
|
filter: brightness(180%);
|
|
1990
2179
|
}
|
|
1991
2180
|
|
|
1992
|
-
/* src/components/MarkdownEditor/components/tiptap-ui/
|
|
1993
|
-
.tiptap-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
2181
|
+
/* src/components/MarkdownEditor/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.less */
|
|
2182
|
+
.tiptap-dropdown-menu {
|
|
2183
|
+
--tt-dropdown-menu-bg-color: var(--white);
|
|
2184
|
+
--tt-dropdown-menu-border-color: var(--tt-gray-light-a-100);
|
|
2185
|
+
--tt-dropdown-menu-text-color: var(--tt-gray-light-a-600);
|
|
2186
|
+
}
|
|
2187
|
+
.dark .tiptap-dropdown-menu {
|
|
2188
|
+
--tt-dropdown-menu-border-color: var(--tt-gray-dark-a-50);
|
|
2189
|
+
--tt-dropdown-menu-bg-color: var(--tt-gray-dark-50);
|
|
2190
|
+
--tt-dropdown-menu-text-color: var(--tt-gray-dark-a-600);
|
|
2191
|
+
}
|
|
2192
|
+
.tiptap-dropdown-menu {
|
|
2193
|
+
z-index: 50;
|
|
1997
2194
|
outline: none;
|
|
2195
|
+
transform-origin: var(--radix-dropdown-menu-content-transform-origin);
|
|
2196
|
+
max-height: var(--radix-dropdown-menu-content-available-height);
|
|
2197
|
+
}
|
|
2198
|
+
.tiptap-dropdown-menu > * {
|
|
2199
|
+
max-height: var(--radix-dropdown-menu-content-available-height);
|
|
2200
|
+
}
|
|
2201
|
+
.tiptap-dropdown-menu[data-state=open] {
|
|
2202
|
+
animation: fadeIn 150ms cubic-bezier(0.16, 1, 0.3, 1), zoomIn 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
2203
|
+
}
|
|
2204
|
+
.tiptap-dropdown-menu[data-state=closed] {
|
|
2205
|
+
animation: fadeOut 150ms cubic-bezier(0.16, 1, 0.3, 1), zoomOut 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
2206
|
+
}
|
|
2207
|
+
.tiptap-dropdown-menu[data-side=top],
|
|
2208
|
+
.tiptap-dropdown-menu[data-side=top-start],
|
|
2209
|
+
.tiptap-dropdown-menu[data-side=top-end] {
|
|
2210
|
+
animation: slideFromBottom 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
2211
|
+
}
|
|
2212
|
+
.tiptap-dropdown-menu[data-side=right],
|
|
2213
|
+
.tiptap-dropdown-menu[data-side=right-start],
|
|
2214
|
+
.tiptap-dropdown-menu[data-side=right-end] {
|
|
2215
|
+
animation: slideFromLeft 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
2216
|
+
}
|
|
2217
|
+
.tiptap-dropdown-menu[data-side=bottom],
|
|
2218
|
+
.tiptap-dropdown-menu[data-side=bottom-start],
|
|
2219
|
+
.tiptap-dropdown-menu[data-side=bottom-end] {
|
|
2220
|
+
animation: slideFromTop 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
2221
|
+
}
|
|
2222
|
+
.tiptap-dropdown-menu[data-side=left],
|
|
2223
|
+
.tiptap-dropdown-menu[data-side=left-start],
|
|
2224
|
+
.tiptap-dropdown-menu[data-side=left-end] {
|
|
2225
|
+
animation: slideFromRight 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
1998
2226
|
}
|
|
1999
2227
|
|
|
2000
|
-
/* src/components/MarkdownEditor/components/tiptap-ui
|
|
2228
|
+
/* src/components/MarkdownEditor/components/tiptap-ui-primitive/input/input.less */
|
|
2229
|
+
:root {
|
|
2230
|
+
--tiptap-input-placeholder: var(--tt-gray-light-a-400);
|
|
2231
|
+
}
|
|
2232
|
+
.dark {
|
|
2233
|
+
--tiptap-input-placeholder: var(--tt-gray-dark-a-400);
|
|
2234
|
+
}
|
|
2001
2235
|
.tiptap-input {
|
|
2002
2236
|
display: block;
|
|
2003
2237
|
width: 100%;
|
|
2004
2238
|
height: 2rem;
|
|
2005
|
-
font-size:
|
|
2006
|
-
|
|
2007
|
-
|
|
2239
|
+
font-size: 0.875rem;
|
|
2240
|
+
font-weight: 400;
|
|
2241
|
+
line-height: 1.5;
|
|
2242
|
+
padding: 0.375rem 0.5rem;
|
|
2008
2243
|
border-radius: 0.375rem;
|
|
2009
2244
|
background: none;
|
|
2010
|
-
|
|
2011
|
-
.tiptap-input:focus {
|
|
2245
|
+
appearance: none;
|
|
2012
2246
|
outline: none;
|
|
2013
2247
|
}
|
|
2248
|
+
.tiptap-input::placeholder {
|
|
2249
|
+
color: var(--tiptap-input-placeholder);
|
|
2250
|
+
}
|
|
2014
2251
|
.tiptap-input-clamp {
|
|
2015
2252
|
min-width: 12rem;
|
|
2016
2253
|
padding-right: 0;
|
|
@@ -2021,4 +2258,61 @@
|
|
|
2021
2258
|
text-overflow: clip;
|
|
2022
2259
|
overflow: visible;
|
|
2023
2260
|
}
|
|
2261
|
+
.tiptap-input-group {
|
|
2262
|
+
position: relative;
|
|
2263
|
+
display: flex;
|
|
2264
|
+
flex-wrap: wrap;
|
|
2265
|
+
align-items: stretch;
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
/* src/components/MarkdownEditor/annotation/styles.module.less */
|
|
2269
|
+
.styles_module_annotations {
|
|
2270
|
+
margin-top: 8px;
|
|
2271
|
+
}
|
|
2272
|
+
.styles_module_annotations .styles_module_annotationItem {
|
|
2273
|
+
cursor: pointer;
|
|
2274
|
+
padding-left: 20px;
|
|
2275
|
+
padding-right: 20px;
|
|
2276
|
+
}
|
|
2277
|
+
.styles_module_annotations .styles_module_annotationItem:hover {
|
|
2278
|
+
background-color: #fafafa;
|
|
2279
|
+
}
|
|
2280
|
+
.styles_module_annotations .styles_module_annotationItem.styles_module_annotationItemSelected {
|
|
2281
|
+
background-color: #e6f7ff;
|
|
2282
|
+
border-left: 3px solid var(--ant-primary-color);
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
/* src/components/MarkdownEditor/collection/styles.module.less */
|
|
2286
|
+
.styles_module_collections {
|
|
2287
|
+
margin-top: 8px;
|
|
2288
|
+
}
|
|
2289
|
+
.styles_module_collections .styles_module_collectionItem {
|
|
2290
|
+
cursor: pointer;
|
|
2291
|
+
padding-left: 20px;
|
|
2292
|
+
padding-right: 20px;
|
|
2293
|
+
}
|
|
2294
|
+
.styles_module_collections .styles_module_collectionItem:hover {
|
|
2295
|
+
background-color: #fafafa;
|
|
2296
|
+
}
|
|
2297
|
+
.styles_module_collections .styles_module_collectionItem.styles_module_collectionItemSelected {
|
|
2298
|
+
background-color: #e6f7ff;
|
|
2299
|
+
border-left: 3px solid var(--ant-primary-color);
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
/* src/components/MarkDrawing/styles.module.less */
|
|
2303
|
+
.styles_module_container {
|
|
2304
|
+
position: relative;
|
|
2305
|
+
}
|
|
2306
|
+
.styles_module_container .styles_module_rect {
|
|
2307
|
+
position: absolute;
|
|
2308
|
+
border: 2px dashed #ff6a00;
|
|
2309
|
+
}
|
|
2310
|
+
.styles_module_container .styles_module_score {
|
|
2311
|
+
position: absolute;
|
|
2312
|
+
background: #ff6a00;
|
|
2313
|
+
color: #fff;
|
|
2314
|
+
padding: 2px 4px;
|
|
2315
|
+
font-size: 12px;
|
|
2316
|
+
font-weight: 600;
|
|
2317
|
+
}
|
|
2024
2318
|
/*# sourceMappingURL=index.css.map */
|