@zero-library/common 2.2.14 → 2.3.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/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%;
@@ -180,47 +241,8 @@
180
241
  display: block;
181
242
  }
182
243
 
183
- /* src/components/MarkdownEditor/index.less */
184
- .editor-parent {
185
- --tt-toolbar-height: 44px;
186
- --tt-theme-text: var(--tt-gray-light-900);
187
- }
188
- .dark .editor-parent {
189
- --tt-theme-text: var(--tt-gray-dark-900);
190
- }
191
- .editor-parent .tiptap.ProseMirror {
192
- font-family: "DM Sans", sans-serif;
193
- }
194
- .editor-parent .content-wrapper {
195
- height: calc(100% - var(--tt-toolbar-height));
196
- overflow-y: auto;
197
- }
198
- .editor-parent .content-wrapper > div[data-tippy-root] {
199
- z-index: 900 !important;
200
- }
201
- .editor-parent .simple-editor-content {
202
- max-width: 1000px;
203
- width: 100%;
204
- margin: 0 auto;
205
- min-height: 100%;
206
- display: flex;
207
- flex-direction: column;
208
- }
209
- .editor-parent .simple-editor-content .tiptap.ProseMirror {
210
- padding: 18px;
211
- flex: 1;
212
- }
213
- @media screen and (width <= 480px) {
214
- .editor-parent .simple-editor-content .tiptap.ProseMirror {
215
- padding: 1rem 1.5rem;
216
- }
217
- }
218
- .editor-parent .simple-editor-content.no-toolbar .tiptap.ProseMirror {
219
- padding: 0;
220
- }
221
-
222
- /* src/components/MarkdownEditor/styles/_keyframe-animations.less */
223
- @keyframes fadeIn {
244
+ /* src/components/MarkdownEditor/styles.module.less */
245
+ @keyframes styles_module_fadeIn {
224
246
  from {
225
247
  opacity: 0;
226
248
  }
@@ -228,7 +250,7 @@
228
250
  opacity: 1;
229
251
  }
230
252
  }
231
- @keyframes fadeOut {
253
+ @keyframes styles_module_fadeOut {
232
254
  from {
233
255
  opacity: 1;
234
256
  }
@@ -236,7 +258,7 @@
236
258
  opacity: 0;
237
259
  }
238
260
  }
239
- @keyframes zoomIn {
261
+ @keyframes styles_module_zoomIn {
240
262
  from {
241
263
  transform: scale(0.95);
242
264
  }
@@ -244,7 +266,7 @@
244
266
  transform: scale(1);
245
267
  }
246
268
  }
247
- @keyframes zoomOut {
269
+ @keyframes styles_module_zoomOut {
248
270
  from {
249
271
  transform: scale(1);
250
272
  }
@@ -252,7 +274,7 @@
252
274
  transform: scale(0.95);
253
275
  }
254
276
  }
