@zhenryx/react-editor 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/style.css ADDED
@@ -0,0 +1,1892 @@
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: 128px;
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
+ right: 8px;
563
+ padding: 0;
564
+ background: #fff;
565
+ box-shadow: -10px 0 12px rgba(255, 255, 255, 0.95);
566
+ }
567
+ .rre-root.is-narrow .rre-switch {
568
+ height: 32px;
569
+ font-size: 10.5px;
570
+ }
571
+ .rre-root.is-narrow .rre-toc,
572
+ .rre-root.is-narrow .rre-toc-spacer,
573
+ .rre-root.is-narrow .rre-toc-open {
574
+ display: none;
575
+ }
576
+ .rre-root.is-narrow .rre-layout {
577
+ display: block;
578
+ overflow: auto;
579
+ }
580
+ .rre-root.is-narrow .rre-body {
581
+ height: 100%;
582
+ padding: 0;
583
+ }
584
+ .rre-root.is-narrow .rre-page {
585
+ width: 100%;
586
+ max-width: none;
587
+ padding: 20px 16px 40px;
588
+ }
589
+ .rre-root.is-narrow .rre-link-pop {
590
+ width: 260px;
591
+ }
592
+
593
+ .rre-root {
594
+ /* 颜色 / 对齐 / 模板 / 历史 / 视频 / 公式弹层 */
595
+ }
596
+ .rre-root .rre-popover {
597
+ position: fixed;
598
+ z-index: 90;
599
+ padding: 8px;
600
+ border: 1px solid var(--rre-line);
601
+ border-radius: 10px;
602
+ background: #fff;
603
+ box-shadow: 0 14px 34px rgba(20, 35, 80, 0.14);
604
+ }
605
+ .rre-root .rre-palette {
606
+ display: grid;
607
+ grid-template-columns: repeat(5, 24px);
608
+ gap: 6px;
609
+ }
610
+ .rre-root .rre-palette button {
611
+ width: 24px;
612
+ height: 24px;
613
+ padding: 0;
614
+ border: 1px solid rgba(15, 23, 42, 0.12);
615
+ border-radius: 5px;
616
+ cursor: pointer;
617
+ }
618
+ .rre-root .rre-palette button.is-transparent {
619
+ background-image: linear-gradient(45deg, #e5e7eb 25%, transparent 25%), linear-gradient(-45deg, #e5e7eb 25%, transparent 25%);
620
+ background-size: 8px 8px;
621
+ }
622
+ .rre-root .rre-popover-list {
623
+ display: flex;
624
+ flex-direction: column;
625
+ min-width: 120px;
626
+ }
627
+ .rre-root .rre-popover-list button {
628
+ padding: 8px 10px;
629
+ border: 0;
630
+ border-radius: 6px;
631
+ background: none;
632
+ color: var(--rre-ink-2);
633
+ font: inherit;
634
+ font-size: 12px;
635
+ text-align: left;
636
+ cursor: pointer;
637
+ }
638
+ .rre-root .rre-popover-list button:hover {
639
+ background: var(--rre-accent-soft);
640
+ color: var(--rre-accent-deep);
641
+ }
642
+ .rre-root .rre-history {
643
+ display: flex;
644
+ flex-direction: column;
645
+ gap: 2px;
646
+ width: 240px;
647
+ max-height: 260px;
648
+ overflow: auto;
649
+ }
650
+ .rre-root .rre-history b {
651
+ padding: 4px 8px 8px;
652
+ color: var(--rre-ink-2);
653
+ font-size: 12px;
654
+ }
655
+ .rre-root .rre-history button {
656
+ display: flex;
657
+ align-items: center;
658
+ gap: 8px;
659
+ padding: 7px 8px;
660
+ border: 0;
661
+ border-radius: 6px;
662
+ background: none;
663
+ color: var(--rre-muted);
664
+ font: inherit;
665
+ font-size: 11px;
666
+ text-align: left;
667
+ cursor: pointer;
668
+ }
669
+ .rre-root .rre-history button:hover {
670
+ background: var(--rre-accent-soft);
671
+ }
672
+ .rre-root .rre-history button span {
673
+ flex: none;
674
+ color: var(--rre-accent-deep);
675
+ }
676
+ .rre-root .rre-history button em {
677
+ overflow: hidden;
678
+ font-style: normal;
679
+ text-overflow: ellipsis;
680
+ white-space: nowrap;
681
+ }
682
+ .rre-root .rre-history p {
683
+ margin: 6px 8px;
684
+ color: var(--rre-faint);
685
+ font-size: 11px;
686
+ }
687
+ .rre-root .rre-dialog {
688
+ display: flex;
689
+ flex-direction: column;
690
+ gap: 8px;
691
+ width: 280px;
692
+ }
693
+ .rre-root .rre-dialog b {
694
+ color: var(--rre-ink-2);
695
+ font-size: 12px;
696
+ }
697
+ .rre-root .rre-root.is-wide-mode .rre-toc,
698
+ .rre-root .rre-root.is-wide-mode .rre-toc-spacer,
699
+ .rre-root .rre-root.is-wide-mode .rre-toc-open {
700
+ display: none;
701
+ }
702
+ .rre-root .rre-root.is-wide-mode .rre-page {
703
+ width: 100%;
704
+ max-width: none;
705
+ }
706
+ .rre-root .rre-popover-list button {
707
+ display: flex;
708
+ align-items: center;
709
+ gap: 8px;
710
+ }
711
+ .rre-root .rre-popover-ico {
712
+ display: inline-flex;
713
+ flex: none;
714
+ align-items: center;
715
+ justify-content: center;
716
+ width: 18px;
717
+ }
718
+ .rre-root .rre-popover-check {
719
+ display: inline-flex;
720
+ align-items: center;
721
+ margin-left: auto;
722
+ color: var(--rre-accent);
723
+ }
724
+ .rre-root .rre-popover-list button.is-active {
725
+ background: var(--rre-accent-soft);
726
+ color: var(--rre-accent-deep);
727
+ }
728
+ .rre-root .rre-toolbar .rre-tools {
729
+ gap: 4px;
730
+ }
731
+ .rre-root .rre-toolbar .rre-tool {
732
+ min-width: 50px;
733
+ }
734
+ .rre-root .rre-tools-scroll {
735
+ padding-right: 140px;
736
+ }
737
+ .rre-root.is-narrow .rre-tools-scroll {
738
+ padding-right: 128px;
739
+ }
740
+ .rre-root .rre-run-mask {
741
+ position: fixed;
742
+ inset: 0;
743
+ z-index: 120;
744
+ display: flex;
745
+ align-items: center;
746
+ justify-content: center;
747
+ background: rgba(15, 23, 42, 0.38);
748
+ }
749
+ .rre-root .rre-run-modal {
750
+ display: flex;
751
+ flex-direction: column;
752
+ gap: 10px;
753
+ width: min(680px, 100vw - 40px);
754
+ padding: 18px;
755
+ border-radius: 12px;
756
+ background: #fff;
757
+ box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
758
+ }
759
+ .rre-root .rre-run-head {
760
+ display: flex;
761
+ align-items: center;
762
+ justify-content: space-between;
763
+ }
764
+ .rre-root .rre-run-head button {
765
+ border: 0;
766
+ background: none;
767
+ color: var(--rre-faint);
768
+ cursor: pointer;
769
+ }
770
+ .rre-root .rre-run-code,
771
+ .rre-root .rre-run-output pre {
772
+ max-height: 140px;
773
+ margin: 0;
774
+ padding: 10px;
775
+ overflow: auto;
776
+ border-radius: 7px;
777
+ background: #0f172a;
778
+ color: #dbeafe;
779
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
780
+ font-size: 11px;
781
+ line-height: 1.6;
782
+ white-space: pre-wrap;
783
+ }
784
+ .rre-root .rre-run-frame {
785
+ width: 100%;
786
+ height: 1px;
787
+ border: 0;
788
+ opacity: 0;
789
+ }
790
+ .rre-root .rre-run-output {
791
+ display: flex;
792
+ flex-direction: column;
793
+ gap: 5px;
794
+ }
795
+ .rre-root .rre-run-output b {
796
+ color: var(--rre-ink-2);
797
+ font-size: 11px;
798
+ }
799
+ .rre-root .rre-run-actions {
800
+ display: flex;
801
+ justify-content: flex-end;
802
+ }
803
+ .rre-root .rre-popover-label {
804
+ display: inline-flex;
805
+ align-items: center;
806
+ gap: 2px;
807
+ }
808
+ .rre-root .rre-tool.is-on .rre-caret {
809
+ transform: rotate(180deg);
810
+ }
811
+
812
+ .rre-root .rre-palette {
813
+ display: flex;
814
+ flex-direction: column;
815
+ gap: 4px;
816
+ }
817
+ .rre-root .rre-palette-row {
818
+ display: flex;
819
+ gap: 4px;
820
+ }
821
+ .rre-root .rre-palette button {
822
+ position: relative;
823
+ width: 26px;
824
+ height: 26px;
825
+ }
826
+ .rre-root .rre-palette button.is-transparent::after {
827
+ content: "";
828
+ position: absolute;
829
+ top: 50%;
830
+ left: 2px;
831
+ right: 2px;
832
+ height: 1.5px;
833
+ background: #ef4444;
834
+ transform: rotate(-45deg);
835
+ }
836
+
837
+ .rre-root .rre-switch {
838
+ gap: 6px;
839
+ }
840
+ .rre-root .rre-switch-icon {
841
+ display: inline-flex;
842
+ align-items: center;
843
+ }
844
+ .rre-root .rre-switch-icon svg {
845
+ width: 16px;
846
+ height: 16px;
847
+ }
848
+
849
+ .rre-root .rre-switch {
850
+ height: 32px;
851
+ padding: 0 10px;
852
+ font-size: 12px;
853
+ }
854
+
855
+ .rre-root .rre-code-mask {
856
+ position: fixed;
857
+ inset: 0;
858
+ z-index: 120;
859
+ display: flex;
860
+ align-items: center;
861
+ justify-content: center;
862
+ padding: 20px;
863
+ background: rgba(15, 23, 42, 0.42);
864
+ }
865
+ .rre-root .rre-code-modal {
866
+ display: flex;
867
+ flex-direction: column;
868
+ width: min(900px, 100%);
869
+ max-height: calc(100vh - 40px);
870
+ overflow: hidden;
871
+ border-radius: 8px;
872
+ background: #fff;
873
+ box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
874
+ }
875
+ .rre-root .rre-code-head {
876
+ display: flex;
877
+ align-items: center;
878
+ justify-content: space-between;
879
+ padding: 14px 18px;
880
+ border-bottom: 1px solid #e5e7eb;
881
+ }
882
+ .rre-root .rre-code-head b {
883
+ color: var(--rre-ink);
884
+ font-size: 16px;
885
+ }
886
+ .rre-root .rre-code-head button {
887
+ border: 0;
888
+ background: none;
889
+ color: var(--rre-muted);
890
+ cursor: pointer;
891
+ }
892
+ .rre-root .rre-code-body {
893
+ display: grid;
894
+ flex: 1;
895
+ grid-template-columns: minmax(0, 1fr) 190px;
896
+ min-height: 0;
897
+ height: 470px;
898
+ }
899
+ .rre-root .rre-code-input {
900
+ width: 100%;
901
+ height: 100%;
902
+ padding: 14px 16px;
903
+ border: 0;
904
+ outline: 0;
905
+ resize: none;
906
+ background: #1e1e1e;
907
+ color: #d4d4d4;
908
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
909
+ font-size: 12.5px;
910
+ line-height: 1.65;
911
+ tab-size: 2;
912
+ }
913
+ .rre-root .rre-code-langs {
914
+ overflow: auto;
915
+ border-left: 1px solid #d7dbe2;
916
+ background: #f7f8fa;
917
+ padding: 4px 0;
918
+ scrollbar-gutter: stable;
919
+ }
920
+ .rre-root .rre-code-langs button {
921
+ display: block;
922
+ width: 100%;
923
+ padding: 7px 12px;
924
+ border: 0;
925
+ background: none;
926
+ color: #333;
927
+ font: inherit;
928
+ font-size: 13px;
929
+ text-align: left;
930
+ white-space: nowrap;
931
+ cursor: pointer;
932
+ }
933
+ .rre-root .rre-code-langs button:hover {
934
+ background: #eef1f5;
935
+ }
936
+ .rre-root .rre-code-langs button.is-on {
937
+ background: #1d4ed8;
938
+ color: #fff;
939
+ }
940
+ .rre-root .rre-code-foot {
941
+ display: flex;
942
+ justify-content: flex-end;
943
+ gap: 10px;
944
+ padding: 14px 18px;
945
+ border-top: 1px solid #e5e7eb;
946
+ }
947
+ @media (max-width: 700px) {
948
+ .rre-root .rre-code-modal {
949
+ height: calc(100vh - 24px);
950
+ max-height: none;
951
+ }
952
+ .rre-root .rre-code-body {
953
+ grid-template-columns: minmax(0, 1fr);
954
+ height: auto;
955
+ }
956
+ .rre-root .rre-code-langs {
957
+ max-height: 140px;
958
+ border-top: 1px solid #d7dbe2;
959
+ border-left: 0;
960
+ }
961
+ }
962
+ @charset "UTF-8";
963
+ .rre-md-root {
964
+ --rre-line: #e3e8ef;
965
+ --rre-line-soft: #eef1f4;
966
+ --rre-muted: #6b7280;
967
+ --rre-faint: #9aa3af;
968
+ --rre-ink: #111827;
969
+ --rre-ink-2: #374151;
970
+ --rre-accent: #2563eb;
971
+ --rre-accent-deep: #1d4ed8;
972
+ --rre-accent-soft: #e8f0ff;
973
+ display: flex;
974
+ flex: 1;
975
+ flex-direction: column;
976
+ min-height: 0;
977
+ color: var(--rre-ink);
978
+ font-family: inherit;
979
+ }
980
+ .rre-md-root *,
981
+ .rre-md-root *::before,
982
+ .rre-md-root *::after {
983
+ box-sizing: border-box;
984
+ }
985
+ .rre-md-root .rre-md-modes {
986
+ display: flex;
987
+ flex: none;
988
+ align-items: center;
989
+ justify-content: space-between;
990
+ padding: 8px 12px;
991
+ border-bottom: 1px solid var(--rre-line-soft);
992
+ background: #fff;
993
+ }
994
+ .rre-md-root .rre-md-mode-group {
995
+ display: flex;
996
+ gap: 4px;
997
+ }
998
+ .rre-md-root .rre-md-mode-group button {
999
+ height: 30px;
1000
+ padding: 0 12px;
1001
+ border: 0;
1002
+ border-radius: 7px;
1003
+ background: #f3f5f8;
1004
+ color: var(--rre-muted);
1005
+ font: inherit;
1006
+ font-size: 11.5px;
1007
+ cursor: pointer;
1008
+ }
1009
+ .rre-md-root .rre-md-mode-group button.is-on {
1010
+ background: #1f2937;
1011
+ color: #fff;
1012
+ font-weight: 600;
1013
+ }
1014
+ .rre-md-root .rre-md-switch {
1015
+ display: inline-flex;
1016
+ flex: none;
1017
+ align-items: center;
1018
+ height: 28px;
1019
+ padding: 0 10px;
1020
+ border: 1px solid var(--rre-line);
1021
+ border-radius: 7px;
1022
+ background: #f8fafc;
1023
+ color: var(--rre-muted);
1024
+ font: inherit;
1025
+ font-size: 10.5px;
1026
+ white-space: nowrap;
1027
+ cursor: pointer;
1028
+ }
1029
+ .rre-md-root .rre-md-switch:hover {
1030
+ border-color: rgba(37, 99, 235, 0.28);
1031
+ color: var(--rre-accent-deep);
1032
+ }
1033
+ .rre-md-root .rre-md-toolbar {
1034
+ display: flex;
1035
+ flex: none;
1036
+ align-items: center;
1037
+ min-height: 43px;
1038
+ padding: 6px 12px;
1039
+ border-bottom: 1px solid var(--rre-line-soft);
1040
+ overflow-x: auto;
1041
+ background: #fff;
1042
+ scrollbar-width: none;
1043
+ }
1044
+ .rre-md-root .rre-md-toolbar::-webkit-scrollbar {
1045
+ display: none;
1046
+ }
1047
+ .rre-md-root .rre-md-group {
1048
+ display: flex;
1049
+ flex: none;
1050
+ align-items: center;
1051
+ gap: 2px;
1052
+ }
1053
+ .rre-md-root .rre-md-tool {
1054
+ display: inline-flex;
1055
+ flex: none;
1056
+ align-items: center;
1057
+ gap: 4px;
1058
+ height: 28px;
1059
+ padding: 0 7px;
1060
+ border: 0;
1061
+ border-radius: 6px;
1062
+ background: none;
1063
+ color: var(--rre-muted);
1064
+ font: inherit;
1065
+ font-size: 10.5px;
1066
+ white-space: nowrap;
1067
+ cursor: pointer;
1068
+ }
1069
+ .rre-md-root .rre-md-tool.is-strong {
1070
+ color: var(--rre-ink);
1071
+ }
1072
+ .rre-md-root .rre-md-tool:hover {
1073
+ background: var(--rre-accent-soft);
1074
+ color: var(--rre-accent-deep);
1075
+ }
1076
+ .rre-md-root .rre-md-tool svg {
1077
+ flex: none;
1078
+ width: 14px;
1079
+ height: 14px;
1080
+ }
1081
+ .rre-md-root .rre-md-sep {
1082
+ flex: none;
1083
+ width: 1px;
1084
+ height: 16px;
1085
+ margin: 0 5px;
1086
+ background: var(--rre-line);
1087
+ }
1088
+ .rre-md-root .rre-md-error {
1089
+ flex: none;
1090
+ margin-left: 8px;
1091
+ color: #b45309;
1092
+ font-size: 10.5px;
1093
+ white-space: nowrap;
1094
+ }
1095
+ .rre-md-root .rre-md-split {
1096
+ display: grid;
1097
+ flex: 1;
1098
+ grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr);
1099
+ min-height: 0;
1100
+ }
1101
+ .rre-md-root .rre-md-split.mode-markdown,
1102
+ .rre-md-root .rre-md-split.mode-preview {
1103
+ grid-template-columns: minmax(0, 1fr);
1104
+ }
1105
+ .rre-md-root .rre-md-split.mode-markdown .rre-md-preview,
1106
+ .rre-md-root .rre-md-split.mode-markdown .rre-md-drag,
1107
+ .rre-md-root .rre-md-split.mode-preview .rre-md-source,
1108
+ .rre-md-root .rre-md-split.mode-preview .rre-md-drag {
1109
+ display: none;
1110
+ }
1111
+ .rre-md-root .rre-md-source {
1112
+ display: flex;
1113
+ min-width: 0;
1114
+ overflow: auto;
1115
+ padding: 16px 18px;
1116
+ background: #fbfcfe;
1117
+ scrollbar-gutter: stable;
1118
+ }
1119
+ .rre-md-root .rre-md-input {
1120
+ flex: 1;
1121
+ width: 100%;
1122
+ min-height: 100%;
1123
+ padding: 0;
1124
+ border: 0;
1125
+ outline: 0;
1126
+ resize: none;
1127
+ background: transparent;
1128
+ color: #2b3138;
1129
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
1130
+ font-size: 12px;
1131
+ line-height: 1.8;
1132
+ tab-size: 2;
1133
+ }
1134
+ .rre-md-root .rre-md-input::placeholder {
1135
+ color: var(--rre-faint);
1136
+ }
1137
+ .rre-md-root .rre-md-drag {
1138
+ display: flex;
1139
+ flex-direction: column;
1140
+ align-items: center;
1141
+ justify-content: center;
1142
+ gap: 3px;
1143
+ border-left: 1px solid var(--rre-line-soft);
1144
+ border-right: 1px solid var(--rre-line-soft);
1145
+ background: #fff;
1146
+ }
1147
+ .rre-md-root .rre-md-drag i {
1148
+ width: 2px;
1149
+ height: 2px;
1150
+ border-radius: 50%;
1151
+ background: #c3cad6;
1152
+ }
1153
+ .rre-md-root .rre-md-preview {
1154
+ min-width: 0;
1155
+ overflow: auto;
1156
+ padding: 16px 20px;
1157
+ background: #fff;
1158
+ color: #24292f;
1159
+ font-size: 14px;
1160
+ line-height: 1.8;
1161
+ scrollbar-gutter: stable;
1162
+ word-break: break-word;
1163
+ }
1164
+ .rre-md-root .rre-md-preview.is-empty {
1165
+ display: flex;
1166
+ flex-direction: column;
1167
+ align-items: center;
1168
+ justify-content: center;
1169
+ color: var(--rre-faint);
1170
+ text-align: center;
1171
+ }
1172
+ .rre-md-root .rre-md-preview.is-empty b {
1173
+ margin-top: 5px;
1174
+ color: var(--rre-muted);
1175
+ }
1176
+ .rre-md-root .rre-md-preview.is-empty p {
1177
+ margin: 0;
1178
+ font-size: 10.5px;
1179
+ }
1180
+ .rre-md-root .rre-md-empty-ico {
1181
+ display: inline-flex;
1182
+ align-items: center;
1183
+ justify-content: center;
1184
+ width: 42px;
1185
+ height: 42px;
1186
+ border-radius: 50%;
1187
+ background: #eaf1ff;
1188
+ color: var(--rre-accent);
1189
+ }
1190
+ .rre-md-root .rre-md-preview h1,
1191
+ .rre-md-root .rre-md-preview h2,
1192
+ .rre-md-root .rre-md-preview h3,
1193
+ .rre-md-root .rre-md-preview h4 {
1194
+ margin: 1.1em 0 0.5em;
1195
+ line-height: 1.4;
1196
+ }
1197
+ .rre-md-root .rre-md-preview h1 {
1198
+ font-size: 26px;
1199
+ }
1200
+ .rre-md-root .rre-md-preview h2 {
1201
+ font-size: 21px;
1202
+ }
1203
+ .rre-md-root .rre-md-preview h3 {
1204
+ font-size: 17px;
1205
+ }
1206
+ .rre-md-root .rre-md-preview h4 {
1207
+ font-size: 15px;
1208
+ }
1209
+ .rre-md-root .rre-md-preview p {
1210
+ margin: 0 0 12px;
1211
+ }
1212
+ .rre-md-root .rre-md-preview ul,
1213
+ .rre-md-root .rre-md-preview ol {
1214
+ margin: 0 0 12px;
1215
+ padding-left: 24px;
1216
+ }
1217
+ .rre-md-root .rre-md-preview ul {
1218
+ list-style: disc outside;
1219
+ }
1220
+ .rre-md-root .rre-md-preview ol {
1221
+ list-style: decimal outside;
1222
+ }
1223
+ .rre-md-root .rre-md-preview li {
1224
+ display: list-item;
1225
+ margin: 3px 0;
1226
+ }
1227
+ .rre-md-root .rre-md-preview blockquote {
1228
+ margin: 14px 0;
1229
+ padding: 2px 14px;
1230
+ border-left: 3px solid #bfd3ff;
1231
+ background: #f7faff;
1232
+ color: #4b5563;
1233
+ }
1234
+ .rre-md-root .rre-md-preview pre {
1235
+ margin: 14px 0;
1236
+ padding: 12px 14px;
1237
+ overflow: auto;
1238
+ border: 1px solid #e5e7eb;
1239
+ border-radius: 8px;
1240
+ background: #f8fafc;
1241
+ font-size: 12.5px;
1242
+ line-height: 1.7;
1243
+ }
1244
+ .rre-md-root .rre-md-preview pre code {
1245
+ padding: 0;
1246
+ background: none;
1247
+ color: #24292f;
1248
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
1249
+ }
1250
+ .rre-md-root .rre-md-preview code {
1251
+ padding: 1px 5px;
1252
+ border-radius: 4px;
1253
+ background: #f1f3f5;
1254
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
1255
+ font-size: 0.88em;
1256
+ }
1257
+ .rre-md-root .rre-md-preview a {
1258
+ color: var(--rre-accent-deep);
1259
+ text-decoration: underline;
1260
+ text-underline-offset: 2px;
1261
+ }
1262
+ .rre-md-root .rre-md-preview img {
1263
+ display: block;
1264
+ max-width: 100%;
1265
+ height: auto;
1266
+ margin: 14px 0;
1267
+ border-radius: 8px;
1268
+ }
1269
+ .rre-md-root .rre-md-preview hr {
1270
+ margin: 22px 0;
1271
+ border: 0;
1272
+ border-top: 1px solid #e5e7eb;
1273
+ }
1274
+ .rre-md-root .rre-md-preview table {
1275
+ width: 100%;
1276
+ margin: 14px 0;
1277
+ border-collapse: collapse;
1278
+ font-size: 13px;
1279
+ }
1280
+ .rre-md-root .rre-md-preview th,
1281
+ .rre-md-root .rre-md-preview td {
1282
+ padding: 7px 10px;
1283
+ border: 1px solid #e5e7eb;
1284
+ text-align: left;
1285
+ vertical-align: top;
1286
+ }
1287
+ .rre-md-root .rre-md-preview th {
1288
+ background: #f8fafc;
1289
+ font-weight: 600;
1290
+ }
1291
+ .rre-md-root .rre-md-preview .kb-code {
1292
+ margin: 14px 0;
1293
+ overflow: hidden;
1294
+ border: 1px solid #e5e7eb;
1295
+ border-radius: 8px;
1296
+ background: #fff;
1297
+ }
1298
+ .rre-md-root .rre-md-preview .kb-code pre {
1299
+ margin: 0;
1300
+ border: 0;
1301
+ border-radius: 0;
1302
+ }
1303
+ .rre-md-root .rre-md-preview .kb-code-lang {
1304
+ display: block;
1305
+ padding: 6px 12px;
1306
+ border-bottom: 1px solid #e5e7eb;
1307
+ background: #f8fafc;
1308
+ color: var(--rre-muted);
1309
+ font-size: 11px;
1310
+ }
1311
+ .rre-md-root .rre-md-preview .hljs-keyword,
1312
+ .rre-md-root .rre-md-preview .hljs-selector-tag,
1313
+ .rre-md-root .rre-md-preview .hljs-built_in {
1314
+ color: #7c3aed;
1315
+ }
1316
+ .rre-md-root .rre-md-preview .hljs-string,
1317
+ .rre-md-root .rre-md-preview .hljs-attr {
1318
+ color: #047857;
1319
+ }
1320
+ .rre-md-root .rre-md-preview .hljs-title,
1321
+ .rre-md-root .rre-md-preview .hljs-function {
1322
+ color: #1d4ed8;
1323
+ }
1324
+ .rre-md-root .rre-md-preview .hljs-number,
1325
+ .rre-md-root .rre-md-preview .hljs-literal {
1326
+ color: #b45309;
1327
+ }
1328
+ .rre-md-root .rre-md-preview .hljs-comment {
1329
+ color: #9aa3af;
1330
+ font-style: italic;
1331
+ }
1332
+ .rre-md-root.is-narrow .rre-md-split {
1333
+ grid-template-columns: minmax(0, 1fr);
1334
+ }
1335
+ .rre-md-root.is-narrow .rre-md-drag {
1336
+ display: none;
1337
+ }
1338
+ .rre-md-root.is-narrow .rre-md-source {
1339
+ border-bottom: 1px solid var(--rre-line-soft);
1340
+ }
1341
+ .rre-md-root.is-narrow .rre-md-source,
1342
+ .rre-md-root.is-narrow .rre-md-preview {
1343
+ padding: 14px 16px;
1344
+ }
1345
+
1346
+ .rre-md-root .rre-md-tab-icon {
1347
+ display: inline-flex;
1348
+ align-items: center;
1349
+ margin-right: 6px;
1350
+ }
1351
+ .rre-md-root .rre-md-main {
1352
+ position: relative;
1353
+ display: flex;
1354
+ flex: 1;
1355
+ min-height: 0;
1356
+ }
1357
+ .rre-md-root .rre-md-split {
1358
+ flex: 1;
1359
+ }
1360
+ .rre-md-root .rre-md-menu-btn {
1361
+ display: inline-flex;
1362
+ flex: none;
1363
+ align-items: center;
1364
+ gap: 4px;
1365
+ height: 28px;
1366
+ padding: 0 7px;
1367
+ border: 0;
1368
+ border-radius: 6px;
1369
+ background: none;
1370
+ color: var(--rre-muted);
1371
+ font: inherit;
1372
+ font-size: 12px;
1373
+ white-space: nowrap;
1374
+ cursor: pointer;
1375
+ }
1376
+ .rre-md-root .rre-md-menu-btn svg {
1377
+ flex: none;
1378
+ width: 15px;
1379
+ height: 15px;
1380
+ }
1381
+ .rre-md-root .rre-md-menu-btn:hover, .rre-md-root .rre-md-menu-btn.is-on {
1382
+ background: var(--rre-accent-soft);
1383
+ color: var(--rre-accent-deep);
1384
+ }
1385
+ .rre-md-root .rre-md-caret {
1386
+ margin-left: 2px;
1387
+ }
1388
+ .rre-md-root .rre-md-tool.is-disabled {
1389
+ color: #c3c9d2;
1390
+ cursor: not-allowed;
1391
+ }
1392
+ .rre-md-root .rre-md-menu {
1393
+ position: fixed;
1394
+ z-index: 90;
1395
+ display: flex;
1396
+ flex-direction: column;
1397
+ min-width: 130px;
1398
+ padding: 6px;
1399
+ border: 1px solid var(--rre-line);
1400
+ border-radius: 9px;
1401
+ background: #fff;
1402
+ box-shadow: 0 14px 34px rgba(20, 35, 80, 0.14);
1403
+ }
1404
+ .rre-md-root .rre-md-menu > button {
1405
+ padding: 8px 10px;
1406
+ border: 0;
1407
+ border-radius: 6px;
1408
+ background: none;
1409
+ color: var(--rre-ink-2);
1410
+ font: inherit;
1411
+ font-size: 12px;
1412
+ text-align: left;
1413
+ cursor: pointer;
1414
+ }
1415
+ .rre-md-root .rre-md-menu > button:hover {
1416
+ background: var(--rre-accent-soft);
1417
+ color: var(--rre-accent-deep);
1418
+ }
1419
+ .rre-md-root .rre-md-lang-list {
1420
+ display: grid;
1421
+ grid-template-columns: repeat(3, minmax(70px, 1fr));
1422
+ gap: 2px;
1423
+ max-height: 260px;
1424
+ overflow: auto;
1425
+ }
1426
+ .rre-md-root .rre-md-lang-list button {
1427
+ padding: 7px 8px;
1428
+ border: 0;
1429
+ border-radius: 5px;
1430
+ background: none;
1431
+ color: var(--rre-ink-2);
1432
+ font: inherit;
1433
+ font-size: 11px;
1434
+ text-align: left;
1435
+ cursor: pointer;
1436
+ }
1437
+ .rre-md-root .rre-md-lang-list button:hover {
1438
+ background: var(--rre-accent-soft);
1439
+ color: var(--rre-accent-deep);
1440
+ }
1441
+ .rre-md-root .rre-md-rail {
1442
+ display: flex;
1443
+ flex: none;
1444
+ flex-direction: column;
1445
+ width: 56px;
1446
+ border-left: 1px solid var(--rre-line-soft);
1447
+ background: #fff;
1448
+ }
1449
+ .rre-md-root .rre-md-rail-item {
1450
+ display: flex;
1451
+ flex-direction: column;
1452
+ align-items: center;
1453
+ gap: 4px;
1454
+ padding: 10px 2px;
1455
+ border: 0;
1456
+ border-left: 2px solid transparent;
1457
+ background: none;
1458
+ color: var(--rre-muted);
1459
+ font: inherit;
1460
+ cursor: pointer;
1461
+ }
1462
+ .rre-md-root .rre-md-rail-item svg {
1463
+ width: 18px;
1464
+ height: 18px;
1465
+ }
1466
+ .rre-md-root .rre-md-rail-item em {
1467
+ font-size: 10px;
1468
+ font-style: normal;
1469
+ }
1470
+ .rre-md-root .rre-md-rail-item:hover, .rre-md-root .rre-md-rail-item.is-on {
1471
+ border-left-color: var(--rre-accent);
1472
+ background: #f7f9ff;
1473
+ color: var(--rre-accent-deep);
1474
+ }
1475
+ .rre-md-root .rre-md-rail-open {
1476
+ flex: none;
1477
+ width: 26px;
1478
+ border: 0;
1479
+ border-left: 1px solid var(--rre-line-soft);
1480
+ background: #fff;
1481
+ color: var(--rre-muted);
1482
+ font-size: 18px;
1483
+ cursor: pointer;
1484
+ }
1485
+ .rre-md-root .rre-md-side-panel {
1486
+ position: absolute;
1487
+ top: 0;
1488
+ right: 56px;
1489
+ bottom: 0;
1490
+ z-index: 30;
1491
+ width: 260px;
1492
+ overflow: auto;
1493
+ padding: 12px;
1494
+ border-left: 1px solid var(--rre-line);
1495
+ background: #fff;
1496
+ box-shadow: -12px 0 30px rgba(20, 35, 80, 0.08);
1497
+ }
1498
+ .rre-md-root .rre-md-side-head {
1499
+ display: flex;
1500
+ align-items: center;
1501
+ justify-content: space-between;
1502
+ padding: 0 2px 10px;
1503
+ }
1504
+ .rre-md-root .rre-md-side-head b {
1505
+ font-size: 13px;
1506
+ }
1507
+ .rre-md-root .rre-md-side-head button {
1508
+ border: 0;
1509
+ background: none;
1510
+ color: var(--rre-faint);
1511
+ font-size: 18px;
1512
+ cursor: pointer;
1513
+ }
1514
+ .rre-md-root .rre-md-outline-item {
1515
+ display: block;
1516
+ width: 100%;
1517
+ padding: 7px 8px;
1518
+ overflow: hidden;
1519
+ border: 0;
1520
+ border-left: 2px solid transparent;
1521
+ background: none;
1522
+ color: var(--rre-muted);
1523
+ font: inherit;
1524
+ font-size: 12px;
1525
+ text-align: left;
1526
+ text-overflow: ellipsis;
1527
+ white-space: nowrap;
1528
+ cursor: pointer;
1529
+ }
1530
+ .rre-md-root .rre-md-outline-item:hover {
1531
+ border-left-color: var(--rre-accent);
1532
+ background: var(--rre-accent-soft);
1533
+ color: var(--rre-accent-deep);
1534
+ }
1535
+ .rre-md-root .rre-md-side-empty {
1536
+ padding: 8px;
1537
+ color: var(--rre-faint);
1538
+ font-size: 12px;
1539
+ }
1540
+ .rre-md-root .rre-md-syntax-list {
1541
+ display: flex;
1542
+ flex-direction: column;
1543
+ gap: 10px;
1544
+ }
1545
+ .rre-md-root .rre-md-syntax-list div {
1546
+ display: flex;
1547
+ flex-direction: column;
1548
+ gap: 3px;
1549
+ }
1550
+ .rre-md-root .rre-md-syntax-list b {
1551
+ color: var(--rre-ink-2);
1552
+ font-size: 11px;
1553
+ }
1554
+ .rre-md-root .rre-md-syntax-list code {
1555
+ padding: 6px 8px;
1556
+ border-radius: 5px;
1557
+ background: #f6f8fa;
1558
+ color: #374151;
1559
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
1560
+ font-size: 10.5px;
1561
+ white-space: pre-wrap;
1562
+ }
1563
+ .rre-md-root .rre-md-modal-mask {
1564
+ position: fixed;
1565
+ inset: 0;
1566
+ z-index: 120;
1567
+ display: flex;
1568
+ align-items: center;
1569
+ justify-content: center;
1570
+ background: rgba(15, 23, 42, 0.38);
1571
+ }
1572
+ .rre-md-root .rre-md-modal {
1573
+ display: flex;
1574
+ flex-direction: column;
1575
+ gap: 10px;
1576
+ width: min(420px, 100vw - 40px);
1577
+ padding: 18px;
1578
+ border-radius: 12px;
1579
+ background: #fff;
1580
+ box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
1581
+ }
1582
+ .rre-md-root .rre-md-modal > b {
1583
+ color: var(--rre-ink);
1584
+ font-size: 15px;
1585
+ }
1586
+ .rre-md-root .rre-md-modal > p {
1587
+ margin: 0;
1588
+ color: var(--rre-muted);
1589
+ font-size: 12px;
1590
+ line-height: 1.7;
1591
+ }
1592
+ .rre-md-root .rre-md-field {
1593
+ height: 34px;
1594
+ padding: 0 10px;
1595
+ border: 1px solid var(--rre-line);
1596
+ border-radius: 7px;
1597
+ outline: 0;
1598
+ font: inherit;
1599
+ font-size: 12px;
1600
+ }
1601
+ .rre-md-root .rre-md-field:focus {
1602
+ border-color: var(--rre-accent);
1603
+ }
1604
+ .rre-md-root .rre-md-modal-actions {
1605
+ display: flex;
1606
+ justify-content: flex-end;
1607
+ gap: 8px;
1608
+ }
1609
+ .rre-md-root .rre-md-btn {
1610
+ height: 32px;
1611
+ padding: 0 14px;
1612
+ border: 1px solid var(--rre-line);
1613
+ border-radius: 7px;
1614
+ background: #f8fafc;
1615
+ color: var(--rre-ink-2);
1616
+ font: inherit;
1617
+ font-size: 12px;
1618
+ cursor: pointer;
1619
+ }
1620
+ .rre-md-root .rre-md-btn.is-primary {
1621
+ border: 0;
1622
+ background: var(--rre-accent);
1623
+ color: #fff;
1624
+ font-weight: 600;
1625
+ }
1626
+ .rre-md-root .rre-md-btn.is-danger {
1627
+ border: 0;
1628
+ background: #dc2626;
1629
+ color: #fff;
1630
+ font-weight: 600;
1631
+ }
1632
+ .rre-md-root .rre-md-run {
1633
+ width: min(680px, 100vw - 40px);
1634
+ }
1635
+ .rre-md-root .rre-md-run-head {
1636
+ display: flex;
1637
+ align-items: center;
1638
+ justify-content: space-between;
1639
+ }
1640
+ .rre-md-root .rre-md-run-head button {
1641
+ border: 0;
1642
+ background: none;
1643
+ color: var(--rre-faint);
1644
+ font-size: 18px;
1645
+ cursor: pointer;
1646
+ }
1647
+ .rre-md-root .rre-md-run-code,
1648
+ .rre-md-root .rre-md-run-output pre {
1649
+ max-height: 140px;
1650
+ margin: 0;
1651
+ padding: 10px;
1652
+ overflow: auto;
1653
+ border-radius: 7px;
1654
+ background: #0f172a;
1655
+ color: #dbeafe;
1656
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
1657
+ font-size: 11px;
1658
+ line-height: 1.6;
1659
+ white-space: pre-wrap;
1660
+ }
1661
+ .rre-md-root .rre-md-run-frame {
1662
+ width: 100%;
1663
+ height: 1px;
1664
+ border: 0;
1665
+ opacity: 0;
1666
+ }
1667
+ .rre-md-root .rre-md-run-output {
1668
+ display: flex;
1669
+ flex-direction: column;
1670
+ gap: 5px;
1671
+ }
1672
+ .rre-md-root .rre-md-run-output b {
1673
+ color: var(--rre-ink-2);
1674
+ font-size: 11px;
1675
+ }
1676
+ @media (max-width: 900px) {
1677
+ .rre-md-root .rre-md-rail,
1678
+ .rre-md-root .rre-md-rail-open {
1679
+ display: none;
1680
+ }
1681
+ .rre-md-root .rre-md-side-panel {
1682
+ right: 0;
1683
+ width: min(300px, 85vw);
1684
+ }
1685
+ }
1686
+ .rre-md-root {
1687
+ /* 工具栏字号 / 图标放大并居中 */
1688
+ }
1689
+ .rre-md-root .rre-md-toolbar {
1690
+ min-height: 48px;
1691
+ padding: 7px 12px;
1692
+ }
1693
+ .rre-md-root .rre-md-tool {
1694
+ width: 32px;
1695
+ height: 32px;
1696
+ padding: 0;
1697
+ justify-content: center;
1698
+ line-height: 1;
1699
+ }
1700
+ .rre-md-root .rre-md-tool svg {
1701
+ width: 17px;
1702
+ height: 17px;
1703
+ }
1704
+ .rre-md-root .rre-md-menu-btn {
1705
+ height: 32px;
1706
+ padding: 0 9px;
1707
+ gap: 5px;
1708
+ justify-content: center;
1709
+ font-size: 13px;
1710
+ line-height: 1;
1711
+ }
1712
+ .rre-md-root .rre-md-menu-btn > span {
1713
+ line-height: 1;
1714
+ }
1715
+ .rre-md-root .rre-md-menu-btn svg {
1716
+ width: 17px;
1717
+ height: 17px;
1718
+ }
1719
+ .rre-md-root .rre-md-caret {
1720
+ width: 11px;
1721
+ height: 11px;
1722
+ }
1723
+ .rre-md-root .rre-md-mode-group button {
1724
+ height: 32px;
1725
+ padding: 0 14px;
1726
+ font-size: 14px;
1727
+ }
1728
+ .rre-md-root .rre-md-tab-icon svg {
1729
+ width: 18px;
1730
+ height: 18px;
1731
+ }
1732
+ .rre-md-root .rre-md-switch {
1733
+ height: 32px;
1734
+ font-size: 12px;
1735
+ }
1736
+ .rre-md-root .rre-md-sep {
1737
+ height: 18px;
1738
+ margin: 0 7px;
1739
+ }
1740
+
1741
+ .rre-md-root .rre-md-mode-group {
1742
+ gap: 8px;
1743
+ }
1744
+ .rre-md-root .rre-md-mode-group button {
1745
+ display: inline-flex;
1746
+ align-items: center;
1747
+ justify-content: center;
1748
+ gap: 7px;
1749
+ line-height: 1;
1750
+ white-space: nowrap;
1751
+ }
1752
+ .rre-md-root .rre-md-tab-icon {
1753
+ margin-right: 0;
1754
+ }
1755
+ .rre-md-root .rre-md-tab-icon svg {
1756
+ width: 17px;
1757
+ height: 17px;
1758
+ }
1759
+ .rre-md-root .rre-md-switch {
1760
+ gap: 6px;
1761
+ }
1762
+
1763
+ .rre-md-root .rre-md-switch {
1764
+ height: 32px;
1765
+ padding: 0 10px;
1766
+ font-size: 12px;
1767
+ }
1768
+
1769
+ /* HTML 代码块:源码 / 预览 / 复制 / 全屏 / 刷新(doc 页与 MD 预览共用) */
1770
+ .kb-html-code {
1771
+ position: relative;
1772
+ }
1773
+
1774
+ .kb-html-actions {
1775
+ display: flex;
1776
+ align-items: center;
1777
+ gap: 5px;
1778
+ position: absolute;
1779
+ top: 6px;
1780
+ right: 8px;
1781
+ z-index: 2;
1782
+ padding: 2px;
1783
+ border-radius: 5px;
1784
+ background: #f7f8fa;
1785
+ }
1786
+
1787
+ .code-block-header .kb-html-actions {
1788
+ position: static;
1789
+ margin-left: auto;
1790
+ padding: 0;
1791
+ background: transparent;
1792
+ }
1793
+
1794
+ .kb-html-mode {
1795
+ display: inline-flex;
1796
+ overflow: hidden;
1797
+ border: 1px solid #e5e7eb;
1798
+ border-radius: 4px;
1799
+ }
1800
+
1801
+ .kb-html-mode-btn,
1802
+ .kb-html-action-btn {
1803
+ height: 22px;
1804
+ padding: 0 7px;
1805
+ border: 0;
1806
+ background: #fff;
1807
+ color: #6b7280;
1808
+ font: inherit;
1809
+ font-size: 10px;
1810
+ line-height: 1;
1811
+ white-space: nowrap;
1812
+ cursor: pointer;
1813
+ }
1814
+
1815
+ .kb-html-action-btn {
1816
+ border: 1px solid #e5e7eb;
1817
+ border-radius: 4px;
1818
+ }
1819
+
1820
+ .kb-html-mode-btn.is-on {
1821
+ background: #1f2937;
1822
+ color: #fff;
1823
+ }
1824
+
1825
+ .kb-html-action-btn:hover,
1826
+ .kb-html-mode-btn:hover {
1827
+ color: #1d4ed8;
1828
+ }
1829
+
1830
+ .kb-html-preview {
1831
+ background: #fff;
1832
+ }
1833
+
1834
+ .kb-html-preview-frame {
1835
+ display: block;
1836
+ width: 100%;
1837
+ height: 360px;
1838
+ border: 0;
1839
+ background: #fff;
1840
+ }
1841
+
1842
+ .kb-html-full-mask {
1843
+ position: fixed;
1844
+ inset: 0;
1845
+ z-index: 200;
1846
+ display: flex;
1847
+ align-items: center;
1848
+ justify-content: center;
1849
+ padding: 18px;
1850
+ background: rgba(15, 23, 42, 0.55);
1851
+ }
1852
+
1853
+ .kb-html-full-panel {
1854
+ display: flex;
1855
+ flex-direction: column;
1856
+ width: min(1120px, 96vw);
1857
+ height: min(820px, 92vh);
1858
+ overflow: hidden;
1859
+ border-radius: 10px;
1860
+ background: #fff;
1861
+ box-shadow: 0 30px 90px rgba(15, 23, 42, 0.35);
1862
+ }
1863
+
1864
+ .kb-html-full-bar {
1865
+ display: flex;
1866
+ flex: none;
1867
+ align-items: center;
1868
+ justify-content: space-between;
1869
+ padding: 10px 14px;
1870
+ border-bottom: 1px solid #e5e7eb;
1871
+ }
1872
+
1873
+ .kb-html-full-bar b {
1874
+ color: #111827;
1875
+ font-size: 13px;
1876
+ }
1877
+
1878
+ .kb-html-full-panel iframe {
1879
+ flex: 1;
1880
+ width: 100%;
1881
+ border: 0;
1882
+ }
1883
+
1884
+ @media (max-width: 700px) {
1885
+ .kb-html-preview-frame {
1886
+ height: 260px;
1887
+ }
1888
+ .kb-html-actions {
1889
+ top: 4px;
1890
+ right: 6px;
1891
+ }
1892
+ }