tiptap-markdown-react 0.8.0 → 0.8.2

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 CHANGED
@@ -1,11 +1,12 @@
1
1
  /* 规范正文样式(编辑器 / 只读预览 / SSR 阅读三处共用同一个类,保证所见即所得、
2
2
  发布后一致)。配色/字体全部走可被消费方覆盖的 CSS 变量(--tmr-*,带默认值)。 */
3
3
 
4
- ._editorScroll_7o2kw_4 {
4
+ ._editorScroll_1kaza_4 {
5
5
  margin-top: 24px;
6
+ position: relative;
6
7
  }
7
8
 
8
- ._editorContent_7o2kw_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
- ._editorContent_7o2kw_8 p.is-editor-empty:first-child::before {
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
- ._editorContent_7o2kw_8 h1 {
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
- ._editorContent_7o2kw_8 h2 {
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
- ._editorContent_7o2kw_8 h3 {
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
- ._editorContent_7o2kw_8 h4 {
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
- ._editorContent_7o2kw_8 h5 {
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
- ._editorContent_7o2kw_8 h6 {
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
- ._editorContent_7o2kw_8 p {
86
+ ._editorContent_1kaza_9 p {
86
87
  margin: 0.7em 0;
87
88
  }
88
89
 
89
- ._editorContent_7o2kw_8 ul,
90
- ._editorContent_7o2kw_8 ol {
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
- ._editorContent_7o2kw_8 ul {
96
+ ._editorContent_1kaza_9 ul {
96
97
  list-style: disc;
97
98
  }
98
99
 
99
- ._editorContent_7o2kw_8 ol {
100
+ ._editorContent_1kaza_9 ol {
100
101
  list-style: decimal;
101
102
  }
102
103
 
103
- ._editorContent_7o2kw_8 blockquote {
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
- ._editorContent_7o2kw_8 a {
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
- ._editorContent_7o2kw_8 code:not(pre code) {
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
- ._editorContent_7o2kw_8 hr {
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
- ._editorContent_7o2kw_8 img {
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
- ._editorContent_7o2kw_8 img.ProseMirror-selectednode {
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
- ._editorContent_7o2kw_8 .tableWrapper {
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
- ._editorContent_7o2kw_8 table {
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
- ._editorContent_7o2kw_8 :not(.tableWrapper) > table {
172
+ ._editorContent_1kaza_9 :not(.tableWrapper) > table {
172
173
  margin: 1em 0;
173
174
  }
174
175
 
175
- ._editorContent_7o2kw_8 table td,
176
- ._editorContent_7o2kw_8 table th {
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
- ._editorContent_7o2kw_8 table th {
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
- ._editorContent_7o2kw_8 table {
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
- ._editorContent_7o2kw_8 table td,
200
- ._editorContent_7o2kw_8 table th {
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
- ._editorContent_7o2kw_8 table .selectedCell::after {
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
- ._editorContent_7o2kw_8 table .column-resize-handle {
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
- ._editorContent_7o2kw_8 ul[data-type='taskList'] {
228
+ ._editorContent_1kaza_9 ul[data-type='taskList'] {
228
229
  list-style: none;
229
230
  padding-left: 0.2em;
230
231
  }
231
232
 
232
- ._editorContent_7o2kw_8 ul[data-type='taskList'] li {
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
- ._editorContent_7o2kw_8 ul[data-type='taskList'] li > label {
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
- ._editorContent_7o2kw_8 ul[data-type='taskList'] li > div {
245
+ ._editorContent_1kaza_9 ul[data-type='taskList'] li > div {
245
246
  flex: 1;
246
247
  }
247
248
 
248
- ._editorContent_7o2kw_8 ul[data-type='taskList'] input[type='checkbox'] {
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
- ._editorContent_7o2kw_8 span.citation-ref {
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
- ._editorContent_7o2kw_8 span.citation-ref a {
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
- ._editorContent_7o2kw_8 span.citation-ref:hover,
304
- ._editorContent_7o2kw_8 span.citation-ref:focus-within,
305
- ._editorContent_7o2kw_8 span.citation-ref[data-tmr-citation-active] {
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
- ._editorContent_7o2kw_8 .tiptap-mathematics-render[data-type='inline-math'] {
312
+ ._editorContent_1kaza_9 .tiptap-mathematics-render[data-type='inline-math'] {
312
313
  display: inline;
313
314
  }
314
315
 
315
- ._editorContent_7o2kw_8 .tiptap-mathematics-render[data-type='block-math'] {
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;
@@ -326,6 +327,11 @@
326
327
  .tiptap-mathematics-render.block-math-error {
327
328
  color: #c0392b;
328
329
  }
330
+
331
+ /* 编辑中:占位仍在,视觉交给浮层预览,避免正文公式与预览叠两份 */
332
+ .tiptap-mathematics-render.tmr-math-editing {
333
+ visibility: hidden;
334
+ }
329
335
  /* 代码块 NodeView:白底、细边框、顶部 header 放语言选择(Radix 下拉)+ 删除。 */
330
336
  ._wrapper_5i2vi_2 {
331
337
  position: relative;
@@ -526,7 +532,7 @@
526
532
  color: #22863a;
527
533
  }
528
534
  /* 顶部操作栏:横跨宽度、内容居中、细线灰图标。配色映射到可覆盖的 --tmr-* 变量。 */
529
- ._toolbar_8cpy8_2 {
535
+ ._toolbar_16b09_2 {
530
536
  --sb-accent: var(--tmr-accent, #ff6719);
531
537
  --sb-text: var(--tmr-text, #363737);
532
538
  --sb-muted: var(--tmr-toolbar-muted, #6b6b6b);
@@ -539,7 +545,7 @@
539
545
  z-index: 8;
540
546
  }
541
547
 
542
- ._inner_8cpy8_15 {
548
+ ._inner_16b09_15 {
543
549
  display: flex;
544
550
  align-items: center;
545
551
  justify-content: safe center;
@@ -551,7 +557,7 @@
551
557
  overflow-x: auto;
552
558
  }
553
559
 
554
- ._btn_8cpy8_27 {
560
+ ._btn_16b09_27 {
555
561
  display: inline-flex;
556
562
  align-items: center;
557
563
  justify-content: center;
@@ -569,28 +575,28 @@
569
575
  transition: background 0.15s, color 0.15s;
570
576
  }
571
577
 
572
- ._btn_8cpy8_27:hover:not(:disabled) {
578
+ ._btn_16b09_27:hover:not(:disabled) {
573
579
  background: #f3f3f3;
574
580
  color: var(--sb-text);
575
581
  }
576
582
 
577
- ._btnActive_8cpy8_50 {
583
+ ._btnActive_16b09_50 {
578
584
  color: var(--sb-accent);
579
585
  background: #fff3ec;
580
586
  }
581
587
 
582
- ._btnActive_8cpy8_50:hover {
588
+ ._btnActive_16b09_50:hover {
583
589
  color: var(--sb-accent);
584
590
  background: #ffe8da;
585
591
  }
586
592
 
587
- ._btn_8cpy8_27:disabled {
593
+ ._btn_16b09_27:disabled {
588
594
  opacity: 0.3;
589
595
  cursor: not-allowed;
590
596
  }
591
597
 
592
598
  /* 表内浮动工具条(BubbleMenu portal 到 body,拿不到 .toolbar 变量,故写死配色) */
593
- ._tableBubble_8cpy8_66 {
599
+ ._tableBubble_16b09_66 {
594
600
  display: flex;
595
601
  align-items: center;
596
602
  gap: 2px;
@@ -602,7 +608,7 @@
602
608
  }
603
609
 
604
610
  /* 文字型图标(引用等) */
605
- ._txtIcon_8cpy8_78 {
611
+ ._txtIcon_16b09_78 {
606
612
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
607
613
  font-size: 16px;
608
614
  font-weight: 600;
@@ -610,7 +616,7 @@
610
616
  }
611
617
 
612
618
  /* 文字颜色 / 高亮图标:字母 + 底部当前色条 */
613
- ._colorIcon_8cpy8_86 {
619
+ ._colorIcon_16b09_86 {
614
620
  display: inline-flex;
615
621
  flex-direction: column;
616
622
  align-items: center;
@@ -618,20 +624,20 @@
618
624
  line-height: 1;
619
625
  }
620
626
 
621
- ._colorIconGlyph_8cpy8_94 {
627
+ ._colorIconGlyph_16b09_94 {
622
628
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
623
629
  font-size: 15px;
624
630
  font-weight: 600;
625
631
  }
626
632
 
627
- ._colorIconBar_8cpy8_100 {
633
+ ._colorIconBar_16b09_100 {
628
634
  width: 16px;
629
635
  height: 3px;
630
636
  border-radius: 1.5px;
631
637
  }
632
638
 
633
639
  /* A▾ 上标/下标下拉触发器 */
634
- ._scriptTrigger_8cpy8_107 {
640
+ ._scriptTrigger_16b09_107 {
635
641
  display: inline-flex;
636
642
  align-items: center;
637
643
  gap: 3px;
@@ -646,12 +652,12 @@
646
652
  transition: background 0.15s, color 0.15s;
647
653
  }
648
654
 
649
- ._scriptTrigger_8cpy8_107:hover {
655
+ ._scriptTrigger_16b09_107:hover {
650
656
  background: #f3f3f3;
651
657
  color: var(--sb-text);
652
658
  }
653
659
 
654
- ._scriptTriggerGlyph_8cpy8_127 {
660
+ ._scriptTriggerGlyph_16b09_127 {
655
661
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
656
662
  font-size: 16px;
657
663
  font-weight: 600;
@@ -659,7 +665,7 @@
659
665
  text-underline-offset: 2px;
660
666
  }
661
667
 
662
- ._divider_8cpy8_135 {
668
+ ._divider_16b09_135 {
663
669
  width: 1px;
664
670
  height: 20px;
665
671
  margin: 0 8px;
@@ -668,7 +674,7 @@
668
674
  }
669
675
 
670
676
  /* ── Style / Size / More 下拉触发器 ── */
671
- ._styleTrigger_8cpy8_144 {
677
+ ._styleTrigger_16b09_144 {
672
678
  display: inline-flex;
673
679
  align-items: center;
674
680
  justify-content: space-between;
@@ -688,16 +694,16 @@
688
694
  transition: background 0.15s;
689
695
  }
690
696
 
691
- ._styleTrigger_8cpy8_144:hover:not(:disabled) {
697
+ ._styleTrigger_16b09_144:hover:not(:disabled) {
692
698
  background: #f3f3f3;
693
699
  }
694
700
 
695
- ._styleTrigger_8cpy8_144:disabled {
701
+ ._styleTrigger_16b09_144:disabled {
696
702
  opacity: 0.3;
697
703
  cursor: not-allowed;
698
704
  }
699
705
 
700
- ._styleTriggerLabel_8cpy8_173 {
706
+ ._styleTriggerLabel_16b09_173 {
701
707
  flex: 1;
702
708
  text-align: left;
703
709
  overflow: hidden;
@@ -705,19 +711,19 @@
705
711
  text-overflow: ellipsis;
706
712
  }
707
713
 
708
- ._styleTriggerCaret_8cpy8_181 {
714
+ ._styleTriggerCaret_16b09_181 {
709
715
  color: var(--sb-muted);
710
716
  flex: none;
711
717
  }
712
718
 
713
719
  /* 下拉项:图标 + 文字 */
714
- ._styleItem_8cpy8_187 {
720
+ ._styleItem_16b09_187 {
715
721
  display: inline-flex;
716
722
  align-items: center;
717
723
  gap: 12px;
718
724
  }
719
725
 
720
- ._styleIcon_8cpy8_193 {
726
+ ._styleIcon_16b09_193 {
721
727
  display: inline-flex;
722
728
  justify-content: center;
723
729
  align-items: center;
@@ -727,19 +733,19 @@
727
733
  }
728
734
 
729
735
  /* 上标 / 下标图标 */
730
- ._scriptGlyph_8cpy8_203 {
736
+ ._scriptGlyph_16b09_203 {
731
737
  display: inline-block;
732
738
  text-align: center;
733
739
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
734
740
  }
735
741
 
736
- ._scriptGlyph_8cpy8_203 sup,
737
- ._scriptGlyph_8cpy8_203 sub {
742
+ ._scriptGlyph_16b09_203 sup,
743
+ ._scriptGlyph_16b09_203 sub {
738
744
  font-size: 0.7em;
739
745
  }
740
746
 
741
747
  /* ── Radix 下拉菜单面板(替代 antd .ant-dropdown-menu) ── */
742
- ._menu_8cpy8_215 {
748
+ ._menu_16b09_215 {
743
749
  min-width: 200px;
744
750
  padding: 6px;
745
751
  background: #fff;
@@ -750,7 +756,7 @@
750
756
  z-index: 1000;
751
757
  }
752
758
 
753
- ._menuItem_8cpy8_226 {
759
+ ._menuItem_16b09_226 {
754
760
  display: flex;
755
761
  align-items: center;
756
762
  width: 100%;
@@ -766,126 +772,167 @@
766
772
  outline: none;
767
773
  }
768
774
 
769
- ._menuItem_8cpy8_226:hover:not(:disabled) {
775
+ ._menuItem_16b09_226:hover:not(:disabled) {
770
776
  background: #f3f3f3;
771
777
  }
772
778
 
773
- ._menuItem_8cpy8_226:disabled {
779
+ ._menuItem_16b09_226:disabled {
774
780
  opacity: 0.35;
775
781
  cursor: not-allowed;
776
782
  }
777
783
 
778
784
  /* 选中态:品牌色高亮 */
779
- ._menuItemSelected_8cpy8_252 {
785
+ ._menuItemSelected_16b09_252 {
780
786
  background: #fff3ec;
781
787
  color: var(--sb-accent);
782
788
  }
783
789
 
784
- ._menuItemSelected_8cpy8_252 ._styleIcon_8cpy8_193 {
790
+ ._menuItemSelected_16b09_252 ._styleIcon_16b09_193 {
785
791
  color: var(--sb-accent);
786
792
  }
787
793
 
788
- ._menuItemSelected_8cpy8_252:hover:not(:disabled) {
794
+ ._menuItemSelected_16b09_252:hover:not(:disabled) {
789
795
  background: #ffe8da;
790
796
  }
791
797
 
792
798
  /* Radix Popover 内容(承载 ColorPalette),面板自带阴影,这里只兜底 z-index */
793
- ._popoverContent_8cpy8_266 {
799
+ ._popoverContent_16b09_266 {
794
800
  z-index: 1000;
795
801
  }
796
802
 
797
- ._mathOverlay_8cpy8_270 {
798
- position: fixed;
799
- inset: 0;
800
- z-index: 1100;
801
- display: flex;
802
- align-items: center;
803
- justify-content: center;
804
- background: rgb(0 0 0 / 24%);
803
+ ._mathLayer_16b09_270 {
804
+ position: absolute;
805
+ z-index: 6;
805
806
  }
806
807
 
807
- ._mathPopover_8cpy8_280 {
808
- width: min(420px, calc(100vw - 32px));
809
- padding: 14px;
810
- background: #fff;
811
- border-radius: 10px;
812
- box-shadow:
813
- 0 6px 24px rgba(0, 0, 0, 0.12),
814
- 0 0 0 1px rgba(0, 0, 0, 0.06);
808
+ ._mathStack_16b09_275 {
809
+ display: flex;
810
+ flex-direction: column;
811
+ align-items: flex-start;
812
+ gap: 8px;
815
813
  }
816
814
 
817
- ._mathTitle_8cpy8_290 {
818
- margin-bottom: 8px;
819
- font-size: 14px;
820
- font-weight: 600;
821
- color: var(--sb-text, #363737);
815
+ ._mathStackBlock_16b09_282 {
816
+ align-items: stretch;
817
+ width: 100%;
822
818
  }
823
819
 
824
- ._mathTextarea_8cpy8_297 {
825
- display: block;
826
- width: 100%;
827
- margin: 0;
828
- padding: 8px 10px;
829
- border: 1px solid var(--sb-border, #ececec);
820
+ ._mathHint_16b09_287 {
821
+ display: inline-flex;
822
+ align-items: center;
823
+ gap: 6px;
824
+ padding: 4px 10px;
830
825
  border-radius: 6px;
831
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
826
+ background: var(--tmr-code-bg, #f4f4f4);
827
+ color: var(--tmr-muted, #777777);
832
828
  font-size: 13px;
833
- line-height: 1.45;
834
- color: var(--sb-text, #363737);
835
- resize: vertical;
829
+ line-height: 1.4;
836
830
  }
837
831
 
838
- ._mathTextarea_8cpy8_297:focus {
839
- outline: 2px solid var(--sb-accent, #ff6719);
840
- outline-offset: 1px;
832
+ ._mathHintBlock_16b09_299 {
833
+ width: 100%;
834
+ padding: 10px 14px;
835
+ border-radius: 8px;
841
836
  }
842
837
 
843
- ._mathPreview_8cpy8_316 {
844
- min-height: 44px;
845
- margin-top: 8px;
846
- padding: 8px 10px;
838
+ ._mathHintIcon_16b09_305 {
839
+ font-family: ui-serif, Georgia, 'Times New Roman', serif;
840
+ font-size: 12px;
841
+ opacity: 0.85;
842
+ }
843
+
844
+ ._mathPreviewInline_16b09_311 {
845
+ display: inline-flex;
846
+ max-width: min(440px, calc(100vw - 24px));
847
+ padding: 4px 10px;
847
848
  overflow-x: auto;
848
- background: #f7f7f7;
849
849
  border-radius: 6px;
850
+ background: #fff3ec;
851
+ color: var(--tmr-text, #363737);
852
+ }
853
+
854
+ ._mathPreviewBlock_16b09_321 {
855
+ width: 100%;
856
+ min-height: 48px;
857
+ padding: 14px 16px;
858
+ overflow-x: auto;
859
+ border-radius: 8px;
860
+ background: var(--tmr-code-bg, #f4f4f4);
850
861
  text-align: center;
862
+ color: var(--tmr-text, #363737);
851
863
  }
852
864
 
853
- ._mathActions_8cpy8_326 {
865
+ ._mathPreviewBlock_16b09_321 .katex-display {
866
+ margin: 0;
867
+ }
868
+
869
+ ._mathField_16b09_336 {
854
870
  display: flex;
855
- justify-content: flex-end;
871
+ align-items: center;
856
872
  gap: 8px;
857
- margin-top: 12px;
873
+ width: min(440px, calc(100vw - 24px));
874
+ padding: 6px 6px 6px 14px;
875
+ background: var(--tmr-popover-bg, #fff);
876
+ border: 1px solid var(--tmr-toolbar-border, #ececec);
877
+ border-radius: 999px;
878
+ box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
858
879
  }
859
880
 
860
- ._mathBtn_8cpy8_333 {
861
- height: 32px;
862
- padding: 0 12px;
863
- border: 1px solid var(--sb-border, #ececec);
864
- border-radius: 6px;
865
- background: #fff;
866
- color: var(--sb-text, #363737);
881
+ ._mathFieldBlock_16b09_348 {
882
+ align-items: flex-start;
883
+ width: 100%;
884
+ border-radius: 12px;
885
+ padding: 10px 10px 10px 14px;
886
+ }
887
+
888
+ ._mathInput_16b09_355 {
889
+ flex: 1;
890
+ min-width: 0;
891
+ margin: 0;
892
+ padding: 4px 0;
893
+ border: none;
894
+ background: transparent;
895
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
867
896
  font-size: 13px;
868
- cursor: pointer;
897
+ line-height: 1.45;
898
+ color: var(--tmr-text, #363737);
899
+ resize: none;
869
900
  }
870
901
 
871
- ._mathBtn_8cpy8_333:hover:not(:disabled) {
872
- background: #f3f3f3;
902
+ ._mathInput_16b09_355:focus {
903
+ outline: none;
873
904
  }
874
905
 
875
- ._mathBtnPrimary_8cpy8_348 {
876
- border-color: var(--sb-accent, #ff6719);
877
- background: var(--sb-accent, #ff6719);
906
+ ._mathDone_16b09_373 {
907
+ display: inline-flex;
908
+ align-items: center;
909
+ gap: 4px;
910
+ flex-shrink: 0;
911
+ height: 28px;
912
+ padding: 0 10px;
913
+ border: none;
914
+ border-radius: 999px;
915
+ background: var(--tmr-accent, #ff6719);
878
916
  color: #fff;
917
+ font-size: 12px;
918
+ font-weight: 600;
919
+ cursor: pointer;
879
920
  }
880
921
 
881
- ._mathBtnPrimary_8cpy8_348:hover:not(:disabled) {
922
+ ._mathDone_16b09_373:hover:not(:disabled) {
882
923
  filter: brightness(0.95);
883
924
  }
884
925
 
885
- ._mathBtn_8cpy8_333:disabled {
926
+ ._mathDone_16b09_373:disabled {
886
927
  opacity: 0.35;
887
928
  cursor: not-allowed;
888
929
  }
930
+
931
+ ._mathDoneKbd_16b09_398 {
932
+ font-size: 11px;
933
+ font-weight: 500;
934
+ opacity: 0.85;
935
+ }
889
936
  /* 颜色面板:None 清除行 + 10×6 色板 + THEME 品牌色 */
890
937
  ._palette_x5lrq_2 {
891
938
  padding: 14px;