tiptap-markdown-react 0.8.1 → 0.8.3
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/components/MathEditorPopover.d.ts +1 -1
- package/dist/{extractToc-C0E_xYTj.js → extractToc-CMvSKha8.js} +3 -3
- package/dist/{extractToc-C0E_xYTj.js.map → extractToc-CMvSKha8.js.map} +1 -1
- package/dist/index.js +161 -139
- package/dist/index.js.map +1 -1
- package/dist/server.js +2 -2
- package/dist/style.css +128 -107
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as applyCitationSources, b as baseExtensions, p as pureCodeBlock, f as pureImage, C as CitationRef, d as makeTocGetId, k as renderMathElementHtml, j as extractToc } from "./extractToc-
|
|
2
|
-
import { c, R, i, e, l, a, m } from "./extractToc-
|
|
1
|
+
import { h as applyCitationSources, b as baseExtensions, p as pureCodeBlock, f as pureImage, C as CitationRef, d as makeTocGetId, k as renderMathElementHtml, j as extractToc } from "./extractToc-CMvSKha8.js";
|
|
2
|
+
import { c, R, i, e, l, a, m } from "./extractToc-CMvSKha8.js";
|
|
3
3
|
import { TableOfContents, generateTocIds } from "@tiptap/extension-table-of-contents";
|
|
4
4
|
import { MarkdownManager } from "@tiptap/markdown";
|
|
5
5
|
import { renderToHTMLString } from "@tiptap/static-renderer";
|
package/dist/style.css
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/* 规范正文样式(编辑器 / 只读预览 / SSR 阅读三处共用同一个类,保证所见即所得、
|
|
2
2
|
发布后一致)。配色/字体全部走可被消费方覆盖的 CSS 变量(--tmr-*,带默认值)。 */
|
|
3
3
|
|
|
4
|
-
.
|
|
4
|
+
._editorScroll_1kaza_4 {
|
|
5
5
|
margin-top: 24px;
|
|
6
|
+
position: relative;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
|
-
.
|
|
9
|
+
._editorContent_1kaza_9 {
|
|
9
10
|
outline: none;
|
|
10
11
|
padding: 0;
|
|
11
12
|
font-family: var(
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
/* placeholder:空文档第一段显示占位符 */
|
|
31
|
-
.
|
|
32
|
+
._editorContent_1kaza_9 p.is-editor-empty:first-child::before {
|
|
32
33
|
content: attr(data-placeholder);
|
|
33
34
|
float: left;
|
|
34
35
|
height: 0;
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
pointer-events: none;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
.
|
|
40
|
+
._editorContent_1kaza_9 h1 {
|
|
40
41
|
font-family: inherit;
|
|
41
42
|
font-size: 1.55em;
|
|
42
43
|
font-weight: 700;
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
line-height: 1.3;
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
.
|
|
48
|
+
._editorContent_1kaza_9 h2 {
|
|
48
49
|
font-family: inherit;
|
|
49
50
|
font-size: 1.3em;
|
|
50
51
|
font-weight: 700;
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
line-height: 1.3;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
|
-
.
|
|
56
|
+
._editorContent_1kaza_9 h3 {
|
|
56
57
|
font-family: inherit;
|
|
57
58
|
font-size: 1.12em;
|
|
58
59
|
font-weight: 600;
|
|
@@ -60,21 +61,21 @@
|
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
/* h4-h6:延续 h1-h3 尺寸梯度递减;字号差变小后靠字重保持标题感,h6 字色稍弱。 */
|
|
63
|
-
.
|
|
64
|
+
._editorContent_1kaza_9 h4 {
|
|
64
65
|
font-family: inherit;
|
|
65
66
|
font-size: 1.05em;
|
|
66
67
|
font-weight: 600;
|
|
67
68
|
margin: 0.7em 0 0.3em;
|
|
68
69
|
}
|
|
69
70
|
|
|
70
|
-
.
|
|
71
|
+
._editorContent_1kaza_9 h5 {
|
|
71
72
|
font-family: inherit;
|
|
72
73
|
font-size: 0.95em;
|
|
73
74
|
font-weight: 600;
|
|
74
75
|
margin: 0.7em 0 0.3em;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
|
-
.
|
|
78
|
+
._editorContent_1kaza_9 h6 {
|
|
78
79
|
font-family: inherit;
|
|
79
80
|
font-size: 0.88em;
|
|
80
81
|
font-weight: 600;
|
|
@@ -82,25 +83,25 @@
|
|
|
82
83
|
color: var(--tmr-muted, #777777);
|
|
83
84
|
}
|
|
84
85
|
|
|
85
|
-
.
|
|
86
|
+
._editorContent_1kaza_9 p {
|
|
86
87
|
margin: 0.7em 0;
|
|
87
88
|
}
|
|
88
89
|
|
|
89
|
-
.
|
|
90
|
-
.
|
|
90
|
+
._editorContent_1kaza_9 ul,
|
|
91
|
+
._editorContent_1kaza_9 ol {
|
|
91
92
|
padding-left: 1.5em;
|
|
92
93
|
margin: 0.7em 0;
|
|
93
94
|
}
|
|
94
95
|
|
|
95
|
-
.
|
|
96
|
+
._editorContent_1kaza_9 ul {
|
|
96
97
|
list-style: disc;
|
|
97
98
|
}
|
|
98
99
|
|
|
99
|
-
.
|
|
100
|
+
._editorContent_1kaza_9 ol {
|
|
100
101
|
list-style: decimal;
|
|
101
102
|
}
|
|
102
103
|
|
|
103
|
-
.
|
|
104
|
+
._editorContent_1kaza_9 blockquote {
|
|
104
105
|
border-left: 3px solid var(--tmr-accent, #ff6719);
|
|
105
106
|
padding-left: 1em;
|
|
106
107
|
margin: 0.9em 0;
|
|
@@ -108,13 +109,13 @@
|
|
|
108
109
|
font-style: italic;
|
|
109
110
|
}
|
|
110
111
|
|
|
111
|
-
.
|
|
112
|
+
._editorContent_1kaza_9 a {
|
|
112
113
|
color: var(--tmr-accent, #ff6719);
|
|
113
114
|
text-decoration: underline;
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
/* 仅行内代码加灰底;代码块内的 <code>(在 pre 内)由 NodeView 自管,排除掉 */
|
|
117
|
-
.
|
|
118
|
+
._editorContent_1kaza_9 code:not(pre code) {
|
|
118
119
|
background: var(--tmr-code-bg, #f4f4f4);
|
|
119
120
|
padding: 0.15em 0.4em;
|
|
120
121
|
border-radius: 4px;
|
|
@@ -129,13 +130,13 @@
|
|
|
129
130
|
);
|
|
130
131
|
}
|
|
131
132
|
|
|
132
|
-
.
|
|
133
|
+
._editorContent_1kaza_9 hr {
|
|
133
134
|
border: none;
|
|
134
135
|
border-top: 1px solid var(--tmr-border, #e6e6e6);
|
|
135
136
|
margin: 1.5em 0;
|
|
136
137
|
}
|
|
137
138
|
|
|
138
|
-
.
|
|
139
|
+
._editorContent_1kaza_9 img {
|
|
139
140
|
max-width: 100%;
|
|
140
141
|
height: auto;
|
|
141
142
|
border-radius: 6px;
|
|
@@ -144,21 +145,21 @@
|
|
|
144
145
|
}
|
|
145
146
|
|
|
146
147
|
/* 选中的图片高亮 */
|
|
147
|
-
.
|
|
148
|
+
._editorContent_1kaza_9 img.ProseMirror-selectednode {
|
|
148
149
|
outline: 2px solid var(--tmr-accent, #ff6719);
|
|
149
150
|
}
|
|
150
151
|
|
|
151
152
|
/* 表格:细边框、表头浅灰;外包 .tableWrapper(编辑器 NodeView + SSR renderWrapper)
|
|
152
153
|
* 桌面:width:100% + 允许换行,整表落在阅读列内(与改前一致)
|
|
153
154
|
* 窄屏:max-content + nowrap,避免列被挤扁,wrapper 内横滑 */
|
|
154
|
-
.
|
|
155
|
+
._editorContent_1kaza_9 .tableWrapper {
|
|
155
156
|
max-width: 100%;
|
|
156
157
|
overflow-x: auto;
|
|
157
158
|
-webkit-overflow-scrolling: touch;
|
|
158
159
|
margin: 1em 0;
|
|
159
160
|
}
|
|
160
161
|
|
|
161
|
-
.
|
|
162
|
+
._editorContent_1kaza_9 table {
|
|
162
163
|
border-collapse: collapse;
|
|
163
164
|
table-layout: auto;
|
|
164
165
|
width: 100%;
|
|
@@ -168,12 +169,12 @@
|
|
|
168
169
|
}
|
|
169
170
|
|
|
170
171
|
/* 无 wrapper 的遗留 HTML(旧缓存)仍给一点外边距 */
|
|
171
|
-
.
|
|
172
|
+
._editorContent_1kaza_9 :not(.tableWrapper) > table {
|
|
172
173
|
margin: 1em 0;
|
|
173
174
|
}
|
|
174
175
|
|
|
175
|
-
.
|
|
176
|
-
.
|
|
176
|
+
._editorContent_1kaza_9 table td,
|
|
177
|
+
._editorContent_1kaza_9 table th {
|
|
177
178
|
border: 1px solid var(--tmr-border, #e6e6e6);
|
|
178
179
|
padding: 8px 12px;
|
|
179
180
|
vertical-align: top;
|
|
@@ -184,27 +185,27 @@
|
|
|
184
185
|
word-break: break-word;
|
|
185
186
|
}
|
|
186
187
|
|
|
187
|
-
.
|
|
188
|
+
._editorContent_1kaza_9 table th {
|
|
188
189
|
background: var(--tmr-table-header-bg, #f7f7f7);
|
|
189
190
|
font-weight: 600;
|
|
190
191
|
}
|
|
191
192
|
|
|
192
193
|
@media (max-width: 640px) {
|
|
193
|
-
.
|
|
194
|
+
._editorContent_1kaza_9 table {
|
|
194
195
|
width: max-content;
|
|
195
196
|
min-width: 100%;
|
|
196
197
|
max-width: none;
|
|
197
198
|
}
|
|
198
199
|
|
|
199
|
-
.
|
|
200
|
-
.
|
|
200
|
+
._editorContent_1kaza_9 table td,
|
|
201
|
+
._editorContent_1kaza_9 table th {
|
|
201
202
|
white-space: nowrap;
|
|
202
203
|
word-break: normal;
|
|
203
204
|
}
|
|
204
205
|
}
|
|
205
206
|
|
|
206
207
|
/* 选中的单元格高亮 */
|
|
207
|
-
.
|
|
208
|
+
._editorContent_1kaza_9 table .selectedCell::after {
|
|
208
209
|
content: '';
|
|
209
210
|
position: absolute;
|
|
210
211
|
inset: 0;
|
|
@@ -213,7 +214,7 @@
|
|
|
213
214
|
}
|
|
214
215
|
|
|
215
216
|
/* 列宽拖拽手柄 */
|
|
216
|
-
.
|
|
217
|
+
._editorContent_1kaza_9 table .column-resize-handle {
|
|
217
218
|
position: absolute;
|
|
218
219
|
right: -2px;
|
|
219
220
|
top: 0;
|
|
@@ -224,34 +225,34 @@
|
|
|
224
225
|
}
|
|
225
226
|
|
|
226
227
|
/* 任务清单 */
|
|
227
|
-
.
|
|
228
|
+
._editorContent_1kaza_9 ul[data-type='taskList'] {
|
|
228
229
|
list-style: none;
|
|
229
230
|
padding-left: 0.2em;
|
|
230
231
|
}
|
|
231
232
|
|
|
232
|
-
.
|
|
233
|
+
._editorContent_1kaza_9 ul[data-type='taskList'] li {
|
|
233
234
|
display: flex;
|
|
234
235
|
align-items: flex-start;
|
|
235
236
|
gap: 0.5em;
|
|
236
237
|
margin: 0.3em 0;
|
|
237
238
|
}
|
|
238
239
|
|
|
239
|
-
.
|
|
240
|
+
._editorContent_1kaza_9 ul[data-type='taskList'] li > label {
|
|
240
241
|
margin-top: 0.35em;
|
|
241
242
|
user-select: none;
|
|
242
243
|
}
|
|
243
244
|
|
|
244
|
-
.
|
|
245
|
+
._editorContent_1kaza_9 ul[data-type='taskList'] li > div {
|
|
245
246
|
flex: 1;
|
|
246
247
|
}
|
|
247
248
|
|
|
248
|
-
.
|
|
249
|
+
._editorContent_1kaza_9 ul[data-type='taskList'] input[type='checkbox'] {
|
|
249
250
|
accent-color: var(--tmr-accent, #ff6719);
|
|
250
251
|
cursor: pointer;
|
|
251
252
|
}
|
|
252
253
|
|
|
253
254
|
/* 脚注/引文圆标:与正文字垂直居中;配色对齐工具栏 active(浅橙底 + accent 字) */
|
|
254
|
-
.
|
|
255
|
+
._editorContent_1kaza_9 span.citation-ref {
|
|
255
256
|
display: inline-flex;
|
|
256
257
|
align-items: center;
|
|
257
258
|
justify-content: center;
|
|
@@ -288,7 +289,7 @@
|
|
|
288
289
|
border-color 0.15s ease;
|
|
289
290
|
}
|
|
290
291
|
|
|
291
|
-
.
|
|
292
|
+
._editorContent_1kaza_9 span.citation-ref a {
|
|
292
293
|
color: inherit;
|
|
293
294
|
text-decoration: none;
|
|
294
295
|
display: flex;
|
|
@@ -300,19 +301,19 @@
|
|
|
300
301
|
pointer-events: none;
|
|
301
302
|
}
|
|
302
303
|
|
|
303
|
-
.
|
|
304
|
-
.
|
|
305
|
-
.
|
|
304
|
+
._editorContent_1kaza_9 span.citation-ref:hover,
|
|
305
|
+
._editorContent_1kaza_9 span.citation-ref:focus-within,
|
|
306
|
+
._editorContent_1kaza_9 span.citation-ref[data-tmr-citation-active] {
|
|
306
307
|
background: var(--tmr-citation-bg-hover, var(--tmr-accent, #ff6719));
|
|
307
308
|
border-color: var(--tmr-citation-bg-hover, var(--tmr-accent, #ff6719));
|
|
308
309
|
color: var(--tmr-citation-fg-hover, #ffffff);
|
|
309
310
|
}
|
|
310
311
|
|
|
311
|
-
.
|
|
312
|
+
._editorContent_1kaza_9 .tiptap-mathematics-render[data-type='inline-math'] {
|
|
312
313
|
display: inline;
|
|
313
314
|
}
|
|
314
315
|
|
|
315
|
-
.
|
|
316
|
+
._editorContent_1kaza_9 .tiptap-mathematics-render[data-type='block-math'] {
|
|
316
317
|
margin: 0.9em 0;
|
|
317
318
|
overflow-x: auto;
|
|
318
319
|
text-align: center;
|
|
@@ -531,7 +532,7 @@
|
|
|
531
532
|
color: #22863a;
|
|
532
533
|
}
|
|
533
534
|
/* 顶部操作栏:横跨宽度、内容居中、细线灰图标。配色映射到可覆盖的 --tmr-* 变量。 */
|
|
534
|
-
.
|
|
535
|
+
._toolbar_w3tos_2 {
|
|
535
536
|
--sb-accent: var(--tmr-accent, #ff6719);
|
|
536
537
|
--sb-text: var(--tmr-text, #363737);
|
|
537
538
|
--sb-muted: var(--tmr-toolbar-muted, #6b6b6b);
|
|
@@ -544,7 +545,7 @@
|
|
|
544
545
|
z-index: 8;
|
|
545
546
|
}
|
|
546
547
|
|
|
547
|
-
.
|
|
548
|
+
._inner_w3tos_15 {
|
|
548
549
|
display: flex;
|
|
549
550
|
align-items: center;
|
|
550
551
|
justify-content: safe center;
|
|
@@ -556,7 +557,7 @@
|
|
|
556
557
|
overflow-x: auto;
|
|
557
558
|
}
|
|
558
559
|
|
|
559
|
-
.
|
|
560
|
+
._btn_w3tos_27 {
|
|
560
561
|
display: inline-flex;
|
|
561
562
|
align-items: center;
|
|
562
563
|
justify-content: center;
|
|
@@ -574,28 +575,28 @@
|
|
|
574
575
|
transition: background 0.15s, color 0.15s;
|
|
575
576
|
}
|
|
576
577
|
|
|
577
|
-
.
|
|
578
|
+
._btn_w3tos_27:hover:not(:disabled) {
|
|
578
579
|
background: #f3f3f3;
|
|
579
580
|
color: var(--sb-text);
|
|
580
581
|
}
|
|
581
582
|
|
|
582
|
-
.
|
|
583
|
+
._btnActive_w3tos_50 {
|
|
583
584
|
color: var(--sb-accent);
|
|
584
585
|
background: #fff3ec;
|
|
585
586
|
}
|
|
586
587
|
|
|
587
|
-
.
|
|
588
|
+
._btnActive_w3tos_50:hover {
|
|
588
589
|
color: var(--sb-accent);
|
|
589
590
|
background: #ffe8da;
|
|
590
591
|
}
|
|
591
592
|
|
|
592
|
-
.
|
|
593
|
+
._btn_w3tos_27:disabled {
|
|
593
594
|
opacity: 0.3;
|
|
594
595
|
cursor: not-allowed;
|
|
595
596
|
}
|
|
596
597
|
|
|
597
598
|
/* 表内浮动工具条(BubbleMenu portal 到 body,拿不到 .toolbar 变量,故写死配色) */
|
|
598
|
-
.
|
|
599
|
+
._tableBubble_w3tos_66 {
|
|
599
600
|
display: flex;
|
|
600
601
|
align-items: center;
|
|
601
602
|
gap: 2px;
|
|
@@ -607,7 +608,7 @@
|
|
|
607
608
|
}
|
|
608
609
|
|
|
609
610
|
/* 文字型图标(引用等) */
|
|
610
|
-
.
|
|
611
|
+
._txtIcon_w3tos_78 {
|
|
611
612
|
font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
|
|
612
613
|
font-size: 16px;
|
|
613
614
|
font-weight: 600;
|
|
@@ -615,7 +616,7 @@
|
|
|
615
616
|
}
|
|
616
617
|
|
|
617
618
|
/* 文字颜色 / 高亮图标:字母 + 底部当前色条 */
|
|
618
|
-
.
|
|
619
|
+
._colorIcon_w3tos_86 {
|
|
619
620
|
display: inline-flex;
|
|
620
621
|
flex-direction: column;
|
|
621
622
|
align-items: center;
|
|
@@ -623,20 +624,20 @@
|
|
|
623
624
|
line-height: 1;
|
|
624
625
|
}
|
|
625
626
|
|
|
626
|
-
.
|
|
627
|
+
._colorIconGlyph_w3tos_94 {
|
|
627
628
|
font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
|
|
628
629
|
font-size: 15px;
|
|
629
630
|
font-weight: 600;
|
|
630
631
|
}
|
|
631
632
|
|
|
632
|
-
.
|
|
633
|
+
._colorIconBar_w3tos_100 {
|
|
633
634
|
width: 16px;
|
|
634
635
|
height: 3px;
|
|
635
636
|
border-radius: 1.5px;
|
|
636
637
|
}
|
|
637
638
|
|
|
638
639
|
/* A▾ 上标/下标下拉触发器 */
|
|
639
|
-
.
|
|
640
|
+
._scriptTrigger_w3tos_107 {
|
|
640
641
|
display: inline-flex;
|
|
641
642
|
align-items: center;
|
|
642
643
|
gap: 3px;
|
|
@@ -651,12 +652,12 @@
|
|
|
651
652
|
transition: background 0.15s, color 0.15s;
|
|
652
653
|
}
|
|
653
654
|
|
|
654
|
-
.
|
|
655
|
+
._scriptTrigger_w3tos_107:hover {
|
|
655
656
|
background: #f3f3f3;
|
|
656
657
|
color: var(--sb-text);
|
|
657
658
|
}
|
|
658
659
|
|
|
659
|
-
.
|
|
660
|
+
._scriptTriggerGlyph_w3tos_127 {
|
|
660
661
|
font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
|
|
661
662
|
font-size: 16px;
|
|
662
663
|
font-weight: 600;
|
|
@@ -664,7 +665,7 @@
|
|
|
664
665
|
text-underline-offset: 2px;
|
|
665
666
|
}
|
|
666
667
|
|
|
667
|
-
.
|
|
668
|
+
._divider_w3tos_135 {
|
|
668
669
|
width: 1px;
|
|
669
670
|
height: 20px;
|
|
670
671
|
margin: 0 8px;
|
|
@@ -673,7 +674,7 @@
|
|
|
673
674
|
}
|
|
674
675
|
|
|
675
676
|
/* ── Style / Size / More 下拉触发器 ── */
|
|
676
|
-
.
|
|
677
|
+
._styleTrigger_w3tos_144 {
|
|
677
678
|
display: inline-flex;
|
|
678
679
|
align-items: center;
|
|
679
680
|
justify-content: space-between;
|
|
@@ -693,16 +694,16 @@
|
|
|
693
694
|
transition: background 0.15s;
|
|
694
695
|
}
|
|
695
696
|
|
|
696
|
-
.
|
|
697
|
+
._styleTrigger_w3tos_144:hover:not(:disabled) {
|
|
697
698
|
background: #f3f3f3;
|
|
698
699
|
}
|
|
699
700
|
|
|
700
|
-
.
|
|
701
|
+
._styleTrigger_w3tos_144:disabled {
|
|
701
702
|
opacity: 0.3;
|
|
702
703
|
cursor: not-allowed;
|
|
703
704
|
}
|
|
704
705
|
|
|
705
|
-
.
|
|
706
|
+
._styleTriggerLabel_w3tos_173 {
|
|
706
707
|
flex: 1;
|
|
707
708
|
text-align: left;
|
|
708
709
|
overflow: hidden;
|
|
@@ -710,19 +711,19 @@
|
|
|
710
711
|
text-overflow: ellipsis;
|
|
711
712
|
}
|
|
712
713
|
|
|
713
|
-
.
|
|
714
|
+
._styleTriggerCaret_w3tos_181 {
|
|
714
715
|
color: var(--sb-muted);
|
|
715
716
|
flex: none;
|
|
716
717
|
}
|
|
717
718
|
|
|
718
719
|
/* 下拉项:图标 + 文字 */
|
|
719
|
-
.
|
|
720
|
+
._styleItem_w3tos_187 {
|
|
720
721
|
display: inline-flex;
|
|
721
722
|
align-items: center;
|
|
722
723
|
gap: 12px;
|
|
723
724
|
}
|
|
724
725
|
|
|
725
|
-
.
|
|
726
|
+
._styleIcon_w3tos_193 {
|
|
726
727
|
display: inline-flex;
|
|
727
728
|
justify-content: center;
|
|
728
729
|
align-items: center;
|
|
@@ -732,19 +733,19 @@
|
|
|
732
733
|
}
|
|
733
734
|
|
|
734
735
|
/* 上标 / 下标图标 */
|
|
735
|
-
.
|
|
736
|
+
._scriptGlyph_w3tos_203 {
|
|
736
737
|
display: inline-block;
|
|
737
738
|
text-align: center;
|
|
738
739
|
font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
|
|
739
740
|
}
|
|
740
741
|
|
|
741
|
-
.
|
|
742
|
-
.
|
|
742
|
+
._scriptGlyph_w3tos_203 sup,
|
|
743
|
+
._scriptGlyph_w3tos_203 sub {
|
|
743
744
|
font-size: 0.7em;
|
|
744
745
|
}
|
|
745
746
|
|
|
746
747
|
/* ── Radix 下拉菜单面板(替代 antd .ant-dropdown-menu) ── */
|
|
747
|
-
.
|
|
748
|
+
._menu_w3tos_215 {
|
|
748
749
|
min-width: 200px;
|
|
749
750
|
padding: 6px;
|
|
750
751
|
background: #fff;
|
|
@@ -755,7 +756,7 @@
|
|
|
755
756
|
z-index: 1000;
|
|
756
757
|
}
|
|
757
758
|
|
|
758
|
-
.
|
|
759
|
+
._menuItem_w3tos_226 {
|
|
759
760
|
display: flex;
|
|
760
761
|
align-items: center;
|
|
761
762
|
width: 100%;
|
|
@@ -771,63 +772,52 @@
|
|
|
771
772
|
outline: none;
|
|
772
773
|
}
|
|
773
774
|
|
|
774
|
-
.
|
|
775
|
+
._menuItem_w3tos_226:hover:not(:disabled) {
|
|
775
776
|
background: #f3f3f3;
|
|
776
777
|
}
|
|
777
778
|
|
|
778
|
-
.
|
|
779
|
+
._menuItem_w3tos_226:disabled {
|
|
779
780
|
opacity: 0.35;
|
|
780
781
|
cursor: not-allowed;
|
|
781
782
|
}
|
|
782
783
|
|
|
783
784
|
/* 选中态:品牌色高亮 */
|
|
784
|
-
.
|
|
785
|
+
._menuItemSelected_w3tos_252 {
|
|
785
786
|
background: #fff3ec;
|
|
786
787
|
color: var(--sb-accent);
|
|
787
788
|
}
|
|
788
789
|
|
|
789
|
-
.
|
|
790
|
+
._menuItemSelected_w3tos_252 ._styleIcon_w3tos_193 {
|
|
790
791
|
color: var(--sb-accent);
|
|
791
792
|
}
|
|
792
793
|
|
|
793
|
-
.
|
|
794
|
+
._menuItemSelected_w3tos_252:hover:not(:disabled) {
|
|
794
795
|
background: #ffe8da;
|
|
795
796
|
}
|
|
796
797
|
|
|
797
798
|
/* Radix Popover 内容(承载 ColorPalette),面板自带阴影,这里只兜底 z-index */
|
|
798
|
-
.
|
|
799
|
+
._popoverContent_w3tos_266 {
|
|
799
800
|
z-index: 1000;
|
|
800
801
|
}
|
|
801
802
|
|
|
802
|
-
.
|
|
803
|
-
position:
|
|
804
|
-
|
|
805
|
-
height: 0;
|
|
806
|
-
pointer-events: none;
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
._mathContent_z6tes_277 {
|
|
810
|
-
z-index: 1100;
|
|
811
|
-
padding: 0;
|
|
812
|
-
background: transparent;
|
|
813
|
-
border: none;
|
|
814
|
-
box-shadow: none;
|
|
815
|
-
outline: none;
|
|
803
|
+
._mathLayer_w3tos_270 {
|
|
804
|
+
position: absolute;
|
|
805
|
+
z-index: 6;
|
|
816
806
|
}
|
|
817
807
|
|
|
818
|
-
.
|
|
808
|
+
._mathStack_w3tos_275 {
|
|
819
809
|
display: flex;
|
|
820
810
|
flex-direction: column;
|
|
821
811
|
align-items: flex-start;
|
|
822
812
|
gap: 8px;
|
|
823
813
|
}
|
|
824
814
|
|
|
825
|
-
.
|
|
815
|
+
._mathStackBlock_w3tos_282 {
|
|
826
816
|
align-items: stretch;
|
|
827
817
|
width: 100%;
|
|
828
818
|
}
|
|
829
819
|
|
|
830
|
-
.
|
|
820
|
+
._mathHint_w3tos_287 {
|
|
831
821
|
display: inline-flex;
|
|
832
822
|
align-items: center;
|
|
833
823
|
gap: 6px;
|
|
@@ -839,19 +829,19 @@
|
|
|
839
829
|
line-height: 1.4;
|
|
840
830
|
}
|
|
841
831
|
|
|
842
|
-
.
|
|
832
|
+
._mathHintBlock_w3tos_299 {
|
|
843
833
|
width: 100%;
|
|
844
834
|
padding: 10px 14px;
|
|
845
835
|
border-radius: 8px;
|
|
846
836
|
}
|
|
847
837
|
|
|
848
|
-
.
|
|
838
|
+
._mathHintIcon_w3tos_305 {
|
|
849
839
|
font-family: ui-serif, Georgia, 'Times New Roman', serif;
|
|
850
840
|
font-size: 12px;
|
|
851
841
|
opacity: 0.85;
|
|
852
842
|
}
|
|
853
843
|
|
|
854
|
-
.
|
|
844
|
+
._mathPreviewInline_w3tos_311 {
|
|
855
845
|
display: inline-flex;
|
|
856
846
|
max-width: min(440px, calc(100vw - 24px));
|
|
857
847
|
padding: 4px 10px;
|
|
@@ -859,9 +849,25 @@
|
|
|
859
849
|
border-radius: 6px;
|
|
860
850
|
background: #fff3ec;
|
|
861
851
|
color: var(--tmr-text, #363737);
|
|
852
|
+
/* KaTeX 1.21em 相对此字号;默认对齐 .editorContent,标题内公式由节点 computed size 覆盖 */
|
|
853
|
+
font-family: var(
|
|
854
|
+
--tmr-body-font,
|
|
855
|
+
Spectral,
|
|
856
|
+
serif,
|
|
857
|
+
system-ui,
|
|
858
|
+
-apple-system,
|
|
859
|
+
BlinkMacSystemFont,
|
|
860
|
+
'Segoe UI',
|
|
861
|
+
Roboto,
|
|
862
|
+
Helvetica,
|
|
863
|
+
Arial,
|
|
864
|
+
sans-serif
|
|
865
|
+
);
|
|
866
|
+
font-size: var(--tmr-font-size, 19px);
|
|
867
|
+
line-height: 1;
|
|
862
868
|
}
|
|
863
869
|
|
|
864
|
-
.
|
|
870
|
+
._mathPreviewBlock_w3tos_337 {
|
|
865
871
|
width: 100%;
|
|
866
872
|
min-height: 48px;
|
|
867
873
|
padding: 14px 16px;
|
|
@@ -870,13 +876,28 @@
|
|
|
870
876
|
background: var(--tmr-code-bg, #f4f4f4);
|
|
871
877
|
text-align: center;
|
|
872
878
|
color: var(--tmr-text, #363737);
|
|
879
|
+
font-family: var(
|
|
880
|
+
--tmr-body-font,
|
|
881
|
+
Spectral,
|
|
882
|
+
serif,
|
|
883
|
+
system-ui,
|
|
884
|
+
-apple-system,
|
|
885
|
+
BlinkMacSystemFont,
|
|
886
|
+
'Segoe UI',
|
|
887
|
+
Roboto,
|
|
888
|
+
Helvetica,
|
|
889
|
+
Arial,
|
|
890
|
+
sans-serif
|
|
891
|
+
);
|
|
892
|
+
font-size: var(--tmr-font-size, 19px);
|
|
893
|
+
line-height: 1;
|
|
873
894
|
}
|
|
874
895
|
|
|
875
|
-
.
|
|
896
|
+
._mathPreviewBlock_w3tos_337 .katex-display {
|
|
876
897
|
margin: 0;
|
|
877
898
|
}
|
|
878
899
|
|
|
879
|
-
.
|
|
900
|
+
._mathField_w3tos_367 {
|
|
880
901
|
display: flex;
|
|
881
902
|
align-items: center;
|
|
882
903
|
gap: 8px;
|
|
@@ -888,14 +909,14 @@
|
|
|
888
909
|
box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
|
|
889
910
|
}
|
|
890
911
|
|
|
891
|
-
.
|
|
912
|
+
._mathFieldBlock_w3tos_379 {
|
|
892
913
|
align-items: flex-start;
|
|
893
914
|
width: 100%;
|
|
894
915
|
border-radius: 12px;
|
|
895
916
|
padding: 10px 10px 10px 14px;
|
|
896
917
|
}
|
|
897
918
|
|
|
898
|
-
.
|
|
919
|
+
._mathInput_w3tos_386 {
|
|
899
920
|
flex: 1;
|
|
900
921
|
min-width: 0;
|
|
901
922
|
margin: 0;
|
|
@@ -909,11 +930,11 @@
|
|
|
909
930
|
resize: none;
|
|
910
931
|
}
|
|
911
932
|
|
|
912
|
-
.
|
|
933
|
+
._mathInput_w3tos_386:focus {
|
|
913
934
|
outline: none;
|
|
914
935
|
}
|
|
915
936
|
|
|
916
|
-
.
|
|
937
|
+
._mathDone_w3tos_404 {
|
|
917
938
|
display: inline-flex;
|
|
918
939
|
align-items: center;
|
|
919
940
|
gap: 4px;
|
|
@@ -929,16 +950,16 @@
|
|
|
929
950
|
cursor: pointer;
|
|
930
951
|
}
|
|
931
952
|
|
|
932
|
-
.
|
|
953
|
+
._mathDone_w3tos_404:hover:not(:disabled) {
|
|
933
954
|
filter: brightness(0.95);
|
|
934
955
|
}
|
|
935
956
|
|
|
936
|
-
.
|
|
957
|
+
._mathDone_w3tos_404:disabled {
|
|
937
958
|
opacity: 0.35;
|
|
938
959
|
cursor: not-allowed;
|
|
939
960
|
}
|
|
940
961
|
|
|
941
|
-
.
|
|
962
|
+
._mathDoneKbd_w3tos_429 {
|
|
942
963
|
font-size: 11px;
|
|
943
964
|
font-weight: 500;
|
|
944
965
|
opacity: 0.85;
|