255
- @keyframes zoom {
277
+ @keyframes styles_module_zoom {
256
278
  0% {
257
279
  opacity: 0;
258
280
  transform: scale(0.95);
@@ -262,7 +284,7 @@
262
284
  transform: scale(1);
263
285
  }
264
286
  }
265
- @keyframes slideFromTop {
287
+ @keyframes styles_module_slideFromTop {
266
288
  from {
267
289
  transform: translateY(-0.5rem);
268
290
  }
@@ -270,7 +292,7 @@
270
292
  transform: translateY(0);
271
293
  }
272
294
  }
273
- @keyframes slideFromRight {
295
+ @keyframes styles_module_slideFromRight {
274
296
  from {
275
297
  transform: translateX(0.5rem);
276
298
  }
@@ -278,7 +300,7 @@
278
300
  transform: translateX(0);
279
301
  }
280
302
  }
281
- @keyframes slideFromLeft {
303
+ @keyframes styles_module_slideFromLeft {
282
304
  from {
283
305
  transform: translateX(-0.5rem);
284
306
  }
@@ -286,7 +308,7 @@
286
308
  transform: translateX(0);
287
309
  }
288
310
  }
289
- @keyframes slideFromBottom {
311
+ @keyframes styles_module_slideFromBottom {
290
312
  from {
291
313
  transform: translateY(0.5rem);
292
314
  }
@@ -294,7 +316,7 @@
294
316
  transform: translateY(0);
295
317
  }
296
318
  }
297
- @keyframes spin {
319
+ @keyframes styles_module_spin {
298
320
  from {
299
321
  transform: rotate(0deg);
300
322
  }
@@ -302,200 +324,6 @@
302
324
  transform: rotate(360deg);
303
325
  }
304
326
  }
305
-
306
- /* src/components/MarkdownEditor/styles/_reset.less */
307
- .tiptap.ProseMirror {
308
- }
309
- .tiptap.ProseMirror hr {
310
- height: 0;
311
- color: inherit;
312
- border-top-width: 1px;
313
- }
314
- .tiptap.ProseMirror abbr:where([title]) {
315
- text-decoration: underline dotted;
316
- }
317
- .tiptap.ProseMirror h1,
318
- .tiptap.ProseMirror h2,
319
- .tiptap.ProseMirror h3,
320
- .tiptap.ProseMirror h4,
321
- .tiptap.ProseMirror h5,
322
- .tiptap.ProseMirror h6 {
323
- font-size: inherit;
324
- font-weight: inherit;
325
- }
326
- .tiptap.ProseMirror a {
327
- color: inherit;
328
- text-decoration: inherit;
329
- }
330
- .tiptap.ProseMirror b,
331
- .tiptap.ProseMirror strong {
332
- font-weight: bolder;
333
- }
334
- .tiptap.ProseMirror code,
335
- .tiptap.ProseMirror kbd,
336
- .tiptap.ProseMirror samp,
337
- .tiptap.ProseMirror pre {
338
- font-family:
339
- ui-monospace,
340
- SFMono-Regular,
341
- Menlo,
342
- Monaco,
343
- Consolas,
344
- "Liberation Mono",
345
- "Courier New",
346
- monospace;
347
- font-feature-settings: normal;
348
- font-variation-settings: normal;
349
- font-size: 1em;
350
- }
351
- .tiptap.ProseMirror small {
352
- font-size: 80%;
353
- }
354
- .tiptap.ProseMirror sub,
355
- .tiptap.ProseMirror sup {
356
- font-size: 75%;
357
- line-height: 0;
358
- position: relative;
359
- vertical-align: baseline;
360
- }
361
- .tiptap.ProseMirror sub {
362
- bottom: -0.25em;
363
- }
364
- .tiptap.ProseMirror sup {
365
- top: -0.5em;
366
- }
367
- .tiptap.ProseMirror table {
368
- text-indent: 0;
369
- border-color: inherit;
370
- border-collapse: collapse;
371
- }
372
- .tiptap.ProseMirror button,
373
- .tiptap.ProseMirror input,
374
- .tiptap.ProseMirror optgroup,
375
- .tiptap.ProseMirror select,
376
- .tiptap.ProseMirror textarea {
377
- font-family: inherit;
378
- font-feature-settings: inherit;
379
- font-variation-settings: inherit;
380
- font-size: 100%;
381
- font-weight: inherit;
382
- line-height: inherit;
383
- letter-spacing: inherit;
384
- color: inherit;
385
- margin: 0;
386
- padding: 0;
387
- }
388
- .tiptap.ProseMirror button,
389
- .tiptap.ProseMirror select {
390
- text-transform: none;
391
- }
392
- .tiptap.ProseMirror button,
393
- .tiptap.ProseMirror input:where([type=button]),
394
- .tiptap.ProseMirror input:where([type=reset]),
395
- .tiptap.ProseMirror input:where([type=submit]) {
396
- appearance: button;
397
- background-color: transparent;
398
- background-image: none;
399
- }
400
- .tiptap.ProseMirror :-moz-focusring {
401
- outline: auto;
402
- }
403
- .tiptap.ProseMirror :-moz-ui-invalid {
404
- box-shadow: none;
405
- }
406
- .tiptap.ProseMirror progress {
407
- vertical-align: baseline;
408
- }
409
- .tiptap.ProseMirror ::-webkit-inner-spin-button,
410
- .tiptap.ProseMirror ::-webkit-outer-spin-button {
411
- height: auto;
412
- }
413
- .tiptap.ProseMirror [type=search] {
414
- appearance: textfield;
415
- outline-offset: -2px;
416
- }
417
- .tiptap.ProseMirror ::-webkit-search-decoration {
418
- appearance: none;
419
- }
420
- .tiptap.ProseMirror ::-webkit-file-upload-button {
421
- appearance: button;
422
- font: inherit;
423
- }
424
- .tiptap.ProseMirror summary {
425
- display: list-item;
426
- }
427
- .tiptap.ProseMirror blockquote,
428
- .tiptap.ProseMirror dl,
429
- .tiptap.ProseMirror dd,
430
- .tiptap.ProseMirror h1,
431
- .tiptap.ProseMirror h2,
432
- .tiptap.ProseMirror h3,
433
- .tiptap.ProseMirror h4,
434
- .tiptap.ProseMirror h5,
435
- .tiptap.ProseMirror h6,
436
- .tiptap.ProseMirror hr,
437
- .tiptap.ProseMirror figure,
438
- .tiptap.ProseMirror p,
439
- .tiptap.ProseMirror pre {
440
- margin: 0;
441
- }
442
- .tiptap.ProseMirror fieldset {
443
- margin: 0;
444
- padding: 0;
445
- }
446
- .tiptap.ProseMirror legend {
447
- padding: 0;
448
- }
449
- .tiptap.ProseMirror ol,
450
- .tiptap.ProseMirror ul,
451
- .tiptap.ProseMirror menu {
452
- list-style: none;
453
- margin: 0;
454
- padding: 0;
455
- }
456
- .tiptap.ProseMirror dialog {
457
- padding: 0;
458
- }
459
- .tiptap.ProseMirror textarea {
460
- resize: vertical;
461
- }
462
- .tiptap.ProseMirror input::placeholder,
463
- .tiptap.ProseMirror textarea::-moz-placeholder {
464
- opacity: 1;
465
- color: #9ca3af;
466
- }
467
- .tiptap.ProseMirror input::placeholder,
468
- .tiptap.ProseMirror textarea::placeholder {
469
- opacity: 1;
470
- color: #9ca3af;
471
- }
472
- .tiptap.ProseMirror button,
473
- .tiptap.ProseMirror [role=button] {
474
- cursor: pointer;
475
- }
476
- .tiptap.ProseMirror :disabled {
477
- cursor: default;
478
- }
479
- .tiptap.ProseMirror img,
480
- .tiptap.ProseMirror svg,
481
- .tiptap.ProseMirror video,
482
- .tiptap.ProseMirror canvas,
483
- .tiptap.ProseMirror audio,
484
- .tiptap.ProseMirror iframe,
485
- .tiptap.ProseMirror embed,
486
- .tiptap.ProseMirror object {
487
- display: block;
488
- }
489
- .tiptap.ProseMirror img,
490
- .tiptap.ProseMirror video {
491
- max-width: 100%;
492
- height: auto;
493
- }
494
- .tiptap.ProseMirror [hidden]:where(:not([hidden=until-found])) {
495
- display: none;
496
- }
497
-
498
- /* src/components/MarkdownEditor/styles/_variables.less */
499
327
  :root {
500
328
  --tt-gray-light-a-50: rgba(56, 56, 56, 0.04);
501
329
  --tt-gray-light-a-100: rgba(15, 22, 36, 0.05);
@@ -618,7 +446,7 @@
618
446
  --tt-card-bg-color: var(--white);
619
447
  --tt-card-border-color: var(--tt-gray-light-a-100);
620
448
  }
621
- .dark {
449
+ .styles_module_dark {
622
450
  --tt-bg-color: var(--black);
623
451
  --tt-border-color: var(--tt-gray-dark-a-200);
624
452
  --tt-border-color-tint: var(--tt-gray-dark-a-100);
@@ -635,84 +463,150 @@
635
463
  0px 2px 3px 0px rgba(0, 0, 0, 0.12);
636
464
  }
637
465
  :root {
638
- --tt-text-color-gray: hsl(45, 2%, 46%);
639
- --tt-text-color-brown: hsl(19, 31%, 47%);
640
- --tt-text-color-orange: hsl(30, 89%, 45%);
641
- --tt-text-color-yellow: hsl(38, 62%, 49%);
642
- --tt-text-color-green: hsl(148, 32%, 39%);
643
- --tt-text-color-blue: hsl(202, 54%, 43%);
644
- --tt-text-color-purple: hsl(274, 32%, 54%);
645
- --tt-text-color-pink: hsl(328, 49%, 53%);
646
- --tt-text-color-red: hsl(2, 62%, 55%);
647
- --tt-text-color-gray-contrast: hsla(39, 26%, 26%, 0.15);
648
- --tt-text-color-brown-contrast: hsla(18, 43%, 69%, 0.35);
649
- --tt-text-color-orange-contrast: hsla(24, 73%, 55%, 0.27);
650
- --tt-text-color-yellow-contrast: hsla(44, 82%, 59%, 0.39);
651
- --tt-text-color-green-contrast: hsla(126, 29%, 60%, 0.27);
652
- --tt-text-color-blue-contrast: hsla(202, 54%, 59%, 0.27);
653
- --tt-text-color-purple-contrast: hsla(274, 37%, 64%, 0.27);
654
- --tt-text-color-pink-contrast: hsla(331, 60%, 71%, 0.27);
655
- --tt-text-color-red-contrast: hsla(8, 79%, 79%, 0.4);
656
- }
657
- .dark :root {
658
- --tt-text-color-gray: hsl(0, 0%, 61%);
659
- --tt-text-color-brown: hsl(18, 35%, 58%);
660
- --tt-text-color-orange: hsl(25, 53%, 53%);
661
- --tt-text-color-yellow: hsl(36, 54%, 55%);
662
- --tt-text-color-green: hsl(145, 32%, 47%);
663
- --tt-text-color-blue: hsl(202, 64%, 52%);
664
- --tt-text-color-purple: hsl(270, 55%, 62%);
665
- --tt-text-color-pink: hsl(329, 57%, 58%);
666
- --tt-text-color-red: hsl(1, 69%, 60%);
667
- --tt-text-color-gray-contrast: hsla(0, 0%, 100%, 0.09);
668
- --tt-text-color-brown-contrast: hsla(17, 45%, 50%, 0.25);
669
- --tt-text-color-orange-contrast: hsla(27, 82%, 53%, 0.2);
670
- --tt-text-color-yellow-contrast: hsla(35, 49%, 47%, 0.2);
671
- --tt-text-color-green-contrast: hsla(151, 55%, 39%, 0.2);
672
- --tt-text-color-blue-contrast: hsla(202, 54%, 43%, 0.2);
673
- --tt-text-color-purple-contrast: hsla(271, 56%, 60%, 0.18);
674
- --tt-text-color-pink-contrast: hsla(331, 67%, 58%, 0.22);
675
- --tt-text-color-red-contrast: hsla(0, 67%, 60%, 0.25);
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);
676
504
  }
677
505
  :root {
678
- --tt-highlight-yellow: #fef9c3;
679
- --tt-highlight-green: #dcfce7;
680
- --tt-highlight-blue: #e0f2fe;
681
- --tt-highlight-purple: #f3e8ff;
682
- --tt-highlight-red: #ffe4e6;
683
- --tt-highlight-gray: #f8f8f7;
684
- --tt-highlight-brown: #f4eeee;
685
- --tt-highlight-orange: #fbecdd;
686
- --tt-highlight-pink: #fcf1f6;
687
- --tt-highlight-yellow-contrast: #fbe604;
688
- --tt-highlight-green-contrast: #c7fad8;
689
- --tt-highlight-blue-contrast: #ceeafd;
690
- --tt-highlight-purple-contrast: #e4ccff;
691
- --tt-highlight-red-contrast: #ffccd0;
692
- --tt-highlight-gray-contrast: rgba(84, 72, 49, 0.15);
693
- --tt-highlight-brown-contrast: rgba(210, 162, 141, 0.35);
694
- --tt-highlight-orange-contrast: rgba(224, 124, 57, 0.27);
695
- --tt-highlight-pink-contrast: rgba(225, 136, 179, 0.27);
696
- }
697
- .dark :root {
698
- --tt-highlight-yellow: #6b6524;
699
- --tt-highlight-green: #509568;
700
- --tt-highlight-blue: #6e92aa;
701
- --tt-highlight-purple: #583e74;
702
- --tt-highlight-red: #743e42;
703
- --tt-highlight-gray: #2f2f2f;
704
- --tt-highlight-brown: #4a3228;
705
- --tt-highlight-orange: #5c3b23;
706
- --tt-highlight-pink: #4e2c3c;
707
- --tt-highlight-yellow-contrast: #58531e;
708
- --tt-highlight-green-contrast: #47855d;
709
- --tt-highlight-blue-contrast: #5e86a1;
710
- --tt-highlight-purple-contrast: #4c3564;
711
- --tt-highlight-red-contrast: #643539;
712
- --tt-highlight-gray-contrast: rgba(255, 255, 255, 0.094);
713
- --tt-highlight-brown-contrast: rgba(184, 101, 69, 0.25);
714
- --tt-highlight-orange-contrast: rgba(233, 126, 37, 0.2);
715
- --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;
716
610
  }
717
611
 
718
612
  /* src/components/MarkdownEditor/components/tiptap-ui-primitive/tooltip/tooltip.less */
@@ -727,7 +621,7 @@
727
621
  --tt-kbd: var(--tt-gray-light-a-400);
728
622
  }
