@zero-library/common 1.0.0 → 2.0.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.css CHANGED
@@ -117,4 +117,1848 @@
117
117
  overflow: auto;
118
118
  display: block;
119
119
  }
120
+
121
+ /* src/components/MarkdownEditor/index.less */
122
+ .editor-parent {
123
+ --tt-toolbar-height: 44px;
124
+ --tt-theme-text: var(--tt-gray-light-900);
125
+ }
126
+ .dark .editor-parent {
127
+ --tt-theme-text: var(--tt-gray-dark-900);
128
+ }
129
+ .editor-parent .tiptap.ProseMirror {
130
+ font-family: "DM Sans", sans-serif;
131
+ }
132
+ .editor-parent .content-wrapper {
133
+ height: calc(100% - var(--tt-toolbar-height));
134
+ overflow-y: auto;
135
+ }
136
+ .editor-parent .simple-editor-content {
137
+ max-width: 1000px;
138
+ width: 100%;
139
+ margin: 0 auto;
140
+ min-height: 100%;
141
+ display: flex;
142
+ flex-direction: column;
143
+ }
144
+ .editor-parent .simple-editor-content .tiptap.ProseMirror {
145
+ padding: 18px;
146
+ flex: 1;
147
+ }
148
+ @media screen and (width <= 480px) {
149
+ .editor-parent .simple-editor-content .tiptap.ProseMirror {
150
+ padding: 1rem 1.5rem;
151
+ }
152
+ }
153
+ .editor-parent .simple-editor-content.no-toolbar .tiptap.ProseMirror {
154
+ padding: 0;
155
+ }
156
+
157
+ /* src/components/MarkdownEditor/styles/_keyframe-animations.less */
158
+ @keyframes fadeIn {
159
+ from {
160
+ opacity: 0;
161
+ }
162
+ to {
163
+ opacity: 1;
164
+ }
165
+ }
166
+ @keyframes fadeOut {
167
+ from {
168
+ opacity: 1;
169
+ }
170
+ to {
171
+ opacity: 0;
172
+ }
173
+ }
174
+ @keyframes zoomIn {
175
+ from {
176
+ transform: scale(0.95);
177
+ }
178
+ to {
179
+ transform: scale(1);
180
+ }
181
+ }
182
+ @keyframes zoomOut {
183
+ from {
184
+ transform: scale(1);
185
+ }
186
+ to {
187
+ transform: scale(0.95);
188
+ }
189
+ }
190
+ @keyframes zoom {
191
+ 0% {
192
+ opacity: 0;
193
+ transform: scale(0.95);
194
+ }
195
+ 100% {
196
+ opacity: 1;
197
+ transform: scale(1);
198
+ }
199
+ }
200
+ @keyframes slideFromTop {
201
+ from {
202
+ transform: translateY(-0.5rem);
203
+ }
204
+ to {
205
+ transform: translateY(0);
206
+ }
207
+ }
208
+ @keyframes slideFromRight {
209
+ from {
210
+ transform: translateX(0.5rem);
211
+ }
212
+ to {
213
+ transform: translateX(0);
214
+ }
215
+ }
216
+ @keyframes slideFromLeft {
217
+ from {
218
+ transform: translateX(-0.5rem);
219
+ }
220
+ to {
221
+ transform: translateX(0);
222
+ }
223
+ }
224
+ @keyframes slideFromBottom {
225
+ from {
226
+ transform: translateY(0.5rem);
227
+ }
228
+ to {
229
+ transform: translateY(0);
230
+ }
231
+ }
232
+ @keyframes spin {
233
+ from {
234
+ transform: rotate(0deg);
235
+ }
236
+ to {
237
+ transform: rotate(360deg);
238
+ }
239
+ }
240
+
241
+ /* src/components/MarkdownEditor/styles/_reset.less */
242
+ .tiptap.ProseMirror {
243
+ }
244
+ .tiptap.ProseMirror hr {
245
+ height: 0;
246
+ color: inherit;
247
+ border-top-width: 1px;
248
+ }
249
+ .tiptap.ProseMirror abbr:where([title]) {
250
+ text-decoration: underline dotted;
251
+ }
252
+ .tiptap.ProseMirror h1,
253
+ .tiptap.ProseMirror h2,
254
+ .tiptap.ProseMirror h3,
255
+ .tiptap.ProseMirror h4,
256
+ .tiptap.ProseMirror h5,
257
+ .tiptap.ProseMirror h6 {
258
+ font-size: inherit;
259
+ font-weight: inherit;
260
+ }
261
+ .tiptap.ProseMirror a {
262
+ color: inherit;
263
+ text-decoration: inherit;
264
+ }
265
+ .tiptap.ProseMirror b,
266
+ .tiptap.ProseMirror strong {
267
+ font-weight: bolder;
268
+ }
269
+ .tiptap.ProseMirror code,
270
+ .tiptap.ProseMirror kbd,
271
+ .tiptap.ProseMirror samp,
272
+ .tiptap.ProseMirror pre {
273
+ font-family:
274
+ ui-monospace,
275
+ SFMono-Regular,
276
+ Menlo,
277
+ Monaco,
278
+ Consolas,
279
+ "Liberation Mono",
280
+ "Courier New",
281
+ monospace;
282
+ font-feature-settings: normal;
283
+ font-variation-settings: normal;
284
+ font-size: 1em;
285
+ }
286
+ .tiptap.ProseMirror small {
287
+ font-size: 80%;
288
+ }
289
+ .tiptap.ProseMirror sub,
290
+ .tiptap.ProseMirror sup {
291
+ font-size: 75%;
292
+ line-height: 0;
293
+ position: relative;
294
+ vertical-align: baseline;
295
+ }
296
+ .tiptap.ProseMirror sub {
297
+ bottom: -0.25em;
298
+ }
299
+ .tiptap.ProseMirror sup {
300
+ top: -0.5em;
301
+ }
302
+ .tiptap.ProseMirror table {
303
+ text-indent: 0;
304
+ border-color: inherit;
305
+ border-collapse: collapse;
306
+ }
307
+ .tiptap.ProseMirror button,
308
+ .tiptap.ProseMirror input,
309
+ .tiptap.ProseMirror optgroup,
310
+ .tiptap.ProseMirror select,
311
+ .tiptap.ProseMirror textarea {
312
+ font-family: inherit;
313
+ font-feature-settings: inherit;
314
+ font-variation-settings: inherit;
315
+ font-size: 100%;
316
+ font-weight: inherit;
317
+ line-height: inherit;
318
+ letter-spacing: inherit;
319
+ color: inherit;
320
+ margin: 0;
321
+ padding: 0;
322
+ }
323
+ .tiptap.ProseMirror button,
324
+ .tiptap.ProseMirror select {
325
+ text-transform: none;
326
+ }
327
+ .tiptap.ProseMirror button,
328
+ .tiptap.ProseMirror input:where([type=button]),
329
+ .tiptap.ProseMirror input:where([type=reset]),
330
+ .tiptap.ProseMirror input:where([type=submit]) {
331
+ appearance: button;
332
+ background-color: transparent;
333
+ background-image: none;
334
+ }
335
+ .tiptap.ProseMirror :-moz-focusring {
336
+ outline: auto;
337
+ }
338
+ .tiptap.ProseMirror :-moz-ui-invalid {
339
+ box-shadow: none;
340
+ }
341
+ .tiptap.ProseMirror progress {
342
+ vertical-align: baseline;
343
+ }
344
+ .tiptap.ProseMirror ::-webkit-inner-spin-button,
345
+ .tiptap.ProseMirror ::-webkit-outer-spin-button {
346
+ height: auto;
347
+ }
348
+ .tiptap.ProseMirror [type=search] {
349
+ appearance: textfield;
350
+ outline-offset: -2px;
351
+ }
352
+ .tiptap.ProseMirror ::-webkit-search-decoration {
353
+ appearance: none;
354
+ }
355
+ .tiptap.ProseMirror ::-webkit-file-upload-button {
356
+ appearance: button;
357
+ font: inherit;
358
+ }
359
+ .tiptap.ProseMirror summary {
360
+ display: list-item;
361
+ }
362
+ .tiptap.ProseMirror blockquote,
363
+ .tiptap.ProseMirror dl,
364
+ .tiptap.ProseMirror dd,
365
+ .tiptap.ProseMirror h1,
366
+ .tiptap.ProseMirror h2,
367
+ .tiptap.ProseMirror h3,
368
+ .tiptap.ProseMirror h4,
369
+ .tiptap.ProseMirror h5,
370
+ .tiptap.ProseMirror h6,
371
+ .tiptap.ProseMirror hr,
372
+ .tiptap.ProseMirror figure,
373
+ .tiptap.ProseMirror p,
374
+ .tiptap.ProseMirror pre {
375
+ margin: 0;
376
+ }
377
+ .tiptap.ProseMirror fieldset {
378
+ margin: 0;
379
+ padding: 0;
380
+ }
381
+ .tiptap.ProseMirror legend {
382
+ padding: 0;
383
+ }
384
+ .tiptap.ProseMirror ol,
385
+ .tiptap.ProseMirror ul,
386
+ .tiptap.ProseMirror menu {
387
+ list-style: none;
388
+ margin: 0;
389
+ padding: 0;
390
+ }
391
+ .tiptap.ProseMirror dialog {
392
+ padding: 0;
393
+ }
394
+ .tiptap.ProseMirror textarea {
395
+ resize: vertical;
396
+ }
397
+ .tiptap.ProseMirror input::placeholder,
398
+ .tiptap.ProseMirror textarea::-moz-placeholder {
399
+ opacity: 1;
400
+ color: #9ca3af;
401
+ }
402
+ .tiptap.ProseMirror input::placeholder,
403
+ .tiptap.ProseMirror textarea::placeholder {
404
+ opacity: 1;
405
+ color: #9ca3af;
406
+ }
407
+ .tiptap.ProseMirror button,
408
+ .tiptap.ProseMirror [role=button] {
409
+ cursor: pointer;
410
+ }
411
+ .tiptap.ProseMirror :disabled {
412
+ cursor: default;
413
+ }
414
+ .tiptap.ProseMirror img,
415
+ .tiptap.ProseMirror svg,
416
+ .tiptap.ProseMirror video,
417
+ .tiptap.ProseMirror canvas,
418
+ .tiptap.ProseMirror audio,
419
+ .tiptap.ProseMirror iframe,
420
+ .tiptap.ProseMirror embed,
421
+ .tiptap.ProseMirror object {
422
+ display: block;
423
+ }
424
+ .tiptap.ProseMirror img,
425
+ .tiptap.ProseMirror video {
426
+ max-width: 100%;
427
+ height: auto;
428
+ }
429
+ .tiptap.ProseMirror [hidden]:where(:not([hidden=until-found])) {
430
+ display: none;
431
+ }
432
+
433
+ /* src/components/MarkdownEditor/styles/_variables.less */
434
+ :root {
435
+ --tt-gray-light-a-50: rgba(56, 56, 56, 0.04);
436
+ --tt-gray-light-a-100: rgba(15, 22, 36, 0.05);
437
+ --tt-gray-light-a-200: rgba(37, 39, 45, 0.1);
438
+ --tt-gray-light-a-300: rgba(47, 50, 55, 0.2);
439
+ --tt-gray-light-a-400: rgba(40, 44, 51, 0.42);
440
+ --tt-gray-light-a-500: rgba(52, 55, 60, 0.64);
441
+ --tt-gray-light-a-600: rgba(36, 39, 46, 0.78);
442
+ --tt-gray-light-a-700: rgba(35, 37, 42, 0.87);
443
+ --tt-gray-light-a-800: rgba(30, 32, 36, 0.95);
444
+ --tt-gray-light-a-900: rgba(29, 30, 32, 0.98);
445
+ --tt-gray-light-50: #fafafa;
446
+ --tt-gray-light-100: #f4f4f5;
447
+ --tt-gray-light-200: #eaeaeb;
448
+ --tt-gray-light-300: #d5d6d7;
449
+ --tt-gray-light-400: #a6a7ab;
450
+ --tt-gray-light-500: #7d7f82;
451
+ --tt-gray-light-600: #53565a;
452
+ --tt-gray-light-700: #404145;
453
+ --tt-gray-light-800: #2c2d30;
454
+ --tt-gray-light-900: #222325;
455
+ --tt-gray-dark-a-50: rgba(232, 232, 253, 0.05);
456
+ --tt-gray-dark-a-100: rgba(231, 231, 243, 0.07);
457
+ --tt-gray-dark-a-200: rgba(238, 238, 246, 0.11);
458
+ --tt-gray-dark-a-300: rgba(239, 239, 245, 0.22);
459
+ --tt-gray-dark-a-400: rgba(244, 244, 255, 0.37);
460
+ --tt-gray-dark-a-500: rgba(236, 238, 253, 0.5);
461
+ --tt-gray-dark-a-600: rgba(247, 247, 253, 0.64);
462
+ --tt-gray-dark-a-700: rgba(251, 251, 254, 0.75);
463
+ --tt-gray-dark-a-800: rgba(253, 253, 253, 0.88);
464
+ --tt-gray-dark-a-900: rgba(255, 255, 255, 0.96);
465
+ --tt-gray-dark-50: #19191a;
466
+ --tt-gray-dark-100: #202022;
467
+ --tt-gray-dark-200: #2d2d2f;
468
+ --tt-gray-dark-300: #464649;
469
+ --tt-gray-dark-400: #636369;
470
+ --tt-gray-dark-500: #7c7c83;
471
+ --tt-gray-dark-600: #a3a3a8;
472
+ --tt-gray-dark-700: #c0c0c3;
473
+ --tt-gray-dark-800: #e0e0e1;
474
+ --tt-gray-dark-900: #f5f5f5;
475
+ --tt-brand-color-50: #efeeff;
476
+ --tt-brand-color-100: #dedbff;
477
+ --tt-brand-color-200: #c3bdff;
478
+ --tt-brand-color-300: #9d8aff;
479
+ --tt-brand-color-400: #7a52ff;
480
+ --tt-brand-color-500: #6229ff;
481
+ --tt-brand-color-600: #5400e5;
482
+ --tt-brand-color-700: #4b00cc;
483
+ --tt-brand-color-800: #380099;
484
+ --tt-brand-color-900: #2b1966;
485
+ --tt-brand-color-950: hsl(257, 100%, 9%);
486
+ --tt-color-green-inc-5: hsl(129, 100%, 97%);
487
+ --tt-color-green-inc-4: hsl(129, 100%, 92%);
488
+ --tt-color-green-inc-3: hsl(131, 100%, 86%);
489
+ --tt-color-green-inc-2: hsl(133, 98%, 78%);
490
+ --tt-color-green-inc-1: hsl(137, 99%, 70%);
491
+ --tt-color-green-base: hsl(147, 99%, 50%);
492
+ --tt-color-green-dec-1: hsl(147, 97%, 41%);
493
+ --tt-color-green-dec-2: hsl(146, 98%, 32%);
494
+ --tt-color-green-dec-3: hsl(146, 100%, 24%);
495
+ --tt-color-green-dec-4: hsl(144, 100%, 16%);
496
+ --tt-color-green-dec-5: hsl(140, 100%, 9%);
497
+ --tt-color-yellow-inc-5: hsl(50, 100%, 97%);
498
+ --tt-color-yellow-inc-4: hsl(50, 100%, 91%);
499
+ --tt-color-yellow-inc-3: hsl(50, 100%, 84%);
500
+ --tt-color-yellow-inc-2: hsl(50, 100%, 77%);
501
+ --tt-color-yellow-inc-1: hsl(50, 100%, 68%);
502
+ --tt-color-yellow-base: hsl(52, 100%, 50%);
503
+ --tt-color-yellow-dec-1: hsl(52, 100%, 41%);
504
+ --tt-color-yellow-dec-2: hsl(52, 100%, 32%);
505
+ --tt-color-yellow-dec-3: hsl(52, 100%, 24%);
506
+ --tt-color-yellow-dec-4: hsl(51, 100%, 16%);
507
+ --tt-color-yellow-dec-5: hsl(50, 100%, 9%);
508
+ --tt-color-red-inc-5: hsl(11, 100%, 96%);
509
+ --tt-color-red-inc-4: hsl(11, 100%, 88%);
510
+ --tt-color-red-inc-3: hsl(10, 100%, 80%);
511
+ --tt-color-red-inc-2: hsl(9, 100%, 73%);
512
+ --tt-color-red-inc-1: hsl(7, 100%, 64%);
513
+ --tt-color-red-base: hsl(7, 100%, 54%);
514
+ --tt-color-red-dec-1: hsl(7, 100%, 41%);
515
+ --tt-color-red-dec-2: hsl(5, 100%, 32%);
516
+ --tt-color-red-dec-3: hsl(4, 100%, 24%);
517
+ --tt-color-red-dec-4: hsl(3, 100%, 16%);
518
+ --tt-color-red-dec-5: hsl(1, 100%, 9%);
519
+ --white: #ffffff;
520
+ --black: #0e0e11;
521
+ --transparent: rgba(255, 255, 255, 0);
522
+ --tt-shadow-elevated-md:
523
+ 0px 16px 48px 0px rgba(17, 24, 39, 0.04),
524
+ 0px 12px 24px 0px rgba(17, 24, 39, 0.04),
525
+ 0px 6px 8px 0px rgba(17, 24, 39, 0.02),
526
+ 0px 2px 3px 0px rgba(17, 24, 39, 0.02);
527
+ --tt-radius-xxs: 0.125rem;
528
+ --tt-radius-xs: 0.25rem;
529
+ --tt-radius-sm: 0.375rem;
530
+ --tt-radius-md: 0.5rem;
531
+ --tt-radius-lg: 0.75rem;
532
+ --tt-radius-xl: 1rem;
533
+ --tt-transition-duration-short: 0.1s;
534
+ --tt-transition-duration-default: 0.2s;
535
+ --tt-transition-duration-long: 0.64s;
536
+ --tt-transition-easing-default: cubic-bezier(0.46, 0.03, 0.52, 0.96);
537
+ --tt-transition-easing-cubic: cubic-bezier(0.65, 0.05, 0.36, 1);
538
+ --tt-transition-easing-quart: cubic-bezier(0.77, 0, 0.18, 1);
539
+ --tt-transition-easing-circ: cubic-bezier(0.79, 0.14, 0.15, 0.86);
540
+ --tt-transition-easing-back: cubic-bezier(0.68, -0.55, 0.27, 1.55);
541
+ --tt-accent-contrast: 8%;
542
+ --tt-destructive-contrast: 8%;
543
+ --tt-foreground-contrast: 8%;
544
+ }
545
+ :root {
546
+ --tt-bg-color: var(--white);
547
+ --tt-border-color: var(--tt-gray-light-a-200);
548
+ --tt-border-color-tint: var(--tt-gray-light-a-100);
549
+ --tt-sidebar-bg-color: var(--tt-gray-light-100);
550
+ --tt-scrollbar-color: var(--tt-gray-light-a-200);
551
+ --tt-cursor-color: var(--tt-brand-color-500);
552
+ --tt-selection-color: rgba(157, 138, 255, 0.2);
553
+ --tt-card-bg-color: var(--white);
554
+ --tt-card-border-color: var(--tt-gray-light-a-100);
555
+ }
556
+ .dark {
557
+ --tt-bg-color: var(--black);
558
+ --tt-border-color: var(--tt-gray-dark-a-200);
559
+ --tt-border-color-tint: var(--tt-gray-dark-a-100);
560
+ --tt-sidebar-bg-color: var(--tt-gray-dark-100);
561
+ --tt-scrollbar-color: var(--tt-gray-dark-a-200);
562
+ --tt-cursor-color: var(--tt-brand-color-400);
563
+ --tt-selection-color: rgba(122, 82, 255, 0.2);
564
+ --tt-card-bg-color: var(--tt-gray-dark-50);
565
+ --tt-card-border-color: var(--tt-gray-dark-a-50);
566
+ --tt-shadow-elevated-md:
567
+ 0px 16px 48px 0px rgba(0, 0, 0, 0.5),
568
+ 0px 12px 24px 0px rgba(0, 0, 0, 0.24),
569
+ 0px 6px 8px 0px rgba(0, 0, 0, 0.22),
570
+ 0px 2px 3px 0px rgba(0, 0, 0, 0.12);
571
+ }
572
+ :root {
573
+ --tt-text-color-gray: hsl(45, 2%, 46%);
574
+ --tt-text-color-brown: hsl(19, 31%, 47%);
575
+ --tt-text-color-orange: hsl(30, 89%, 45%);
576
+ --tt-text-color-yellow: hsl(38, 62%, 49%);
577
+ --tt-text-color-green: hsl(148, 32%, 39%);
578
+ --tt-text-color-blue: hsl(202, 54%, 43%);
579
+ --tt-text-color-purple: hsl(274, 32%, 54%);
580
+ --tt-text-color-pink: hsl(328, 49%, 53%);
581
+ --tt-text-color-red: hsl(2, 62%, 55%);
582
+ --tt-text-color-gray-contrast: hsla(39, 26%, 26%, 0.15);
583
+ --tt-text-color-brown-contrast: hsla(18, 43%, 69%, 0.35);
584
+ --tt-text-color-orange-contrast: hsla(24, 73%, 55%, 0.27);
585
+ --tt-text-color-yellow-contrast: hsla(44, 82%, 59%, 0.39);
586
+ --tt-text-color-green-contrast: hsla(126, 29%, 60%, 0.27);
587
+ --tt-text-color-blue-contrast: hsla(202, 54%, 59%, 0.27);
588
+ --tt-text-color-purple-contrast: hsla(274, 37%, 64%, 0.27);
589
+ --tt-text-color-pink-contrast: hsla(331, 60%, 71%, 0.27);
590
+ --tt-text-color-red-contrast: hsla(8, 79%, 79%, 0.4);
591
+ }
592
+ .dark :root {
593
+ --tt-text-color-gray: hsl(0, 0%, 61%);
594
+ --tt-text-color-brown: hsl(18, 35%, 58%);
595
+ --tt-text-color-orange: hsl(25, 53%, 53%);
596
+ --tt-text-color-yellow: hsl(36, 54%, 55%);
597
+ --tt-text-color-green: hsl(145, 32%, 47%);
598
+ --tt-text-color-blue: hsl(202, 64%, 52%);
599
+ --tt-text-color-purple: hsl(270, 55%, 62%);
600
+ --tt-text-color-pink: hsl(329, 57%, 58%);
601
+ --tt-text-color-red: hsl(1, 69%, 60%);
602
+ --tt-text-color-gray-contrast: hsla(0, 0%, 100%, 0.09);
603
+ --tt-text-color-brown-contrast: hsla(17, 45%, 50%, 0.25);
604
+ --tt-text-color-orange-contrast: hsla(27, 82%, 53%, 0.2);
605
+ --tt-text-color-yellow-contrast: hsla(35, 49%, 47%, 0.2);
606
+ --tt-text-color-green-contrast: hsla(151, 55%, 39%, 0.2);
607
+ --tt-text-color-blue-contrast: hsla(202, 54%, 43%, 0.2);
608
+ --tt-text-color-purple-contrast: hsla(271, 56%, 60%, 0.18);
609
+ --tt-text-color-pink-contrast: hsla(331, 67%, 58%, 0.22);
610
+ --tt-text-color-red-contrast: hsla(0, 67%, 60%, 0.25);
611
+ }
612
+ :root {
613
+ --tt-highlight-yellow: #fef9c3;
614
+ --tt-highlight-green: #dcfce7;
615
+ --tt-highlight-blue: #e0f2fe;
616
+ --tt-highlight-purple: #f3e8ff;
617
+ --tt-highlight-red: #ffe4e6;
618
+ --tt-highlight-gray: #f8f8f7;
619
+ --tt-highlight-brown: #f4eeee;
620
+ --tt-highlight-orange: #fbecdd;
621
+ --tt-highlight-pink: #fcf1f6;
622
+ --tt-highlight-yellow-contrast: #fbe604;
623
+ --tt-highlight-green-contrast: #c7fad8;
624
+ --tt-highlight-blue-contrast: #ceeafd;
625
+ --tt-highlight-purple-contrast: #e4ccff;
626
+ --tt-highlight-red-contrast: #ffccd0;
627
+ --tt-highlight-gray-contrast: rgba(84, 72, 49, 0.15);
628
+ --tt-highlight-brown-contrast: rgba(210, 162, 141, 0.35);
629
+ --tt-highlight-orange-contrast: rgba(224, 124, 57, 0.27);
630
+ --tt-highlight-pink-contrast: rgba(225, 136, 179, 0.27);
631
+ }
632
+ .dark :root {
633
+ --tt-highlight-yellow: #6b6524;
634
+ --tt-highlight-green: #509568;
635
+ --tt-highlight-blue: #6e92aa;
636
+ --tt-highlight-purple: #583e74;
637
+ --tt-highlight-red: #743e42;
638
+ --tt-highlight-gray: #2f2f2f;
639
+ --tt-highlight-brown: #4a3228;
640
+ --tt-highlight-orange: #5c3b23;
641
+ --tt-highlight-pink: #4e2c3c;
642
+ --tt-highlight-yellow-contrast: #58531e;
643
+ --tt-highlight-green-contrast: #47855d;
644
+ --tt-highlight-blue-contrast: #5e86a1;
645
+ --tt-highlight-purple-contrast: #4c3564;
646
+ --tt-highlight-red-contrast: #643539;
647
+ --tt-highlight-gray-contrast: rgba(255, 255, 255, 0.094);
648
+ --tt-highlight-brown-contrast: rgba(184, 101, 69, 0.25);
649
+ --tt-highlight-orange-contrast: rgba(233, 126, 37, 0.2);
650
+ --tt-highlight-pink-contrast: rgba(220, 76, 145, 0.22);
651
+ }
652
+
653
+ /* src/components/MarkdownEditor/components/tiptap-ui-primitive/tooltip/tooltip.less */
654
+ .tiptap-tooltip {
655
+ --tt-tooltip-bg: var(--tt-gray-light-900);
656
+ --tt-tooltip-text: var(--white);
657
+ --tt-kbd: var(--tt-gray-dark-a-400);
658
+ }
659
+ .dark .tiptap-tooltip {
660
+ --tt-tooltip-bg: var(--white);
661
+ --tt-tooltip-text: var(--tt-gray-light-600);
662
+ --tt-kbd: var(--tt-gray-light-a-400);
663
+ }
664
+ .tiptap-tooltip {
665
+ z-index: 1200;
666
+ overflow: hidden;
667
+ border-radius: var(--tt-radius-md, 0.375rem);
668
+ background-color: var(--tt-tooltip-bg);
669
+ padding: 0.375rem 0.5rem;
670
+ font-size: 0.75rem;
671
+ font-weight: 500;
672
+ color: var(--tt-tooltip-text);
673
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
674
+ text-align: center;
675
+ }
676
+ .tiptap-tooltip kbd {
677
+ display: inline-block;
678
+ text-align: center;
679
+ vertical-align: baseline;
680
+ font-family:
681
+ ui-sans-serif,
682
+ system-ui,
683
+ -apple-system,
684
+ BlinkMacSystemFont,
685
+ "Segoe UI",
686
+ Roboto,
687
+ "Helvetica Neue",
688
+ Arial,
689
+ "Noto Sans",
690
+ sans-serif;
691
+ text-transform: capitalize;
692
+ color: var(--tt-kbd);
693
+ }
694
+
695
+ /* src/components/MarkdownEditor/components/tiptap-ui-primitive/button/button-colors.less */
696
+ .tiptap-button {
697
+ --tt-button-default-bg-color: var(--tt-gray-light-a-100);
698
+ --tt-button-hover-bg-color: var(--tt-gray-light-200);
699
+ --tt-button-active-bg-color: var(--tt-gray-light-a-200);
700
+ --tt-button-active-bg-color-emphasized: var(--tt-brand-color-100);
701
+ --tt-button-active-bg-color-subdued: var(--tt-gray-light-a-200);
702
+ --tt-button-active-hover-bg-color: var(--tt-gray-light-300);
703
+ --tt-button-active-hover-bg-color-emphasized: var(--tt-brand-color-200);
704
+ --tt-button-active-hover-bg-color-subdued: var(--tt-gray-light-a-300);
705
+ --tt-button-disabled-bg-color: var(--tt-gray-light-a-50);
706
+ --tt-button-default-text-color: var(--tt-gray-light-a-600);
707
+ --tt-button-hover-text-color: var(--tt-gray-light-a-900);
708
+ --tt-button-active-text-color: var(--tt-gray-light-a-900);
709
+ --tt-button-active-text-color-emphasized: var(--tt-gray-light-a-900);
710
+ --tt-button-active-text-color-subdued: var(--tt-gray-light-a-900);
711
+ --tt-button-disabled-text-color: var(--tt-gray-light-a-400);
712
+ --tt-button-default-icon-color: var(--tt-gray-light-a-600);
713
+ --tt-button-hover-icon-color: var(--tt-gray-light-a-900);
714
+ --tt-button-active-icon-color: var(--tt-brand-color-500);
715
+ --tt-button-active-icon-color-emphasized: var(--tt-brand-color-600);
716
+ --tt-button-active-icon-color-subdued: var(--tt-gray-light-a-900);
717
+ --tt-button-disabled-icon-color: var(--tt-gray-light-a-400);
718
+ --tt-button-default-icon-sub-color: var(--tt-gray-light-a-400);
719
+ --tt-button-hover-icon-sub-color: var(--tt-gray-light-a-500);
720
+ --tt-button-active-icon-sub-color: var(--tt-gray-light-a-400);
721
+ --tt-button-active-icon-sub-color-emphasized: var(--tt-gray-light-a-500);
722
+ --tt-button-active-icon-sub-color-subdued: var(--tt-gray-light-a-400);
723
+ --tt-button-disabled-icon-sub-color: var(--tt-gray-light-a-100);
724
+ --tt-button-default-dropdown-arrows-color: var(--tt-gray-light-a-600);
725
+ --tt-button-hover-dropdown-arrows-color: var(--tt-gray-light-a-700);
726
+ --tt-button-active-dropdown-arrows-color: var(--tt-gray-light-a-600);
727
+ --tt-button-active-dropdown-arrows-color-emphasized: var(--tt-gray-light-a-700);
728
+ --tt-button-active-dropdown-arrows-color-subdued: var(--tt-gray-light-a-600);
729
+ --tt-button-disabled-dropdown-arrows-color: var(--tt-gray-light-a-400);
730
+ }
731
+ .dark .tiptap-button {
732
+ --tt-button-default-bg-color: var(--tt-gray-dark-a-100);
733
+ --tt-button-hover-bg-color: var(--tt-gray-dark-200);
734
+ --tt-button-active-bg-color: var(--tt-gray-dark-a-200);
735
+ --tt-button-active-bg-color-emphasized: var(--tt-brand-color-900);
736
+ --tt-button-active-bg-color-subdued: var(--tt-gray-dark-a-200);
737
+ --tt-button-active-hover-bg-color: var(--tt-gray-dark-300);
738
+ --tt-button-active-hover-bg-color-emphasized: var(--tt-brand-color-800);
739
+ --tt-button-active-hover-bg-color-subdued: var(--tt-gray-dark-a-300);
740
+ --tt-button-disabled-bg-color: var(--tt-gray-dark-a-50);
741
+ }
742
+ .dark .tiptap-button {
743
+ --tt-button-default-text-color: var(--tt-gray-dark-a-600);
744
+ --tt-button-hover-text-color: var(--tt-gray-dark-a-900);
745
+ --tt-button-active-text-color: var(--tt-gray-dark-a-900);
746
+ --tt-button-active-text-color-emphasized: var(--tt-gray-dark-a-900);
747
+ --tt-button-active-text-color-subdued: var(--tt-gray-dark-a-900);
748
+ --tt-button-disabled-text-color: var(--tt-gray-dark-a-300);
749
+ }
750
+ .dark .tiptap-button {
751
+ --tt-button-default-icon-color: var(--tt-gray-dark-a-600);
752
+ --tt-button-hover-icon-color: var(--tt-gray-dark-a-900);
753
+ --tt-button-active-icon-color: var(--tt-brand-color-400);
754
+ --tt-button-active-icon-color-emphasized: var(--tt-brand-color-400);
755
+ --tt-button-active-icon-color-subdued: var(--tt-gray-dark-a-900);
756
+ --tt-button-disabled-icon-color: var(--tt-gray-dark-a-400);
757
+ }
758
+ .dark .tiptap-button {
759
+ --tt-button-default-icon-sub-color: var(--tt-gray-dark-a-300);
760
+ --tt-button-hover-icon-sub-color: var(--tt-gray-dark-a-400);
761
+ --tt-button-active-icon-sub-color: var(--tt-gray-dark-a-300);
762
+ --tt-button-active-icon-sub-color-emphasized: var(--tt-gray-dark-a-400);
763
+ --tt-button-active-icon-sub-color-subdued: var(--tt-gray-dark-a-300);
764
+ --tt-button-disabled-icon-sub-color: var(--tt-gray-dark-a-100);
765
+ }
766
+ .dark .tiptap-button {
767
+ --tt-button-default-dropdown-arrows-color: var(--tt-gray-dark-a-600);
768
+ --tt-button-hover-dropdown-arrows-color: var(--tt-gray-dark-a-700);
769
+ --tt-button-active-dropdown-arrows-color: var(--tt-gray-dark-a-600);
770
+ --tt-button-active-dropdown-arrows-color-emphasized: var(--tt-gray-dark-a-700);
771
+ --tt-button-active-dropdown-arrows-color-subdued: var(--tt-gray-dark-a-600);
772
+ --tt-button-disabled-dropdown-arrows-color: var(--tt-gray-dark-a-400);
773
+ }
774
+ .tiptap-button[data-style=ghost] {
775
+ --tt-button-default-bg-color: var(--transparent);
776
+ --tt-button-hover-bg-color: var(--tt-gray-light-200);
777
+ --tt-button-active-bg-color: var(--tt-gray-light-a-100);
778
+ --tt-button-active-bg-color-emphasized: var(--tt-brand-color-100);
779
+ --tt-button-active-bg-color-subdued: var(--tt-gray-light-a-100);
780
+ --tt-button-active-hover-bg-color: var(--tt-gray-light-200);
781
+ --tt-button-active-hover-bg-color-emphasized: var(--tt-brand-color-200);
782
+ --tt-button-active-hover-bg-color-subdued: var(--tt-gray-light-a-200);
783
+ --tt-button-disabled-bg-color: var(--transparent);
784
+ --tt-button-default-text-color: var(--tt-gray-light-a-600);
785
+ --tt-button-hover-text-color: var(--tt-gray-light-a-900);
786
+ --tt-button-active-text-color: var(--tt-gray-light-a-900);
787
+ --tt-button-active-text-color-emphasized: var(--tt-gray-light-a-900);
788
+ --tt-button-active-text-color-subdued: var(--tt-gray-light-a-900);
789
+ --tt-button-disabled-text-color: var(--tt-gray-light-a-400);
790
+ --tt-button-default-icon-color: var(--tt-gray-light-a-600);
791
+ --tt-button-hover-icon-color: var(--tt-gray-light-a-900);
792
+ --tt-button-active-icon-color: var(--tt-brand-color-500);
793
+ --tt-button-active-icon-color-emphasized: var(--tt-brand-color-600);
794
+ --tt-button-active-icon-color-subdued: var(--tt-gray-light-a-900);
795
+ --tt-button-disabled-icon-color: var(--tt-gray-light-a-400);
796
+ --tt-button-default-icon-sub-color: var(--tt-gray-light-a-400);
797
+ --tt-button-hover-icon-sub-color: var(--tt-gray-light-a-500);
798
+ --tt-button-active-icon-sub-color: var(--tt-gray-light-a-400);
799
+ --tt-button-active-icon-sub-color-emphasized: var(--tt-gray-light-a-500);
800
+ --tt-button-active-icon-sub-color-subdued: var(--tt-gray-light-a-400);
801
+ --tt-button-disabled-icon-sub-color: var(--tt-gray-light-a-100);
802
+ --tt-button-default-dropdown-arrows-color: var(--tt-gray-light-a-600);
803
+ --tt-button-hover-dropdown-arrows-color: var(--tt-gray-light-a-700);
804
+ --tt-button-active-dropdown-arrows-color: var(--tt-gray-light-a-600);
805
+ --tt-button-active-dropdown-arrows-color-emphasized: var(--tt-gray-light-a-700);
806
+ --tt-button-active-dropdown-arrows-color-subdued: var(--tt-gray-light-a-600);
807
+ --tt-button-disabled-dropdown-arrows-color: var(--tt-gray-light-a-400);
808
+ }
809
+ .dark .tiptap-button[data-style=ghost] {
810
+ --tt-button-default-bg-color: var(--transparent);
811
+ --tt-button-hover-bg-color: var(--tt-gray-dark-200);
812
+ --tt-button-active-bg-color: var(--tt-gray-dark-a-100);
813
+ --tt-button-active-bg-color-emphasized: var(--tt-brand-color-900);
814
+ --tt-button-active-bg-color-subdued: var(--tt-gray-dark-a-100);
815
+ --tt-button-active-hover-bg-color: var(--tt-gray-dark-200);
816
+ --tt-button-active-hover-bg-color-emphasized: var(--tt-brand-color-800);
817
+ --tt-button-active-hover-bg-color-subdued: var(--tt-gray-dark-a-200);
818
+ --tt-button-disabled-bg-color: var(--transparent);
819
+ }
820
+ .dark .tiptap-button[data-style=ghost] {
821
+ --tt-button-default-text-color: var(--tt-gray-dark-a-600);
822
+ --tt-button-hover-text-color: var(--tt-gray-dark-a-900);
823
+ --tt-button-active-text-color: var(--tt-gray-dark-a-900);
824
+ --tt-button-active-text-color-emphasized: var(--tt-gray-dark-a-900);
825
+ --tt-button-active-text-color-subdued: var(--tt-gray-dark-a-900);
826
+ --tt-button-disabled-text-color: var(--tt-gray-dark-a-300);
827
+ }
828
+ .dark .tiptap-button[data-style=ghost] {
829
+ --tt-button-default-icon-color: var(--tt-gray-dark-a-600);
830
+ --tt-button-hover-icon-color: var(--tt-gray-dark-a-900);
831
+ --tt-button-active-icon-color: var(--tt-brand-color-400);
832
+ --tt-button-active-icon-color-emphasized: var(--tt-brand-color-300);
833
+ --tt-button-active-icon-color-subdued: var(--tt-gray-dark-a-900);
834
+ --tt-button-disabled-icon-color: var(--tt-gray-dark-a-400);
835
+ }
836
+ .dark .tiptap-button[data-style=ghost] {
837
+ --tt-button-default-icon-sub-color: var(--tt-gray-dark-a-300);
838
+ --tt-button-hover-icon-sub-color: var(--tt-gray-dark-a-400);
839
+ --tt-button-active-icon-sub-color: var(--tt-gray-dark-a-300);
840
+ --tt-button-active-icon-sub-color-emphasized: var(--tt-gray-dark-a-400);
841
+ --tt-button-active-icon-sub-color-subdued: var(--tt-gray-dark-a-300);
842
+ --tt-button-disabled-icon-sub-color: var(--tt-gray-dark-a-100);
843
+ }
844
+ .dark .tiptap-button[data-style=ghost] {
845
+ --tt-button-default-dropdown-arrows-color: var(--tt-gray-dark-a-600);
846
+ --tt-button-hover-dropdown-arrows-color: var(--tt-gray-dark-a-700);
847
+ --tt-button-active-dropdown-arrows-color: var(--tt-gray-dark-a-600);
848
+ --tt-button-active-dropdown-arrows-color-emphasized: var(--tt-gray-dark-a-700);
849
+ --tt-button-active-dropdown-arrows-color-subdued: var(--tt-gray-dark-a-600);
850
+ --tt-button-disabled-dropdown-arrows-color: var(--tt-gray-dark-a-400);
851
+ }
852
+ .tiptap-button[data-style=primary] {
853
+ --tt-button-default-bg-color: var(--tt-brand-color-500);
854
+ --tt-button-hover-bg-color: var(--tt-brand-color-600);
855
+ --tt-button-active-bg-color: var(--tt-brand-color-100);
856
+ --tt-button-active-bg-color-emphasized: var(--tt-brand-color-100);
857
+ --tt-button-active-bg-color-subdued: var(--tt-brand-color-100);
858
+ --tt-button-active-hover-bg-color: var(--tt-brand-color-200);
859
+ --tt-button-active-hover-bg-color-emphasized: var(--tt-brand-color-200);
860
+ --tt-button-active-hover-bg-color-subdued: var(--tt-brand-color-200);
861
+ --tt-button-disabled-bg-color: var(--tt-gray-light-a-100);
862
+ --tt-button-default-text-color: var(--white);
863
+ --tt-button-hover-text-color: var(--white);
864
+ --tt-button-active-text-color: var(--tt-gray-light-a-900);
865
+ --tt-button-active-text-color-emphasized: var(--tt-gray-light-a-900);
866
+ --tt-button-active-text-color-subdued: var(--tt-gray-light-a-900);
867
+ --tt-button-disabled-text-color: var(--tt-gray-light-a-400);
868
+ --tt-button-default-icon-color: var(--white);
869
+ --tt-button-hover-icon-color: var(--white);
870
+ --tt-button-active-icon-color: var(--tt-brand-color-600);
871
+ --tt-button-active-icon-color-emphasized: var(--tt-brand-color-600);
872
+ --tt-button-active-icon-color-subdued: var(--tt-brand-color-600);
873
+ --tt-button-disabled-icon-color: var(--tt-gray-light-a-400);
874
+ --tt-button-default-icon-sub-color: var(--tt-gray-dark-a-500);
875
+ --tt-button-hover-icon-sub-color: var(--tt-gray-dark-a-500);
876
+ --tt-button-active-icon-sub-color: var(--tt-gray-light-a-500);
877
+ --tt-button-active-icon-sub-color-emphasized: var(--tt-gray-light-a-500);
878
+ --tt-button-active-icon-sub-color-subdued: var(--tt-gray-light-a-500);
879
+ --tt-button-disabled-icon-sub-color: var(--tt-gray-light-a-100);
880
+ --tt-button-default-dropdown-arrows-color: var(--white);
881
+ --tt-button-hover-dropdown-arrows-color: var(--white);
882
+ --tt-button-active-dropdown-arrows-color: var(--tt-gray-light-a-700);
883
+ --tt-button-active-dropdown-arrows-color-emphasized: var(--tt-gray-light-a-700);
884
+ --tt-button-active-dropdown-arrows-color-subdued: var(--tt-gray-light-a-700);
885
+ --tt-button-disabled-dropdown-arrows-color: var(--tt-gray-light-a-400);
886
+ }
887
+ .dark .tiptap-button[data-style=primary] {
888
+ --tt-button-default-bg-color: var(--tt-brand-color-500);
889
+ --tt-button-hover-bg-color: var(--tt-brand-color-600);
890
+ --tt-button-active-bg-color: var(--tt-brand-color-900);
891
+ --tt-button-active-bg-color-emphasized: var(--tt-brand-color-900);
892
+ --tt-button-active-bg-color-subdued: var(--tt-brand-color-900);
893
+ --tt-button-active-hover-bg-color: var(--tt-brand-color-800);
894
+ --tt-button-active-hover-bg-color-emphasized: var(--tt-brand-color-800);
895
+ --tt-button-active-hover-bg-color-subdued: var(--tt-brand-color-800);
896
+ --tt-button-disabled-bg-color: var(--tt-gray-dark-a-100);
897
+ }
898
+ .dark .tiptap-button[data-style=primary] {
899
+ --tt-button-default-text-color: var(--white);
900
+ --tt-button-hover-text-color: var(--white);
901
+ --tt-button-active-text-color: var(--tt-gray-dark-a-900);
902
+ --tt-button-active-text-color-emphasized: var(--tt-gray-dark-a-900);
903
+ --tt-button-active-text-color-subdued: var(--tt-gray-dark-a-900);
904
+ --tt-button-disabled-text-color: var(--tt-gray-dark-a-300);
905
+ }
906
+ .dark .tiptap-button[data-style=primary] {
907
+ --tt-button-default-icon-color: var(--white);
908
+ --tt-button-hover-icon-color: var(--white);
909
+ --tt-button-active-icon-color: var(--tt-brand-color-400);
910
+ --tt-button-active-icon-color-emphasized: var(--tt-brand-color-400);
911
+ --tt-button-active-icon-color-subdued: var(--tt-brand-color-400);
912
+ --tt-button-disabled-icon-color: var(--tt-gray-dark-a-300);
913
+ }
914
+ .dark .tiptap-button[data-style=primary] {
915
+ --tt-button-default-icon-sub-color: var(--tt-gray-dark-a-400);
916
+ --tt-button-hover-icon-sub-color: var(--tt-gray-dark-a-500);
917
+ --tt-button-active-icon-sub-color: var(--tt-gray-dark-a-300);
918
+ --tt-button-active-icon-sub-color-emphasized: var(--tt-gray-dark-a-400);
919
+ --tt-button-active-icon-sub-color-subdued: var(--tt-gray-dark-a-300);
920
+ --tt-button-disabled-icon-sub-color: var(--tt-gray-dark-a-100);
921
+ }
922
+ .dark .tiptap-button[data-style=primary] {
923
+ --tt-button-default-dropdown-arrows-color: var(--white);
924
+ --tt-button-hover-dropdown-arrows-color: var(--white);
925
+ --tt-button-active-dropdown-arrows-color: var(--tt-gray-dark-a-600);
926
+ --tt-button-active-dropdown-arrows-color-emphasized: var(--tt-gray-dark-a-600);
927
+ --tt-button-active-dropdown-arrows-color-subdued: var(--tt-gray-dark-a-600);
928
+ --tt-button-disabled-dropdown-arrows-color: var(--tt-gray-dark-a-400);
929
+ }
930
+
931
+ /* src/components/MarkdownEditor/components/tiptap-ui-primitive/button/button-group.less */
932
+ .tiptap-button-group {
933
+ align-items: center;
934
+ display: flex;
935
+ gap: 0.125rem;
936
+ flex-direction: column;
937
+ }
938
+ .tiptap-button-group[data-orientation=vertical],
939
+ .tiptap-button-group [data-orientation=vertical] {
940
+ flex-direction: column;
941
+ }
942
+ .tiptap-button-group[data-orientation=horizontal],
943
+ .tiptap-button-group [data-orientation=horizontal] {
944
+ flex-direction: row;
945
+ }
946
+
947
+ /* src/components/MarkdownEditor/components/tiptap-ui-primitive/button/button.less */
948
+ .tiptap-button {
949
+ font-size: 0.875rem;
950
+ font-weight: 500;
951
+ font-feature-settings: "salt" on, "cv01" on;
952
+ line-height: 1.15;
953
+ height: 2rem;
954
+ min-width: 2rem;
955
+ border: none;
956
+ padding: 0.5rem;
957
+ gap: 0.25rem;
958
+ display: flex;
959
+ align-items: center;
960
+ justify-content: center;
961
+ border-radius: var(--tt-radius-lg, 0.75rem);
962
+ transition-property:
963
+ background,
964
+ color,
965
+ opacity;
966
+ transition-duration: var(--tt-transition-duration-default);
967
+ transition-timing-function: var(--tt-transition-easing-default);
968
+ }
969
+ .tiptap-button:focus-visible {
970
+ outline: none;
971
+ }
972
+ .tiptap-button[data-highlighted=true] {
973
+ background-color: var(--tt-button-hover-bg-color);
974
+ color: var(--tt-button-hover-text-color);
975
+ }
976
+ .tiptap-button[data-size=large] {
977
+ font-size: 0.9375rem;
978
+ height: 2.375rem;
979
+ min-width: 2.375rem;
980
+ padding: 0.625rem;
981
+ }
982
+ .tiptap-button[data-size=small] {
983
+ font-size: 0.75rem;
984
+ line-height: 1.2;
985
+ height: 1.5rem;
986
+ min-width: 1.5rem;
987
+ padding: 0.3125rem;
988
+ border-radius: var(--tt-radius-md, 0.5rem);
989
+ }
990
+ .tiptap-button .tiptap-button-text {
991
+ padding: 0 0.125rem;
992
+ flex-grow: 1;
993
+ text-align: left;
994
+ line-height: 1.5rem;
995
+ }
996
+ .tiptap-button[data-text-trim=on] .tiptap-button-text {
997
+ text-overflow: ellipsis;
998
+ overflow: hidden;
999
+ }
1000
+ .tiptap-button .tiptap-button-icon,
1001
+ .tiptap-button .tiptap-button-icon-sub,
1002
+ .tiptap-button .tiptap-button-dropdown-arrows,
1003
+ .tiptap-button .tiptap-button-dropdown-small {
1004
+ pointer-events: none;
1005
+ flex-shrink: 0;
1006
+ }
1007
+ .tiptap-button .tiptap-button-icon {
1008
+ width: 1rem;
1009
+ height: 1rem;
1010
+ }
1011
+ .tiptap-button[data-size=large] .tiptap-button-icon {
1012
+ width: 1.125rem;
1013
+ height: 1.125rem;
1014
+ }
1015
+ .tiptap-button[data-size=small] .tiptap-button-icon {
1016
+ width: 0.875rem;
1017
+ height: 0.875rem;
1018
+ }
1019
+ .tiptap-button .tiptap-button-icon-sub {
1020
+ width: 1rem;
1021
+ height: 1rem;
1022
+ }
1023
+ .tiptap-button[data-size=large] .tiptap-button-icon-sub {
1024
+ width: 1.125rem;
1025
+ height: 1.125rem;
1026
+ }
1027
+ .tiptap-button[data-size=small] .tiptap-button-icon-sub {
1028
+ width: 0.875rem;
1029
+ height: 0.875rem;
1030
+ }
1031
+ .tiptap-button .tiptap-button-dropdown-arrows {
1032
+ width: 0.75rem;
1033
+ height: 0.75rem;
1034
+ }
1035
+ .tiptap-button[data-size=large] .tiptap-button-dropdown-arrows {
1036
+ width: 0.875rem;
1037
+ height: 0.875rem;
1038
+ }
1039
+ .tiptap-button[data-size=small] .tiptap-button-dropdown-arrows {
1040
+ width: 0.625rem;
1041
+ height: 0.625rem;
1042
+ }
1043
+ .tiptap-button .tiptap-button-dropdown-small {
1044
+ width: 0.625rem;
1045
+ height: 0.625rem;
1046
+ }
1047
+ .tiptap-button[data-size=large] .tiptap-button-dropdown-small {
1048
+ width: 0.75rem;
1049
+ height: 0.75rem;
1050
+ }
1051
+ .tiptap-button[data-size=small] .tiptap-button-dropdown-small {
1052
+ width: 0.5rem;
1053
+ height: 0.5rem;
1054
+ }
1055
+ .tiptap-button:has(> svg):not(:has(> :not(svg))) {
1056
+ gap: 0.125rem;
1057
+ }
1058
+ .tiptap-button:has(> svg):not(:has(> :not(svg)))[data-size=large],
1059
+ .tiptap-button:has(> svg):not(:has(> :not(svg)))[data-size=small] {
1060
+ gap: 0.125rem;
1061
+ }
1062
+ .tiptap-button:has(> svg:nth-of-type(2)):has(> .tiptap-button-dropdown-small):not(:has(> svg:nth-of-type(3)), :has(> .tiptap-button-text)) {
1063
+ gap: 0;
1064
+ padding-right: 0.25rem;
1065
+ }
1066
+ .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] {
1067
+ padding-right: 0.375rem;
1068
+ }
1069
+ .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] {
1070
+ padding-right: 0.25rem;
1071
+ }
1072
+ .tiptap-button .tiptap-button-emoji {
1073
+ width: 1rem;
1074
+ display: flex;
1075
+ justify-content: center;
1076
+ }
1077
+ .tiptap-button[data-size=large] .tiptap-button-emoji {
1078
+ width: 1.125rem;
1079
+ }
1080
+ .tiptap-button[data-size=small] .tiptap-button-emoji {
1081
+ width: 0.875rem;
1082
+ }
1083
+ .tiptap-button {
1084
+ background-color: var(--tt-button-default-bg-color);
1085
+ color: var(--tt-button-default-text-color);
1086
+ }
1087
+ .tiptap-button .tiptap-button-icon {
1088
+ color: var(--tt-button-default-icon-color);
1089
+ }
1090
+ .tiptap-button .tiptap-button-icon-sub {
1091
+ color: var(--tt-button-default-icon-sub-color);
1092
+ }
1093
+ .tiptap-button .tiptap-button-dropdown-arrows {
1094
+ color: var(--tt-button-default-dropdown-arrows-color);
1095
+ }
1096
+ .tiptap-button .tiptap-button-dropdown-small {
1097
+ color: var(--tt-button-default-dropdown-arrows-color);
1098
+ }
1099
+ .tiptap-button:hover,
1100
+ .tiptap-button[data-active-item=true]:not([disabled]) {
1101
+ background-color: var(--tt-button-hover-bg-color);
1102
+ color: var(--tt-button-hover-text-color);
1103
+ }
1104
+ .tiptap-button:hover .tiptap-button-icon,
1105
+ .tiptap-button[data-active-item=true]:not([disabled]) .tiptap-button-icon {
1106
+ color: var(--tt-button-hover-icon-color);
1107
+ }
1108
+ .tiptap-button:hover .tiptap-button-icon-sub,
1109
+ .tiptap-button[data-active-item=true]:not([disabled]) .tiptap-button-icon-sub {
1110
+ color: var(--tt-button-hover-icon-sub-color);
1111
+ }
1112
+ .tiptap-button:hover .tiptap-button-dropdown-arrows,
1113
+ .tiptap-button[data-active-item=true]:not([disabled]) .tiptap-button-dropdown-arrows,
1114
+ .tiptap-button:hover .tiptap-button-dropdown-small,
1115
+ .tiptap-button[data-active-item=true]:not([disabled]) .tiptap-button-dropdown-small {
1116
+ color: var(--tt-button-hover-dropdown-arrows-color);
1117
+ }
1118
+ .tiptap-button[data-active-state=on]:not([disabled]),
1119
+ .tiptap-button[data-state=open]:not([disabled]) {
1120
+ background-color: var(--tt-button-active-bg-color);
1121
+ color: var(--tt-button-active-text-color);
1122
+ }
1123
+ .tiptap-button[data-active-state=on]:not([disabled]) .tiptap-button-icon,
1124
+ .tiptap-button[data-state=open]:not([disabled]) .tiptap-button-icon {
1125
+ color: var(--tt-button-active-icon-color);
1126
+ }
1127
+ .tiptap-button[data-active-state=on]:not([disabled]) .tiptap-button-icon-sub,
1128
+ .tiptap-button[data-state=open]:not([disabled]) .tiptap-button-icon-sub {
1129
+ color: var(--tt-button-active-icon-sub-color);
1130
+ }
1131
+ .tiptap-button[data-active-state=on]:not([disabled]) .tiptap-button-dropdown-arrows,
1132
+ .tiptap-button[data-state=open]:not([disabled]) .tiptap-button-dropdown-arrows,
1133
+ .tiptap-button[data-active-state=on]:not([disabled]) .tiptap-button-dropdown-small,
1134
+ .tiptap-button[data-state=open]:not([disabled]) .tiptap-button-dropdown-small {
1135
+ color: var(--tt-button-active-dropdown-arrows-color);
1136
+ }
1137
+ .tiptap-button[data-active-state=on]:not([disabled]):hover,
1138
+ .tiptap-button[data-state=open]:not([disabled]):hover {
1139
+ background-color: var(--tt-button-active-hover-bg-color);
1140
+ }
1141
+ .tiptap-button[data-active-state=on]:not([disabled])[data-appearance=emphasized],
1142
+ .tiptap-button[data-state=open]:not([disabled])[data-appearance=emphasized] {
1143
+ background-color: var(--tt-button-active-bg-color-emphasized);
1144
+ color: var(--tt-button-active-text-color-emphasized);
1145
+ }
1146
+ .tiptap-button[data-active-state=on]:not([disabled])[data-appearance=emphasized] .tiptap-button-icon,
1147
+ .tiptap-button[data-state=open]:not([disabled])[data-appearance=emphasized] .tiptap-button-icon {
1148
+ color: var(--tt-button-active-icon-color-emphasized);
1149
+ }
1150
+ .tiptap-button[data-active-state=on]:not([disabled])[data-appearance=emphasized] .tiptap-button-icon-sub,
1151
+ .tiptap-button[data-state=open]:not([disabled])[data-appearance=emphasized] .tiptap-button-icon-sub {
1152
+ color: var(--tt-button-active-icon-sub-color-emphasized);
1153
+ }
1154
+ .tiptap-button[data-active-state=on]:not([disabled])[data-appearance=emphasized] .tiptap-button-dropdown-arrows,
1155
+ .tiptap-button[data-state=open]:not([disabled])[data-appearance=emphasized] .tiptap-button-dropdown-arrows,
1156
+ .tiptap-button[data-active-state=on]:not([disabled])[data-appearance=emphasized] .tiptap-button-dropdown-small,
1157
+ .tiptap-button[data-state=open]:not([disabled])[data-appearance=emphasized] .tiptap-button-dropdown-small {
1158
+ color: var(--tt-button-active-dropdown-arrows-color-emphasized);
1159
+ }
1160
+ .tiptap-button[data-active-state=on]:not([disabled])[data-appearance=emphasized]:hover,
1161
+ .tiptap-button[data-state=open]:not([disabled])[data-appearance=emphasized]:hover {
1162
+ background-color: var(--tt-button-active-hover-bg-color-emphasized);
1163
+ }
1164
+ .tiptap-button[data-active-state=on]:not([disabled])[data-appearance=subdued],
1165
+ .tiptap-button[data-state=open]:not([disabled])[data-appearance=subdued] {
1166
+ background-color: var(--tt-button-active-bg-color-subdued);
1167
+ color: var(--tt-button-active-text-color-subdued);
1168
+ }
1169
+ .tiptap-button[data-active-state=on]:not([disabled])[data-appearance=subdued] .tiptap-button-icon,
1170
+ .tiptap-button[data-state=open]:not([disabled])[data-appearance=subdued] .tiptap-button-icon {
1171
+ color: var(--tt-button-active-icon-color-subdued);
1172
+ }
1173
+ .tiptap-button[data-active-state=on]:not([disabled])[data-appearance=subdued] .tiptap-button-icon-sub,
1174
+ .tiptap-button[data-state=open]:not([disabled])[data-appearance=subdued] .tiptap-button-icon-sub {
1175
+ color: var(--tt-button-active-icon-sub-color-subdued);
1176
+ }
1177
+ .tiptap-button[data-active-state=on]:not([disabled])[data-appearance=subdued] .tiptap-button-dropdown-arrows,
1178
+ .tiptap-button[data-state=open]:not([disabled])[data-appearance=subdued] .tiptap-button-dropdown-arrows,
1179
+ .tiptap-button[data-active-state=on]:not([disabled])[data-appearance=subdued] .tiptap-button-dropdown-small,
1180
+ .tiptap-button[data-state=open]:not([disabled])[data-appearance=subdued] .tiptap-button-dropdown-small {
1181
+ color: var(--tt-button-active-dropdown-arrows-color-subdued);
1182
+ }
1183
+ .tiptap-button[data-active-state=on]:not([disabled])[data-appearance=subdued]:hover,
1184
+ .tiptap-button[data-state=open]:not([disabled])[data-appearance=subdued]:hover {
1185
+ background-color: var(--tt-button-active-hover-bg-color-subdued);
1186
+ }
1187
+ .tiptap-button[data-active-state=on]:not([disabled])[data-appearance=subdued]:hover .tiptap-button-icon,
1188
+ .tiptap-button[data-state=open]:not([disabled])[data-appearance=subdued]:hover .tiptap-button-icon {
1189
+ color: var(--tt-button-active-icon-color-subdued);
1190
+ }
1191
+ .tiptap-button:disabled {
1192
+ background-color: var(--tt-button-disabled-bg-color);
1193
+ color: var(--tt-button-disabled-text-color);
1194
+ }
1195
+ .tiptap-button:disabled .tiptap-button-icon {
1196
+ color: var(--tt-button-disabled-icon-color);
1197
+ }
1198
+
1199
+ /* src/components/MarkdownEditor/components/tiptap-ui-primitive/separator/separator.less */
1200
+ .tiptap-separator {
1201
+ --tt-link-border-color: var(--tt-gray-light-a-200);
1202
+ }
1203
+ .dark .tiptap-separator {
1204
+ --tt-link-border-color: var(--tt-gray-dark-a-200);
1205
+ }
1206
+ .tiptap-separator {
1207
+ flex-shrink: 0;
1208
+ background-color: var(--tt-link-border-color);
1209
+ }
1210
+ .tiptap-separator[data-orientation=horizontal] {
1211
+ height: 1px;
1212
+ width: 100%;
1213
+ }
1214
+ .tiptap-separator[data-orientation=vertical] {
1215
+ height: 1.5rem;
1216
+ width: 1px;
1217
+ }
1218
+
1219
+ /* src/components/MarkdownEditor/components/tiptap-ui-primitive/toolbar/toolbar.less */
1220
+ :root {
1221
+ --tt-toolbar-height: 2.75rem;
1222
+ --tt-safe-area-bottom: env(safe-area-inset-bottom, 0px);
1223
+ --tt-toolbar-bg-color: var(--white);
1224
+ --tt-toolbar-border-color: var(--tt-gray-light-a-100);
1225
+ }
1226
+ .dark {
1227
+ --tt-toolbar-bg-color: var(--black);
1228
+ --tt-toolbar-border-color: var(--tt-gray-dark-a-50);
1229
+ }
1230
+ .tiptap-toolbar {
1231
+ display: flex;
1232
+ align-items: center;
1233
+ gap: 0.25rem;
1234
+ }
1235
+ .tiptap-toolbar-group {
1236
+ display: flex;
1237
+ align-items: center;
1238
+ gap: 0.125rem;
1239
+ }
1240
+ .tiptap-toolbar-group:empty {
1241
+ display: none;
1242
+ }
1243
+ .tiptap-toolbar-group:empty + .tiptap-separator,
1244
+ .tiptap-separator + .tiptap-toolbar-group:empty {
1245
+ display: none;
1246
+ }
1247
+ .tiptap-toolbar[data-variant=fixed] {
1248
+ position: sticky;
1249
+ top: 0;
1250
+ z-index: 10;
1251
+ width: 100%;
1252
+ min-height: var(--tt-toolbar-height);
1253
+ background: var(--tt-toolbar-bg-color);
1254
+ border-bottom: 1px solid var(--tt-toolbar-border-color);
1255
+ padding: 0 0.5rem;
1256
+ overflow-x: auto;
1257
+ overscroll-behavior-x: contain;
1258
+ -webkit-overflow-scrolling: touch;
1259
+ scrollbar-width: none;
1260
+ -ms-overflow-style: none;
1261
+ }
1262
+ .tiptap-toolbar[data-variant=fixed]::-webkit-scrollbar {
1263
+ display: none;
1264
+ }
1265
+ @media (width <= 480px) {
1266
+ .tiptap-toolbar[data-variant=fixed] {
1267
+ position: fixed;
1268
+ top: auto;
1269
+ bottom: 0;
1270
+ height: calc(var(--tt-toolbar-height) + var(--tt-safe-area-bottom));
1271
+ border-top: 1px solid var(--tt-toolbar-border-color);
1272
+ border-bottom: none;
1273
+ padding: 0 0.5rem var(--tt-safe-area-bottom);
1274
+ flex-wrap: nowrap;
1275
+ justify-content: flex-start;
1276
+ }
1277
+ .tiptap-toolbar[data-variant=fixed] .tiptap-toolbar-group {
1278
+ flex: 0 0 auto;
1279
+ }
1280
+ }
1281
+ .tiptap-toolbar[data-variant=floating] {
1282
+ --tt-toolbar-padding: 0.125rem;
1283
+ --tt-toolbar-border-width: 1px;
1284
+ padding: 0.188rem;
1285
+ border-radius: calc(var(--tt-toolbar-padding) + var(--tt-radius-lg) + var(--tt-toolbar-border-width));
1286
+ border: var(--tt-toolbar-border-width) solid var(--tt-toolbar-border-color);
1287
+ background-color: var(--tt-toolbar-bg-color);
1288
+ box-shadow: var(--tt-shadow-elevated-md);
1289
+ outline: none;
1290
+ overflow: hidden;
1291
+ }
1292
+ .tiptap-toolbar[data-variant=floating][data-plain=true] {
1293
+ padding: 0;
1294
+ border-radius: 0;
1295
+ border: none;
1296
+ box-shadow: none;
1297
+ background-color: transparent;
1298
+ }
1299
+ @media screen and (width <= 768px) {
1300
+ .tiptap-toolbar[data-variant=floating] {
1301
+ width: 100%;
1302
+ border-radius: 0;
1303
+ border: none;
1304
+ box-shadow: none;
1305
+ }
1306
+ }
1307
+
1308
+ /* src/components/MarkdownEditor/components/tiptap-node/code-block-node/code-block-node.less */
1309
+ .tiptap.ProseMirror {
1310
+ --tt-inline-code-bg-color: var(--tt-gray-light-a-100);
1311
+ --tt-inline-code-text-color: var(--tt-gray-light-a-700);
1312
+ --tt-inline-code-border-color: var(--tt-gray-light-a-200);
1313
+ --tt-codeblock-bg: var(--tt-gray-light-a-50);
1314
+ --tt-codeblock-text: var(--tt-gray-light-a-800);
1315
+ --tt-codeblock-border: var(--tt-gray-light-a-200);
1316
+ }
1317
+ .dark .tiptap.ProseMirror {
1318
+ --tt-inline-code-bg-color: var(--tt-gray-dark-a-100);
1319
+ --tt-inline-code-text-color: var(--tt-gray-dark-a-700);
1320
+ --tt-inline-code-border-color: var(--tt-gray-dark-a-200);
1321
+ --tt-codeblock-bg: var(--tt-gray-dark-a-50);
1322
+ --tt-codeblock-text: var(--tt-gray-dark-a-800);
1323
+ --tt-codeblock-border: var(--tt-gray-dark-a-200);
1324
+ }
1325
+ .tiptap.ProseMirror code {
1326
+ background-color: var(--tt-inline-code-bg-color);
1327
+ color: var(--tt-inline-code-text-color);
1328
+ border: 1px solid var(--tt-inline-code-border-color);
1329
+ font-family: "JetBrains Mono NL", monospace;
1330
+ font-size: 0.875em;
1331
+ line-height: 1.4;
1332
+ border-radius: 6px/0.375rem;
1333
+ padding: 0.1em 0.2em;
1334
+ }
1335
+ .tiptap.ProseMirror pre {
1336
+ background-color: var(--tt-codeblock-bg);
1337
+ color: var(--tt-codeblock-text);
1338
+ border: 1px solid var(--tt-codeblock-border);
1339
+ margin-top: 1.5em;
1340
+ margin-bottom: 1.5em;
1341
+ padding: 1em;
1342
+ font-size: 1rem;
1343
+ border-radius: 6px/0.375rem;
1344
+ }
1345
+ .tiptap.ProseMirror pre code {
1346
+ background-color: transparent;
1347
+ border: none;
1348
+ border-radius: 0;
1349
+ -webkit-text-fill-color: inherit;
1350
+ color: inherit;
1351
+ }
1352
+
1353
+ /* src/components/MarkdownEditor/components/tiptap-node/image-node/image-node.less */
1354
+ .tiptap.ProseMirror img {
1355
+ max-width: 100%;
1356
+ height: auto;
1357
+ display: block;
1358
+ }
1359
+ .tiptap.ProseMirror > img:not([data-type=emoji] img) {
1360
+ margin: 2rem 0;
1361
+ outline: 0.125rem solid transparent;
1362
+ border-radius: var(--tt-radius-xs, 0.25rem);
1363
+ }
1364
+ .tiptap.ProseMirror.ProseMirror-focused img:not([data-type=emoji] img).ProseMirror-selectednode {
1365
+ outline-color: var(--tt-brand-color-500);
1366
+ }
1367
+ .tiptap.ProseMirror .tiptap-thread:has(> img) {
1368
+ margin: 2rem 0;
1369
+ }
1370
+ .tiptap.ProseMirror .tiptap-thread:has(> img) img {
1371
+ outline: 0.125rem solid transparent;
1372
+ border-radius: var(--tt-radius-xs, 0.25rem);
1373
+ }
1374
+ .tiptap.ProseMirror .tiptap-thread img {
1375
+ margin: 0;
1376
+ }
1377
+
1378
+ /* src/components/MarkdownEditor/components/tiptap-node/list-node/list-node.less */
1379
+ .tiptap.ProseMirror {
1380
+ --tt-checklist-bg-color: var(--tt-gray-light-a-100);
1381
+ --tt-checklist-bg-active-color: var(--tt-gray-light-a-900);
1382
+ --tt-checklist-border-color: var(--tt-gray-light-a-200);
1383
+ --tt-checklist-border-active-color: var(--tt-gray-light-a-900);
1384
+ --tt-checklist-check-icon-color: var(--white);
1385
+ --tt-checklist-text-active: var(--tt-gray-light-a-500);
1386
+ }
1387
+ .dark .tiptap.ProseMirror {
1388
+ --tt-checklist-bg-color: var(--tt-gray-dark-a-100);
1389
+ --tt-checklist-bg-active-color: var(--tt-gray-dark-a-900);
1390
+ --tt-checklist-border-color: var(--tt-gray-dark-a-200);
1391
+ --tt-checklist-border-active-color: var(--tt-gray-dark-a-900);
1392
+ --tt-checklist-check-icon-color: var(--black);
1393
+ --tt-checklist-text-active: var(--tt-gray-dark-a-500);
1394
+ }
1395
+ .tiptap.ProseMirror ol,
1396
+ .tiptap.ProseMirror ul {
1397
+ margin-top: 1.5em;
1398
+ margin-bottom: 1.5em;
1399
+ padding-left: 1.5em;
1400
+ }
1401
+ .tiptap.ProseMirror ol:first-child,
1402
+ .tiptap.ProseMirror ul:first-child {
1403
+ margin-top: 0;
1404
+ }
1405
+ .tiptap.ProseMirror ol:last-child,
1406
+ .tiptap.ProseMirror ul:last-child {
1407
+ margin-bottom: 0;
1408
+ }
1409
+ .tiptap.ProseMirror ol ol,
1410
+ .tiptap.ProseMirror ul ol,
1411
+ .tiptap.ProseMirror ol ul,
1412
+ .tiptap.ProseMirror ul ul {
1413
+ margin-top: 0;
1414
+ margin-bottom: 0;
1415
+ }
1416
+ .tiptap.ProseMirror li p {
1417
+ margin-top: 0;
1418
+ }
1419
+ .tiptap.ProseMirror ol {
1420
+ list-style: decimal;
1421
+ }
1422
+ .tiptap.ProseMirror ol ol {
1423
+ list-style: lower-alpha;
1424
+ }
1425
+ .tiptap.ProseMirror ol ol ol {
1426
+ list-style: lower-roman;
1427
+ }
1428
+ .tiptap.ProseMirror ul:not([data-type=taskList]) {
1429
+ list-style: disc;
1430
+ }
1431
+ .tiptap.ProseMirror ul:not([data-type=taskList]) ul {
1432
+ list-style: circle;
1433
+ }
1434
+ .tiptap.ProseMirror ul:not([data-type=taskList]) ul ul {
1435
+ list-style: disc;
1436
+ }
1437
+ .tiptap.ProseMirror ul[data-type=taskList] {
1438
+ padding-left: 0.25em;
1439
+ }
1440
+ .tiptap.ProseMirror ul[data-type=taskList] li {
1441
+ display: flex;
1442
+ flex-direction: row;
1443
+ align-items: flex-start;
1444
+ }
1445
+ .tiptap.ProseMirror ul[data-type=taskList] li:not(:has(> p:first-child)) {
1446
+ list-style-type: none;
1447
+ }
1448
+ .tiptap.ProseMirror ul[data-type=taskList] li[data-checked=true] > div > p {
1449
+ opacity: 0.5;
1450
+ text-decoration: line-through;
1451
+ }
1452
+ .tiptap.ProseMirror ul[data-type=taskList] li[data-checked=true] > div > p span {
1453
+ text-decoration: line-through;
1454
+ }
1455
+ .tiptap.ProseMirror ul[data-type=taskList] li label {
1456
+ position: relative;
1457
+ padding-top: 4px;
1458
+ padding-right: 8px;
1459
+ }
1460
+ .tiptap.ProseMirror ul[data-type=taskList] li label input[type=checkbox] {
1461
+ position: absolute;
1462
+ opacity: 0;
1463
+ width: 0;
1464
+ height: 0;
1465
+ }
1466
+ .tiptap.ProseMirror ul[data-type=taskList] li label span {
1467
+ display: block;
1468
+ width: 1em;
1469
+ height: 1em;
1470
+ border: 1px solid var(--tt-checklist-border-color);
1471
+ border-radius: var(--tt-radius-xs, 0.25rem);
1472
+ position: relative;
1473
+ cursor: pointer;
1474
+ background-color: var(--tt-checklist-bg-color);
1475
+ transition: background-color 80ms ease-out, border-color 80ms ease-out;
1476
+ }
1477
+ .tiptap.ProseMirror ul[data-type=taskList] li label span::before {
1478
+ content: "";
1479
+ position: absolute;
1480
+ left: 50%;
1481
+ top: 50%;
1482
+ transform: translate(-50%, -50%);
1483
+ width: 0.75em;
1484
+ height: 0.75em;
1485
+ background-color: var(--tt-checklist-check-icon-color);
1486
+ opacity: 0;
1487
+ 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;
1488
+ }
1489
+ .tiptap.ProseMirror ul[data-type=taskList] li label input[type=checkbox]:checked + span {
1490
+ background: var(--tt-checklist-bg-active-color);
1491
+ border-color: var(--tt-checklist-border-active-color);
1492
+ }
1493
+ .tiptap.ProseMirror ul[data-type=taskList] li label input[type=checkbox]:checked + span::before {
1494
+ opacity: 1;
1495
+ }
1496
+ .tiptap.ProseMirror ul[data-type=taskList] li div {
1497
+ flex: 1 1 0%;
1498
+ min-width: 0;
1499
+ }
1500
+
1501
+ /* src/components/MarkdownEditor/components/tiptap-node/paragraph-node/paragraph-node.less */
1502
+ .tiptap.ProseMirror {
1503
+ --blockquote-bg-color: var(--tt-gray-light-900);
1504
+ --link-text-color: var(--tt-brand-color-500);
1505
+ --separator-color: var(--tt-gray-light-a-200);
1506
+ --thread-text: var(--tt-gray-light-900);
1507
+ --placeholder-color: var(--tt-gray-light-a-400);
1508
+ --tiptap-mathematics-bg-color: var(--tt-gray-light-a-200);
1509
+ --tiptap-mathematics-border-color: var(--tt-brand-color-500);
1510
+ }
1511
+ .dark .tiptap.ProseMirror {
1512
+ --blockquote-bg-color: var(--tt-gray-dark-900);
1513
+ --link-text-color: var(--tt-brand-color-400);
1514
+ --separator-color: var(--tt-gray-dark-a-200);
1515
+ --thread-text: var(--tt-gray-dark-900);
1516
+ --placeholder-color: var(--tt-gray-dark-a-400);
1517
+ --tiptap-mathematics-bg-color: var(--tt-gray-dark-a-200);
1518
+ --tiptap-mathematics-border-color: var(--tt-brand-color-400);
1519
+ }
1520
+ .tiptap.ProseMirror {
1521
+ white-space: pre-wrap;
1522
+ outline: none;
1523
+ caret-color: var(--tt-cursor-color);
1524
+ }
1525
+ .tiptap.ProseMirror p:not(:first-child) {
1526
+ font-size: 1rem;
1527
+ line-height: 1.6;
1528
+ font-weight: normal;
1529
+ margin-top: 20px;
1530
+ }
1531
+ .tiptap.ProseMirror:not(.readonly, .ProseMirror-hideselection) ::selection {
1532
+ background-color: var(--tt-selection-color);
1533
+ }
1534
+ .tiptap.ProseMirror:not(.readonly, .ProseMirror-hideselection) .selection::selection {
1535
+ background: transparent;
1536
+ }
1537
+ .tiptap.ProseMirror .selection {
1538
+ display: inline;
1539
+ background-color: var(--tt-selection-color);
1540
+ }
1541
+ .tiptap.ProseMirror .ProseMirror-hideselection {
1542
+ caret-color: transparent;
1543
+ }
1544
+ .tiptap.ProseMirror > p.is-editor-empty::before {
1545
+ content: attr(data-placeholder);
1546
+ pointer-events: none;
1547
+ color: var(--placeholder-color);
1548
+ float: left;
1549
+ height: 0;
1550
+ }
1551
+ .tiptap.ProseMirror.resize-cursor {
1552
+ cursor: ew-resize;
1553
+ cursor: col-resize;
1554
+ }
1555
+ .tiptap.ProseMirror .ProseMirror-gapcursor {
1556
+ display: none;
1557
+ pointer-events: none;
1558
+ position: absolute;
1559
+ }
1560
+ .tiptap.ProseMirror .ProseMirror-gapcursor::after {
1561
+ content: "";
1562
+ display: block;
1563
+ position: absolute;
1564
+ top: 1em;
1565
+ width: 1.25em;
1566
+ border-top: 1px solid black;
1567
+ animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
1568
+ }
1569
+ .tiptap.ProseMirror.ProseMirror-focused .ProseMirror-gapcursor,
1570
+ .tiptap.ProseMirror.ProseMirror.ProseMirror-focused .ProseMirror-gapcursor {
1571
+ display: block;
1572
+ }
1573
+ @keyframes ProseMirror-cursor-blink {
1574
+ to {
1575
+ visibility: hidden;
1576
+ }
1577
+ }
1578
+ .tiptap.ProseMirror a span {
1579
+ text-decoration: underline;
1580
+ }
1581
+ .tiptap.ProseMirror s span {
1582
+ text-decoration: line-through;
1583
+ }
1584
+ .tiptap.ProseMirror u span {
1585
+ text-decoration: underline;
1586
+ }
1587
+ .tiptap.ProseMirror blockquote {
1588
+ position: relative;
1589
+ padding-left: 1em;
1590
+ padding-top: 0.375em;
1591
+ padding-bottom: 0.375em;
1592
+ margin: 1.5rem 0;
1593
+ }
1594
+ .tiptap.ProseMirror blockquote p {
1595
+ margin-top: 0;
1596
+ }
1597
+ .tiptap.ProseMirror blockquote::before,
1598
+ .tiptap.ProseMirror blockquote.is-empty::before {
1599
+ position: absolute;
1600
+ bottom: 0;
1601
+ left: 0;
1602
+ top: 0;
1603
+ height: 100%;
1604
+ width: 0.25em;
1605
+ background-color: var(--blockquote-bg-color);
1606
+ content: "";
1607
+ border-radius: 0;
1608
+ }
1609
+ .tiptap.ProseMirror .collaboration-cursor__caret {
1610
+ border-right: 1px solid transparent;
1611
+ border-left: 1px solid transparent;
1612
+ pointer-events: none;
1613
+ margin-left: -1px;
1614
+ margin-right: -1px;
1615
+ position: relative;
1616
+ word-break: normal;
1617
+ }
1618
+ .tiptap.ProseMirror .collaboration-cursor__label {
1619
+ border-radius: 0.25rem;
1620
+ border-bottom-left-radius: 0;
1621
+ font-size: 0.75rem;
1622
+ font-weight: 600;
1623
+ left: -1px;
1624
+ line-height: 1;
1625
+ padding: 0.125rem 0.375rem;
1626
+ position: absolute;
1627
+ top: -1.3em;
1628
+ user-select: none;
1629
+ white-space: nowrap;
1630
+ }
1631
+ .tiptap.ProseMirror [data-type=emoji] img {
1632
+ display: inline-block;
1633
+ width: 1.25em;
1634
+ height: 1.25em;
1635
+ cursor: text;
1636
+ }
1637
+ .tiptap.ProseMirror h1,
1638
+ .tiptap.ProseMirror h2,
1639
+ .tiptap.ProseMirror h3,
1640
+ .tiptap.ProseMirror h4 {
1641
+ position: relative;
1642
+ color: inherit;
1643
+ font-style: inherit;
1644
+ }
1645
+ .tiptap.ProseMirror h1:first-child,
1646
+ .tiptap.ProseMirror h2:first-child,
1647
+ .tiptap.ProseMirror h3:first-child,
1648
+ .tiptap.ProseMirror h4:first-child {
1649
+ margin-top: 0;
1650
+ }
1651
+ .tiptap.ProseMirror h1 {
1652
+ font-size: 1.5em;
1653
+ font-weight: 700;
1654
+ margin-top: 3em;
1655
+ }
1656
+ .tiptap.ProseMirror h2 {
1657
+ font-size: 1.25em;
1658
+ font-weight: 700;
1659
+ margin-top: 2.5em;
1660
+ }
1661
+ .tiptap.ProseMirror h3 {
1662
+ font-size: 1.125em;
1663
+ font-weight: 600;
1664
+ margin-top: 2em;
1665
+ }
1666
+ .tiptap.ProseMirror h4 {
1667
+ font-size: 1em;
1668
+ font-weight: 600;
1669
+ margin-top: 2em;
1670
+ }
1671
+ .tiptap.ProseMirror hr {
1672
+ margin-top: 3em;
1673
+ margin-bottom: 3em;
1674
+ border: none;
1675
+ height: 1px;
1676
+ background-color: var(--separator-color);
1677
+ }
1678
+ .tiptap.ProseMirror.ProseMirror-focused hr.ProseMirror-selectednode {
1679
+ border-radius: 9999px;
1680
+ outline: 3px solid var(--tt-brand-color-500);
1681
+ outline-offset: 2px;
1682
+ }
1683
+ .tiptap.ProseMirror a {
1684
+ color: var(--link-text-color);
1685
+ text-decoration: underline;
1686
+ }
1687
+ .tiptap.ProseMirror [data-type=mention] {
1688
+ display: inline-block;
1689
+ color: var(--tt-brand-color-500);
1690
+ }
1691
+ .tiptap.ProseMirror .tiptap-thread.tiptap-thread--unresolved.tiptap-thread--inline {
1692
+ transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
1693
+ color: var(--thread-text);
1694
+ border-bottom: 2px dashed var(--tt-color-yellow-base);
1695
+ font-weight: 600;
1696
+ }
1697
+ .tiptap.ProseMirror .tiptap-thread.tiptap-thread--unresolved.tiptap-thread--inline.tiptap-thread--selected,
1698
+ .tiptap.ProseMirror .tiptap-thread.tiptap-thread--unresolved.tiptap-thread--inline.tiptap-thread--hovered {
1699
+ background-color: var(--tt-color-yellow-inc-2);
1700
+ border-bottom-color: transparent;
1701
+ }
1702
+ .tiptap.ProseMirror .tiptap-thread.tiptap-thread--unresolved.tiptap-thread--block:has(img) {
1703
+ outline: 0.125rem solid var(--tt-color-yellow-base);
1704
+ border-radius: var(--tt-radius-xs, 0.25rem);
1705
+ overflow: hidden;
1706
+ width: fit-content;
1707
+ }
1708
+ .tiptap.ProseMirror .tiptap-thread.tiptap-thread--unresolved.tiptap-thread--block:has(img).tiptap-thread--selected {
1709
+ outline-width: 0.25rem;
1710
+ outline-color: var(--tt-color-yellow-base);
1711
+ }
1712
+ .tiptap.ProseMirror .tiptap-thread.tiptap-thread--unresolved.tiptap-thread--block:has(img).tiptap-thread--hovered {
1713
+ outline-width: 0.25rem;
1714
+ }
1715
+ .tiptap.ProseMirror .tiptap-thread.tiptap-thread--unresolved.tiptap-thread--block:not(:has(img)) {
1716
+ border-radius: 0.25rem;
1717
+ border-bottom: 0.125rem dashed var(--tt-color-yellow-base);
1718
+ padding-bottom: 0.5rem;
1719
+ outline: 0.25rem solid transparent;
1720
+ }
1721
+ .tiptap.ProseMirror .tiptap-thread.tiptap-thread--unresolved.tiptap-thread--block:not(:has(img)).tiptap-thread--hovered,
1722
+ .tiptap.ProseMirror .tiptap-thread.tiptap-thread--unresolved.tiptap-thread--block:not(:has(img)).tiptap-thread--selected {
1723
+ background-color: var(--tt-color-yellow-base);
1724
+ outline-color: var(--tt-color-yellow-base);
1725
+ }
1726
+ .tiptap.ProseMirror .tiptap-thread.tiptap-thread--resolved.tiptap-thread--inline.tiptap-thread--selected {
1727
+ background-color: var(--tt-color-yellow-base);
1728
+ border-color: transparent;
1729
+ opacity: 0.5;
1730
+ }
1731
+ .tiptap.ProseMirror .tiptap-thread.tiptap-thread--block:has(.react-renderer) {
1732
+ margin-top: 3rem;
1733
+ margin-bottom: 3rem;
1734
+ }
1735
+ .tiptap.ProseMirror .Tiptap-mathematics-editor {
1736
+ padding: 0 0.25rem;
1737
+ margin: 0 0.25rem;
1738
+ border: 1px solid var(--tiptap-mathematics-border-color);
1739
+ font-family: monospace;
1740
+ font-size: 0.875rem;
1741
+ }
1742
+ .tiptap.ProseMirror .Tiptap-mathematics-render {
1743
+ padding: 0 0.25rem;
1744
+ }
1745
+ .tiptap.ProseMirror .Tiptap-mathematics-render--editable {
1746
+ cursor: pointer;
1747
+ transition: background 0.2s;
1748
+ }
1749
+ .tiptap.ProseMirror .Tiptap-mathematics-render--editable:hover {
1750
+ background: var(--tiptap-mathematics-bg-color);
1751
+ }
1752
+ .tiptap.ProseMirror .Tiptap-mathematics-editor,
1753
+ .tiptap.ProseMirror .Tiptap-mathematics-render {
1754
+ border-radius: var(--tt-radius-xs);
1755
+ display: inline-block;
1756
+ }
1757
+ .is-empty[data-placeholder]:has(> .ProseMirror-trailingBreak:only-child)::before {
1758
+ content: "Write, type '/' for commands\2026";
1759
+ }
1760
+ .is-empty[data-placeholder]:has(> .ProseMirror-trailingBreak:only-child)::before {
1761
+ pointer-events: none;
1762
+ height: 0;
1763
+ position: absolute;
1764
+ font-style: italic;
1765
+ }
1766
+ .is-empty[data-placeholder]:has(> .ProseMirror-trailingBreak)::before {
1767
+ color: var(--placeholder-color);
1768
+ }
1769
+
1770
+ /* src/components/MarkdownEditor/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.less */
1771
+ .tiptap-dropdown-menu {
1772
+ --tt-popover-bg-color: var(--white);
1773
+ --tt-popover-border-color: var(--tt-gray-light-a-100);
1774
+ --tt-popover-text-color: var(--tt-gray-light-a-600);
1775
+ --tt-popover-label: var(--tt-gray-light-a-400);
1776
+ }
1777
+ .dark .tiptap-dropdown-menu {
1778
+ --tt-popover-border-color: var(--tt-gray-dark-a-50);
1779
+ --tt-popover-bg-color: var(--tt-gray-dark-50);
1780
+ --tt-popover-text-color: var(--tt-gray-dark-a-600);
1781
+ --tt-popover-label: var(--tt-gray-dark-a-400);
1782
+ }
1783
+ .tiptap-dropdown-menu {
1784
+ --padding: 0.25rem;
1785
+ --border-width: 1px;
1786
+ z-index: 1200;
1787
+ border-radius: calc(var(--padding) + var(--tt-radius-lg) + var(--border-width));
1788
+ border: var(--border-width) solid var(--tt-popover-border-color);
1789
+ background-color: var(--tt-popover-bg-color);
1790
+ padding: var(--padding);
1791
+ color: var(--tt-popover-text-color);
1792
+ box-shadow: var(--tt-shadow-elevated-md);
1793
+ outline: none;
1794
+ overflow: auto;
1795
+ gap: 0.25rem;
1796
+ }
1797
+ .tiptap-dropdown-menu button {
1798
+ width: 100%;
1799
+ }
1800
+ .tiptap-dropdown-menu .tiptap-dropdown-menu-separator {
1801
+ margin: 0.25rem 0;
1802
+ }
1803
+ .tiptap-dropdown-menu .tiptap-dropdown-menu-label {
1804
+ margin-left: 0.5rem;
1805
+ font-size: 0.75rem;
1806
+ font-weight: 600;
1807
+ margin-top: 0.5rem;
1808
+ margin-bottom: 0.5rem;
1809
+ color: var(--tt-popover-label);
1810
+ }
1811
+ .tiptap-dropdown-menu[data-state=open] {
1812
+ animation: fadeIn 150ms cubic-bezier(0.16, 1, 0.3, 1), zoomIn 150ms cubic-bezier(0.16, 1, 0.3, 1);
1813
+ }
1814
+ .tiptap-dropdown-menu[data-state=closed] {
1815
+ animation: fadeOut 150ms cubic-bezier(0.16, 1, 0.3, 1), zoomOut 150ms cubic-bezier(0.16, 1, 0.3, 1);
1816
+ }
1817
+ .tiptap-dropdown-menu[data-side=top],
1818
+ .tiptap-dropdown-menu[data-side=top-start],
1819
+ .tiptap-dropdown-menu[data-side=top-end] {
1820
+ animation: slideFromBottom 150ms cubic-bezier(0.16, 1, 0.3, 1);
1821
+ }
1822
+ .tiptap-dropdown-menu[data-side=right],
1823
+ .tiptap-dropdown-menu[data-side=right-start],
1824
+ .tiptap-dropdown-menu[data-side=right-end] {
1825
+ animation: slideFromLeft 150ms cubic-bezier(0.16, 1, 0.3, 1);
1826
+ }
1827
+ .tiptap-dropdown-menu[data-side=bottom],
1828
+ .tiptap-dropdown-menu[data-side=bottom-start],
1829
+ .tiptap-dropdown-menu[data-side=bottom-end] {
1830
+ animation: slideFromTop 150ms cubic-bezier(0.16, 1, 0.3, 1);
1831
+ }
1832
+ .tiptap-dropdown-menu[data-side=left],
1833
+ .tiptap-dropdown-menu[data-side=left-start],
1834
+ .tiptap-dropdown-menu[data-side=left-end] {
1835
+ animation: slideFromRight 150ms cubic-bezier(0.16, 1, 0.3, 1);
1836
+ }
1837
+
1838
+ /* src/components/MarkdownEditor/components/tiptap-ui-primitive/popover/popover.less */
1839
+ .tiptap-popover {
1840
+ --tt-popover-bg-color: var(--white);
1841
+ --tt-popover-border-color: var(--tt-gray-light-a-100);
1842
+ --tt-popover-text-color: var(--tt-gray-light-a-600);
1843
+ }
1844
+ .dark .tiptap-popover {
1845
+ --tt-popover-border-color: var(--tt-gray-dark-a-50);
1846
+ --tt-popover-bg-color: var(--tt-gray-dark-50);
1847
+ --tt-popover-text-color: var(--tt-gray-dark-a-600);
1848
+ }
1849
+ .tiptap-popover {
1850
+ --padding: 0.25rem;
1851
+ --border-width: 1px;
1852
+ z-index: 50;
1853
+ border-radius: calc(var(--padding) + var(--tt-radius-lg) + var(--border-width));
1854
+ border: var(--border-width) solid var(--tt-popover-border-color);
1855
+ background-color: var(--tt-popover-bg-color);
1856
+ padding: var(--padding);
1857
+ color: var(--tt-popover-text-color);
1858
+ box-shadow: var(--tt-shadow-elevated-md);
1859
+ outline: none;
1860
+ overflow: hidden;
1861
+ display: flex;
1862
+ align-items: center;
1863
+ gap: 0.25rem;
1864
+ }
1865
+ .tiptap-popover button {
1866
+ width: 100%;
1867
+ }
1868
+ .tiptap-popover[data-orientation=horizontal] {
1869
+ --padding: 0.125rem;
1870
+ }
1871
+ .tiptap-popover[data-state=open] {
1872
+ animation: fadeIn 150ms cubic-bezier(0.16, 1, 0.3, 1), zoomIn 150ms cubic-bezier(0.16, 1, 0.3, 1);
1873
+ }
1874
+ .tiptap-popover[data-state=closed] {
1875
+ animation: fadeOut 150ms cubic-bezier(0.16, 1, 0.3, 1), zoomOut 150ms cubic-bezier(0.16, 1, 0.3, 1);
1876
+ }
1877
+ .tiptap-popover[data-side=top],
1878
+ .tiptap-popover[data-side=top-start],
1879
+ .tiptap-popover[data-side=top-end] {
1880
+ animation: slideFromBottom 150ms cubic-bezier(0.16, 1, 0.3, 1);
1881
+ }
1882
+ .tiptap-popover[data-side=right],
1883
+ .tiptap-popover[data-side=right-start],
1884
+ .tiptap-popover[data-side=right-end] {
1885
+ animation: slideFromLeft 150ms cubic-bezier(0.16, 1, 0.3, 1);
1886
+ }
1887
+ .tiptap-popover[data-side=bottom],
1888
+ .tiptap-popover[data-side=bottom-start],
1889
+ .tiptap-popover[data-side=bottom-end] {
1890
+ animation: slideFromTop 150ms cubic-bezier(0.16, 1, 0.3, 1);
1891
+ }
1892
+ .tiptap-popover[data-side=left],
1893
+ .tiptap-popover[data-side=left-start],
1894
+ .tiptap-popover[data-side=left-end] {
1895
+ animation: slideFromRight 150ms cubic-bezier(0.16, 1, 0.3, 1);
1896
+ }
1897
+
1898
+ /* src/components/MarkdownEditor/components/tiptap-ui/highlight-button/highlight-button.less */
1899
+ .tiptap-button-highlight {
1900
+ position: relative;
1901
+ width: 1.25rem;
1902
+ height: 1.25rem;
1903
+ margin: 0 -0.175rem;
1904
+ border-radius: var(--tt-radius-xl);
1905
+ background-color: var(--highlight-color);
1906
+ transition: transform 0.2s ease;
1907
+ }
1908
+ .tiptap-button-highlight::after {
1909
+ content: "";
1910
+ position: absolute;
1911
+ width: 100%;
1912
+ height: 100%;
1913
+ left: 0;
1914
+ top: 0;
1915
+ border-radius: inherit;
1916
+ box-sizing: border-box;
1917
+ border: 1px solid var(--highlight-color);
1918
+ filter: brightness(95%);
1919
+ mix-blend-mode: multiply;
1920
+ }
1921
+ .dark .tiptap-button-highlight::after {
1922
+ filter: brightness(140%);
1923
+ mix-blend-mode: lighten;
1924
+ }
1925
+ .tiptap-button[data-active-state=on] .tiptap-button-highlight::after {
1926
+ filter: brightness(80%);
1927
+ }
1928
+ .dark .tiptap-button[data-active-state=on] .tiptap-button-highlight::after {
1929
+ filter: brightness(180%);
1930
+ }
1931
+
1932
+ /* src/components/MarkdownEditor/components/tiptap-ui/highlight-popover/highlight-popover.less */
1933
+ .tiptap-highlight-content {
1934
+ display: flex;
1935
+ align-items: center;
1936
+ gap: 0.25rem;
1937
+ outline: none;
1938
+ }
1939
+
1940
+ /* src/components/MarkdownEditor/components/tiptap-ui/link-popover/link-popover.less */
1941
+ .tiptap-input {
1942
+ display: block;
1943
+ width: 100%;
1944
+ height: 2rem;
1945
+ font-size: 1rem;
1946
+ line-height: 1.5rem;
1947
+ padding: 0.375rem 0.75rem;
1948
+ border-radius: 0.375rem;
1949
+ background: none;
1950
+ }
1951
+ .tiptap-input:focus {
1952
+ outline: none;
1953
+ }
1954
+ .tiptap-input-clamp {
1955
+ min-width: 12rem;
1956
+ padding-right: 0;
1957
+ text-overflow: ellipsis;
1958
+ white-space: nowrap;
1959
+ }
1960
+ .tiptap-input-clamp:focus {
1961
+ text-overflow: clip;
1962
+ overflow: visible;
1963
+ }
120
1964
  /*# sourceMappingURL=index.css.map */