@zhenryx/react-editor 0.0.0-stage → 0.1.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/style.css ADDED
@@ -0,0 +1,1905 @@
1
+ @charset "UTF-8";
2
+ .rre-root {
3
+ --rre-line: #e3e8ef;
4
+ --rre-line-soft: #eef1f4;
5
+ --rre-muted: #6b7280;
6
+ --rre-faint: #9aa3af;
7
+ --rre-ink: #111827;
8
+ --rre-ink-2: #374151;
9
+ --rre-accent: #2563eb;
10
+ --rre-accent-deep: #1d4ed8;
11
+ --rre-accent-soft: #e8f0ff;
12
+ --rre-bg: #f6f7f9;
13
+ display: flex;
14
+ flex: 1;
15
+ flex-direction: column;
16
+ min-height: 0;
17
+ color: var(--rre-ink);
18
+ font-family: inherit;
19
+ }
20
+ .rre-root *,
21
+ .rre-root *::before,
22
+ .rre-root *::after {
23
+ box-sizing: border-box;
24
+ }
25
+ .rre-root {
26
+ /* ---------- 工具栏 ---------- */
27
+ }
28
+ .rre-root .rre-toolbar {
29
+ position: relative;
30
+ display: flex;
31
+ flex: none;
32
+ align-items: center;
33
+ min-height: 62px;
34
+ border-bottom: 1px solid var(--rre-line-soft);
35
+ background: #fff;
36
+ }
37
+ .rre-root .rre-tools-scroll {
38
+ display: flex;
39
+ flex: 1;
40
+ min-width: 0;
41
+ overflow-x: auto;
42
+ overflow-y: hidden;
43
+ scrollbar-width: none;
44
+ }
45
+ .rre-root .rre-tools-scroll::-webkit-scrollbar {
46
+ display: none;
47
+ }
48
+ .rre-root .rre-tools {
49
+ display: flex;
50
+ align-items: stretch;
51
+ gap: 6px;
52
+ margin: 0 auto;
53
+ padding: 6px 8px;
54
+ }
55
+ .rre-root .rre-tool {
56
+ display: inline-flex;
57
+ flex: none;
58
+ flex-direction: column;
59
+ align-items: center;
60
+ justify-content: center;
61
+ gap: 3px;
62
+ min-width: 56px;
63
+ height: 54px;
64
+ padding: 5px 8px;
65
+ border: 0;
66
+ border-radius: 6px;
67
+ background: none;
68
+ color: var(--rre-muted);
69
+ font: inherit;
70
+ font-size: 12px;
71
+ line-height: 1;
72
+ white-space: nowrap;
73
+ cursor: pointer;
74
+ }
75
+ .rre-root .rre-tool svg {
76
+ flex: none;
77
+ width: 18px;
78
+ height: 18px;
79
+ }
80
+ .rre-root .rre-tool.is-strong {
81
+ color: var(--rre-ink);
82
+ }
83
+ .rre-root .rre-tool.is-on {
84
+ background: var(--rre-accent-soft);
85
+ color: var(--rre-accent-deep);
86
+ }
87
+ .rre-root .rre-tool:hover {
88
+ background: var(--rre-accent-soft);
89
+ color: var(--rre-accent-deep);
90
+ }
91
+ .rre-root .rre-sep {
92
+ flex: none;
93
+ align-self: center;
94
+ width: 1px;
95
+ height: 30px;
96
+ margin: 0 8px;
97
+ background: var(--rre-line);
98
+ }
99
+ .rre-root .rre-format-wrap {
100
+ position: relative;
101
+ display: flex;
102
+ flex: none;
103
+ }
104
+ .rre-root .rre-format-label {
105
+ display: inline-flex;
106
+ align-items: center;
107
+ gap: 2px;
108
+ }
109
+ .rre-root .rre-caret {
110
+ flex: none;
111
+ transition: transform 0.15s ease;
112
+ }
113
+ .rre-root .rre-format-wrap .rre-tool.is-on .rre-caret {
114
+ transform: rotate(180deg);
115
+ }
116
+ .rre-root .rre-format-menu {
117
+ position: fixed;
118
+ z-index: 80;
119
+ display: flex;
120
+ flex-direction: column;
121
+ width: 150px;
122
+ padding: 6px;
123
+ border: 1px solid var(--rre-line);
124
+ border-radius: 10px;
125
+ background: #fff;
126
+ box-shadow: 0 14px 34px rgba(20, 35, 80, 0.14);
127
+ }
128
+ .rre-root .rre-format-menu button {
129
+ padding: 8px 10px;
130
+ border: 0;
131
+ border-radius: 6px;
132
+ background: none;
133
+ color: var(--rre-ink-2);
134
+ font: inherit;
135
+ font-size: 12px;
136
+ text-align: left;
137
+ cursor: pointer;
138
+ }
139
+ .rre-root .rre-format-menu button:hover {
140
+ background: var(--rre-accent-soft);
141
+ color: var(--rre-accent-deep);
142
+ }
143
+ .rre-root .rre-right {
144
+ position: absolute;
145
+ top: 50%;
146
+ right: 20px;
147
+ display: flex;
148
+ flex: none;
149
+ align-items: center;
150
+ gap: 6px;
151
+ transform: translateY(-50%);
152
+ }
153
+ .rre-root .rre-switch {
154
+ display: inline-flex;
155
+ flex: none;
156
+ align-items: center;
157
+ height: 34px;
158
+ padding: 0 10px;
159
+ border: 1px solid var(--rre-line);
160
+ border-radius: 7px;
161
+ background: #f8fafc;
162
+ color: var(--rre-muted);
163
+ font: inherit;
164
+ font-size: 11px;
165
+ white-space: nowrap;
166
+ cursor: pointer;
167
+ }
168
+ .rre-root .rre-switch:hover {
169
+ border-color: rgba(37, 99, 235, 0.28);
170
+ color: var(--rre-accent-deep);
171
+ }
172
+ .rre-root .rre-hint {
173
+ flex: none;
174
+ margin-left: 6px;
175
+ color: var(--rre-faint);
176
+ font-size: 10.5px;
177
+ white-space: nowrap;
178
+ }
179
+ .rre-root .rre-hint.is-error {
180
+ color: #b45309;
181
+ }
182
+ .rre-root .rre-link-anchor {
183
+ position: relative;
184
+ display: inline-flex;
185
+ flex: none;
186
+ }
187
+ .rre-root .rre-link-pop {
188
+ position: fixed;
189
+ z-index: 80;
190
+ display: flex;
191
+ flex-direction: column;
192
+ gap: 8px;
193
+ width: 280px;
194
+ padding: 10px;
195
+ border: 1px solid var(--rre-line);
196
+ border-radius: 10px;
197
+ background: #fff;
198
+ box-shadow: 0 14px 34px rgba(20, 35, 80, 0.14);
199
+ }
200
+ .rre-root .rre-input-field {
201
+ height: 32px;
202
+ padding: 0 9px;
203
+ border: 1px solid var(--rre-line);
204
+ border-radius: 7px;
205
+ outline: 0;
206
+ font: inherit;
207
+ font-size: 11.5px;
208
+ }
209
+ .rre-root .rre-input-field:focus {
210
+ border-color: var(--rre-accent);
211
+ }
212
+ .rre-root .rre-link-pop em {
213
+ color: #b45309;
214
+ font-size: 10px;
215
+ font-style: normal;
216
+ }
217
+ .rre-root .rre-link-actions {
218
+ display: flex;
219
+ justify-content: flex-end;
220
+ gap: 8px;
221
+ }
222
+ .rre-root .rre-btn {
223
+ display: inline-flex;
224
+ align-items: center;
225
+ justify-content: center;
226
+ height: 28px;
227
+ padding: 0 12px;
228
+ border: 1px solid var(--rre-line);
229
+ border-radius: 6px;
230
+ background: #f8fafc;
231
+ color: var(--rre-ink-2);
232
+ font: inherit;
233
+ font-size: 11px;
234
+ cursor: pointer;
235
+ }
236
+ .rre-root .rre-btn-primary {
237
+ border: 0;
238
+ background: var(--rre-accent);
239
+ color: #fff;
240
+ font-weight: 600;
241
+ }
242
+ .rre-root {
243
+ /* ---------- 目录 + 正文 ---------- */
244
+ }
245
+ .rre-root .rre-layout {
246
+ position: relative;
247
+ display: flex;
248
+ flex: 1;
249
+ min-height: 0;
250
+ background: var(--rre-bg);
251
+ }
252
+ .rre-root .rre-toc {
253
+ display: flex;
254
+ flex: none;
255
+ flex-direction: column;
256
+ width: 280px;
257
+ margin: 28px 0 28px 24px;
258
+ overflow: auto;
259
+ background: #fff;
260
+ box-shadow: 0 2px 10px rgba(20, 35, 80, 0.06);
261
+ scrollbar-gutter: stable;
262
+ }
263
+ .rre-root .rre-toc-head {
264
+ display: flex;
265
+ flex: none;
266
+ align-items: center;
267
+ justify-content: space-between;
268
+ padding: 16px 12px 12px;
269
+ }
270
+ .rre-root .rre-toc-head b {
271
+ color: var(--rre-ink-2);
272
+ font-size: 16px;
273
+ }
274
+ .rre-root .rre-toc-head button {
275
+ display: inline-flex;
276
+ align-items: center;
277
+ justify-content: center;
278
+ width: 24px;
279
+ height: 24px;
280
+ padding: 0;
281
+ border: 0;
282
+ border-radius: 5px;
283
+ background: none;
284
+ color: var(--rre-faint);
285
+ cursor: pointer;
286
+ }
287
+ .rre-root .rre-toc-head button:hover {
288
+ background: var(--rre-line-soft);
289
+ color: var(--rre-ink-2);
290
+ }
291
+ .rre-root .rre-toc-list {
292
+ display: flex;
293
+ flex-direction: column;
294
+ gap: 1px;
295
+ padding: 0 12px 24px;
296
+ }
297
+ .rre-root .rre-toc-item {
298
+ padding: 8px;
299
+ overflow: hidden;
300
+ border: 0;
301
+ border-left: 2px solid transparent;
302
+ background: none;
303
+ color: var(--rre-muted);
304
+ font: inherit;
305
+ font-size: 14px;
306
+ text-align: left;
307
+ text-overflow: ellipsis;
308
+ white-space: nowrap;
309
+ cursor: pointer;
310
+ }
311
+ .rre-root .rre-toc-item:hover {
312
+ border-left-color: var(--rre-accent);
313
+ background: var(--rre-accent-soft);
314
+ color: var(--rre-accent-deep);
315
+ }
316
+ .rre-root .rre-toc-empty {
317
+ margin: auto 12px;
318
+ color: var(--rre-faint);
319
+ font-size: 14px;
320
+ line-height: 1.8;
321
+ }
322
+ .rre-root .rre-toc-spacer {
323
+ flex: none;
324
+ width: 304px;
325
+ background: transparent;
326
+ }
327
+ .rre-root .rre-toc-open {
328
+ position: absolute;
329
+ top: 28px;
330
+ left: 0;
331
+ z-index: 20;
332
+ display: flex;
333
+ align-items: center;
334
+ justify-content: center;
335
+ width: 54px;
336
+ height: 54px;
337
+ padding: 0;
338
+ border: 0;
339
+ border-radius: 0 12px 12px 0;
340
+ background: #fff;
341
+ color: var(--rre-muted);
342
+ box-shadow: 0 6px 18px rgba(20, 35, 80, 0.1);
343
+ cursor: pointer;
344
+ }
345
+ .rre-root .rre-toc-open:hover {
346
+ color: var(--rre-accent-deep);
347
+ }
348
+ .rre-root .rre-body {
349
+ flex: 1;
350
+ min-height: 0;
351
+ overflow: auto;
352
+ padding: 28px 24px;
353
+ background: var(--rre-bg);
354
+ scrollbar-gutter: stable;
355
+ }
356
+ .rre-root .rre-page {
357
+ width: 100%;
358
+ min-height: 100%;
359
+ max-width: 960px;
360
+ margin: 0 auto;
361
+ padding: 48px 56px 64px;
362
+ background: #fff;
363
+ }
364
+ .rre-root .rre-input {
365
+ min-height: 560px;
366
+ outline: 0;
367
+ color: #24292f;
368
+ font-size: 16px;
369
+ line-height: 1.85;
370
+ word-break: break-word;
371
+ }
372
+ .rre-root .rre-input:empty::before {
373
+ content: attr(data-placeholder);
374
+ color: var(--rre-faint);
375
+ pointer-events: none;
376
+ }
377
+ .rre-root .rre-input h1,
378
+ .rre-root .rre-input h2,
379
+ .rre-root .rre-input h3,
380
+ .rre-root .rre-input h4 {
381
+ margin: 1.2em 0 0.55em;
382
+ color: var(--rre-ink);
383
+ line-height: 1.4;
384
+ }
385
+ .rre-root .rre-input h1 {
386
+ font-size: 30px;
387
+ }
388
+ .rre-root .rre-input h2 {
389
+ font-size: 24px;
390
+ }
391
+ .rre-root .rre-input h3 {
392
+ font-size: 19px;
393
+ }
394
+ .rre-root .rre-input h4 {
395
+ font-size: 16px;
396
+ }
397
+ .rre-root .rre-input p {
398
+ margin: 0 0 12px;
399
+ }
400
+ .rre-root .rre-input ul,
401
+ .rre-root .rre-input ol {
402
+ margin: 0 0 12px;
403
+ padding-left: 24px;
404
+ }
405
+ .rre-root .rre-input ul {
406
+ list-style: disc outside;
407
+ }
408
+ .rre-root .rre-input ol {
409
+ list-style: decimal outside;
410
+ }
411
+ .rre-root .rre-input li {
412
+ display: list-item;
413
+ margin: 3px 0;
414
+ }
415
+ .rre-root .rre-input blockquote {
416
+ margin: 14px 0;
417
+ padding: 2px 14px;
418
+ border-left: 3px solid #bfd3ff;
419
+ background: #f7faff;
420
+ color: #4b5563;
421
+ }
422
+ .rre-root .rre-input pre {
423
+ margin: 14px 0;
424
+ padding: 12px 14px;
425
+ overflow: auto;
426
+ border: 1px solid #e5e7eb;
427
+ border-radius: 8px;
428
+ background: #f8fafc;
429
+ font-size: 12.5px;
430
+ line-height: 1.7;
431
+ }
432
+ .rre-root .rre-input pre code {
433
+ padding: 0;
434
+ background: none;
435
+ color: #24292f;
436
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
437
+ }
438
+ .rre-root .rre-input code {
439
+ padding: 1px 5px;
440
+ border-radius: 4px;
441
+ background: #f1f3f5;
442
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
443
+ font-size: 0.88em;
444
+ }
445
+ .rre-root .rre-input a {
446
+ color: var(--rre-accent-deep);
447
+ text-decoration: underline;
448
+ text-underline-offset: 2px;
449
+ }
450
+ .rre-root .rre-input img {
451
+ display: block;
452
+ max-width: 100%;
453
+ height: auto;
454
+ margin: 14px 0;
455
+ border-radius: 8px;
456
+ }
457
+ .rre-root .rre-input hr {
458
+ margin: 22px 0;
459
+ border: 0;
460
+ border-top: 1px solid #e5e7eb;
461
+ }
462
+ .rre-root .rre-input table {
463
+ width: 100%;
464
+ margin: 14px 0;
465
+ border-collapse: collapse;
466
+ font-size: 13px;
467
+ }
468
+ .rre-root .rre-input th,
469
+ .rre-root .rre-input td {
470
+ padding: 7px 10px;
471
+ border: 1px solid #e5e7eb;
472
+ text-align: left;
473
+ vertical-align: top;
474
+ }
475
+ .rre-root .rre-input th {
476
+ background: #f8fafc;
477
+ font-weight: 600;
478
+ }
479
+ .rre-root .rre-input input[type=checkbox] {
480
+ margin-right: 4px;
481
+ }
482
+ .rre-root .rre-input .kb-code {
483
+ margin: 14px 0;
484
+ overflow: hidden;
485
+ border: 1px solid #e5e7eb;
486
+ border-radius: 8px;
487
+ background: #fff;
488
+ }
489
+ .rre-root .rre-input .kb-code pre {
490
+ margin: 0;
491
+ border: 0;
492
+ border-radius: 0;
493
+ }
494
+ .rre-root .rre-input .kb-code-lang {
495
+ display: block;
496
+ padding: 6px 12px;
497
+ border-bottom: 1px solid #e5e7eb;
498
+ background: #f8fafc;
499
+ color: var(--rre-muted);
500
+ font-size: 11px;
501
+ }
502
+ .rre-root .rre-input .hljs-keyword,
503
+ .rre-root .rre-input .hljs-selector-tag,
504
+ .rre-root .rre-input .hljs-built_in {
505
+ color: #7c3aed;
506
+ }
507
+ .rre-root .rre-input .hljs-string,
508
+ .rre-root .rre-input .hljs-attr {
509
+ color: #047857;
510
+ }
511
+ .rre-root .rre-input .hljs-title,
512
+ .rre-root .rre-input .hljs-function {
513
+ color: #1d4ed8;
514
+ }
515
+ .rre-root .rre-input .hljs-number,
516
+ .rre-root .rre-input .hljs-literal {
517
+ color: #b45309;
518
+ }
519
+ .rre-root .rre-input .hljs-comment {
520
+ color: #9aa3af;
521
+ font-style: italic;
522
+ }
523
+ .rre-root {
524
+ /* 宽屏:目录浮层,纸张按整页居中 */
525
+ }
526
+ .rre-root.is-wide .rre-toc {
527
+ position: absolute;
528
+ top: 28px;
529
+ bottom: 28px;
530
+ left: 24px;
531
+ margin: 0;
532
+ }
533
+ .rre-root.is-wide .rre-toc-spacer {
534
+ display: none;
535
+ }
536
+ .rre-root.is-wide .rre-page {
537
+ width: 54%;
538
+ max-width: 1005px;
539
+ }
540
+ .rre-root.is-narrow .rre-toolbar {
541
+ min-height: 54px;
542
+ }
543
+ .rre-root.is-narrow .rre-tools {
544
+ margin: 0;
545
+ gap: 3px;
546
+ padding: 4px 8px;
547
+ }
548
+ .rre-root.is-narrow .rre-tools-scroll {
549
+ padding-right: 0;
550
+ }
551
+ .rre-root.is-narrow .rre-tool {
552
+ min-width: 46px;
553
+ height: 48px;
554
+ padding: 4px;
555
+ font-size: 10.5px;
556
+ }
557
+ .rre-root.is-narrow .rre-tool svg {
558
+ width: 17px;
559
+ height: 17px;
560
+ }
561
+ .rre-root.is-narrow .rre-right {
562
+ position: static;
563
+ top: auto;
564
+ right: auto;
565
+ order: 2;
566
+ padding: 0 8px 0 10px;
567
+ border-left: 1px solid var(--rre-line-soft);
568
+ background: #fff;
569
+ box-shadow: none;
570
+ transform: none;
571
+ }
572
+ .rre-root.is-narrow .rre-switch {
573
+ height: 32px;
574
+ font-size: 10.5px;
575
+ }
576
+ .rre-root.is-narrow .rre-toc,
577
+ .rre-root.is-narrow .rre-toc-spacer,
578
+ .rre-root.is-narrow .rre-toc-open {
579
+ display: none;
580
+ }
581
+ .rre-root.is-narrow .rre-layout {
582
+ display: block;
583
+ overflow: auto;
584
+ }
585
+ .rre-root.is-narrow .rre-body {
586
+ height: 100%;
587
+ padding: 0;
588
+ }
589
+ .rre-root.is-narrow .rre-page {
590
+ width: 100%;
591
+ max-width: none;
592
+ padding: 20px 16px 40px;
593
+ }
594
+ .rre-root.is-narrow .rre-link-pop {
595
+ width: 260px;
596
+ }
597
+
598
+ .rre-root {
599
+ /* 颜色 / 对齐 / 模板 / 历史 / 视频 / 公式弹层 */
600
+ }
601
+ .rre-root .rre-popover {
602
+ position: fixed;
603
+ z-index: 90;
604
+ padding: 8px;
605
+ border: 1px solid var(--rre-line);
606
+ border-radius: 10px;
607
+ background: #fff;
608
+ box-shadow: 0 14px 34px rgba(20, 35, 80, 0.14);
609
+ }
610
+ .rre-root .rre-palette {
611
+ display: grid;
612
+ grid-template-columns: repeat(5, 24px);
613
+ gap: 6px;
614
+ }
615
+ .rre-root .rre-palette button {
616
+ width: 24px;
617
+ height: 24px;
618
+ padding: 0;
619
+ border: 1px solid rgba(15, 23, 42, 0.12);
620
+ border-radius: 5px;
621
+ cursor: pointer;
622
+ }
623
+ .rre-root .rre-palette button.is-transparent {
624
+ background-image: linear-gradient(45deg, #e5e7eb 25%, transparent 25%), linear-gradient(-45deg, #e5e7eb 25%, transparent 25%);
625
+ background-size: 8px 8px;
626
+ }
627
+ .rre-root .rre-popover-list {
628
+ display: flex;
629
+ flex-direction: column;
630
+ min-width: 120px;
631
+ }
632
+ .rre-root .rre-popover-list button {
633
+ padding: 8px 10px;
634
+ border: 0;
635
+ border-radius: 6px;
636
+ background: none;
637
+ color: var(--rre-ink-2);
638
+ font: inherit;
639
+ font-size: 12px;
640
+ text-align: left;
641
+ cursor: pointer;
642
+ }
643
+ .rre-root .rre-popover-list button:hover {
644
+ background: var(--rre-accent-soft);
645
+ color: var(--rre-accent-deep);
646
+ }
647
+ .rre-root .rre-history {
648
+ display: flex;
649
+ flex-direction: column;
650
+ gap: 2px;
651
+ width: 240px;
652
+ max-height: 260px;
653
+ overflow: auto;
654
+ }
655
+ .rre-root .rre-history b {
656
+ padding: 4px 8px 8px;
657
+ color: var(--rre-ink-2);
658
+ font-size: 12px;
659
+ }
660
+ .rre-root .rre-history button {
661
+ display: flex;
662
+ align-items: center;
663
+ gap: 8px;
664
+ padding: 7px 8px;
665
+ border: 0;
666
+ border-radius: 6px;
667
+ background: none;
668
+ color: var(--rre-muted);
669
+ font: inherit;
670
+ font-size: 11px;
671
+ text-align: left;
672
+ cursor: pointer;
673
+ }
674
+ .rre-root .rre-history button:hover {
675
+ background: var(--rre-accent-soft);
676
+ }
677
+ .rre-root .rre-history button span {
678
+ flex: none;
679
+ color: var(--rre-accent-deep);
680
+ }
681
+ .rre-root .rre-history button em {
682
+ overflow: hidden;
683
+ font-style: normal;
684
+ text-overflow: ellipsis;
685
+ white-space: nowrap;
686
+ }
687
+ .rre-root .rre-history p {
688
+ margin: 6px 8px;
689
+ color: var(--rre-faint);
690
+ font-size: 11px;
691
+ }
692
+ .rre-root .rre-dialog {
693
+ display: flex;
694
+ flex-direction: column;
695
+ gap: 8px;
696
+ width: 280px;
697
+ }
698
+ .rre-root .rre-dialog b {
699
+ color: var(--rre-ink-2);
700
+ font-size: 12px;
701
+ }
702
+ .rre-root .rre-root.is-wide-mode .rre-toc,
703
+ .rre-root .rre-root.is-wide-mode .rre-toc-spacer,
704
+ .rre-root .rre-root.is-wide-mode .rre-toc-open {
705
+ display: none;
706
+ }
707
+ .rre-root .rre-root.is-wide-mode .rre-page {
708
+ width: 100%;
709
+ max-width: none;
710
+ }
711
+ .rre-root .rre-popover-list button {
712
+ display: flex;
713
+ align-items: center;
714
+ gap: 8px;
715
+ }
716
+ .rre-root .rre-popover-ico {
717
+ display: inline-flex;
718
+ flex: none;
719
+ align-items: center;
720
+ justify-content: center;
721
+ width: 18px;
722
+ }
723
+ .rre-root .rre-popover-check {
724
+ display: inline-flex;
725
+ align-items: center;
726
+ margin-left: auto;
727
+ color: var(--rre-accent);
728
+ }
729
+ .rre-root .rre-popover-list button.is-active {
730
+ background: var(--rre-accent-soft);
731
+ color: var(--rre-accent-deep);
732
+ }
733
+ .rre-root .rre-toolbar .rre-tools {
734
+ gap: 4px;
735
+ }
736
+ .rre-root .rre-toolbar .rre-tool {
737
+ min-width: 50px;
738
+ }
739
+ .rre-root .rre-tools-scroll {
740
+ padding-right: 140px;
741
+ }
742
+ .rre-root.is-narrow .rre-tools-scroll {
743
+ padding-right: 0;
744
+ }
745
+ .rre-root .rre-run-mask {
746
+ position: fixed;
747
+ inset: 0;
748
+ z-index: 120;
749
+ display: flex;
750
+ align-items: center;
751
+ justify-content: center;
752
+ background: rgba(15, 23, 42, 0.38);
753
+ }
754
+ .rre-root .rre-run-modal {
755
+ display: flex;
756
+ flex-direction: column;
757
+ gap: 10px;
758
+ width: min(680px, 100vw - 40px);
759
+ padding: 18px;
760
+ border-radius: 12px;
761
+ background: #fff;
762
+ box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
763
+ }
764
+ .rre-root .rre-run-head {
765
+ display: flex;
766
+ align-items: center;
767
+ justify-content: space-between;
768
+ }
769
+ .rre-root .rre-run-head button {
770
+ border: 0;
771
+ background: none;
772
+ color: var(--rre-faint);
773
+ cursor: pointer;
774
+ }
775
+ .rre-root .rre-run-code,
776
+ .rre-root .rre-run-output pre {
777
+ max-height: 140px;
778
+ margin: 0;
779
+ padding: 10px;
780
+ overflow: auto;
781
+ border-radius: 7px;
782
+ background: #0f172a;
783
+ color: #dbeafe;
784
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
785
+ font-size: 11px;
786
+ line-height: 1.6;
787
+ white-space: pre-wrap;
788
+ }
789
+ .rre-root .rre-run-frame {
790
+ width: 100%;
791
+ height: 1px;
792
+ border: 0;
793
+ opacity: 0;
794
+ }
795
+ .rre-root .rre-run-output {
796
+ display: flex;
797
+ flex-direction: column;
798
+ gap: 5px;
799
+ }
800
+ .rre-root .rre-run-output b {
801
+ color: var(--rre-ink-2);
802
+ font-size: 11px;
803
+ }
804
+ .rre-root .rre-run-actions {
805
+ display: flex;
806
+ justify-content: flex-end;
807
+ }
808
+ .rre-root .rre-popover-label {
809
+ display: inline-flex;
810
+ align-items: center;
811
+ gap: 2px;
812
+ }
813
+ .rre-root .rre-tool.is-on .rre-caret {
814
+ transform: rotate(180deg);
815
+ }
816
+
817
+ .rre-root .rre-palette {
818
+ display: flex;
819
+ flex-direction: column;
820
+ gap: 4px;
821
+ }
822
+ .rre-root .rre-palette-row {
823
+ display: flex;
824
+ gap: 4px;
825
+ }
826
+ .rre-root .rre-palette button {
827
+ position: relative;
828
+ width: 26px;
829
+ height: 26px;
830
+ }
831
+ .rre-root .rre-palette button.is-transparent::after {
832
+ content: "";
833
+ position: absolute;
834
+ top: 50%;
835
+ left: 2px;
836
+ right: 2px;
837
+ height: 1.5px;
838
+ background: #ef4444;
839
+ transform: rotate(-45deg);
840
+ }
841
+
842
+ .rre-root .rre-switch {
843
+ gap: 6px;
844
+ }
845
+ .rre-root .rre-switch-icon {
846
+ display: inline-flex;
847
+ align-items: center;
848
+ }
849
+ .rre-root .rre-switch-icon svg {
850
+ width: 16px;
851
+ height: 16px;
852
+ }
853
+
854
+ .rre-root .rre-switch {
855
+ height: 32px;
856
+ padding: 0 10px;
857
+ font-size: 12px;
858
+ }
859
+
860
+ .rre-root .rre-code-mask {
861
+ position: fixed;
862
+ inset: 0;
863
+ z-index: 120;
864
+ display: flex;
865
+ align-items: center;
866
+ justify-content: center;
867
+ padding: 20px;
868
+ background: rgba(15, 23, 42, 0.42);
869
+ }
870
+ .rre-root .rre-code-modal {
871
+ display: flex;
872
+ flex-direction: column;
873
+ width: min(900px, 100%);
874
+ max-height: calc(100vh - 40px);
875
+ overflow: hidden;
876
+ border-radius: 8px;
877
+ background: #fff;
878
+ box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
879
+ }
880
+ .rre-root .rre-code-head {
881
+ display: flex;
882
+ align-items: center;
883
+ justify-content: space-between;
884
+ padding: 14px 18px;
885
+ border-bottom: 1px solid #e5e7eb;
886
+ }
887
+ .rre-root .rre-code-head b {
888
+ color: var(--rre-ink);
889
+ font-size: 16px;
890
+ }
891
+ .rre-root .rre-code-head button {
892
+ border: 0;
893
+ background: none;
894
+ color: var(--rre-muted);
895
+ cursor: pointer;
896
+ }
897
+ .rre-root .rre-code-body {
898
+ display: grid;
899
+ flex: 1;
900
+ grid-template-columns: minmax(0, 1fr) 190px;
901
+ min-height: 0;
902
+ height: 470px;
903
+ }
904
+ .rre-root .rre-code-input {
905
+ width: 100%;
906
+ height: 100%;
907
+ padding: 14px 16px;
908
+ border: 0;
909
+ outline: 0;
910
+ resize: none;
911
+ background: #1e1e1e;
912
+ color: #d4d4d4;
913
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
914
+ font-size: 12.5px;
915
+ line-height: 1.65;
916
+ tab-size: 2;
917
+ }
918
+ .rre-root .rre-code-langs {
919
+ overflow: auto;
920
+ border-left: 1px solid #d7dbe2;
921
+ background: #f7f8fa;
922
+ padding: 4px 0;
923
+ scrollbar-gutter: stable;
924
+ }
925
+ .rre-root .rre-code-langs button {
926
+ display: block;
927
+ width: 100%;
928
+ padding: 7px 12px;
929
+ border: 0;
930
+ background: none;
931
+ color: #333;
932
+ font: inherit;
933
+ font-size: 13px;
934
+ text-align: left;
935
+ white-space: nowrap;
936
+ cursor: pointer;
937
+ }
938
+ .rre-root .rre-code-langs button:hover {
939
+ background: #eef1f5;
940
+ }
941
+ .rre-root .rre-code-langs button.is-on {
942
+ background: #1d4ed8;
943
+ color: #fff;
944
+ }
945
+ .rre-root .rre-code-foot {
946
+ display: flex;
947
+ justify-content: flex-end;
948
+ gap: 10px;
949
+ padding: 14px 18px;
950
+ border-top: 1px solid #e5e7eb;
951
+ }
952
+ @media (max-width: 700px) {
953
+ .rre-root .rre-code-modal {
954
+ height: calc(100vh - 24px);
955
+ max-height: none;
956
+ }
957
+ .rre-root .rre-code-body {
958
+ grid-template-columns: minmax(0, 1fr);
959
+ height: auto;
960
+ }
961
+ .rre-root .rre-code-langs {
962
+ max-height: 140px;
963
+ border-top: 1px solid #d7dbe2;
964
+ border-left: 0;
965
+ }
966
+ }
967
+ @charset "UTF-8";
968
+ .rre-md-root {
969
+ --rre-line: #e3e8ef;
970
+ --rre-line-soft: #eef1f4;
971
+ --rre-muted: #6b7280;
972
+ --rre-faint: #9aa3af;
973
+ --rre-ink: #111827;
974
+ --rre-ink-2: #374151;
975
+ --rre-accent: #2563eb;
976
+ --rre-accent-deep: #1d4ed8;
977
+ --rre-accent-soft: #e8f0ff;
978
+ display: flex;
979
+ flex: 1;
980
+ flex-direction: column;
981
+ min-height: 0;
982
+ color: var(--rre-ink);
983
+ font-family: inherit;
984
+ }
985
+ .rre-md-root *,
986
+ .rre-md-root *::before,
987
+ .rre-md-root *::after {
988
+ box-sizing: border-box;
989
+ }
990
+ .rre-md-root .rre-md-modes {
991
+ display: flex;
992
+ flex: none;
993
+ align-items: center;
994
+ justify-content: space-between;
995
+ gap: 8px;
996
+ padding: 8px 12px;
997
+ border-bottom: 1px solid var(--rre-line-soft);
998
+ background: #fff;
999
+ }
1000
+ .rre-md-root .rre-md-mode-group {
1001
+ display: flex;
1002
+ gap: 4px;
1003
+ min-width: 0;
1004
+ overflow-x: auto;
1005
+ scrollbar-width: none;
1006
+ }
1007
+ .rre-md-root .rre-md-mode-group::-webkit-scrollbar {
1008
+ display: none;
1009
+ }
1010
+ .rre-md-root .rre-md-mode-group button {
1011
+ flex: none;
1012
+ height: 30px;
1013
+ padding: 0 12px;
1014
+ border: 0;
1015
+ border-radius: 7px;
1016
+ background: #f3f5f8;
1017
+ color: var(--rre-muted);
1018
+ font: inherit;
1019
+ font-size: 11.5px;
1020
+ cursor: pointer;
1021
+ }
1022
+ .rre-md-root .rre-md-mode-group button.is-on {
1023
+ background: #1f2937;
1024
+ color: #fff;
1025
+ font-weight: 600;
1026
+ }
1027
+ .rre-md-root .rre-md-switch {
1028
+ display: inline-flex;
1029
+ flex: none;
1030
+ align-items: center;
1031
+ height: 28px;
1032
+ padding: 0 10px;
1033
+ border: 1px solid var(--rre-line);
1034
+ border-radius: 7px;
1035
+ background: #f8fafc;
1036
+ color: var(--rre-muted);
1037
+ font: inherit;
1038
+ font-size: 10.5px;
1039
+ white-space: nowrap;
1040
+ cursor: pointer;
1041
+ }
1042
+ .rre-md-root .rre-md-switch:hover {
1043
+ border-color: rgba(37, 99, 235, 0.28);
1044
+ color: var(--rre-accent-deep);
1045
+ }
1046
+ .rre-md-root .rre-md-toolbar {
1047
+ display: flex;
1048
+ flex: none;
1049
+ align-items: center;
1050
+ min-height: 43px;
1051
+ padding: 6px 12px;
1052
+ border-bottom: 1px solid var(--rre-line-soft);
1053
+ overflow-x: auto;
1054
+ background: #fff;
1055
+ scrollbar-width: none;
1056
+ }
1057
+ .rre-md-root .rre-md-toolbar::-webkit-scrollbar {
1058
+ display: none;
1059
+ }
1060
+ .rre-md-root .rre-md-group {
1061
+ display: flex;
1062
+ flex: none;
1063
+ align-items: center;
1064
+ gap: 2px;
1065
+ }
1066
+ .rre-md-root .rre-md-tool {
1067
+ display: inline-flex;
1068
+ flex: none;
1069
+ align-items: center;
1070
+ gap: 4px;
1071
+ height: 28px;
1072
+ padding: 0 7px;
1073
+ border: 0;
1074
+ border-radius: 6px;
1075
+ background: none;
1076
+ color: var(--rre-muted);
1077
+ font: inherit;
1078
+ font-size: 10.5px;
1079
+ white-space: nowrap;
1080
+ cursor: pointer;
1081
+ }
1082
+ .rre-md-root .rre-md-tool.is-strong {
1083
+ color: var(--rre-ink);
1084
+ }
1085
+ .rre-md-root .rre-md-tool:hover {
1086
+ background: var(--rre-accent-soft);
1087
+ color: var(--rre-accent-deep);
1088
+ }
1089
+ .rre-md-root .rre-md-tool svg {
1090
+ flex: none;
1091
+ width: 14px;
1092
+ height: 14px;
1093
+ }
1094
+ .rre-md-root .rre-md-sep {
1095
+ flex: none;
1096
+ width: 1px;
1097
+ height: 16px;
1098
+ margin: 0 5px;
1099
+ background: var(--rre-line);
1100
+ }
1101
+ .rre-md-root .rre-md-error {
1102
+ flex: none;
1103
+ margin-left: 8px;
1104
+ color: #b45309;
1105
+ font-size: 10.5px;
1106
+ white-space: nowrap;
1107
+ }
1108
+ .rre-md-root .rre-md-split {
1109
+ display: grid;
1110
+ flex: 1;
1111
+ grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr);
1112
+ min-height: 0;
1113
+ }
1114
+ .rre-md-root .rre-md-split.mode-markdown,
1115
+ .rre-md-root .rre-md-split.mode-preview {
1116
+ grid-template-columns: minmax(0, 1fr);
1117
+ }
1118
+ .rre-md-root .rre-md-split.mode-markdown .rre-md-preview,
1119
+ .rre-md-root .rre-md-split.mode-markdown .rre-md-drag,
1120
+ .rre-md-root .rre-md-split.mode-preview .rre-md-source,
1121
+ .rre-md-root .rre-md-split.mode-preview .rre-md-drag {
1122
+ display: none;
1123
+ }
1124
+ .rre-md-root .rre-md-source {
1125
+ display: flex;
1126
+ min-width: 0;
1127
+ overflow: auto;
1128
+ padding: 16px 18px;
1129
+ background: #fbfcfe;
1130
+ scrollbar-gutter: stable;
1131
+ }
1132
+ .rre-md-root .rre-md-input {
1133
+ flex: 1;
1134
+ width: 100%;
1135
+ min-height: 100%;
1136
+ padding: 0;
1137
+ border: 0;
1138
+ outline: 0;
1139
+ resize: none;
1140
+ background: transparent;
1141
+ color: #2b3138;
1142
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
1143
+ font-size: 12px;
1144
+ line-height: 1.8;
1145
+ tab-size: 2;
1146
+ }
1147
+ .rre-md-root .rre-md-input::placeholder {
1148
+ color: var(--rre-faint);
1149
+ }
1150
+ .rre-md-root .rre-md-drag {
1151
+ display: flex;
1152
+ flex-direction: column;
1153
+ align-items: center;
1154
+ justify-content: center;
1155
+ gap: 3px;
1156
+ border-left: 1px solid var(--rre-line-soft);
1157
+ border-right: 1px solid var(--rre-line-soft);
1158
+ background: #fff;
1159
+ }
1160
+ .rre-md-root .rre-md-drag i {
1161
+ width: 2px;
1162
+ height: 2px;
1163
+ border-radius: 50%;
1164
+ background: #c3cad6;
1165
+ }
1166
+ .rre-md-root .rre-md-preview {
1167
+ min-width: 0;
1168
+ overflow: auto;
1169
+ padding: 16px 20px;
1170
+ background: #fff;
1171
+ color: #24292f;
1172
+ font-size: 14px;
1173
+ line-height: 1.8;
1174
+ scrollbar-gutter: stable;
1175
+ word-break: break-word;
1176
+ }
1177
+ .rre-md-root .rre-md-preview.is-empty {
1178
+ display: flex;
1179
+ flex-direction: column;
1180
+ align-items: center;
1181
+ justify-content: center;
1182
+ color: var(--rre-faint);
1183
+ text-align: center;
1184
+ }
1185
+ .rre-md-root .rre-md-preview.is-empty b {
1186
+ margin-top: 5px;
1187
+ color: var(--rre-muted);
1188
+ }
1189
+ .rre-md-root .rre-md-preview.is-empty p {
1190
+ margin: 0;
1191
+ font-size: 10.5px;
1192
+ }
1193
+ .rre-md-root .rre-md-empty-ico {
1194
+ display: inline-flex;
1195
+ align-items: center;
1196
+ justify-content: center;
1197
+ width: 42px;
1198
+ height: 42px;
1199
+ border-radius: 50%;
1200
+ background: #eaf1ff;
1201
+ color: var(--rre-accent);
1202
+ }
1203
+ .rre-md-root .rre-md-preview h1,
1204
+ .rre-md-root .rre-md-preview h2,
1205
+ .rre-md-root .rre-md-preview h3,
1206
+ .rre-md-root .rre-md-preview h4 {
1207
+ margin: 1.1em 0 0.5em;
1208
+ line-height: 1.4;
1209
+ }
1210
+ .rre-md-root .rre-md-preview h1 {
1211
+ font-size: 26px;
1212
+ }
1213
+ .rre-md-root .rre-md-preview h2 {
1214
+ font-size: 21px;
1215
+ }
1216
+ .rre-md-root .rre-md-preview h3 {
1217
+ font-size: 17px;
1218
+ }
1219
+ .rre-md-root .rre-md-preview h4 {
1220
+ font-size: 15px;
1221
+ }
1222
+ .rre-md-root .rre-md-preview p {
1223
+ margin: 0 0 12px;
1224
+ }
1225
+ .rre-md-root .rre-md-preview ul,
1226
+ .rre-md-root .rre-md-preview ol {
1227
+ margin: 0 0 12px;
1228
+ padding-left: 24px;
1229
+ }
1230
+ .rre-md-root .rre-md-preview ul {
1231
+ list-style: disc outside;
1232
+ }
1233
+ .rre-md-root .rre-md-preview ol {
1234
+ list-style: decimal outside;
1235
+ }
1236
+ .rre-md-root .rre-md-preview li {
1237
+ display: list-item;
1238
+ margin: 3px 0;
1239
+ }
1240
+ .rre-md-root .rre-md-preview blockquote {
1241
+ margin: 14px 0;
1242
+ padding: 2px 14px;
1243
+ border-left: 3px solid #bfd3ff;
1244
+ background: #f7faff;
1245
+ color: #4b5563;
1246
+ }
1247
+ .rre-md-root .rre-md-preview pre {
1248
+ margin: 14px 0;
1249
+ padding: 12px 14px;
1250
+ overflow: auto;
1251
+ border: 1px solid #e5e7eb;
1252
+ border-radius: 8px;
1253
+ background: #f8fafc;
1254
+ font-size: 12.5px;
1255
+ line-height: 1.7;
1256
+ }
1257
+ .rre-md-root .rre-md-preview pre code {
1258
+ padding: 0;
1259
+ background: none;
1260
+ color: #24292f;
1261
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
1262
+ }
1263
+ .rre-md-root .rre-md-preview code {
1264
+ padding: 1px 5px;
1265
+ border-radius: 4px;
1266
+ background: #f1f3f5;
1267
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
1268
+ font-size: 0.88em;
1269
+ }
1270
+ .rre-md-root .rre-md-preview a {
1271
+ color: var(--rre-accent-deep);
1272
+ text-decoration: underline;
1273
+ text-underline-offset: 2px;
1274
+ }
1275
+ .rre-md-root .rre-md-preview img {
1276
+ display: block;
1277
+ max-width: 100%;
1278
+ height: auto;
1279
+ margin: 14px 0;
1280
+ border-radius: 8px;
1281
+ }
1282
+ .rre-md-root .rre-md-preview hr {
1283
+ margin: 22px 0;
1284
+ border: 0;
1285
+ border-top: 1px solid #e5e7eb;
1286
+ }
1287
+ .rre-md-root .rre-md-preview table {
1288
+ width: 100%;
1289
+ margin: 14px 0;
1290
+ border-collapse: collapse;
1291
+ font-size: 13px;
1292
+ }
1293
+ .rre-md-root .rre-md-preview th,
1294
+ .rre-md-root .rre-md-preview td {
1295
+ padding: 7px 10px;
1296
+ border: 1px solid #e5e7eb;
1297
+ text-align: left;
1298
+ vertical-align: top;
1299
+ }
1300
+ .rre-md-root .rre-md-preview th {
1301
+ background: #f8fafc;
1302
+ font-weight: 600;
1303
+ }
1304
+ .rre-md-root .rre-md-preview .kb-code {
1305
+ margin: 14px 0;
1306
+ overflow: hidden;
1307
+ border: 1px solid #e5e7eb;
1308
+ border-radius: 8px;
1309
+ background: #fff;
1310
+ }
1311
+ .rre-md-root .rre-md-preview .kb-code pre {
1312
+ margin: 0;
1313
+ border: 0;
1314
+ border-radius: 0;
1315
+ }
1316
+ .rre-md-root .rre-md-preview .kb-code-lang {
1317
+ display: block;
1318
+ padding: 6px 12px;
1319
+ border-bottom: 1px solid #e5e7eb;
1320
+ background: #f8fafc;
1321
+ color: var(--rre-muted);
1322
+ font-size: 11px;
1323
+ }
1324
+ .rre-md-root .rre-md-preview .hljs-keyword,
1325
+ .rre-md-root .rre-md-preview .hljs-selector-tag,
1326
+ .rre-md-root .rre-md-preview .hljs-built_in {
1327
+ color: #7c3aed;
1328
+ }
1329
+ .rre-md-root .rre-md-preview .hljs-string,
1330
+ .rre-md-root .rre-md-preview .hljs-attr {
1331
+ color: #047857;
1332
+ }
1333
+ .rre-md-root .rre-md-preview .hljs-title,
1334
+ .rre-md-root .rre-md-preview .hljs-function {
1335
+ color: #1d4ed8;
1336
+ }
1337
+ .rre-md-root .rre-md-preview .hljs-number,
1338
+ .rre-md-root .rre-md-preview .hljs-literal {
1339
+ color: #b45309;
1340
+ }
1341
+ .rre-md-root .rre-md-preview .hljs-comment {
1342
+ color: #9aa3af;
1343
+ font-style: italic;
1344
+ }
1345
+ .rre-md-root.is-narrow .rre-md-split {
1346
+ grid-template-columns: minmax(0, 1fr);
1347
+ }
1348
+ .rre-md-root.is-narrow .rre-md-drag {
1349
+ display: none;
1350
+ }
1351
+ .rre-md-root.is-narrow .rre-md-source {
1352
+ border-bottom: 1px solid var(--rre-line-soft);
1353
+ }
1354
+ .rre-md-root.is-narrow .rre-md-source,
1355
+ .rre-md-root.is-narrow .rre-md-preview {
1356
+ padding: 14px 16px;
1357
+ }
1358
+
1359
+ .rre-md-root .rre-md-tab-icon {
1360
+ display: inline-flex;
1361
+ align-items: center;
1362
+ margin-right: 6px;
1363
+ }
1364
+ .rre-md-root .rre-md-main {
1365
+ position: relative;
1366
+ display: flex;
1367
+ flex: 1;
1368
+ min-height: 0;
1369
+ }
1370
+ .rre-md-root .rre-md-split {
1371
+ flex: 1;
1372
+ }
1373
+ .rre-md-root .rre-md-menu-btn {
1374
+ display: inline-flex;
1375
+ flex: none;
1376
+ align-items: center;
1377
+ gap: 4px;
1378
+ height: 28px;
1379
+ padding: 0 7px;
1380
+ border: 0;
1381
+ border-radius: 6px;
1382
+ background: none;
1383
+ color: var(--rre-muted);
1384
+ font: inherit;
1385
+ font-size: 12px;
1386
+ white-space: nowrap;
1387
+ cursor: pointer;
1388
+ }
1389
+ .rre-md-root .rre-md-menu-btn svg {
1390
+ flex: none;
1391
+ width: 15px;
1392
+ height: 15px;
1393
+ }
1394
+ .rre-md-root .rre-md-menu-btn:hover, .rre-md-root .rre-md-menu-btn.is-on {
1395
+ background: var(--rre-accent-soft);
1396
+ color: var(--rre-accent-deep);
1397
+ }
1398
+ .rre-md-root .rre-md-caret {
1399
+ margin-left: 2px;
1400
+ }
1401
+ .rre-md-root .rre-md-tool.is-disabled {
1402
+ color: #c3c9d2;
1403
+ cursor: not-allowed;
1404
+ }
1405
+ .rre-md-root .rre-md-menu {
1406
+ position: fixed;
1407
+ z-index: 90;
1408
+ display: flex;
1409
+ flex-direction: column;
1410
+ min-width: 130px;
1411
+ padding: 6px;
1412
+ border: 1px solid var(--rre-line);
1413
+ border-radius: 9px;
1414
+ background: #fff;
1415
+ box-shadow: 0 14px 34px rgba(20, 35, 80, 0.14);
1416
+ }
1417
+ .rre-md-root .rre-md-menu > button {
1418
+ padding: 8px 10px;
1419
+ border: 0;
1420
+ border-radius: 6px;
1421
+ background: none;
1422
+ color: var(--rre-ink-2);
1423
+ font: inherit;
1424
+ font-size: 12px;
1425
+ text-align: left;
1426
+ cursor: pointer;
1427
+ }
1428
+ .rre-md-root .rre-md-menu > button:hover {
1429
+ background: var(--rre-accent-soft);
1430
+ color: var(--rre-accent-deep);
1431
+ }
1432
+ .rre-md-root .rre-md-lang-list {
1433
+ display: grid;
1434
+ grid-template-columns: repeat(3, minmax(70px, 1fr));
1435
+ gap: 2px;
1436
+ max-height: 260px;
1437
+ overflow: auto;
1438
+ }
1439
+ .rre-md-root .rre-md-lang-list button {
1440
+ padding: 7px 8px;
1441
+ border: 0;
1442
+ border-radius: 5px;
1443
+ background: none;
1444
+ color: var(--rre-ink-2);
1445
+ font: inherit;
1446
+ font-size: 11px;
1447
+ text-align: left;
1448
+ cursor: pointer;
1449
+ }
1450
+ .rre-md-root .rre-md-lang-list button:hover {
1451
+ background: var(--rre-accent-soft);
1452
+ color: var(--rre-accent-deep);
1453
+ }
1454
+ .rre-md-root .rre-md-rail {
1455
+ display: flex;
1456
+ flex: none;
1457
+ flex-direction: column;
1458
+ width: 56px;
1459
+ border-left: 1px solid var(--rre-line-soft);
1460
+ background: #fff;
1461
+ }
1462
+ .rre-md-root .rre-md-rail-item {
1463
+ display: flex;
1464
+ flex-direction: column;
1465
+ align-items: center;
1466
+ gap: 4px;
1467
+ padding: 10px 2px;
1468
+ border: 0;
1469
+ border-left: 2px solid transparent;
1470
+ background: none;
1471
+ color: var(--rre-muted);
1472
+ font: inherit;
1473
+ cursor: pointer;
1474
+ }
1475
+ .rre-md-root .rre-md-rail-item svg {
1476
+ width: 18px;
1477
+ height: 18px;
1478
+ }
1479
+ .rre-md-root .rre-md-rail-item em {
1480
+ font-size: 10px;
1481
+ font-style: normal;
1482
+ }
1483
+ .rre-md-root .rre-md-rail-item:hover, .rre-md-root .rre-md-rail-item.is-on {
1484
+ border-left-color: var(--rre-accent);
1485
+ background: #f7f9ff;
1486
+ color: var(--rre-accent-deep);
1487
+ }
1488
+ .rre-md-root .rre-md-rail-open {
1489
+ flex: none;
1490
+ width: 26px;
1491
+ border: 0;
1492
+ border-left: 1px solid var(--rre-line-soft);
1493
+ background: #fff;
1494
+ color: var(--rre-muted);
1495
+ font-size: 18px;
1496
+ cursor: pointer;
1497
+ }
1498
+ .rre-md-root .rre-md-side-panel {
1499
+ position: absolute;
1500
+ top: 0;
1501
+ right: 56px;
1502
+ bottom: 0;
1503
+ z-index: 30;
1504
+ width: 260px;
1505
+ overflow: auto;
1506
+ padding: 12px;
1507
+ border-left: 1px solid var(--rre-line);
1508
+ background: #fff;
1509
+ box-shadow: -12px 0 30px rgba(20, 35, 80, 0.08);
1510
+ }
1511
+ .rre-md-root .rre-md-side-head {
1512
+ display: flex;
1513
+ align-items: center;
1514
+ justify-content: space-between;
1515
+ padding: 0 2px 10px;
1516
+ }
1517
+ .rre-md-root .rre-md-side-head b {
1518
+ font-size: 13px;
1519
+ }
1520
+ .rre-md-root .rre-md-side-head button {
1521
+ border: 0;
1522
+ background: none;
1523
+ color: var(--rre-faint);
1524
+ font-size: 18px;
1525
+ cursor: pointer;
1526
+ }
1527
+ .rre-md-root .rre-md-outline-item {
1528
+ display: block;
1529
+ width: 100%;
1530
+ padding: 7px 8px;
1531
+ overflow: hidden;
1532
+ border: 0;
1533
+ border-left: 2px solid transparent;
1534
+ background: none;
1535
+ color: var(--rre-muted);
1536
+ font: inherit;
1537
+ font-size: 12px;
1538
+ text-align: left;
1539
+ text-overflow: ellipsis;
1540
+ white-space: nowrap;
1541
+ cursor: pointer;
1542
+ }
1543
+ .rre-md-root .rre-md-outline-item:hover {
1544
+ border-left-color: var(--rre-accent);
1545
+ background: var(--rre-accent-soft);
1546
+ color: var(--rre-accent-deep);
1547
+ }
1548
+ .rre-md-root .rre-md-side-empty {
1549
+ padding: 8px;
1550
+ color: var(--rre-faint);
1551
+ font-size: 12px;
1552
+ }
1553
+ .rre-md-root .rre-md-syntax-list {
1554
+ display: flex;
1555
+ flex-direction: column;
1556
+ gap: 10px;
1557
+ }
1558
+ .rre-md-root .rre-md-syntax-list div {
1559
+ display: flex;
1560
+ flex-direction: column;
1561
+ gap: 3px;
1562
+ }
1563
+ .rre-md-root .rre-md-syntax-list b {
1564
+ color: var(--rre-ink-2);
1565
+ font-size: 11px;
1566
+ }
1567
+ .rre-md-root .rre-md-syntax-list code {
1568
+ padding: 6px 8px;
1569
+ border-radius: 5px;
1570
+ background: #f6f8fa;
1571
+ color: #374151;
1572
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
1573
+ font-size: 10.5px;
1574
+ white-space: pre-wrap;
1575
+ }
1576
+ .rre-md-root .rre-md-modal-mask {
1577
+ position: fixed;
1578
+ inset: 0;
1579
+ z-index: 120;
1580
+ display: flex;
1581
+ align-items: center;
1582
+ justify-content: center;
1583
+ background: rgba(15, 23, 42, 0.38);
1584
+ }
1585
+ .rre-md-root .rre-md-modal {
1586
+ display: flex;
1587
+ flex-direction: column;
1588
+ gap: 10px;
1589
+ width: min(420px, 100vw - 40px);
1590
+ padding: 18px;
1591
+ border-radius: 12px;
1592
+ background: #fff;
1593
+ box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
1594
+ }
1595
+ .rre-md-root .rre-md-modal > b {
1596
+ color: var(--rre-ink);
1597
+ font-size: 15px;
1598
+ }
1599
+ .rre-md-root .rre-md-modal > p {
1600
+ margin: 0;
1601
+ color: var(--rre-muted);
1602
+ font-size: 12px;
1603
+ line-height: 1.7;
1604
+ }
1605
+ .rre-md-root .rre-md-field {
1606
+ height: 34px;
1607
+ padding: 0 10px;
1608
+ border: 1px solid var(--rre-line);
1609
+ border-radius: 7px;
1610
+ outline: 0;
1611
+ font: inherit;
1612
+ font-size: 12px;
1613
+ }
1614
+ .rre-md-root .rre-md-field:focus {
1615
+ border-color: var(--rre-accent);
1616
+ }
1617
+ .rre-md-root .rre-md-modal-actions {
1618
+ display: flex;
1619
+ justify-content: flex-end;
1620
+ gap: 8px;
1621
+ }
1622
+ .rre-md-root .rre-md-btn {
1623
+ height: 32px;
1624
+ padding: 0 14px;
1625
+ border: 1px solid var(--rre-line);
1626
+ border-radius: 7px;
1627
+ background: #f8fafc;
1628
+ color: var(--rre-ink-2);
1629
+ font: inherit;
1630
+ font-size: 12px;
1631
+ cursor: pointer;
1632
+ }
1633
+ .rre-md-root .rre-md-btn.is-primary {
1634
+ border: 0;
1635
+ background: var(--rre-accent);
1636
+ color: #fff;
1637
+ font-weight: 600;
1638
+ }
1639
+ .rre-md-root .rre-md-btn.is-danger {
1640
+ border: 0;
1641
+ background: #dc2626;
1642
+ color: #fff;
1643
+ font-weight: 600;
1644
+ }
1645
+ .rre-md-root .rre-md-run {
1646
+ width: min(680px, 100vw - 40px);
1647
+ }
1648
+ .rre-md-root .rre-md-run-head {
1649
+ display: flex;
1650
+ align-items: center;
1651
+ justify-content: space-between;
1652
+ }
1653
+ .rre-md-root .rre-md-run-head button {
1654
+ border: 0;
1655
+ background: none;
1656
+ color: var(--rre-faint);
1657
+ font-size: 18px;
1658
+ cursor: pointer;
1659
+ }
1660
+ .rre-md-root .rre-md-run-code,
1661
+ .rre-md-root .rre-md-run-output pre {
1662
+ max-height: 140px;
1663
+ margin: 0;
1664
+ padding: 10px;
1665
+ overflow: auto;
1666
+ border-radius: 7px;
1667
+ background: #0f172a;
1668
+ color: #dbeafe;
1669
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
1670
+ font-size: 11px;
1671
+ line-height: 1.6;
1672
+ white-space: pre-wrap;
1673
+ }
1674
+ .rre-md-root .rre-md-run-frame {
1675
+ width: 100%;
1676
+ height: 1px;
1677
+ border: 0;
1678
+ opacity: 0;
1679
+ }
1680
+ .rre-md-root .rre-md-run-output {
1681
+ display: flex;
1682
+ flex-direction: column;
1683
+ gap: 5px;
1684
+ }
1685
+ .rre-md-root .rre-md-run-output b {
1686
+ color: var(--rre-ink-2);
1687
+ font-size: 11px;
1688
+ }
1689
+ @media (max-width: 900px) {
1690
+ .rre-md-root .rre-md-rail,
1691
+ .rre-md-root .rre-md-rail-open {
1692
+ display: none;
1693
+ }
1694
+ .rre-md-root .rre-md-side-panel {
1695
+ right: 0;
1696
+ width: min(300px, 85vw);
1697
+ }
1698
+ }
1699
+ .rre-md-root {
1700
+ /* 工具栏字号 / 图标放大并居中 */
1701
+ }
1702
+ .rre-md-root .rre-md-toolbar {
1703
+ min-height: 48px;
1704
+ padding: 7px 12px;
1705
+ }
1706
+ .rre-md-root .rre-md-tool {
1707
+ width: 32px;
1708
+ height: 32px;
1709
+ padding: 0;
1710
+ justify-content: center;
1711
+ line-height: 1;
1712
+ }
1713
+ .rre-md-root .rre-md-tool svg {
1714
+ width: 17px;
1715
+ height: 17px;
1716
+ }
1717
+ .rre-md-root .rre-md-menu-btn {
1718
+ height: 32px;
1719
+ padding: 0 9px;
1720
+ gap: 5px;
1721
+ justify-content: center;
1722
+ font-size: 13px;
1723
+ line-height: 1;
1724
+ }
1725
+ .rre-md-root .rre-md-menu-btn > span {
1726
+ line-height: 1;
1727
+ }
1728
+ .rre-md-root .rre-md-menu-btn svg {
1729
+ width: 17px;
1730
+ height: 17px;
1731
+ }
1732
+ .rre-md-root .rre-md-caret {
1733
+ width: 11px;
1734
+ height: 11px;
1735
+ }
1736
+ .rre-md-root .rre-md-mode-group button {
1737
+ height: 32px;
1738
+ padding: 0 14px;
1739
+ font-size: 14px;
1740
+ }
1741
+ .rre-md-root .rre-md-tab-icon svg {
1742
+ width: 18px;
1743
+ height: 18px;
1744
+ }
1745
+ .rre-md-root .rre-md-switch {
1746
+ height: 32px;
1747
+ font-size: 12px;
1748
+ }
1749
+ .rre-md-root .rre-md-sep {
1750
+ height: 18px;
1751
+ margin: 0 7px;
1752
+ }
1753
+
1754
+ .rre-md-root .rre-md-mode-group {
1755
+ gap: 8px;
1756
+ }
1757
+ .rre-md-root .rre-md-mode-group button {
1758
+ display: inline-flex;
1759
+ align-items: center;
1760
+ justify-content: center;
1761
+ gap: 7px;
1762
+ line-height: 1;
1763
+ white-space: nowrap;
1764
+ }
1765
+ .rre-md-root .rre-md-tab-icon {
1766
+ margin-right: 0;
1767
+ }
1768
+ .rre-md-root .rre-md-tab-icon svg {
1769
+ width: 17px;
1770
+ height: 17px;
1771
+ }
1772
+ .rre-md-root .rre-md-switch {
1773
+ gap: 6px;
1774
+ }
1775
+
1776
+ .rre-md-root .rre-md-switch {
1777
+ height: 32px;
1778
+ padding: 0 10px;
1779
+ font-size: 12px;
1780
+ }
1781
+
1782
+ /* HTML 代码块:源码 / 预览 / 复制 / 全屏 / 刷新(doc 页与 MD 预览共用) */
1783
+ .kb-html-code {
1784
+ position: relative;
1785
+ }
1786
+
1787
+ .kb-html-actions {
1788
+ display: flex;
1789
+ align-items: center;
1790
+ gap: 5px;
1791
+ position: absolute;
1792
+ top: 6px;
1793
+ right: 8px;
1794
+ z-index: 2;
1795
+ padding: 2px;
1796
+ border-radius: 5px;
1797
+ background: #f7f8fa;
1798
+ }
1799
+
1800
+ .code-block-header .kb-html-actions {
1801
+ position: static;
1802
+ margin-left: auto;
1803
+ padding: 0;
1804
+ background: transparent;
1805
+ }
1806
+
1807
+ .kb-html-mode {
1808
+ display: inline-flex;
1809
+ overflow: hidden;
1810
+ border: 1px solid #e5e7eb;
1811
+ border-radius: 4px;
1812
+ }
1813
+
1814
+ .kb-html-mode-btn,
1815
+ .kb-html-action-btn {
1816
+ height: 22px;
1817
+ padding: 0 7px;
1818
+ border: 0;
1819
+ background: #fff;
1820
+ color: #6b7280;
1821
+ font: inherit;
1822
+ font-size: 10px;
1823
+ line-height: 1;
1824
+ white-space: nowrap;
1825
+ cursor: pointer;
1826
+ }
1827
+
1828
+ .kb-html-action-btn {
1829
+ border: 1px solid #e5e7eb;
1830
+ border-radius: 4px;
1831
+ }
1832
+
1833
+ .kb-html-mode-btn.is-on {
1834
+ background: #1f2937;
1835
+ color: #fff;
1836
+ }
1837
+
1838
+ .kb-html-action-btn:hover,
1839
+ .kb-html-mode-btn:hover {
1840
+ color: #1d4ed8;
1841
+ }
1842
+
1843
+ .kb-html-preview {
1844
+ background: #fff;
1845
+ }
1846
+
1847
+ .kb-html-preview-frame {
1848
+ display: block;
1849
+ width: 100%;
1850
+ height: 360px;
1851
+ border: 0;
1852
+ background: #fff;
1853
+ }
1854
+
1855
+ .kb-html-full-mask {
1856
+ position: fixed;
1857
+ inset: 0;
1858
+ z-index: 200;
1859
+ display: flex;
1860
+ align-items: center;
1861
+ justify-content: center;
1862
+ padding: 18px;
1863
+ background: rgba(15, 23, 42, 0.55);
1864
+ }
1865
+
1866
+ .kb-html-full-panel {
1867
+ display: flex;
1868
+ flex-direction: column;
1869
+ width: min(1120px, 96vw);
1870
+ height: min(820px, 92vh);
1871
+ overflow: hidden;
1872
+ border-radius: 10px;
1873
+ background: #fff;
1874
+ box-shadow: 0 30px 90px rgba(15, 23, 42, 0.35);
1875
+ }
1876
+
1877
+ .kb-html-full-bar {
1878
+ display: flex;
1879
+ flex: none;
1880
+ align-items: center;
1881
+ justify-content: space-between;
1882
+ padding: 10px 14px;
1883
+ border-bottom: 1px solid #e5e7eb;
1884
+ }
1885
+
1886
+ .kb-html-full-bar b {
1887
+ color: #111827;
1888
+ font-size: 13px;
1889
+ }
1890
+
1891
+ .kb-html-full-panel iframe {
1892
+ flex: 1;
1893
+ width: 100%;
1894
+ border: 0;
1895
+ }
1896
+
1897
+ @media (max-width: 700px) {
1898
+ .kb-html-preview-frame {
1899
+ height: 260px;
1900
+ }
1901
+ .kb-html-actions {
1902
+ top: 4px;
1903
+ right: 6px;
1904
+ }
1905
+ }