@novaprose/tinymce-compat 0.0.0-stage → 0.4.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.
@@ -0,0 +1,2233 @@
1
+ /*
2
+ * NovaProse — базовый скин.
3
+ * Все цвета и размеры — CSS-переменные (дизайн-токены, PRD §4.3). Тёмная тема — через
4
+ * prefers-color-scheme или data-theme="dark" на любом предке; data-theme="light" фиксирует светлую.
5
+ */
6
+
7
+ /* ======================= токены ======================= */
8
+
9
+ .nova-editor {
10
+ --nova-bg: #ffffff;
11
+ --nova-fg: #1f2328;
12
+ --nova-muted: #656d76;
13
+ --nova-subtle: #8c959f;
14
+ --nova-border: #d0d7de;
15
+ --nova-border-strong: #afb8c1;
16
+ --nova-toolbar-bg: #f6f8fa;
17
+ --nova-surface: #ffffff;
18
+ --nova-hover: #eaeef2;
19
+ --nova-pressed: #dde3e9;
20
+ --nova-active: #ddf4ff;
21
+ --nova-active-fg: #0969da;
22
+ --nova-accent: #0969da;
23
+ --nova-accent-hover: #0858b9;
24
+ --nova-accent-fg: #ffffff;
25
+ --nova-focus: #0969da;
26
+ --nova-danger: #cf222e;
27
+ --nova-danger-bg: #ffebe9;
28
+ --nova-success: #1a7f37;
29
+ --nova-success-bg: #dafbe1;
30
+ --nova-warning-bg: #fff8c5;
31
+ --nova-comment-bg: rgba(212, 167, 44, 0.22);
32
+ --nova-comment-active-bg: rgba(212, 167, 44, 0.45);
33
+ --nova-comment-line: #d4a72c;
34
+ --nova-diff-added-bg: rgba(26, 127, 55, 0.16);
35
+ --nova-diff-removed-bg: rgba(207, 34, 46, 0.12);
36
+ --nova-suggestion-lift: 0%;
37
+ --nova-code-bg: #f6f8fa;
38
+ --nova-quote: #d0d7de;
39
+ --nova-selection: rgba(9, 105, 218, 0.18);
40
+ --nova-shadow: 0 8px 24px rgba(140, 149, 159, 0.2), 0 1px 3px rgba(31, 35, 40, 0.12);
41
+ --nova-backdrop: rgba(31, 35, 40, 0.45);
42
+ --nova-tooltip-bg: #24292f;
43
+ --nova-tooltip-fg: #ffffff;
44
+
45
+ --nova-radius: 8px;
46
+ --nova-radius-sm: 6px;
47
+ --nova-font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
48
+ --nova-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
49
+ --nova-ui-font-size: 14px;
50
+ --nova-content-font-size: 16px;
51
+ --nova-min-height: 240px;
52
+ --nova-control-size: 32px;
53
+ --nova-z-overlay: 1000;
54
+
55
+ color-scheme: light;
56
+ }
57
+
58
+ [data-theme='dark'] .nova-editor {
59
+ --nova-bg: #0d1117;
60
+ --nova-fg: #e6edf3;
61
+ --nova-muted: #8d96a0;
62
+ --nova-subtle: #6e7681;
63
+ --nova-border: #30363d;
64
+ --nova-border-strong: #484f58;
65
+ --nova-toolbar-bg: #161b22;
66
+ --nova-surface: #161b22;
67
+ --nova-hover: #21262d;
68
+ --nova-pressed: #292e36;
69
+ --nova-active: #12263f;
70
+ --nova-active-fg: #58a6ff;
71
+ --nova-accent: #2f81f7;
72
+ --nova-accent-hover: #4493f8;
73
+ --nova-accent-fg: #ffffff;
74
+ --nova-focus: #58a6ff;
75
+ --nova-danger: #f85149;
76
+ --nova-danger-bg: #2d1214;
77
+ --nova-success: #3fb950;
78
+ --nova-success-bg: #0f2a19;
79
+ --nova-warning-bg: #2e2510;
80
+ --nova-comment-bg: rgba(187, 128, 9, 0.25);
81
+ --nova-comment-active-bg: rgba(187, 128, 9, 0.5);
82
+ --nova-comment-line: #bb8009;
83
+ --nova-diff-added-bg: rgba(63, 185, 80, 0.2);
84
+ --nova-diff-removed-bg: rgba(248, 81, 73, 0.18);
85
+ --nova-suggestion-lift: 45%;
86
+ --nova-code-bg: #161b22;
87
+ --nova-quote: #30363d;
88
+ --nova-selection: rgba(56, 139, 253, 0.3);
89
+ --nova-shadow: 0 8px 24px rgba(1, 4, 9, 0.6), 0 0 0 1px #30363d;
90
+ --nova-backdrop: rgba(1, 4, 9, 0.7);
91
+ --nova-tooltip-bg: #e6edf3;
92
+ --nova-tooltip-fg: #0d1117;
93
+ color-scheme: dark;
94
+ }
95
+
96
+ @media (prefers-color-scheme: dark) {
97
+ .nova-editor:not([data-theme='light'] *) {
98
+ --nova-bg: #0d1117;
99
+ --nova-fg: #e6edf3;
100
+ --nova-muted: #8d96a0;
101
+ --nova-subtle: #6e7681;
102
+ --nova-border: #30363d;
103
+ --nova-border-strong: #484f58;
104
+ --nova-toolbar-bg: #161b22;
105
+ --nova-surface: #161b22;
106
+ --nova-hover: #21262d;
107
+ --nova-pressed: #292e36;
108
+ --nova-active: #12263f;
109
+ --nova-active-fg: #58a6ff;
110
+ --nova-accent: #2f81f7;
111
+ --nova-accent-hover: #4493f8;
112
+ --nova-accent-fg: #ffffff;
113
+ --nova-focus: #58a6ff;
114
+ --nova-danger: #f85149;
115
+ --nova-danger-bg: #2d1214;
116
+ --nova-success: #3fb950;
117
+ --nova-success-bg: #0f2a19;
118
+ --nova-warning-bg: #2e2510;
119
+ --nova-comment-bg: rgba(187, 128, 9, 0.25);
120
+ --nova-comment-active-bg: rgba(187, 128, 9, 0.5);
121
+ --nova-comment-line: #bb8009;
122
+ --nova-diff-added-bg: rgba(63, 185, 80, 0.2);
123
+ --nova-diff-removed-bg: rgba(248, 81, 73, 0.18);
124
+ --nova-suggestion-lift: 45%;
125
+ --nova-code-bg: #161b22;
126
+ --nova-quote: #30363d;
127
+ --nova-selection: rgba(56, 139, 253, 0.3);
128
+ --nova-shadow: 0 8px 24px rgba(1, 4, 9, 0.6), 0 0 0 1px #30363d;
129
+ --nova-backdrop: rgba(1, 4, 9, 0.7);
130
+ --nova-tooltip-bg: #e6edf3;
131
+ --nova-tooltip-fg: #0d1117;
132
+ color-scheme: dark;
133
+ }
134
+ }
135
+
136
+ /* ======================= каркас ======================= */
137
+
138
+ .nova-editor {
139
+ position: relative;
140
+ display: flex;
141
+ flex-direction: column;
142
+ min-width: 0;
143
+ max-width: 100%;
144
+ border: 1px solid var(--nova-border);
145
+ border-radius: var(--nova-radius);
146
+ background: var(--nova-bg);
147
+ color: var(--nova-fg);
148
+ font-family: var(--nova-font);
149
+ font-size: var(--nova-ui-font-size);
150
+ -webkit-tap-highlight-color: transparent;
151
+ }
152
+
153
+ .nova-editor *,
154
+ .nova-editor *::before,
155
+ .nova-editor *::after {
156
+ box-sizing: border-box;
157
+ }
158
+
159
+ .nova-editor:focus-within {
160
+ border-color: var(--nova-border-strong);
161
+ }
162
+
163
+ .nova-icon {
164
+ display: inline-flex;
165
+ flex: none;
166
+ }
167
+
168
+ .nova-icon svg {
169
+ display: block;
170
+ }
171
+
172
+ .nova-visually-hidden {
173
+ position: absolute !important;
174
+ width: 1px;
175
+ height: 1px;
176
+ overflow: hidden;
177
+ clip: rect(0 0 0 0);
178
+ white-space: nowrap;
179
+ }
180
+
181
+ .nova-editor :focus-visible {
182
+ outline: 2px solid var(--nova-focus);
183
+ outline-offset: 1px;
184
+ }
185
+
186
+ /* ======================= тулбар ======================= */
187
+
188
+ /* Шапка (менюбар + тулбар) — липкая целиком: тулбар внутри неё не смог бы прилипнуть. */
189
+ .nova-header {
190
+ position: sticky;
191
+ top: 0;
192
+ z-index: 2;
193
+ border-bottom: 1px solid var(--nova-border);
194
+ border-radius: var(--nova-radius) var(--nova-radius) 0 0;
195
+ background: var(--nova-toolbar-bg);
196
+ }
197
+
198
+ .nova-toolbar {
199
+ display: flex;
200
+ flex-wrap: wrap;
201
+ align-items: center;
202
+ gap: 4px;
203
+ padding: 6px;
204
+ background: var(--nova-toolbar-bg);
205
+ }
206
+
207
+ .nova-header > .nova-toolbar {
208
+ border-radius: inherit;
209
+ }
210
+
211
+ /* ---------- менюбар ---------- */
212
+
213
+ .nova-menubar {
214
+ display: flex;
215
+ flex-wrap: wrap;
216
+ gap: 2px;
217
+ padding: 4px 6px 0;
218
+ }
219
+
220
+ .nova-menubar + .nova-toolbar {
221
+ border-radius: 0;
222
+ }
223
+
224
+ .nova-menubar-item {
225
+ height: 28px;
226
+ padding: 0 10px;
227
+ border: 0;
228
+ border-radius: var(--nova-radius-sm);
229
+ background: transparent;
230
+ color: inherit;
231
+ font: inherit;
232
+ cursor: pointer;
233
+ }
234
+
235
+ .nova-menubar-item:hover,
236
+ .nova-menubar-item[aria-expanded='true'] {
237
+ background: var(--nova-hover);
238
+ }
239
+
240
+ /* ---------- режимы inline и distraction-free ---------- */
241
+
242
+ /* Редактор встроен в страницу: без рамки и фона, шрифт и цвет — как у страницы. */
243
+ .nova-editor.nova-mode-inline,
244
+ .nova-editor.nova-mode-distraction-free {
245
+ border: 0;
246
+ background: transparent;
247
+ color: inherit;
248
+ }
249
+
250
+ .nova-mode-inline .nova-prosemirror,
251
+ .nova-mode-distraction-free .nova-prosemirror {
252
+ min-height: 1.6em;
253
+ padding: 4px 6px;
254
+ font-size: inherit;
255
+ }
256
+
257
+ /* Видимая граница редактируемой области при фокусе — иначе непонятно, что текст можно править. */
258
+ .nova-mode-inline.is-focused .nova-content,
259
+ .nova-mode-distraction-free.is-focused .nova-content {
260
+ border-radius: var(--nova-radius-sm);
261
+ box-shadow: 0 0 0 2px var(--nova-focus);
262
+ }
263
+
264
+ /* inline: шапка всплывает над текстом при фокусе. */
265
+ .nova-mode-inline .nova-header {
266
+ position: absolute;
267
+ /* top: 0 от sticky-правила сбрасываем: с top и bottom сразу высота схлопывается. */
268
+ top: auto;
269
+ left: 0;
270
+ right: 0;
271
+ bottom: calc(100% + 8px);
272
+ display: none;
273
+ border: 1px solid var(--nova-border);
274
+ border-radius: var(--nova-radius);
275
+ box-shadow: var(--nova-shadow);
276
+ }
277
+
278
+ .nova-mode-inline.is-focused .nova-header {
279
+ display: block;
280
+ }
281
+
282
+ .nova-form-row {
283
+ flex-direction: row;
284
+ }
285
+
286
+ .nova-form-row > .nova-field {
287
+ flex: 1;
288
+ }
289
+
290
+ .nova-toolbar-sliding {
291
+ flex-wrap: nowrap;
292
+ overflow: hidden;
293
+ /* Ширина тулбара не должна распирать контейнер клиента (grid/flex): иначе при переносе
294
+ групп в «⋯» контейнер сужается, ResizeObserver перезапускает раскладку — цикл. */
295
+ contain: inline-size;
296
+ }
297
+
298
+ .nova-tb-group {
299
+ display: flex;
300
+ flex: none;
301
+ align-items: center;
302
+ gap: 2px;
303
+ }
304
+
305
+ .nova-tb-group + .nova-tb-group {
306
+ padding-left: 4px;
307
+ border-left: 1px solid var(--nova-border);
308
+ }
309
+
310
+ .nova-tb-more {
311
+ margin-left: auto;
312
+ }
313
+
314
+ .nova-tb-overflow {
315
+ position: static;
316
+ border: 0;
317
+ border-radius: 0;
318
+ background: transparent;
319
+ max-width: min(420px, calc(100vw - 32px));
320
+ }
321
+
322
+ .nova-btn {
323
+ display: inline-flex;
324
+ align-items: center;
325
+ justify-content: center;
326
+ gap: 2px;
327
+ min-width: var(--nova-control-size);
328
+ height: var(--nova-control-size);
329
+ padding: 0 7px;
330
+ border: 0;
331
+ border-radius: var(--nova-radius-sm);
332
+ background: transparent;
333
+ color: inherit;
334
+ font: inherit;
335
+ cursor: pointer;
336
+ position: relative;
337
+ white-space: nowrap;
338
+ transition: background-color 0.12s ease;
339
+ }
340
+
341
+ .nova-btn:hover:not(:disabled) {
342
+ background: var(--nova-hover);
343
+ }
344
+
345
+ .nova-btn:active:not(:disabled),
346
+ .nova-btn[aria-expanded='true'] {
347
+ background: var(--nova-pressed);
348
+ }
349
+
350
+ .nova-btn.is-active {
351
+ background: var(--nova-active);
352
+ color: var(--nova-active-fg);
353
+ }
354
+
355
+ .nova-btn:disabled {
356
+ opacity: 0.38;
357
+ cursor: default;
358
+ }
359
+
360
+ .nova-tb-has-label {
361
+ justify-content: space-between;
362
+ gap: 4px;
363
+ padding: 0 6px 0 10px;
364
+ }
365
+
366
+ .nova-tb-label {
367
+ overflow: hidden;
368
+ text-overflow: ellipsis;
369
+ max-width: 14ch;
370
+ text-align: left;
371
+ }
372
+
373
+ .nova-chevron {
374
+ opacity: 0.6;
375
+ }
376
+
377
+ .nova-chevron svg {
378
+ width: 14px;
379
+ height: 14px;
380
+ }
381
+
382
+ .nova-tb-menu:not(.nova-tb-has-label),
383
+ .nova-tb-panel {
384
+ padding: 0 2px 0 5px;
385
+ }
386
+
387
+ .nova-color-bar {
388
+ position: absolute;
389
+ left: 8px;
390
+ bottom: 4px;
391
+ width: 18px;
392
+ height: 3px;
393
+ border-radius: 2px;
394
+ background: currentColor;
395
+ }
396
+
397
+ .nova-color-bar.is-empty {
398
+ background: var(--nova-fg);
399
+ }
400
+
401
+ .nova-tb-panel .nova-icon:first-child svg {
402
+ transform: translateY(-2px);
403
+ }
404
+
405
+ /* ======================= область редактирования ======================= */
406
+
407
+ .nova-content {
408
+ flex: 1;
409
+ overflow: auto;
410
+ /* Ширину задаёт страница, а не содержимое: иначе широкая таблица или длинная строка кода
411
+ раздувают весь редактор на узком экране вместо прокрутки внутри. */
412
+ contain: inline-size;
413
+ min-width: 0;
414
+ }
415
+
416
+ .nova-prosemirror {
417
+ position: relative;
418
+ /* Содержит плавающие (float) картинки внутри области текста. */
419
+ display: flow-root;
420
+ min-height: var(--nova-min-height);
421
+ padding: 16px 20px;
422
+ outline: none;
423
+ line-height: 1.6;
424
+ font-size: var(--nova-content-font-size);
425
+ white-space: pre-wrap;
426
+ word-wrap: break-word;
427
+ font-variant-ligatures: none;
428
+ font-feature-settings: 'liga' 0;
429
+ }
430
+
431
+ .nova-prosemirror:focus-visible {
432
+ outline: none;
433
+ }
434
+
435
+ .nova-prosemirror ::selection {
436
+ background: var(--nova-selection);
437
+ }
438
+
439
+ .nova-prosemirror.nova-empty::before {
440
+ content: attr(data-placeholder);
441
+ position: absolute;
442
+ color: var(--nova-subtle);
443
+ pointer-events: none;
444
+ }
445
+
446
+ .nova-prosemirror > :first-child {
447
+ margin-top: 0;
448
+ }
449
+
450
+ .nova-prosemirror p {
451
+ margin: 0 0 0.75em;
452
+ }
453
+
454
+ .nova-prosemirror h1,
455
+ .nova-prosemirror h2,
456
+ .nova-prosemirror h3,
457
+ .nova-prosemirror h4,
458
+ .nova-prosemirror h5,
459
+ .nova-prosemirror h6 {
460
+ margin: 1.2em 0 0.5em;
461
+ line-height: 1.25;
462
+ }
463
+
464
+ .nova-prosemirror blockquote {
465
+ margin: 0 0 0.75em;
466
+ padding-left: 1em;
467
+ border-left: 3px solid var(--nova-quote);
468
+ color: var(--nova-muted);
469
+ }
470
+
471
+ .nova-prosemirror pre {
472
+ margin: 0 0 0.75em;
473
+ padding: 12px 14px;
474
+ border-radius: var(--nova-radius-sm);
475
+ background: var(--nova-code-bg);
476
+ font-family: var(--nova-mono);
477
+ font-size: 14px;
478
+ white-space: pre-wrap;
479
+ }
480
+
481
+ .nova-prosemirror code {
482
+ padding: 0.1em 0.3em;
483
+ border-radius: 4px;
484
+ background: var(--nova-code-bg);
485
+ font-family: var(--nova-mono);
486
+ font-size: 0.9em;
487
+ }
488
+
489
+ .nova-prosemirror pre code {
490
+ padding: 0;
491
+ background: none;
492
+ font-size: inherit;
493
+ }
494
+
495
+ .nova-prosemirror ul,
496
+ .nova-prosemirror ol {
497
+ margin: 0 0 0.75em;
498
+ padding-left: 1.5em;
499
+ }
500
+
501
+ .nova-prosemirror li > p {
502
+ margin: 0;
503
+ }
504
+
505
+ .nova-prosemirror a {
506
+ color: var(--nova-accent);
507
+ }
508
+
509
+ .nova-prosemirror img {
510
+ max-width: 100%;
511
+ height: auto;
512
+ border-radius: 2px;
513
+ }
514
+
515
+ .nova-prosemirror img[src^='blob:'] {
516
+ opacity: 0.5;
517
+ animation: nova-pulse 1.2s ease-in-out infinite;
518
+ }
519
+
520
+ /* ---------- таблицы ---------- */
521
+
522
+ /* Обёртка от prosemirror-tables: широкая таблица прокручивается, а не ломает вёрстку (мобильные). */
523
+ .nova-prosemirror .tableWrapper {
524
+ margin: 0 0 1em;
525
+ overflow-x: auto;
526
+ }
527
+
528
+ .nova-prosemirror table {
529
+ width: 100%;
530
+ border-collapse: collapse;
531
+ table-layout: fixed;
532
+ overflow: hidden;
533
+ }
534
+
535
+ .nova-prosemirror td,
536
+ .nova-prosemirror th {
537
+ position: relative;
538
+ min-width: 48px;
539
+ padding: 6px 8px;
540
+ border: 1px solid var(--nova-border-strong);
541
+ vertical-align: top;
542
+ box-sizing: border-box;
543
+ }
544
+
545
+ .nova-prosemirror th {
546
+ background: var(--nova-toolbar-bg);
547
+ font-weight: 600;
548
+ text-align: left;
549
+ }
550
+
551
+ .nova-prosemirror td > :last-child,
552
+ .nova-prosemirror th > :last-child {
553
+ margin-bottom: 0;
554
+ }
555
+
556
+ /* Выделение нескольких ячеек (CellSelection). */
557
+ .nova-prosemirror .selectedCell::after {
558
+ content: '';
559
+ position: absolute;
560
+ inset: 0;
561
+ z-index: 1;
562
+ background: var(--nova-selection);
563
+ pointer-events: none;
564
+ }
565
+
566
+ /* Маркер ресайза колонки. */
567
+ .nova-prosemirror .column-resize-handle {
568
+ position: absolute;
569
+ top: 0;
570
+ right: -2px;
571
+ bottom: -2px;
572
+ z-index: 2;
573
+ width: 4px;
574
+ background: var(--nova-accent);
575
+ pointer-events: none;
576
+ }
577
+
578
+ .nova-prosemirror.resize-cursor {
579
+ cursor: col-resize;
580
+ }
581
+
582
+ /* Сетка выбора размера таблицы. */
583
+ .nova-grid-panel {
584
+ display: flex;
585
+ flex-direction: column;
586
+ gap: 6px;
587
+ padding: 6px;
588
+ }
589
+
590
+ .nova-grid {
591
+ display: grid;
592
+ grid-template-columns: repeat(10, 18px);
593
+ gap: 3px;
594
+ }
595
+
596
+ .nova-grid-cell {
597
+ width: 18px;
598
+ height: 18px;
599
+ padding: 0;
600
+ border: 1px solid var(--nova-border-strong);
601
+ border-radius: 3px;
602
+ background: var(--nova-bg);
603
+ cursor: pointer;
604
+ }
605
+
606
+ .nova-grid-cell.is-on {
607
+ border-color: var(--nova-accent);
608
+ background: var(--nova-active);
609
+ }
610
+
611
+ .nova-grid-caption {
612
+ color: var(--nova-muted);
613
+ font-size: 12px;
614
+ text-align: center;
615
+ }
616
+
617
+ /* ---------- картинка: обёртка NodeView, маркеры ресайза, выравнивание ---------- */
618
+
619
+ .nova-image {
620
+ position: relative;
621
+ display: inline-block;
622
+ max-width: 100%;
623
+ line-height: 0;
624
+ vertical-align: bottom;
625
+ }
626
+
627
+ .nova-image img {
628
+ display: block;
629
+ max-width: 100%;
630
+ height: auto;
631
+ }
632
+
633
+ .nova-image[data-align='left'] {
634
+ float: left;
635
+ margin: 0 1em 1em 0;
636
+ }
637
+
638
+ .nova-image[data-align='right'] {
639
+ float: right;
640
+ margin: 0 0 1em 1em;
641
+ }
642
+
643
+ .nova-image[data-align='center'] {
644
+ display: block;
645
+ width: fit-content;
646
+ margin-left: auto;
647
+ margin-right: auto;
648
+ }
649
+
650
+ .nova-image.is-selected img {
651
+ outline: 2px solid var(--nova-accent);
652
+ outline-offset: 1px;
653
+ }
654
+
655
+ .nova-image-handle {
656
+ position: absolute;
657
+ z-index: 1;
658
+ display: none;
659
+ width: 12px;
660
+ height: 12px;
661
+ border: 2px solid var(--nova-bg);
662
+ border-radius: 50%;
663
+ background: var(--nova-accent);
664
+ box-shadow: 0 0 0 1px var(--nova-accent);
665
+ touch-action: none;
666
+ }
667
+
668
+ /* Увеличенная невидимая зона нажатия для пальца. */
669
+ .nova-image-handle::after {
670
+ content: '';
671
+ position: absolute;
672
+ inset: -10px;
673
+ }
674
+
675
+ .nova-image.is-selected .nova-image-handle {
676
+ display: block;
677
+ }
678
+
679
+ .nova-readonly .nova-image-handle {
680
+ display: none !important;
681
+ }
682
+
683
+ .nova-image-handle-nw {
684
+ top: -6px;
685
+ left: -6px;
686
+ cursor: nwse-resize;
687
+ }
688
+
689
+ .nova-image-handle-ne {
690
+ top: -6px;
691
+ right: -6px;
692
+ cursor: nesw-resize;
693
+ }
694
+
695
+ .nova-image-handle-sw {
696
+ bottom: -6px;
697
+ left: -6px;
698
+ cursor: nesw-resize;
699
+ }
700
+
701
+ .nova-image-handle-se {
702
+ right: -6px;
703
+ bottom: -6px;
704
+ cursor: nwse-resize;
705
+ }
706
+
707
+ /* Размер во время ресайза. */
708
+ .nova-image[data-size]::after {
709
+ content: attr(data-size);
710
+ position: absolute;
711
+ right: 6px;
712
+ bottom: 6px;
713
+ padding: 2px 6px;
714
+ border-radius: 4px;
715
+ background: var(--nova-tooltip-bg);
716
+ color: var(--nova-tooltip-fg);
717
+ font: 12px/1.4 var(--nova-font);
718
+ }
719
+
720
+ .nova-image.is-resizing,
721
+ .nova-image.is-resizing * {
722
+ cursor: inherit;
723
+ user-select: none;
724
+ }
725
+
726
+ .nova-prosemirror hr {
727
+ border: 0;
728
+ border-top: 1px solid var(--nova-border);
729
+ margin: 1.5em 0;
730
+ }
731
+
732
+ .nova-prosemirror hr.ProseMirror-selectednode {
733
+ border-top-color: var(--nova-accent);
734
+ }
735
+
736
+ .nova-readonly .nova-prosemirror {
737
+ cursor: default;
738
+ }
739
+
740
+ /* ======================= поиск и замена ======================= */
741
+
742
+ .nova-search {
743
+ display: flex;
744
+ flex-direction: column;
745
+ gap: 6px;
746
+ padding: 8px;
747
+ border-bottom: 1px solid var(--nova-border);
748
+ background: var(--nova-toolbar-bg);
749
+ }
750
+
751
+ .nova-search[hidden] {
752
+ display: none;
753
+ }
754
+
755
+ .nova-search-row {
756
+ display: flex;
757
+ flex-wrap: wrap;
758
+ align-items: center;
759
+ gap: 4px;
760
+ }
761
+
762
+ .nova-search .nova-input {
763
+ flex: 1 1 180px;
764
+ min-width: 0;
765
+ height: 32px;
766
+ }
767
+
768
+ .nova-search .nova-button {
769
+ height: 32px;
770
+ }
771
+
772
+ .nova-search-count {
773
+ min-width: 72px;
774
+ color: var(--nova-muted);
775
+ font-size: 12px;
776
+ text-align: center;
777
+ white-space: nowrap;
778
+ }
779
+
780
+ .nova-search.is-empty .nova-search-count {
781
+ color: var(--nova-danger);
782
+ }
783
+
784
+ .nova-search-toggle {
785
+ font-family: var(--nova-mono);
786
+ font-size: 12px;
787
+ }
788
+
789
+ .nova-search-toggle[aria-pressed='true'] {
790
+ background: var(--nova-active);
791
+ color: var(--nova-active-fg);
792
+ }
793
+
794
+ .nova-prosemirror .nova-search-match {
795
+ border-radius: 2px;
796
+ background: rgba(250, 204, 21, 0.4);
797
+ }
798
+
799
+ .nova-prosemirror .nova-search-current {
800
+ background: rgba(249, 115, 22, 0.55);
801
+ box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.9);
802
+ }
803
+
804
+ /* ======================= полноэкранный режим ======================= */
805
+
806
+ .nova-editor.nova-fullscreen {
807
+ position: fixed;
808
+ inset: 0;
809
+ z-index: calc(var(--nova-z-overlay) - 1);
810
+ max-width: none;
811
+ border: 0;
812
+ border-radius: 0;
813
+ }
814
+
815
+ .nova-fullscreen .nova-header,
816
+ .nova-fullscreen .nova-statusbar {
817
+ border-radius: 0;
818
+ }
819
+
820
+ .nova-fullscreen .nova-content {
821
+ overflow: auto;
822
+ }
823
+
824
+ /* Текст в полноэкранном режиме — удобной для чтения ширины, по центру. */
825
+ .nova-fullscreen .nova-prosemirror {
826
+ max-width: 860px;
827
+ min-height: 100%;
828
+ margin: 0 auto;
829
+ padding: 32px 24px;
830
+ }
831
+
832
+ html.nova-fullscreen-lock,
833
+ html.nova-fullscreen-lock body {
834
+ overflow: hidden;
835
+ }
836
+
837
+ /* ======================= предпросмотр, код, справка ======================= */
838
+
839
+ .nova-dialog.nova-dialog-large {
840
+ width: min(900px, 100%);
841
+ }
842
+
843
+ .nova-preview {
844
+ min-height: 0;
845
+ max-height: 65vh;
846
+ overflow: auto;
847
+ padding: 8px 4px;
848
+ white-space: normal;
849
+ }
850
+
851
+ .nova-source {
852
+ width: 100%;
853
+ height: min(60vh, 520px);
854
+ padding: 10px 12px;
855
+ font-family: var(--nova-mono);
856
+ font-size: 13px;
857
+ line-height: 1.5;
858
+ white-space: pre;
859
+ resize: vertical;
860
+ tab-size: 2;
861
+ }
862
+
863
+ .nova-help {
864
+ display: grid;
865
+ grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
866
+ gap: 8px 24px;
867
+ }
868
+
869
+ .nova-help h3 {
870
+ margin: 8px 0 6px;
871
+ font-size: 13px;
872
+ color: var(--nova-muted);
873
+ text-transform: uppercase;
874
+ letter-spacing: 0.03em;
875
+ }
876
+
877
+ .nova-help-table {
878
+ width: 100%;
879
+ border-collapse: collapse;
880
+ }
881
+
882
+ .nova-help-table td {
883
+ padding: 5px 0;
884
+ border-bottom: 1px solid var(--nova-border);
885
+ }
886
+
887
+ .nova-help-table td:last-child {
888
+ text-align: right;
889
+ }
890
+
891
+ .nova-help kbd {
892
+ padding: 2px 6px;
893
+ border: 1px solid var(--nova-border);
894
+ border-bottom-width: 2px;
895
+ border-radius: 4px;
896
+ background: var(--nova-bg);
897
+ font-family: var(--nova-font);
898
+ font-size: 12px;
899
+ white-space: nowrap;
900
+ }
901
+
902
+ /* ======================= статусбар ======================= */
903
+
904
+ .nova-statusbar {
905
+ display: flex;
906
+ align-items: center;
907
+ justify-content: space-between;
908
+ gap: 12px;
909
+ min-height: 28px;
910
+ padding: 0 12px;
911
+ border-top: 1px solid var(--nova-border);
912
+ border-radius: 0 0 var(--nova-radius) var(--nova-radius);
913
+ color: var(--nova-muted);
914
+ font-size: 12px;
915
+ }
916
+
917
+ .nova-path {
918
+ overflow: hidden;
919
+ text-overflow: ellipsis;
920
+ white-space: nowrap;
921
+ font-family: var(--nova-mono);
922
+ }
923
+
924
+ .nova-wordcount {
925
+ flex: none;
926
+ }
927
+
928
+ /* ======================= оверлеи ======================= */
929
+
930
+ .nova-popover,
931
+ .nova-tooltip,
932
+ .nova-bubble {
933
+ position: fixed;
934
+ z-index: var(--nova-z-overlay);
935
+ font-family: var(--nova-font);
936
+ font-size: var(--nova-ui-font-size);
937
+ }
938
+
939
+ .nova-popover {
940
+ min-width: 160px;
941
+ max-height: min(420px, calc(100vh - 16px));
942
+ overflow: auto;
943
+ padding: 4px;
944
+ border: 1px solid var(--nova-border);
945
+ border-radius: var(--nova-radius);
946
+ background: var(--nova-surface);
947
+ color: var(--nova-fg);
948
+ box-shadow: var(--nova-shadow);
949
+ animation: nova-pop-in 0.12s ease-out;
950
+ }
951
+
952
+ .nova-tb-overflow-popover {
953
+ padding: 2px;
954
+ }
955
+
956
+ /* ---------- меню ---------- */
957
+
958
+ .nova-menu {
959
+ display: flex;
960
+ flex-direction: column;
961
+ min-width: 180px;
962
+ }
963
+
964
+ .nova-menu-item {
965
+ display: flex;
966
+ align-items: center;
967
+ gap: 8px;
968
+ min-height: 32px;
969
+ padding: 4px 10px 4px 6px;
970
+ border: 0;
971
+ border-radius: var(--nova-radius-sm);
972
+ background: transparent;
973
+ color: inherit;
974
+ font: inherit;
975
+ text-align: left;
976
+ cursor: pointer;
977
+ }
978
+
979
+ .nova-menu-item:hover:not(:disabled),
980
+ .nova-menu-item:focus-visible {
981
+ background: var(--nova-hover);
982
+ outline: none;
983
+ }
984
+
985
+ .nova-menu-item:disabled {
986
+ opacity: 0.4;
987
+ cursor: default;
988
+ }
989
+
990
+ .nova-menu-check {
991
+ display: inline-flex;
992
+ width: 18px;
993
+ color: var(--nova-accent);
994
+ }
995
+
996
+ .nova-menu-check svg {
997
+ width: 16px;
998
+ height: 16px;
999
+ }
1000
+
1001
+ .nova-menu-label {
1002
+ flex: 1;
1003
+ line-height: 1.3;
1004
+ }
1005
+
1006
+ .nova-menu-shortcut {
1007
+ margin-left: 16px;
1008
+ color: var(--nova-subtle);
1009
+ font-family: var(--nova-font);
1010
+ font-size: 12px;
1011
+ }
1012
+
1013
+ .nova-menu-sep {
1014
+ height: 1px;
1015
+ margin: 4px 6px;
1016
+ background: var(--nova-border);
1017
+ }
1018
+
1019
+ /* ---------- автокомплитер / слэш-команды ---------- */
1020
+
1021
+ .nova-ac {
1022
+ min-width: 240px;
1023
+ max-height: 320px;
1024
+ }
1025
+
1026
+ .nova-ac[hidden] {
1027
+ display: none;
1028
+ }
1029
+
1030
+ .nova-ac-item {
1031
+ cursor: pointer;
1032
+ }
1033
+
1034
+ .nova-ac-item[aria-selected='true'] {
1035
+ background: var(--nova-hover);
1036
+ box-shadow: inset 2px 0 0 var(--nova-accent);
1037
+ }
1038
+
1039
+ .nova-ac-item .nova-icon {
1040
+ color: var(--nova-muted);
1041
+ }
1042
+
1043
+ .nova-ac-empty {
1044
+ padding: 8px 10px;
1045
+ color: var(--nova-muted);
1046
+ }
1047
+
1048
+ /* ---------- палитра ---------- */
1049
+
1050
+ .nova-color-panel {
1051
+ display: flex;
1052
+ flex-direction: column;
1053
+ gap: 8px;
1054
+ padding: 6px;
1055
+ }
1056
+
1057
+ .nova-swatches {
1058
+ display: grid;
1059
+ grid-template-columns: repeat(8, 24px);
1060
+ gap: 4px;
1061
+ }
1062
+
1063
+ .nova-swatch {
1064
+ display: inline-flex;
1065
+ align-items: center;
1066
+ justify-content: center;
1067
+ width: 24px;
1068
+ height: 24px;
1069
+ padding: 0;
1070
+ border: 1px solid rgba(127, 127, 127, 0.35);
1071
+ border-radius: 4px;
1072
+ background: var(--swatch);
1073
+ color: #fff;
1074
+ cursor: pointer;
1075
+ transition: transform 0.08s ease;
1076
+ }
1077
+
1078
+ .nova-swatch:hover {
1079
+ transform: scale(1.12);
1080
+ }
1081
+
1082
+ .nova-swatch svg {
1083
+ width: 14px;
1084
+ height: 14px;
1085
+ filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.8));
1086
+ }
1087
+
1088
+ .nova-panel-footer {
1089
+ display: flex;
1090
+ justify-content: space-between;
1091
+ gap: 8px;
1092
+ padding-top: 6px;
1093
+ border-top: 1px solid var(--nova-border);
1094
+ }
1095
+
1096
+ .nova-panel-action {
1097
+ display: inline-flex;
1098
+ align-items: center;
1099
+ gap: 6px;
1100
+ height: 30px;
1101
+ padding: 0 8px;
1102
+ border: 0;
1103
+ border-radius: var(--nova-radius-sm);
1104
+ background: transparent;
1105
+ color: inherit;
1106
+ font: inherit;
1107
+ font-size: 13px;
1108
+ cursor: pointer;
1109
+ }
1110
+
1111
+ .nova-panel-action:hover,
1112
+ .nova-panel-action:focus-within {
1113
+ background: var(--nova-hover);
1114
+ }
1115
+
1116
+ .nova-panel-action svg {
1117
+ width: 16px;
1118
+ height: 16px;
1119
+ }
1120
+
1121
+ .nova-color-input {
1122
+ width: 18px;
1123
+ height: 18px;
1124
+ padding: 0;
1125
+ border: 0;
1126
+ background: none;
1127
+ cursor: pointer;
1128
+ }
1129
+
1130
+ /* ---------- подсказка ---------- */
1131
+
1132
+ .nova-tooltip {
1133
+ display: flex;
1134
+ align-items: center;
1135
+ gap: 8px;
1136
+ padding: 4px 8px;
1137
+ border-radius: var(--nova-radius-sm);
1138
+ background: var(--nova-tooltip-bg);
1139
+ color: var(--nova-tooltip-fg);
1140
+ font-size: 12px;
1141
+ line-height: 1.4;
1142
+ pointer-events: none;
1143
+ white-space: nowrap;
1144
+ }
1145
+
1146
+ .nova-tooltip[hidden] {
1147
+ display: none;
1148
+ }
1149
+
1150
+ .nova-tooltip kbd {
1151
+ opacity: 0.7;
1152
+ font-family: var(--nova-font);
1153
+ }
1154
+
1155
+ /* ---------- панель ссылки ---------- */
1156
+
1157
+ .nova-bubble {
1158
+ display: flex;
1159
+ align-items: center;
1160
+ gap: 2px;
1161
+ max-width: min(440px, calc(100vw - 16px));
1162
+ padding: 4px 4px 4px 10px;
1163
+ border: 1px solid var(--nova-border);
1164
+ border-radius: var(--nova-radius);
1165
+ background: var(--nova-surface);
1166
+ color: var(--nova-fg);
1167
+ box-shadow: var(--nova-shadow);
1168
+ }
1169
+
1170
+ .nova-bubble[hidden] {
1171
+ display: none;
1172
+ }
1173
+
1174
+ .nova-bubble > .nova-icon {
1175
+ color: var(--nova-muted);
1176
+ }
1177
+
1178
+ .nova-bubble > .nova-icon svg {
1179
+ width: 14px;
1180
+ height: 14px;
1181
+ }
1182
+
1183
+ .nova-bubble-link {
1184
+ min-width: 0;
1185
+ max-width: 260px;
1186
+ margin: 0 6px;
1187
+ overflow: hidden;
1188
+ text-overflow: ellipsis;
1189
+ white-space: nowrap;
1190
+ color: var(--nova-accent);
1191
+ font-size: 13px;
1192
+ }
1193
+
1194
+ .nova-context-toolbar {
1195
+ padding: 4px;
1196
+ }
1197
+
1198
+ .nova-context-items {
1199
+ display: flex;
1200
+ flex-wrap: wrap;
1201
+ align-items: center;
1202
+ gap: 2px;
1203
+ }
1204
+
1205
+ /* На узком экране панель (например, таблицы) переносится в несколько строк, а не уходит за край. */
1206
+ .nova-context-toolbar {
1207
+ max-width: calc(100vw - 16px);
1208
+ }
1209
+
1210
+ .nova-bubble-sep {
1211
+ width: 1px;
1212
+ height: 20px;
1213
+ margin: 0 2px;
1214
+ background: var(--nova-border);
1215
+ }
1216
+
1217
+ /* ---------- уведомления ---------- */
1218
+
1219
+ .nova-notifications {
1220
+ position: absolute;
1221
+ right: 12px;
1222
+ bottom: 40px;
1223
+ z-index: 3;
1224
+ display: flex;
1225
+ flex-direction: column;
1226
+ align-items: flex-end;
1227
+ gap: 6px;
1228
+ pointer-events: none;
1229
+ }
1230
+
1231
+ .nova-notification {
1232
+ display: flex;
1233
+ align-items: center;
1234
+ gap: 8px;
1235
+ max-width: 360px;
1236
+ padding: 4px 4px 4px 12px;
1237
+ border: 1px solid var(--nova-border);
1238
+ border-radius: var(--nova-radius);
1239
+ background: var(--nova-surface);
1240
+ box-shadow: var(--nova-shadow);
1241
+ pointer-events: auto;
1242
+ animation: nova-pop-in 0.15s ease-out;
1243
+ }
1244
+
1245
+ .nova-notification-error {
1246
+ border-color: var(--nova-danger);
1247
+ background: var(--nova-danger-bg);
1248
+ }
1249
+
1250
+ .nova-notification-success {
1251
+ border-color: var(--nova-success);
1252
+ background: var(--nova-success-bg);
1253
+ }
1254
+
1255
+ .nova-notification-warning {
1256
+ background: var(--nova-warning-bg);
1257
+ }
1258
+
1259
+ .nova-notification .nova-btn {
1260
+ min-width: 28px;
1261
+ height: 28px;
1262
+ padding: 0;
1263
+ }
1264
+
1265
+ .nova-notification .nova-btn svg {
1266
+ width: 14px;
1267
+ height: 14px;
1268
+ }
1269
+
1270
+ /* ---------- диалог ---------- */
1271
+
1272
+ .nova-dialog-backdrop {
1273
+ position: fixed;
1274
+ inset: 0;
1275
+ z-index: var(--nova-z-overlay);
1276
+ display: flex;
1277
+ align-items: center;
1278
+ justify-content: center;
1279
+ padding: 16px;
1280
+ background: var(--nova-backdrop);
1281
+ animation: nova-fade-in 0.12s ease-out;
1282
+ }
1283
+
1284
+ .nova-dialog {
1285
+ display: flex;
1286
+ flex-direction: column;
1287
+ width: min(460px, 100%);
1288
+ max-height: calc(100vh - 32px);
1289
+ border: 1px solid var(--nova-border);
1290
+ border-radius: 12px;
1291
+ background: var(--nova-surface);
1292
+ color: var(--nova-fg);
1293
+ box-shadow: var(--nova-shadow);
1294
+ font-family: var(--nova-font);
1295
+ font-size: var(--nova-ui-font-size);
1296
+ animation: nova-pop-in 0.15s ease-out;
1297
+ }
1298
+
1299
+ .nova-dialog-header {
1300
+ display: flex;
1301
+ align-items: center;
1302
+ justify-content: space-between;
1303
+ gap: 12px;
1304
+ padding: 14px 12px 6px 20px;
1305
+ }
1306
+
1307
+ .nova-dialog-header h2 {
1308
+ margin: 0;
1309
+ font-size: 16px;
1310
+ font-weight: 600;
1311
+ }
1312
+
1313
+ .nova-dialog-body {
1314
+ padding: 8px 20px 4px;
1315
+ overflow: auto;
1316
+ }
1317
+
1318
+ .nova-dialog-footer {
1319
+ display: flex;
1320
+ justify-content: flex-end;
1321
+ gap: 8px;
1322
+ padding: 16px 20px 20px;
1323
+ }
1324
+
1325
+ .nova-dialog-error {
1326
+ margin: 8px 0 0;
1327
+ padding: 8px 10px;
1328
+ border-radius: var(--nova-radius-sm);
1329
+ background: var(--nova-danger-bg);
1330
+ color: var(--nova-danger);
1331
+ }
1332
+
1333
+ .nova-dialog-error[hidden] {
1334
+ display: none;
1335
+ }
1336
+
1337
+ .nova-form {
1338
+ display: flex;
1339
+ flex-direction: column;
1340
+ gap: 14px;
1341
+ }
1342
+
1343
+ .nova-field {
1344
+ display: flex;
1345
+ flex-direction: column;
1346
+ gap: 6px;
1347
+ }
1348
+
1349
+ .nova-field-inline {
1350
+ flex-direction: row;
1351
+ align-items: center;
1352
+ gap: 8px;
1353
+ }
1354
+
1355
+ .nova-label {
1356
+ font-weight: 500;
1357
+ }
1358
+
1359
+ .nova-hint {
1360
+ margin: 0;
1361
+ color: var(--nova-muted);
1362
+ font-size: 12px;
1363
+ }
1364
+
1365
+ .nova-input {
1366
+ width: 100%;
1367
+ height: 36px;
1368
+ padding: 0 10px;
1369
+ border: 1px solid var(--nova-border);
1370
+ border-radius: var(--nova-radius-sm);
1371
+ background: var(--nova-bg);
1372
+ color: inherit;
1373
+ font: inherit;
1374
+ }
1375
+
1376
+ .nova-input:focus {
1377
+ border-color: var(--nova-focus);
1378
+ outline: 2px solid color-mix(in srgb, var(--nova-focus) 30%, transparent);
1379
+ outline-offset: 0;
1380
+ }
1381
+
1382
+ .nova-input[aria-invalid='true'] {
1383
+ border-color: var(--nova-danger);
1384
+ }
1385
+
1386
+ .nova-checkbox {
1387
+ width: 16px;
1388
+ height: 16px;
1389
+ margin: 0;
1390
+ accent-color: var(--nova-accent);
1391
+ }
1392
+
1393
+ .nova-button {
1394
+ height: 34px;
1395
+ padding: 0 14px;
1396
+ border: 1px solid var(--nova-border);
1397
+ border-radius: var(--nova-radius-sm);
1398
+ background: var(--nova-bg);
1399
+ color: inherit;
1400
+ font: inherit;
1401
+ font-weight: 500;
1402
+ cursor: pointer;
1403
+ }
1404
+
1405
+ .nova-button:hover:not(:disabled) {
1406
+ background: var(--nova-hover);
1407
+ }
1408
+
1409
+ .nova-button-primary {
1410
+ border-color: var(--nova-accent);
1411
+ background: var(--nova-accent);
1412
+ color: var(--nova-accent-fg);
1413
+ }
1414
+
1415
+ .nova-button-primary:hover:not(:disabled) {
1416
+ border-color: var(--nova-accent-hover);
1417
+ background: var(--nova-accent-hover);
1418
+ }
1419
+
1420
+ .nova-button:disabled {
1421
+ opacity: 0.6;
1422
+ cursor: progress;
1423
+ }
1424
+
1425
+ .nova-dropzone {
1426
+ display: flex;
1427
+ flex-direction: column;
1428
+ align-items: center;
1429
+ justify-content: center;
1430
+ gap: 8px;
1431
+ min-height: 112px;
1432
+ padding: 16px;
1433
+ border: 1.5px dashed var(--nova-border-strong);
1434
+ border-radius: var(--nova-radius);
1435
+ background: var(--nova-bg);
1436
+ color: var(--nova-muted);
1437
+ font: inherit;
1438
+ text-align: center;
1439
+ cursor: pointer;
1440
+ transition:
1441
+ border-color 0.12s ease,
1442
+ background-color 0.12s ease;
1443
+ }
1444
+
1445
+ .nova-dropzone:hover,
1446
+ .nova-dropzone.is-dragover {
1447
+ border-color: var(--nova-accent);
1448
+ background: var(--nova-active);
1449
+ color: var(--nova-active-fg);
1450
+ }
1451
+
1452
+ .nova-divider {
1453
+ display: flex;
1454
+ align-items: center;
1455
+ gap: 10px;
1456
+ color: var(--nova-subtle);
1457
+ font-size: 12px;
1458
+ text-transform: uppercase;
1459
+ }
1460
+
1461
+ .nova-divider::before,
1462
+ .nova-divider::after {
1463
+ content: '';
1464
+ flex: 1;
1465
+ height: 1px;
1466
+ background: var(--nova-border);
1467
+ }
1468
+
1469
+ /* Узкий экран: диалог — нижний лист, крупнее зоны нажатия. */
1470
+ @media (max-width: 600px) {
1471
+ .nova-dialog-backdrop {
1472
+ align-items: flex-end;
1473
+ padding: 0;
1474
+ }
1475
+
1476
+ .nova-dialog {
1477
+ width: 100%;
1478
+ max-height: 90vh;
1479
+ border-radius: 16px 16px 0 0;
1480
+ animation: nova-sheet-in 0.2s ease-out;
1481
+ }
1482
+
1483
+ .nova-dialog-footer .nova-button {
1484
+ flex: 1;
1485
+ height: 44px;
1486
+ }
1487
+
1488
+ .nova-editor {
1489
+ --nova-control-size: 40px;
1490
+ }
1491
+ }
1492
+
1493
+ @media (pointer: coarse) {
1494
+ .nova-editor {
1495
+ --nova-control-size: 40px;
1496
+ }
1497
+
1498
+ .nova-menu-item {
1499
+ min-height: 44px;
1500
+ }
1501
+ }
1502
+
1503
+ /* ======================= анимации ======================= */
1504
+
1505
+ @keyframes nova-pop-in {
1506
+ from {
1507
+ opacity: 0;
1508
+ transform: translateY(-4px) scale(0.98);
1509
+ }
1510
+ }
1511
+
1512
+ @keyframes nova-fade-in {
1513
+ from {
1514
+ opacity: 0;
1515
+ }
1516
+ }
1517
+
1518
+ @keyframes nova-sheet-in {
1519
+ from {
1520
+ transform: translateY(100%);
1521
+ }
1522
+ }
1523
+
1524
+ @keyframes nova-pulse {
1525
+ 50% {
1526
+ opacity: 0.3;
1527
+ }
1528
+ }
1529
+
1530
+ @media (prefers-reduced-motion: reduce) {
1531
+ .nova-editor *,
1532
+ .nova-editor *::before,
1533
+ .nova-editor *::after {
1534
+ animation: none !important;
1535
+ transition: none !important;
1536
+ }
1537
+ }
1538
+
1539
+ /* ======================= обязательные стили ProseMirror ======================= */
1540
+
1541
+ .ProseMirror-hideselection *::selection {
1542
+ background: transparent;
1543
+ }
1544
+
1545
+ .ProseMirror-hideselection {
1546
+ caret-color: transparent;
1547
+ }
1548
+
1549
+ .ProseMirror-gapcursor {
1550
+ display: none;
1551
+ pointer-events: none;
1552
+ position: absolute;
1553
+ }
1554
+
1555
+ .ProseMirror-gapcursor::after {
1556
+ content: '';
1557
+ display: block;
1558
+ position: absolute;
1559
+ top: -2px;
1560
+ width: 20px;
1561
+ border-top: 1px solid var(--nova-fg);
1562
+ animation: nova-cursor-blink 1.1s steps(2, start) infinite;
1563
+ }
1564
+
1565
+ .ProseMirror-focused .ProseMirror-gapcursor {
1566
+ display: block;
1567
+ }
1568
+
1569
+ @keyframes nova-cursor-blink {
1570
+ to {
1571
+ visibility: hidden;
1572
+ }
1573
+ }
1574
+
1575
+ /* ======================= встроенные плагины ======================= */
1576
+
1577
+ /* charmap, emoticons: панель символов */
1578
+ .nova-symbols {
1579
+ display: flex;
1580
+ flex-direction: column;
1581
+ gap: 8px;
1582
+ width: 300px;
1583
+ max-width: calc(100vw - 32px);
1584
+ padding: 8px;
1585
+ }
1586
+ .nova-symbols-list {
1587
+ max-height: 260px;
1588
+ overflow: auto;
1589
+ }
1590
+ .nova-symbols-title {
1591
+ margin: 6px 0 4px;
1592
+ color: var(--nova-muted);
1593
+ font-size: 12px;
1594
+ }
1595
+ .nova-symbols-grid {
1596
+ display: grid;
1597
+ grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
1598
+ gap: 2px;
1599
+ }
1600
+ .nova-symbols-cell {
1601
+ height: 32px;
1602
+ border: 0;
1603
+ border-radius: 6px;
1604
+ background: transparent;
1605
+ color: var(--nova-fg);
1606
+ font-size: 18px;
1607
+ cursor: pointer;
1608
+ }
1609
+ .nova-symbols-cell:hover {
1610
+ background: var(--nova-hover);
1611
+ }
1612
+ .nova-symbols-cell:focus-visible {
1613
+ outline: 2px solid var(--nova-focus);
1614
+ outline-offset: -2px;
1615
+ }
1616
+ .nova-symbols-empty {
1617
+ padding: 12px;
1618
+ color: var(--nova-muted);
1619
+ text-align: center;
1620
+ }
1621
+
1622
+ /* visualblocks: границы блоков с подписью тега */
1623
+ .nova-visualblocks
1624
+ .nova-prosemirror
1625
+ :is(p, h1, h2, h3, h4, h5, h6, blockquote, ul, ol, pre, table) {
1626
+ position: relative;
1627
+ /* Место под подпись тега, чтобы она не наезжала на текст. */
1628
+ padding-top: 12px;
1629
+ outline: 1px dashed var(--nova-border-strong);
1630
+ outline-offset: 2px;
1631
+ }
1632
+ .nova-visualblocks
1633
+ .nova-prosemirror
1634
+ :is(p, h1, h2, h3, h4, h5, h6, blockquote, ul, ol, pre)::before {
1635
+ position: absolute;
1636
+ top: 0;
1637
+ left: 2px;
1638
+ padding: 0 3px;
1639
+ color: var(--nova-subtle);
1640
+ font:
1641
+ 500 9px/1.4 ui-monospace,
1642
+ monospace;
1643
+ text-transform: uppercase;
1644
+ pointer-events: none;
1645
+ }
1646
+ .nova-visualblocks .nova-prosemirror p::before {
1647
+ content: 'p';
1648
+ }
1649
+ .nova-visualblocks .nova-prosemirror h1::before {
1650
+ content: 'h1';
1651
+ }
1652
+ .nova-visualblocks .nova-prosemirror h2::before {
1653
+ content: 'h2';
1654
+ }
1655
+ .nova-visualblocks .nova-prosemirror h3::before {
1656
+ content: 'h3';
1657
+ }
1658
+ .nova-visualblocks .nova-prosemirror h4::before {
1659
+ content: 'h4';
1660
+ }
1661
+ .nova-visualblocks .nova-prosemirror h5::before {
1662
+ content: 'h5';
1663
+ }
1664
+ .nova-visualblocks .nova-prosemirror h6::before {
1665
+ content: 'h6';
1666
+ }
1667
+ .nova-visualblocks .nova-prosemirror blockquote::before {
1668
+ content: 'blockquote';
1669
+ }
1670
+ .nova-visualblocks .nova-prosemirror ul::before {
1671
+ content: 'ul';
1672
+ }
1673
+ .nova-visualblocks .nova-prosemirror ol::before {
1674
+ content: 'ol';
1675
+ }
1676
+ .nova-visualblocks .nova-prosemirror pre::before {
1677
+ content: 'pre';
1678
+ }
1679
+
1680
+ /* autoresize: прокрутка внутри области текста, когда достигнута maxHeight */
1681
+ .nova-autoresize .nova-content {
1682
+ overflow-y: auto;
1683
+ }
1684
+
1685
+ /* anchor: якорь в тексте — небольшая метка (в HTML это пустой <a id>) */
1686
+ .nova-prosemirror a[id]:not([href]) {
1687
+ display: inline-block;
1688
+ width: 0.7em;
1689
+ height: 1em;
1690
+ margin: 0 1px;
1691
+ vertical-align: -0.1em;
1692
+ border-left: 2px solid var(--nova-accent);
1693
+ border-bottom: 2px solid var(--nova-accent);
1694
+ border-radius: 0 0 0 3px;
1695
+ cursor: pointer;
1696
+ }
1697
+
1698
+ /* pagebreak: линия разрыва страницы */
1699
+ .nova-prosemirror .nova-pagebreak {
1700
+ height: 0;
1701
+ margin: 1.5em 0;
1702
+ border-top: 2px dashed var(--nova-border-strong);
1703
+ cursor: pointer;
1704
+ }
1705
+
1706
+ /* media: видео с прозрачным слоем поверх — клик выделяет блок */
1707
+ .nova-media {
1708
+ position: relative;
1709
+ display: inline-block;
1710
+ max-width: 100%;
1711
+ margin: 0.5em 0;
1712
+ line-height: 0;
1713
+ }
1714
+ .nova-media iframe,
1715
+ .nova-media video {
1716
+ max-width: 100%;
1717
+ border: 0;
1718
+ border-radius: 6px;
1719
+ background: var(--nova-toolbar-bg);
1720
+ }
1721
+ .nova-media-overlay {
1722
+ position: absolute;
1723
+ inset: 0;
1724
+ cursor: pointer;
1725
+ }
1726
+ .nova-prosemirror .ProseMirror-selectednode.nova-media,
1727
+ .nova-prosemirror .ProseMirror-selectednode.nova-pagebreak,
1728
+ .nova-prosemirror a[id]:not([href]).ProseMirror-selectednode {
1729
+ outline: 2px solid var(--nova-focus);
1730
+ outline-offset: 2px;
1731
+ }
1732
+ @media print {
1733
+ .nova-prosemirror .nova-pagebreak {
1734
+ border: 0;
1735
+ margin: 0;
1736
+ }
1737
+ }
1738
+
1739
+ /* Составная кнопка (bullist/numlist с advlist): действие + узкая стрелка с вариантами */
1740
+ .nova-tb-split {
1741
+ display: inline-flex;
1742
+ align-items: center;
1743
+ }
1744
+ .nova-tb-split .nova-tb-split-more {
1745
+ width: 16px;
1746
+ min-width: 16px;
1747
+ padding: 0;
1748
+ margin-left: -2px;
1749
+ }
1750
+
1751
+ /* ---------- Комментарии (плагин comments) ---------- */
1752
+
1753
+ .nova-comment {
1754
+ background: var(--nova-comment-bg);
1755
+ border-bottom: 2px solid var(--nova-comment-line);
1756
+ cursor: pointer;
1757
+ }
1758
+ .nova-comment.is-active {
1759
+ background: var(--nova-comment-active-bg);
1760
+ }
1761
+
1762
+ /* Текст и панель рядом; когда места мало (узкий экран), панель уходит под текст во всю ширину. */
1763
+ .nova-body {
1764
+ display: flex;
1765
+ flex-wrap: wrap;
1766
+ flex: 1;
1767
+ min-height: 0;
1768
+ min-width: 0;
1769
+ }
1770
+ .nova-body > .nova-content {
1771
+ flex: 999 1 360px;
1772
+ }
1773
+
1774
+ .nova-comments {
1775
+ display: flex;
1776
+ flex: 1 1 280px;
1777
+ flex-direction: column;
1778
+ gap: 8px;
1779
+ max-height: 70vh;
1780
+ min-width: 0;
1781
+ padding: 10px;
1782
+ overflow: auto;
1783
+ border-inline-start: 1px solid var(--nova-border);
1784
+ background: var(--nova-toolbar-bg);
1785
+ font-size: 13px;
1786
+ }
1787
+ .nova-comments[hidden] {
1788
+ display: none;
1789
+ }
1790
+ .nova-comments-head {
1791
+ display: flex;
1792
+ align-items: center;
1793
+ gap: 6px;
1794
+ }
1795
+ .nova-comments-title {
1796
+ margin: 0;
1797
+ font-size: 14px;
1798
+ font-weight: 600;
1799
+ }
1800
+ .nova-comments-count:not(:empty) {
1801
+ padding: 0 6px;
1802
+ border-radius: 999px;
1803
+ background: var(--nova-hover);
1804
+ color: var(--nova-muted);
1805
+ font-size: 12px;
1806
+ }
1807
+ .nova-comments-close {
1808
+ margin-inline-start: auto;
1809
+ font-size: 18px;
1810
+ line-height: 1;
1811
+ }
1812
+ .nova-comments-filter {
1813
+ display: inline-flex;
1814
+ align-items: center;
1815
+ gap: 6px;
1816
+ color: var(--nova-muted);
1817
+ }
1818
+ .nova-comments-filter input {
1819
+ accent-color: var(--nova-accent);
1820
+ }
1821
+ .nova-comments-list {
1822
+ display: flex;
1823
+ flex-direction: column;
1824
+ gap: 8px;
1825
+ }
1826
+ .nova-comments-empty {
1827
+ margin: 8px 2px;
1828
+ color: var(--nova-muted);
1829
+ line-height: 1.5;
1830
+ }
1831
+
1832
+ .nova-thread {
1833
+ display: flex;
1834
+ flex-direction: column;
1835
+ gap: 8px;
1836
+ padding: 10px;
1837
+ border: 1px solid var(--nova-border);
1838
+ border-radius: var(--nova-radius);
1839
+ background: var(--nova-surface);
1840
+ cursor: pointer;
1841
+ }
1842
+ .nova-thread.is-active {
1843
+ border-color: var(--nova-comment-line);
1844
+ box-shadow: var(--nova-shadow);
1845
+ cursor: default;
1846
+ }
1847
+ .nova-thread.is-resolved {
1848
+ opacity: 0.75;
1849
+ }
1850
+ .nova-thread:focus-visible {
1851
+ outline: 2px solid var(--nova-focus);
1852
+ outline-offset: 1px;
1853
+ }
1854
+ .nova-thread-quote {
1855
+ margin: 0;
1856
+ padding-inline-start: 8px;
1857
+ border-inline-start: 3px solid var(--nova-comment-line);
1858
+ color: var(--nova-muted);
1859
+ overflow-wrap: anywhere;
1860
+ }
1861
+ .nova-thread-orphan,
1862
+ .nova-thread-resolved {
1863
+ margin: 0;
1864
+ color: var(--nova-muted);
1865
+ font-style: italic;
1866
+ }
1867
+ .nova-thread-tools,
1868
+ .nova-comment-actions {
1869
+ display: flex;
1870
+ flex-wrap: wrap;
1871
+ justify-content: flex-end;
1872
+ gap: 6px;
1873
+ }
1874
+ .nova-thread .nova-button {
1875
+ height: 28px;
1876
+ padding: 0 10px;
1877
+ font-size: 12px;
1878
+ }
1879
+ .nova-thread:not(.is-active):not(:hover):not(:focus-within) .nova-thread-tools {
1880
+ display: none;
1881
+ }
1882
+ .nova-button-danger {
1883
+ color: var(--nova-danger);
1884
+ }
1885
+
1886
+ .nova-comment-item + .nova-comment-item {
1887
+ padding-top: 8px;
1888
+ border-top: 1px solid var(--nova-border);
1889
+ }
1890
+ .nova-comment-head {
1891
+ display: flex;
1892
+ flex-wrap: wrap;
1893
+ align-items: center;
1894
+ gap: 6px;
1895
+ color: var(--nova-muted);
1896
+ font-size: 12px;
1897
+ }
1898
+ .nova-comment-avatar {
1899
+ display: grid;
1900
+ place-items: center;
1901
+ min-width: 22px;
1902
+ height: 22px;
1903
+ padding: 0 4px;
1904
+ border-radius: 999px;
1905
+ color: #fff;
1906
+ font-size: 10px;
1907
+ font-weight: 600;
1908
+ }
1909
+ .nova-comment-author {
1910
+ color: var(--nova-fg);
1911
+ font-weight: 600;
1912
+ }
1913
+ .nova-comment-you {
1914
+ color: var(--nova-muted);
1915
+ font-weight: 400;
1916
+ }
1917
+ .nova-comment-text {
1918
+ margin: 4px 0 0;
1919
+ white-space: pre-wrap;
1920
+ overflow-wrap: anywhere;
1921
+ line-height: 1.45;
1922
+ }
1923
+ .nova-comment-tools {
1924
+ display: flex;
1925
+ gap: 10px;
1926
+ margin-top: 2px;
1927
+ }
1928
+ .nova-link-btn {
1929
+ padding: 0;
1930
+ border: 0;
1931
+ background: none;
1932
+ color: var(--nova-accent);
1933
+ font: inherit;
1934
+ font-size: 12px;
1935
+ cursor: pointer;
1936
+ }
1937
+ .nova-link-btn:hover {
1938
+ text-decoration: underline;
1939
+ }
1940
+ .nova-link-btn:focus-visible {
1941
+ outline: 2px solid var(--nova-focus);
1942
+ outline-offset: 2px;
1943
+ border-radius: 2px;
1944
+ }
1945
+ .nova-comment-composer {
1946
+ display: flex;
1947
+ flex-direction: column;
1948
+ gap: 6px;
1949
+ }
1950
+ .nova-comment-input {
1951
+ width: 100%;
1952
+ min-height: 52px;
1953
+ resize: vertical;
1954
+ font: inherit;
1955
+ }
1956
+
1957
+ /* Узкий редактор: панель под текстом, отделена сверху (порог = 360 + 280 из flex-basis выше). */
1958
+ .nova-body {
1959
+ container-type: inline-size;
1960
+ }
1961
+ @container (max-width: 640px) {
1962
+ .nova-body > .nova-comments {
1963
+ flex-basis: 100%;
1964
+ max-height: none;
1965
+ border-inline-start: 0;
1966
+ border-top: 1px solid var(--nova-border);
1967
+ }
1968
+ }
1969
+
1970
+ /* ---------- Упоминания (плагин mentions и «@» в комментариях) ---------- */
1971
+
1972
+ .nova-prosemirror [data-mention],
1973
+ .nova-comment-mention {
1974
+ padding: 0 2px;
1975
+ border-radius: 4px;
1976
+ background: var(--nova-active);
1977
+ color: var(--nova-active-fg);
1978
+ font-weight: 500;
1979
+ white-space: nowrap;
1980
+ }
1981
+ .nova-mention-wrap {
1982
+ position: relative;
1983
+ }
1984
+ .nova-mention-list {
1985
+ position: absolute;
1986
+ z-index: 2;
1987
+ inset-inline: 0;
1988
+ top: 100%;
1989
+ margin: 4px 0 0;
1990
+ padding: 4px;
1991
+ max-height: 220px;
1992
+ overflow: auto;
1993
+ list-style: none;
1994
+ border: 1px solid var(--nova-border);
1995
+ border-radius: var(--nova-radius);
1996
+ background: var(--nova-surface);
1997
+ box-shadow: var(--nova-shadow);
1998
+ }
1999
+ .nova-mention-list[hidden] {
2000
+ display: none;
2001
+ }
2002
+ .nova-mention-option {
2003
+ display: flex;
2004
+ align-items: center;
2005
+ gap: 8px;
2006
+ padding: 5px 6px;
2007
+ border-radius: var(--nova-radius-sm);
2008
+ cursor: pointer;
2009
+ }
2010
+ .nova-mention-option[aria-selected='true'] {
2011
+ background: var(--nova-active);
2012
+ color: var(--nova-active-fg);
2013
+ }
2014
+ .nova-mention-name {
2015
+ font-weight: 500;
2016
+ }
2017
+ .nova-mention-detail {
2018
+ margin-inline-start: auto;
2019
+ color: var(--nova-muted);
2020
+ font-size: 12px;
2021
+ overflow: hidden;
2022
+ text-overflow: ellipsis;
2023
+ white-space: nowrap;
2024
+ }
2025
+ .nova-mention-empty {
2026
+ padding: 5px 6px;
2027
+ color: var(--nova-muted);
2028
+ }
2029
+
2030
+ /* ---------- История версий (плагин revisionhistory) ---------- */
2031
+
2032
+ .nova-editor.nova-history-open {
2033
+ min-height: 460px;
2034
+ }
2035
+ .nova-history {
2036
+ position: absolute;
2037
+ inset: 0;
2038
+ z-index: 5;
2039
+ display: flex;
2040
+ flex-direction: column;
2041
+ border-radius: inherit;
2042
+ background: var(--nova-bg);
2043
+ container-type: inline-size;
2044
+ }
2045
+ .nova-history-head {
2046
+ display: flex;
2047
+ flex-wrap: wrap;
2048
+ align-items: center;
2049
+ gap: 8px 10px;
2050
+ padding: 8px 10px;
2051
+ border-bottom: 1px solid var(--nova-border);
2052
+ background: var(--nova-toolbar-bg);
2053
+ }
2054
+ .nova-history-title {
2055
+ margin: 0;
2056
+ font-size: 15px;
2057
+ font-weight: 600;
2058
+ }
2059
+ .nova-history-spacer {
2060
+ flex: 1;
2061
+ }
2062
+ .nova-history-legend {
2063
+ display: flex;
2064
+ flex-wrap: wrap;
2065
+ align-items: center;
2066
+ gap: 4px 12px;
2067
+ color: var(--nova-muted);
2068
+ font-size: 12px;
2069
+ }
2070
+ .nova-history-toggle {
2071
+ display: inline-flex;
2072
+ align-items: center;
2073
+ gap: 5px;
2074
+ }
2075
+ .nova-history-toggle input {
2076
+ accent-color: var(--nova-accent);
2077
+ }
2078
+ .nova-history-swatch::before {
2079
+ content: '';
2080
+ display: inline-block;
2081
+ width: 10px;
2082
+ height: 10px;
2083
+ margin-inline-end: 5px;
2084
+ border-radius: 2px;
2085
+ vertical-align: -1px;
2086
+ }
2087
+ .nova-history-swatch.is-added::before {
2088
+ background: var(--nova-diff-added-bg);
2089
+ }
2090
+ .nova-history-swatch.is-removed::before {
2091
+ background: var(--nova-diff-removed-bg);
2092
+ }
2093
+ .nova-history-body {
2094
+ display: flex;
2095
+ flex: 1;
2096
+ min-height: 0;
2097
+ }
2098
+ .nova-history-preview {
2099
+ flex: 1;
2100
+ min-width: 0;
2101
+ overflow: auto;
2102
+ }
2103
+ .nova-history-side {
2104
+ width: 260px;
2105
+ flex: none;
2106
+ overflow: auto;
2107
+ padding: 8px;
2108
+ border-inline-start: 1px solid var(--nova-border);
2109
+ background: var(--nova-toolbar-bg);
2110
+ }
2111
+ .nova-history-status:empty {
2112
+ display: none;
2113
+ }
2114
+ .nova-history-status {
2115
+ margin: 4px 4px 8px;
2116
+ color: var(--nova-muted);
2117
+ font-size: 13px;
2118
+ }
2119
+ .nova-history-list {
2120
+ display: flex;
2121
+ flex-direction: column;
2122
+ gap: 2px;
2123
+ margin: 0;
2124
+ padding: 0;
2125
+ list-style: none;
2126
+ }
2127
+ .nova-history-item {
2128
+ display: flex;
2129
+ flex-direction: column;
2130
+ align-items: flex-start;
2131
+ gap: 2px;
2132
+ width: 100%;
2133
+ padding: 7px 9px;
2134
+ border: 1px solid transparent;
2135
+ border-radius: var(--nova-radius-sm);
2136
+ background: none;
2137
+ color: inherit;
2138
+ font: inherit;
2139
+ font-size: 13px;
2140
+ text-align: start;
2141
+ cursor: pointer;
2142
+ }
2143
+ .nova-history-item:hover {
2144
+ background: var(--nova-hover);
2145
+ }
2146
+ .nova-history-item[aria-current='true'] {
2147
+ border-color: var(--nova-accent);
2148
+ background: var(--nova-active);
2149
+ }
2150
+ .nova-history-item:focus-visible {
2151
+ outline: 2px solid var(--nova-focus);
2152
+ outline-offset: 1px;
2153
+ }
2154
+ .nova-history-time {
2155
+ font-weight: 600;
2156
+ }
2157
+ .nova-history-label {
2158
+ padding: 0 6px;
2159
+ border-radius: 999px;
2160
+ background: var(--nova-hover);
2161
+ font-size: 12px;
2162
+ }
2163
+ .nova-history-authors {
2164
+ color: var(--nova-muted);
2165
+ font-size: 12px;
2166
+ }
2167
+ .nova-diff-added {
2168
+ background: var(--nova-diff-added-bg);
2169
+ text-decoration: underline 2px var(--nova-success);
2170
+ text-underline-offset: 3px;
2171
+ }
2172
+ .nova-diff-removed {
2173
+ background: var(--nova-diff-removed-bg);
2174
+ color: var(--nova-danger);
2175
+ text-decoration: line-through;
2176
+ }
2177
+ div.nova-diff-removed {
2178
+ margin: 0.5em 0;
2179
+ padding: 2px 6px;
2180
+ border-radius: var(--nova-radius-sm);
2181
+ }
2182
+
2183
+ /* Узко: список версий над текстом, полосой. */
2184
+ @container (max-width: 600px) {
2185
+ .nova-history-body {
2186
+ flex-direction: column-reverse;
2187
+ }
2188
+ .nova-history-side {
2189
+ width: auto;
2190
+ max-height: 150px;
2191
+ border-inline-start: 0;
2192
+ border-bottom: 1px solid var(--nova-border);
2193
+ }
2194
+ }
2195
+ /* Кнопки истории — одной группой в первой строке, легенда — второй строкой. */
2196
+ .nova-history-legend {
2197
+ order: 1;
2198
+ flex-basis: 100%;
2199
+ }
2200
+
2201
+ /* ---------- Режим правок (плагин suggestions) ---------- */
2202
+
2203
+ /* Цвет автора приходит в --nova-suggestion (декорация), без неё — зелёный/красный по умолчанию. */
2204
+ .nova-prosemirror ins[data-suggestion] {
2205
+ text-decoration: none;
2206
+ }
2207
+ .nova-prosemirror del[data-suggestion] {
2208
+ text-decoration: none;
2209
+ }
2210
+ .nova-sugg-insert {
2211
+ /* В тёмной теме цвет автора осветляется (--nova-suggestion-lift), чтобы читался на тёмном фоне. */
2212
+ color: color-mix(
2213
+ in srgb,
2214
+ var(--nova-suggestion, var(--nova-success)),
2215
+ white var(--nova-suggestion-lift)
2216
+ );
2217
+ text-decoration: underline 2px;
2218
+ text-underline-offset: 3px;
2219
+ background: color-mix(in srgb, var(--nova-suggestion, var(--nova-success)) 10%, transparent);
2220
+ }
2221
+ .nova-sugg-delete {
2222
+ color: color-mix(
2223
+ in srgb,
2224
+ var(--nova-suggestion, var(--nova-danger)),
2225
+ white var(--nova-suggestion-lift)
2226
+ );
2227
+ text-decoration: line-through 2px;
2228
+ opacity: 0.85;
2229
+ }
2230
+ /* В режиме правок курсор цвета правок — заметно, что ввод станет предложением. */
2231
+ .nova-prosemirror.nova-suggesting {
2232
+ caret-color: var(--nova-success);
2233
+ }