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