729
623
  .tiptap-tooltip {
730
- z-index: 1200;
624
+ z-index: 200;
731
625
  overflow: hidden;
732
626
  border-radius: var(--tt-radius-md, 0.375rem);
733
627
  background-color: var(--tt-tooltip-bg);
@@ -995,18 +889,23 @@
995
889
 
996
890
  /* src/components/MarkdownEditor/components/tiptap-ui-primitive/button/button-group.less */
997
891
  .tiptap-button-group {
998
- align-items: center;
892
+ position: relative;
999
893
  display: flex;
1000
- gap: 0.125rem;
1001
- flex-direction: column;
894
+ vertical-align: middle;
1002
895
  }
1003
- .tiptap-button-group[data-orientation=vertical],
1004
- .tiptap-button-group [data-orientation=vertical] {
896
+ .tiptap-button-group[data-orientation=vertical] {
1005
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%;
1006
904
  }
1007
- .tiptap-button-group[data-orientation=horizontal],
1008
- .tiptap-button-group [data-orientation=horizontal] {
905
+ .tiptap-button-group[data-orientation=horizontal] {
906
+ gap: 0.125rem;
1009
907
  flex-direction: row;
908
+ align-items: center;
1010
909
  }
1011
910
 
1012
911
  /* src/components/MarkdownEditor/components/tiptap-ui-primitive/button/button.less */
@@ -1034,10 +933,17 @@
1034
933
  .tiptap-button:focus-visible {
1035
934
  outline: none;
1036
935
  }
1037
- .tiptap-button[data-highlighted=true] {
936
+ .tiptap-button[data-highlighted=true],
937
+ .tiptap-button[data-focus-visible=true] {
1038
938
  background-color: var(--tt-button-hover-bg-color);
1039
939
  color: var(--tt-button-hover-text-color);
1040
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
+ }
1041
947
  .tiptap-button[data-size=large] {
1042
948
  font-size: 0.9375rem;
1043
949
  height: 2.375rem;
@@ -1066,7 +972,6 @@
1066
972
  .tiptap-button .tiptap-button-icon-sub,
1067
973
  .tiptap-button .tiptap-button-dropdown-arrows,
1068
974
  .tiptap-button .tiptap-button-dropdown-small {
1069
- pointer-events: none;
1070
975
  flex-shrink: 0;
1071
976
  }
1072
977
  .tiptap-button .tiptap-button-icon {
@@ -1124,14 +1029,14 @@
1124
1029
  .tiptap-button:has(> svg):not(:has(> :not(svg)))[data-size=small] {
1125
1030
  gap: 0.125rem;
1126
1031
  }
1127
- .tiptap-button:has(> svg:nth-of-type(2)):has(> .tiptap-button-dropdown-small):not(:has(> svg:nth-of-type(3)), :has(> .tiptap-button-text)) {
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)) {
1128
1033
  gap: 0;
1129
1034
  padding-right: 0.25rem;
1130
1035
  }
1131
- .tiptap-button:has(> svg:nth-of-type(2)):has(> .tiptap-button-dropdown-small):not(:has(> svg:nth-of-type(3)), :has(> .tiptap-button-text))[data-size=large] {
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] {
1132
1037
  padding-right: 0.375rem;
1133
1038
  }
1134
- .tiptap-button:has(> svg:nth-of-type(2)):has(> .tiptap-button-dropdown-small):not(:has(> svg:nth-of-type(3)), :has(> .tiptap-button-text))[data-size=small] {
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] {
1135
1040
  padding-right: 0.25rem;
1136
1041
  }
1137
1042
  .tiptap-button .tiptap-button-emoji {
@@ -1161,23 +1066,28 @@
1161
1066
  .tiptap-button .tiptap-button-dropdown-small {
1162
1067
  color: var(--tt-button-default-dropdown-arrows-color);
1163
1068
  }
1164
- .tiptap-button:hover,
1165
- .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]) {
1166
1072
  background-color: var(--tt-button-hover-bg-color);
1167
1073
  color: var(--tt-button-hover-text-color);
1168
1074
  }
1169
- .tiptap-button:hover .tiptap-button-icon,
1170
- .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 {
1171
1078
  color: var(--tt-button-hover-icon-color);
1172
1079
  }
1173
- .tiptap-button:hover .tiptap-button-icon-sub,
1174
- .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 {
1175
1083
  color: var(--tt-button-hover-icon-sub-color);
1176
1084
  }
1177
- .tiptap-button:hover .tiptap-button-dropdown-arrows,
1085
+ .tiptap-button:hover:not([data-active-item=true]):not([disabled]) .tiptap-button-dropdown-arrows,
1178
1086
  .tiptap-button[data-active-item=true]:not([disabled]) .tiptap-button-dropdown-arrows,
1179
- .tiptap-button:hover .tiptap-button-dropdown-small,
1180
- .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 {
1181
1091
  color: var(--tt-button-hover-dropdown-arrows-color);
1182
1092
  }
1183
1093
  .tiptap-button[data-active-state=on]:not([disabled]),
@@ -1275,6 +1185,7 @@
1275
1185
  .tiptap-separator[data-orientation=horizontal] {
1276
1186
  height: 1px;
1277
1187
  width: 100%;
1188
+ margin: 0.5rem 0;
1278
1189
  }
1279
1190
  .tiptap-separator[data-orientation=vertical] {
1280
1191
  height: 1.5rem;
@@ -1327,11 +1238,10 @@
1327
1238
  .tiptap-toolbar[data-variant=fixed]::-webkit-scrollbar {
1328
1239
  display: none;
1329
1240
  }
1330
- @media (width <= 480px) {
1241
+ @media (max-width: 480px) {
1331
1242
  .tiptap-toolbar[data-variant=fixed] {
1332
- position: fixed;
1243
+ position: absolute;
1333
1244
  top: auto;
1334
- bottom: 0;
1335
1245
  height: calc(var(--tt-toolbar-height) + var(--tt-safe-area-bottom));
1336
1246
  border-top: 1px solid var(--tt-toolbar-border-color);
1337
1247
  border-bottom: none;
@@ -1361,7 +1271,7 @@
1361
1271
  box-shadow: none;
1362
1272
  background-color: transparent;
1363
1273
  }
1364
- @media screen and (width <= 768px) {
1274
+ @media screen and (max-width: 480px) {
1365
1275
  .tiptap-toolbar[data-variant=floating] {
1366
1276
  width: 100%;
1367
1277
  border-radius: 0;
@@ -1370,6 +1280,36 @@
1370
1280
  }
1371
1281
  }
1372
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
+
1373
1313
  /* src/components/MarkdownEditor/components/tiptap-node/code-block-node/code-block-node.less */
1374
1314
  .tiptap.ProseMirror {
1375
1315
  --tt-inline-code-bg-color: var(--tt-gray-light-a-100);
@@ -1415,25 +1355,84 @@
1415
1355
  color: inherit;
1416
1356
  }
1417
1357
 
1418
- /* src/components/MarkdownEditor/components/tiptap-node/image-node/image-node.less */
1419
- .tiptap.ProseMirror img {
1420
- max-width: 100%;
1421
- height: auto;
1422
- display: block;
1423
- }
1424
- .tiptap.ProseMirror > img:not([data-type=emoji] img) {
1425
- margin: 2rem 0;
1426
- outline: 0.125rem solid transparent;
1427
- 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;
1428
1366
  }
1429
- .tiptap.ProseMirror.ProseMirror-focused img:not([data-type=emoji] img).ProseMirror-selectednode {
1430
- outline-color: var(--tt-brand-color-500);
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;
1431
1376
  }
1432
- .tiptap.ProseMirror .tiptap-thread:has(> img) {
1433
- margin: 2rem 0;
1377
+ .tiptap.ProseMirror h1 {
1378
+ font-size: 1.5em;
1379
+ font-weight: 700;
1380
+ margin-top: 3em;
1434
1381
  }
1435
- .tiptap.ProseMirror .tiptap-thread:has(> img) img {
1436
- outline: 0.125rem solid transparent;
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;
1433
+ }
1434
+ .tiptap.ProseMirror .tiptap-thread:has(> img) img {
1435
+ outline: 0.125rem solid transparent;
1437
1436
  border-radius: var(--tt-radius-xs, 0.25rem);
1438
1437
  }
1439
1438
  .tiptap.ProseMirror .tiptap-thread img {
@@ -1480,6 +1479,7 @@
1480
1479
  }
1481
1480
  .tiptap.ProseMirror li p {
1482
1481
  margin-top: 0;
1482
+ line-height: 1.6;
1483
1483
  }
1484
1484
  .tiptap.ProseMirror ol {
1485
1485
  list-style: decimal;
@@ -1497,7 +1497,7 @@
1497
1497
  list-style: circle;
1498
1498
  }
1499
1499
  .tiptap.ProseMirror ul:not([data-type=taskList]) ul ul {
1500
- list-style: disc;
1500
+ list-style: square;
1501
1501
  }
1502
1502
  .tiptap.ProseMirror ul[data-type=taskList] {
1503
1503
  padding-left: 0.25em;
@@ -1519,8 +1519,8 @@
1519
1519
  }
1520
1520
  .tiptap.ProseMirror ul[data-type=taskList] li label {
1521
1521
  position: relative;
1522
- padding-top: 4px;
1523
- padding-right: 8px;
1522
+ padding-top: 0.375rem;
1523
+ padding-right: 0.5rem;
1524
1524
  }
1525
1525
  .tiptap.ProseMirror ul[data-type=taskList] li label input[type=checkbox] {
1526
1526
  position: absolute;
@@ -1549,6 +1549,7 @@
1549
1549
  height: 0.75em;
1550
1550
  background-color: var(--tt-checklist-check-icon-color);
1551
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;
1552
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;
1553
1554
  }
1554
1555
  .tiptap.ProseMirror ul[data-type=taskList] li label input[type=checkbox]:checked + span {
@@ -1565,81 +1566,56 @@
1565
1566
 
1566
1567
  /* src/components/MarkdownEditor/components/tiptap-node/paragraph-node/paragraph-node.less */
1567
1568
  .tiptap.ProseMirror {
1568
- --blockquote-bg-color: var(--tt-gray-light-900);
1569
+ --tt-collaboration-carets-label: var(--tt-gray-light-900);
1569
1570
  --link-text-color: var(--tt-brand-color-500);
1570
- --separator-color: var(--tt-gray-light-a-200);
1571
1571
  --thread-text: var(--tt-gray-light-900);
1572
1572
  --placeholder-color: var(--tt-gray-light-a-400);
1573
- --tiptap-mathematics-bg-color: var(--tt-gray-light-a-200);
1574
- --tiptap-mathematics-border-color: var(--tt-brand-color-500);
1573
+ --thread-bg-color: var(--tt-color-yellow-inc-2);
1574
+ --tiptap-ai-insertion-color: var(--tt-brand-color-600);
1575
1575
  }
1576
1576
  .dark .tiptap.ProseMirror {
1577
- --blockquote-bg-color: var(--tt-gray-dark-900);
1577
+ --tt-collaboration-carets-label: var(--tt-gray-dark-100);
1578
1578
  --link-text-color: var(--tt-brand-color-400);
1579
- --separator-color: var(--tt-gray-dark-a-200);
1580
1579
  --thread-text: var(--tt-gray-dark-900);
1581
1580
  --placeholder-color: var(--tt-gray-dark-a-400);
1582
- --tiptap-mathematics-bg-color: var(--tt-gray-dark-a-200);
1583
- --tiptap-mathematics-border-color: var(--tt-brand-color-400);
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;
1584
1586
  }
1585
1587
  .tiptap.ProseMirror {
1586
1588
  white-space: pre-wrap;
1587
1589
  outline: none;
1588
1590
  caret-color: var(--tt-cursor-color);
1589
1591
  }
1590
- .tiptap.ProseMirror p:not(:first-child) {
1592
+ .tiptap.ProseMirror p:not(:first-child):not(td p):not(th p) {
1591
1593
  font-size: 1rem;
1592
1594
  line-height: 1.6;
1593
1595
  font-weight: normal;
1594
1596
  margin-top: 20px;
1595
1597
  }
1596
- .tiptap.ProseMirror:not(.readonly, .ProseMirror-hideselection) ::selection {
1598
+ .tiptap.ProseMirror:not(.readonly):not(.ProseMirror-hideselection) ::selection {
1597
1599
  background-color: var(--tt-selection-color);
1598
1600
  }
1599
- .tiptap.ProseMirror:not(.readonly, .ProseMirror-hideselection) .selection::selection {
1601
+ .tiptap.ProseMirror:not(.readonly):not(.ProseMirror-hideselection) .selection::selection {
1600
1602
  background: transparent;
1601
1603
  }
1602
1604
  .tiptap.ProseMirror .selection {
1603
1605
  display: inline;
1604
1606
  background-color: var(--tt-selection-color);
1605
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
+ }
1606
1612
  .tiptap.ProseMirror .ProseMirror-hideselection {
1607
1613
  caret-color: transparent;
1608
1614
  }
1609
- .tiptap.ProseMirror > p.is-editor-empty::before {
1610
- content: attr(data-placeholder);
1611
- pointer-events: none;
1612
- color: var(--placeholder-color);
1613
- float: left;
1614
- height: 0;
1615
- }
1616
1615
  .tiptap.ProseMirror.resize-cursor {
1617
1616
  cursor: ew-resize;
1618
1617
  cursor: col-resize;
1619
1618
  }
1620
- .tiptap.ProseMirror .ProseMirror-gapcursor {
1621
- display: none;
1622
- pointer-events: none;
1623
- position: absolute;
1624
- }
1625
- .tiptap.ProseMirror .ProseMirror-gapcursor::after {
1626
- content: "";
1627
- display: block;
1628
- position: absolute;
1629
- top: 1em;
1630
- width: 1.25em;
1631
- border-top: 1px solid black;
1632
- animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
1633
- }
1634
- .tiptap.ProseMirror.ProseMirror-focused .ProseMirror-gapcursor,
1635
- .tiptap.ProseMirror.ProseMirror.ProseMirror-focused .ProseMirror-gapcursor {
1636
- display: block;
1637
- }
1638
- @keyframes ProseMirror-cursor-blink {
1639
- to {
1640
- visibility: hidden;
1641
- }
1642
- }
1643
1619
  .tiptap.ProseMirror a span {
1644
1620
  text-decoration: underline;
1645
1621
  }
@@ -1649,29 +1625,10 @@
1649
1625
  .tiptap.ProseMirror u span {
1650
1626
  text-decoration: underline;
1651
1627
  }
1652
- .tiptap.ProseMirror blockquote {
1653
- position: relative;
1654
- padding-left: 1em;
1655
- padding-top: 0.375em;
1656
- padding-bottom: 0.375em;
1657
- margin: 1.5rem 0;
1658
- }
1659
- .tiptap.ProseMirror blockquote p {
1660
- margin-top: 0;
1661
- }
1662
- .tiptap.ProseMirror blockquote::before,
1663
- .tiptap.ProseMirror blockquote.is-empty::before {
1664
- position: absolute;
1665
- bottom: 0;
1666
- left: 0;
1667
- top: 0;
1668
- height: 100%;
1669
- width: 0.25em;
1670
- background-color: var(--blockquote-bg-color);
1671
- content: "";
1672
- border-radius: 0;
1628
+ .tiptap.ProseMirror .tiptap-ai-insertion {
1629
+ color: var(--tiptap-ai-insertion-color);
1673
1630
  }
1674
- .tiptap.ProseMirror .collaboration-cursor__caret {
1631
+ .tiptap.ProseMirror .collaboration-carets__caret {
1675
1632
  border-right: 1px solid transparent;
1676
1633
  border-left: 1px solid transparent;
1677
1634
  pointer-events: none;
@@ -1680,7 +1637,8 @@
1680
1637
  position: relative;
1681
1638
  word-break: normal;
1682
1639
  }
1683
- .tiptap.ProseMirror .collaboration-cursor__label {
1640
+ .tiptap.ProseMirror .collaboration-carets__label {
1641
+ color: var(--tt-collaboration-carets-label);
1684
1642
  border-radius: 0.25rem;
1685
1643
  border-bottom-left-radius: 0;
1686
1644
  font-size: 0.75rem;
@@ -1699,52 +1657,6 @@
1699
1657
  height: 1.25em;
1700
1658
  cursor: text;
1701
1659
  }
1702
- .tiptap.ProseMirror h1,
1703
- .tiptap.ProseMirror h2,
1704
- .tiptap.ProseMirror h3,
1705
- .tiptap.ProseMirror h4 {
1706
- position: relative;
1707
- color: inherit;
1708
- font-style: inherit;
1709
- }
1710
- .tiptap.ProseMirror h1:first-child,
1711
- .tiptap.ProseMirror h2:first-child,
1712
- .tiptap.ProseMirror h3:first-child,
1713
- .tiptap.ProseMirror h4:first-child {
1714
- margin-top: 0;
1715
- }
1716
- .tiptap.ProseMirror h1 {
1717
- font-size: 1.5em;
1718
- font-weight: 700;
1719
- margin-top: 3em;
1720
- }
1721
- .tiptap.ProseMirror h2 {
1722
- font-size: 1.25em;
1723
- font-weight: 700;
1724
- margin-top: 2.5em;
1725
- }
1726
- .tiptap.ProseMirror h3 {
1727
- font-size: 1.125em;
1728
- font-weight: 600;
1729
- margin-top: 2em;
1730
- }
1731
- .tiptap.ProseMirror h4 {
1732
- font-size: 1em;
1733
- font-weight: 600;
1734
- margin-top: 2em;
1735
- }
1736
- .tiptap.ProseMirror hr {
1737
- margin-top: 3em;
1738
- margin-bottom: 3em;
1739
- border: none;
1740
- height: 1px;
1741
- background-color: var(--separator-color);
1742
- }
1743
- .tiptap.ProseMirror.ProseMirror-focused hr.ProseMirror-selectednode {
1744
- border-radius: 9999px;
1745
- outline: 3px solid var(--tt-brand-color-500);
1746
- outline-offset: 2px;
1747
- }
1748
1660
  .tiptap.ProseMirror a {
1749
1661
  color: var(--link-text-color);
1750
1662
  text-decoration: underline;
@@ -1761,7 +1673,7 @@
1761
1673
  }
1762
1674
  .tiptap.ProseMirror .tiptap-thread.tiptap-thread--unresolved.tiptap-thread--inline.tiptap-thread--selected,
1763
1675
  .tiptap.ProseMirror .tiptap-thread.tiptap-thread--unresolved.tiptap-thread--inline.tiptap-thread--hovered {
1764
- background-color: var(--tt-color-yellow-inc-2);
1676
+ background-color: var(--thread-bg-color);
1765
1677
  border-bottom-color: transparent;
1766
1678
  }
1767
1679
  .tiptap.ProseMirror .tiptap-thread.tiptap-thread--unresolved.tiptap-thread--block:has(img) {
@@ -1780,7 +1692,7 @@
1780
1692
  .tiptap.ProseMirror .tiptap-thread.tiptap-thread--unresolved.tiptap-thread--block:not(:has(img)) {
1781
1693
  border-radius: 0.25rem;
1782
1694
  border-bottom: 0.125rem dashed var(--tt-color-yellow-base);
1783
- padding-bottom: 0.5rem;
1695
+ border-top: 0.125rem dashed var(--tt-color-yellow-base);
1784
1696
  outline: 0.25rem solid transparent;
1785
1697
  }
1786
1698
  .tiptap.ProseMirror .tiptap-thread.tiptap-thread--unresolved.tiptap-thread--block:not(:has(img)).tiptap-thread--hovered,
@@ -1797,107 +1709,324 @@
1797
1709
  margin-top: 3rem;
1798
1710
  margin-bottom: 3rem;
1799
1711
  }
1800
- .tiptap.ProseMirror .Tiptap-mathematics-editor {
1801
- padding: 0 0.25rem;
1802
- margin: 0 0.25rem;
1803
- border: 1px solid var(--tiptap-mathematics-border-color);
1804
- font-family: monospace;
1805
- font-size: 0.875rem;
1806
- }
1807
- .tiptap.ProseMirror .Tiptap-mathematics-render {
1808
- padding: 0 0.25rem;
1809
- }
1810
- .tiptap.ProseMirror .Tiptap-mathematics-render--editable {
1811
- cursor: pointer;
1812
- transition: background 0.2s;
1813
- }
1814
- .tiptap.ProseMirror .Tiptap-mathematics-render--editable:hover {
1815
- background: var(--tiptap-mathematics-bg-color);
1816
- }
1817
- .tiptap.ProseMirror .Tiptap-mathematics-editor,
1818
- .tiptap.ProseMirror .Tiptap-mathematics-render {
1819
- border-radius: var(--tt-radius-xs);
1820
- display: inline-block;
1712
+ .is-empty:not(.with-slash)[data-placeholder]:has(> .ProseMirror-trailingBreak:only-child)::before {
1713
+ content: attr(data-placeholder);
1821
1714
  }
1822
- .is-empty[data-placeholder]:has(> .ProseMirror-trailingBreak:only-child)::before {
1823
- content: "Write, type '/' for commands\2026";
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;
1824
1718
  }
1825
- .is-empty[data-placeholder]:has(> .ProseMirror-trailingBreak:only-child)::before {
1719
+ .is-empty[data-placeholder]:has(> .ProseMirror-trailingBreak:only-child):before {
1826
1720
  pointer-events: none;
1827
1721
  height: 0;
1828
1722
  position: absolute;
1829
- font-style: italic;
1723
+ width: 100%;
1724
+ text-align: inherit;
1725
+ left: 0;
1726
+ right: 0;
1830
1727
  }
1831
- .is-empty[data-placeholder]:has(> .ProseMirror-trailingBreak)::before {
1728
+ .is-empty[data-placeholder]:has(> .ProseMirror-trailingBreak):before {
1832
1729
  color: var(--placeholder-color);
1833
1730
  }
1834
-
1835
- /* src/components/MarkdownEditor/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.less */
1836
- .tiptap-dropdown-menu {
1837
- --tt-popover-bg-color: var(--white);
1838
- --tt-popover-border-color: var(--tt-gray-light-a-100);
1839
- --tt-popover-text-color: var(--tt-gray-light-a-600);
1840
- --tt-popover-label: var(--tt-gray-light-a-400);
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;
1841
1740
  }
1842
- .dark .tiptap-dropdown-menu {
1843
- --tt-popover-border-color: var(--tt-gray-dark-a-50);
1844
- --tt-popover-bg-color: var(--tt-gray-dark-50);
1845
- --tt-popover-text-color: var(--tt-gray-dark-a-600);
1846
- --tt-popover-label: var(--tt-gray-dark-a-400);
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);
1847
1938
  }
1848
- .tiptap-dropdown-menu {
1849
- --padding: 0.25rem;
1850
- --border-width: 1px;
1851
- z-index: 1200;
1852
- border-radius: calc(var(--padding) + var(--tt-radius-lg) + var(--border-width));
1853
- border: var(--border-width) solid var(--tt-popover-border-color);
1854
- background-color: var(--tt-popover-bg-color);
1855
- padding: var(--padding);
1856
- color: var(--tt-popover-text-color);
1857
- box-shadow: var(--tt-shadow-elevated-md);
1858
- outline: none;
1859
- 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;
1860
1945
  gap: 0.25rem;
1861
1946
  }
1862
- .tiptap-dropdown-menu button {
1863
- width: 100%;
1947
+ .tiptap-badge-group [data-orientation=vertical] {
1948
+ flex-direction: column;
1864
1949
  }
1865
- .tiptap-dropdown-menu .tiptap-dropdown-menu-separator {
1866
- margin: 0.25rem 0;
1950
+ .tiptap-badge-group [data-orientation=horizontal] {
1951
+ flex-direction: row;
1867
1952
  }
1868
- .tiptap-dropdown-menu .tiptap-dropdown-menu-label {
1869
- margin-left: 0.5rem;
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] {
1870
1976
  font-size: 0.75rem;
1871
- font-weight: 600;
1872
- margin-top: 0.5rem;
1873
- margin-bottom: 0.5rem;
1874
- color: var(--tt-popover-label);
1977
+ height: 1.5rem;
1978
+ min-width: 1.5rem;
1979
+ padding: 0.375rem;
1980
+ border-radius: var(--tt-radius-md, 0.375rem);
1875
1981
  }
1876
- .tiptap-dropdown-menu[data-state=open] {
1877
- animation: fadeIn 150ms cubic-bezier(0.16, 1, 0.3, 1), zoomIn 150ms cubic-bezier(0.16, 1, 0.3, 1);
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);
1878
1987
  }
1879
- .tiptap-dropdown-menu[data-state=closed] {
1880
- animation: fadeOut 150ms cubic-bezier(0.16, 1, 0.3, 1), zoomOut 150ms cubic-bezier(0.16, 1, 0.3, 1);
1988
+ .tiptap-badge .tiptap-badge-text {
1989
+ padding: 0 0.125rem;
1990
+ flex-grow: 1;
1991
+ text-align: left;
1881
1992
  }
1882
- .tiptap-dropdown-menu[data-side=top],
1883
- .tiptap-dropdown-menu[data-side=top-start],
1884
- .tiptap-dropdown-menu[data-side=top-end] {
1885
- 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;
1886
1996
  }
1887
- .tiptap-dropdown-menu[data-side=right],
1888
- .tiptap-dropdown-menu[data-side=right-start],
1889
- .tiptap-dropdown-menu[data-side=right-end] {
1890
- animation: slideFromLeft 150ms cubic-bezier(0.16, 1, 0.3, 1);
1997
+ .tiptap-badge .tiptap-badge-icon {
1998
+ pointer-events: none;
1999
+ flex-shrink: 0;
2000
+ width: 0.625rem;
2001
+ height: 0.625rem;
1891
2002
  }
1892
- .tiptap-dropdown-menu[data-side=bottom],
1893
- .tiptap-dropdown-menu[data-side=bottom-start],
1894
- .tiptap-dropdown-menu[data-side=bottom-end] {
1895
- 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;
1896
2006
  }
1897
- .tiptap-dropdown-menu[data-side=left],
1898
- .tiptap-dropdown-menu[data-side=left-start],
1899
- .tiptap-dropdown-menu[data-side=left-end] {
1900
- animation: slideFromRight 150ms cubic-bezier(0.16, 1, 0.3, 1);
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);
1901
2030
  }
1902
2031
 
1903
2032
  /* src/components/MarkdownEditor/components/tiptap-ui-primitive/popover/popover.less */
@@ -1912,26 +2041,13 @@
1912
2041
  --tt-popover-text-color: var(--tt-gray-dark-a-600);
1913
2042
  }
1914
2043
  .tiptap-popover {
1915
- --padding: 0.25rem;
1916
- --border-width: 1px;
1917
2044
  z-index: 50;
1918
- border-radius: calc(var(--padding) + var(--tt-radius-lg) + var(--border-width));
1919
- border: var(--border-width) solid var(--tt-popover-border-color);
1920
- background-color: var(--tt-popover-bg-color);
1921
- padding: var(--padding);
1922
- color: var(--tt-popover-text-color);
1923
- box-shadow: var(--tt-shadow-elevated-md);
1924
2045
  outline: none;
1925
- overflow: hidden;
1926
- display: flex;
1927
- align-items: center;
1928
- gap: 0.25rem;
1929
- }
1930
- .tiptap-popover button {
1931
- width: 100%;
2046
+ transform-origin: var(--radix-popover-content-transform-origin);
2047
+ max-height: var(--radix-popover-content-available-height);
1932
2048
  }
1933
- .tiptap-popover[data-orientation=horizontal] {
1934
- --padding: 0.125rem;
2049
+ .tiptap-popover > * {
2050
+ max-height: var(--radix-popover-content-available-height);
1935
2051
  }
1936
2052
  .tiptap-popover[data-state=open] {
1937
2053
  animation: fadeIn 150ms cubic-bezier(0.16, 1, 0.3, 1), zoomIn 150ms cubic-bezier(0.16, 1, 0.3, 1);
@@ -1960,7 +2076,75 @@
1960
2076
  animation: slideFromRight 150ms cubic-bezier(0.16, 1, 0.3, 1);
1961
2077
  }
1962
2078
 
1963
- /* src/components/MarkdownEditor/components/tiptap-ui/highlight-button/highlight-button.less */
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 */
1964
2148
  .tiptap-button-highlight {
1965
2149
  position: relative;
1966
2150
  width: 1.25rem;
@@ -1994,28 +2178,76 @@
1994
2178
  filter: brightness(180%);
1995
2179
  }
1996
2180
 
1997
- /* src/components/MarkdownEditor/components/tiptap-ui/highlight-popover/highlight-popover.less */
1998
- .tiptap-highlight-content {
1999
- display: flex;
2000
- align-items: center;
2001
- gap: 0.25rem;
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;
2002
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);
2003
2226
  }
2004
2227
 
2005
- /* src/components/MarkdownEditor/components/tiptap-ui/link-popover/link-popover.less */
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
+ }
2006
2235
  .tiptap-input {
2007
2236
  display: block;
2008
2237
  width: 100%;
2009
2238
  height: 2rem;
2010
- font-size: 1rem;
2011
- line-height: 1.5rem;
2012
- padding: 0.375rem 0.75rem;
2239
+ font-size: 0.875rem;
2240
+ font-weight: 400;
2241
+ line-height: 1.5;
2242
+ padding: 0.375rem 0.5rem;
2013
2243
  border-radius: 0.375rem;
2014
2244
  background: none;
2015
- }
2016
- .tiptap-input:focus {
2245
+ appearance: none;
2017
2246
  outline: none;
2018
2247
  }
2248
+ .tiptap-input::placeholder {
2249
+ color: var(--tiptap-input-placeholder);
2250
+ }
2019
2251
  .tiptap-input-clamp {
2020
2252
  min-width: 12rem;
2021
2253
  padding-right: 0;
@@ -2026,4 +2258,61 @@
2026
2258
  text-overflow: clip;
2027
2259
  overflow: visible;
2028
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
+ }
2029
2318
  /*# sourceMappingURL=index.css.map */