@bytechain.cn/colamd-themes 0.3.1 → 0.5.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/.claude/skills/colamd-themes-preview.skill.md +333 -0
- package/.claude/skills/colamd-themes.skill.md +10 -0
- package/.dsh/skills/colamd-themes/SKILL.md +14 -0
- package/.github/supported-topics.yml +17 -0
- package/.hermes/skills/tools/colamd-themes/SKILL.md +14 -0
- package/.openclaw/skills/colamd-themes/SKILL.md +1 -146
- package/.opencode/skills/colamd-themes/SKILL.md +17 -0
- package/.trae/rules/colamd-themes.md +0 -145
- package/CHANGELOG.md +318 -240
- package/DSH_SUPPORT_SUMMARY.md +87 -0
- package/README.md +414 -384
- package/README_CN.md +412 -384
- package/RELEASENOTE.md +541 -365
- package/bytechain.cn-colamd-themes-0.5.0.tgz +0 -0
- package/dist/cli.js +272 -32
- package/dist/cli.js.map +1 -1
- package/dist/color-utils.d.ts +1 -0
- package/dist/color-utils.js +25 -6
- package/dist/color-utils.js.map +1 -1
- package/dist/extractors/pdf-extractor.js +6 -1
- package/dist/extractors/pdf-extractor.js.map +1 -1
- package/dist/extractors/url-extractor.d.ts +0 -4
- package/dist/extractors/url-extractor.js +13 -126
- package/dist/extractors/url-extractor.js.map +1 -1
- package/dist/generator.d.ts +1 -1
- package/dist/generator.js +32 -11
- package/dist/generator.js.map +1 -1
- package/dist/models.d.ts +5 -4
- package/dist/models.js +2 -3
- package/dist/models.js.map +1 -1
- package/dist/renderer.d.ts +4 -2
- package/dist/renderer.js +68 -25
- package/dist/renderer.js.map +1 -1
- package/dist/templates/template.css +220 -498
- package/dist/templates/theme-paradigm.md +530 -658
- package/dist/templates/theme-template.hbs +256 -370
- package/dist/theme-store.js +19 -3
- package/dist/theme-store.js.map +1 -1
- package/dist/utils/document-paradigm.d.ts +12 -0
- package/dist/utils/document-paradigm.js +109 -0
- package/dist/utils/document-paradigm.js.map +1 -0
- package/dist/validators.d.ts +4 -1
- package/dist/validators.js +115 -1
- package/dist/validators.js.map +1 -1
- package/mcp-server/dist/index.d.ts +13 -0
- package/mcp-server/dist/index.d.ts.map +1 -0
- package/mcp-server/dist/index.js +0 -0
- package/mcp-server/dist/index.js.map +1 -0
- package/mcp-server/package-lock.json +1759 -0
- package/mcp-server/package.json +24 -0
- package/mcp-server/src/index.ts +0 -0
- package/mcp-server/tsconfig.json +19 -0
- package/package.json +54 -36
- package/skills/build-skills.sh +30 -5
- package/skills/colamd-themes/SKILL.md +180 -148
- package/src/cli.ts +474 -217
- package/src/color-systems.ts +289 -289
- package/src/color-utils.ts +137 -120
- package/src/contrast.ts +66 -66
- package/src/docx-style-paradigm.ts +811 -811
- package/src/export-cli.ts +356 -356
- package/src/extractors/base.ts +8 -8
- package/src/extractors/docx-extractor.ts +417 -417
- package/src/extractors/pdf-extractor.ts +533 -527
- package/src/extractors/url-extractor.ts +846 -981
- package/src/generator.ts +197 -169
- package/src/index.ts +29 -29
- package/src/models.ts +212 -212
- package/src/renderer.ts +332 -288
- package/src/templates/template.css +220 -498
- package/src/templates/theme-paradigm.md +530 -658
- package/src/templates/theme-template.hbs +256 -370
- package/src/theme-store.ts +185 -170
- package/src/types/pdf-parse.d.ts +12 -12
- package/src/utils/cli-utils.ts +84 -84
- package/src/utils/document-paradigm.ts +118 -0
- package/src/validators.ts +298 -176
- package/themes/academic-paper-pt.css +353 -1805
- package/themes/academic-paper.css +350 -1099
- package/themes/academic-style.css +342 -2430
- package/themes/colly.css +256 -370
- package/themes/elegant.css +288 -671
- package/themes/forest-ink.css +240 -664
- package/themes/guizang.css +250 -732
- package/themes/hermes-security.css +279 -0
- package/themes/meeting-minutes.css +256 -370
- package/themes/pixso-design.css +278 -1261
- package/themes/salvator-blog.css +256 -370
- package/themes/shimo-theme.css +256 -0
- package/themes/swiss-design.css +285 -746
- package/themes/template.css +220 -498
- package/themes/trae-blue.css +280 -737
- package/themes/word-contract.css +249 -0
- package/themes-preview/demo-content.md +187 -187
- package/tsconfig.json +18 -18
- package/src/mermaid-presets.ts +0 -142
- package/themes/swiss-design copy.css +0 -746
- package/themes-preview/colly-preview.html +0 -623
- package/themes-preview/meeting-minutes-preview.html +0 -625
- package/themes-preview/salvator-blog-preview.html +0 -623
package/themes/forest-ink.css
CHANGED
|
@@ -1,664 +1,240 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* ColaMD
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
.
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
.
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
.
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
.
|
|
225
|
-
.
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
.cm-s-inner .cm-header { color: #c9a85a; }
|
|
242
|
-
|
|
243
|
-
.cm-s-inner .cm-header { font-weight: 700; }
|
|
244
|
-
body.theme-custom .token.url, .cm-s-inner .cm-link { color: #c9a85a; text-decoration: underline; }
|
|
245
|
-
|
|
246
|
-
/* 运算符 */
|
|
247
|
-
body.theme-custom .token.operator, .cm-s-inner .cm-operator { color: #b5b0a8; }
|
|
248
|
-
|
|
249
|
-
/* 正则 / 代码文本色 */
|
|
250
|
-
body.theme-custom .token.regex { color: #c99a5e; }
|
|
251
|
-
.cm-s-inner .cm-variable { color: #e8e4de; }
|
|
252
|
-
|
|
253
|
-
/* ── 11. 表格 ── */
|
|
254
|
-
table, body.theme-custom table {
|
|
255
|
-
width: 100%;
|
|
256
|
-
border-collapse: collapse;
|
|
257
|
-
margin: 1.5em 0;
|
|
258
|
-
font-size: 0.95em;
|
|
259
|
-
}
|
|
260
|
-
table th, body.theme-custom table th {
|
|
261
|
-
background: #e4e8e4;
|
|
262
|
-
font-weight: 700;
|
|
263
|
-
color: #1a2e1f;
|
|
264
|
-
padding: 10px 14px;
|
|
265
|
-
border-bottom: 2px solid #3d6b4a;
|
|
266
|
-
text-align: left;
|
|
267
|
-
}
|
|
268
|
-
table td, body.theme-custom table td {
|
|
269
|
-
padding: 10px 14px;
|
|
270
|
-
border-bottom: 1px solid #c8d0ca;
|
|
271
|
-
}
|
|
272
|
-
table tr:hover td, body.theme-custom table tr:hover td {
|
|
273
|
-
background: rgba(61, 107, 74, 0.04);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
/* ── 12. 图片 ── */
|
|
277
|
-
img, body.theme-custom img { max-width: 100%; }
|
|
278
|
-
p > img:only-child, body.theme-custom p > img:only-child { display: block; margin: 1.5em auto; }
|
|
279
|
-
body.theme-custom figure { margin: 1.5em 0; text-align: center; }
|
|
280
|
-
body.theme-custom figcaption { font-size: 0.9em; color: var(--text-muted); margin-top: 0.6em; }
|
|
281
|
-
|
|
282
|
-
/* ── 13. 数学公式 ── */
|
|
283
|
-
|
|
284
|
-
/* ColaMD */
|
|
285
|
-
body.theme-custom .math-block {
|
|
286
|
-
background: #e4e8e4;
|
|
287
|
-
padding: 16px 0;
|
|
288
|
-
margin: 1.5em 0;
|
|
289
|
-
border-radius: 6px;
|
|
290
|
-
border: 1px solid #c8d0ca;
|
|
291
|
-
text-align: center;
|
|
292
|
-
overflow-x: auto;
|
|
293
|
-
}
|
|
294
|
-
body.theme-custom .math-block .katex,
|
|
295
|
-
body.theme-custom .math-block .katex-display,
|
|
296
|
-
body.theme-custom .math-block .MathJax,
|
|
297
|
-
body.theme-custom .math-block .katex *,
|
|
298
|
-
body.theme-custom .math-block .MathJax *,
|
|
299
|
-
body.theme-custom .math-block .katex .mord,
|
|
300
|
-
body.theme-custom .math-block .katex .mbin,
|
|
301
|
-
body.theme-custom .math-block .katex .mrel,
|
|
302
|
-
body.theme-custom .math-block .katex .mopen,
|
|
303
|
-
body.theme-custom .math-block .katex .mclose,
|
|
304
|
-
body.theme-custom .math-block .katex .mpunct,
|
|
305
|
-
body.theme-custom .math-block .katex .minner { color: #1a2e1f !important; }
|
|
306
|
-
|
|
307
|
-
/* Typora */
|
|
308
|
-
.md-math-block, .MathJax_Display { margin: 1.5em 0 !important; text-align: center; }
|
|
309
|
-
.md-inline-math, .md-inline-math script, .md-math-inline, .MathJax { color: #1a2e1f; }
|
|
310
|
-
.MathJax svg, .MathJax_Display svg { fill: currentColor; stroke: currentColor; }
|
|
311
|
-
|
|
312
|
-
/* ── 14. Mermaid ── */
|
|
313
|
-
|
|
314
|
-
/* 容器 */
|
|
315
|
-
.md-diagram-panel { margin: 1.5em 0; }
|
|
316
|
-
.md-diagram-panel.md-mermaid,
|
|
317
|
-
body.theme-custom .mermaid-block,
|
|
318
|
-
body.theme-custom .mermaid-preview {
|
|
319
|
-
background: #e5eae6;
|
|
320
|
-
border: 1px solid #b8c4bc;
|
|
321
|
-
border-radius: 6px;
|
|
322
|
-
padding: 20px;
|
|
323
|
-
margin: 1.5em 0;
|
|
324
|
-
}
|
|
325
|
-
.md-diagram-panel.md-mermaid svg,
|
|
326
|
-
body.theme-custom .mermaid-preview svg { max-width: 100%; height: auto; }
|
|
327
|
-
|
|
328
|
-
/* 全局字体 */
|
|
329
|
-
.md-diagram-panel.md-mermaid svg text,
|
|
330
|
-
body.theme-custom .mermaid-preview svg text {
|
|
331
|
-
fill: #1a2e1f;
|
|
332
|
-
font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
|
|
333
|
-
}
|
|
334
|
-
body.theme-custom .mermaid-preview svg .nodeLabel span,
|
|
335
|
-
body.theme-custom .mermaid-preview svg .edgeLabel span {
|
|
336
|
-
font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
|
|
337
|
-
}
|
|
338
|
-
body.theme-custom .mermaid-preview svg foreignObject span {
|
|
339
|
-
color: #1a2e1f !important;
|
|
340
|
-
font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif !important;
|
|
341
|
-
font-size: 14px !important;
|
|
342
|
-
}
|
|
343
|
-
.md-diagram-panel.md-mermaid .node .label {
|
|
344
|
-
color: #1a2e1f !important;
|
|
345
|
-
font-family: "Noto Serif SC", "Source Han Serif SC", Georgia, serif !important;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
/* 通用节点 & 连线 (ColaMD) */
|
|
349
|
-
body.theme-custom .mermaid-preview svg .node rect,
|
|
350
|
-
body.theme-custom .mermaid-preview svg .node circle,
|
|
351
|
-
body.theme-custom .mermaid-preview svg .node ellipse,
|
|
352
|
-
body.theme-custom .mermaid-preview svg .node polygon,
|
|
353
|
-
body.theme-custom .mermaid-preview svg .node path {
|
|
354
|
-
stroke: #3d6b4a;
|
|
355
|
-
fill: #d6dfd6 !important;
|
|
356
|
-
}
|
|
357
|
-
body.theme-custom .mermaid-preview svg .edgePath .path { stroke: #6a8a74; }
|
|
358
|
-
body.theme-custom .mermaid-preview svg .cluster rect,
|
|
359
|
-
body.theme-custom .mermaid-preview svg .cluster path { stroke: #3d6b4a; }
|
|
360
|
-
body.theme-custom .mermaid-preview svg defs marker path { fill: #6a8a74; stroke: #6a8a74; }
|
|
361
|
-
|
|
362
|
-
/* 通用节点 & 连线 (Typora) */
|
|
363
|
-
.md-diagram-panel.md-mermaid .node rect,
|
|
364
|
-
.md-diagram-panel.md-mermaid .node circle,
|
|
365
|
-
.md-diagram-panel.md-mermaid .node ellipse,
|
|
366
|
-
.md-diagram-panel.md-mermaid .node polygon {
|
|
367
|
-
fill: #d6dfd6 !important;
|
|
368
|
-
stroke: #3d6b4a !important;
|
|
369
|
-
stroke-width: 1.5px !important;
|
|
370
|
-
}
|
|
371
|
-
.md-diagram-panel.md-mermaid .edgePath .path {
|
|
372
|
-
stroke: #6a8a74 !important;
|
|
373
|
-
stroke-width: 1.5px !important;
|
|
374
|
-
}
|
|
375
|
-
.md-diagram-panel.md-mermaid .edgeLabel {
|
|
376
|
-
background-color: #e5eae6 !important;
|
|
377
|
-
color: #333 !important;
|
|
378
|
-
}
|
|
379
|
-
.md-diagram-panel.md-mermaid .cluster rect {
|
|
380
|
-
fill: rgba(61, 107, 74, 0.12) !important;
|
|
381
|
-
stroke: #3d6b4a !important;
|
|
382
|
-
stroke-width: 1px !important;
|
|
383
|
-
stroke-dasharray: 4,4;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
/* 硬编码色值覆盖 */
|
|
387
|
-
body.theme-custom .mermaid-preview svg rect[stroke="#444444"],
|
|
388
|
-
body.theme-custom .mermaid-preview svg path[stroke="#444444"],
|
|
389
|
-
body.theme-custom .mermaid-preview svg line[stroke="#444444"],
|
|
390
|
-
body.theme-custom .mermaid-preview svg rect[stroke="#000000"],
|
|
391
|
-
body.theme-custom .mermaid-preview svg path[stroke="#000000"],
|
|
392
|
-
body.theme-custom .mermaid-preview svg line[stroke="#000000"] { stroke: #3d6b4a !important; }
|
|
393
|
-
|
|
394
|
-
/* 标签 & 文本 (ColaMD) */
|
|
395
|
-
body.theme-custom .mermaid-preview svg .label text,
|
|
396
|
-
body.theme-custom .mermaid-preview svg .nodeLabel text { fill: #1a2e1f !important; }
|
|
397
|
-
body.theme-custom .mermaid-preview svg .nodeLabel span { color: #1a2e1f !important; }
|
|
398
|
-
body.theme-custom .mermaid-preview svg .edgeLabel text { fill: #1a2e1f !important; }
|
|
399
|
-
body.theme-custom .mermaid-preview svg .edgeLabel rect { fill: #e5eae6 !important; }
|
|
400
|
-
body.theme-custom .mermaid-preview svg .edgeLabel span { color: #1a2e1f !important; }
|
|
401
|
-
|
|
402
|
-
/* 文本偏移 */
|
|
403
|
-
body.theme-custom .mermaid-preview svg .label text,
|
|
404
|
-
body.theme-custom .mermaid-preview svg .nodeLabel text { transform: translateY(-3px) !important; }
|
|
405
|
-
body.theme-custom .mermaid-preview svg .titleText { transform: translateY(-1px) !important; }
|
|
406
|
-
body.theme-custom .mermaid-preview svg .xychart .axis text { transform: translateY(0) !important; }
|
|
407
|
-
body.theme-custom .mermaid-preview svg .nodeLabel,
|
|
408
|
-
body.theme-custom .mermaid-preview svg .edgeLabel {
|
|
409
|
-
display: inline-block !important;
|
|
410
|
-
position: relative !important;
|
|
411
|
-
top: -3px !important;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
/* 状态图 */
|
|
415
|
-
body.theme-custom .mermaid-preview svg .statediagram-state rect,
|
|
416
|
-
body.theme-custom .mermaid-preview svg .statediagram-state circle { stroke: #3d6b4a; }
|
|
417
|
-
body.theme-custom .mermaid-preview svg .statediagram-state .nodeLabel text,
|
|
418
|
-
body.theme-custom .mermaid-preview svg .statediagram-state .nodeLabel span,
|
|
419
|
-
body.theme-custom .mermaid-preview svg .statediagram-cluster .outer-title text,
|
|
420
|
-
body.theme-custom .mermaid-preview svg .edgeLabel .label text { fill: #1a2e1f !important; color: #1a2e1f !important; }
|
|
421
|
-
body.theme-custom .mermaid-preview svg .statediagram-cluster rect { stroke: #3d6b4a; }
|
|
422
|
-
body.theme-custom .mermaid-preview svg .transition { stroke: #6a8a74; }
|
|
423
|
-
|
|
424
|
-
/* 饼图 */
|
|
425
|
-
body.theme-custom .mermaid-preview svg .pieCircle,
|
|
426
|
-
body.theme-custom .mermaid-preview svg .slice { stroke: #3d6b4a; }
|
|
427
|
-
body.theme-custom .mermaid-preview svg .pieTitleText,
|
|
428
|
-
body.theme-custom .mermaid-preview svg .legend text { fill: #1a2e1f !important; }
|
|
429
|
-
|
|
430
|
-
/* 四象限图 */
|
|
431
|
-
body.theme-custom .mermaid-preview svg .quadrant rect { stroke: #3d6b4a; }
|
|
432
|
-
body.theme-custom .mermaid-preview svg .quadrant text,
|
|
433
|
-
body.theme-custom .mermaid-preview svg .quadrant .titleText { fill: #1a2e1f !important; }
|
|
434
|
-
body.theme-custom .mermaid-preview svg .quadrant .axis text { fill: #777 !important; }
|
|
435
|
-
body.theme-custom .mermaid-preview svg .quadrant .axis line,
|
|
436
|
-
body.theme-custom .mermaid-preview svg .quadrant .axis path { stroke: #6a8a74; }
|
|
437
|
-
body.theme-custom .mermaid-preview svg .quadrant .point { fill: #3d6b4a; stroke: #3d6b4a; }
|
|
438
|
-
|
|
439
|
-
/* XY Chart */
|
|
440
|
-
body.theme-custom .mermaid-preview svg .xychart .axis text { fill: #777 !important; }
|
|
441
|
-
body.theme-custom .mermaid-preview svg .xychart .axis line,
|
|
442
|
-
body.theme-custom .mermaid-preview svg .xychart .axis path { stroke: #6a8a74; }
|
|
443
|
-
body.theme-custom .mermaid-preview svg .xychart .plot rect { stroke: #3d6b4a; }
|
|
444
|
-
body.theme-custom .mermaid-preview svg .xychart .plot line { stroke: #c4bfb5; }
|
|
445
|
-
body.theme-custom .mermaid-preview svg .xychart .titleText { fill: #1a2e1f !important; }
|
|
446
|
-
|
|
447
|
-
/* Sankey */
|
|
448
|
-
body.theme-custom .mermaid-preview svg .sankey .link { stroke: #3d6b4a; }
|
|
449
|
-
body.theme-custom .mermaid-preview svg .sankey text { fill: #1a2e1f !important; }
|
|
450
|
-
|
|
451
|
-
/* 时序图 (ColaMD) */
|
|
452
|
-
body.theme-custom .mermaid-preview svg .actor rect,
|
|
453
|
-
body.theme-custom .mermaid-preview svg .actor path { stroke: #3d6b4a; }
|
|
454
|
-
body.theme-custom .mermaid-preview svg text.actor { fill: #1a2e1f !important; }
|
|
455
|
-
body.theme-custom .mermaid-preview svg .messageLine0,
|
|
456
|
-
body.theme-custom .mermaid-preview svg .messageLine1 { stroke: #6a8a74 !important; }
|
|
457
|
-
body.theme-custom .mermaid-preview svg .messageText,
|
|
458
|
-
body.theme-custom .mermaid-preview svg .labelText,
|
|
459
|
-
body.theme-custom .mermaid-preview svg .loopText tspan,
|
|
460
|
-
body.theme-custom .mermaid-preview svg .altText tspan,
|
|
461
|
-
body.theme-custom .mermaid-preview svg .optText tspan { fill: #1a2e1f !important; }
|
|
462
|
-
body.theme-custom .mermaid-preview svg .loopText,
|
|
463
|
-
body.theme-custom .mermaid-preview svg .altText,
|
|
464
|
-
body.theme-custom .mermaid-preview svg .optText { fill: #777 !important; }
|
|
465
|
-
body.theme-custom .mermaid-preview svg .loopLine,
|
|
466
|
-
body.theme-custom .mermaid-preview svg .altLine,
|
|
467
|
-
body.theme-custom .mermaid-preview svg .optLine { stroke: #6a8a74 !important; }
|
|
468
|
-
body.theme-custom .mermaid-preview svg .labelBox { stroke: #b5b0a8; }
|
|
469
|
-
|
|
470
|
-
/* 时序图 (Typora) */
|
|
471
|
-
.md-diagram-panel.md-mermaid .actor { fill: #d6dfd6 !important; stroke: #3d6b4a !important; }
|
|
472
|
-
.md-diagram-panel.md-mermaid text.actor { fill: #1a2e1f !important; }
|
|
473
|
-
.md-diagram-panel.md-mermaid .messageLine0,
|
|
474
|
-
.md-diagram-panel.md-mermaid .messageLine1 { stroke: #6a8a74 !important; }
|
|
475
|
-
.md-diagram-panel.md-mermaid .messageText { fill: #555 !important; }
|
|
476
|
-
|
|
477
|
-
/* 类图 */
|
|
478
|
-
body.theme-custom .mermaid-preview svg .classBox rect,
|
|
479
|
-
body.theme-custom .mermaid-preview svg .classBox path { stroke: #3d6b4a; }
|
|
480
|
-
body.theme-custom .mermaid-preview svg .classTitle text,
|
|
481
|
-
body.theme-custom .mermaid-preview svg .classTitle span { fill: #1a2e1f !important; color: #1a2e1f !important; }
|
|
482
|
-
body.theme-custom .mermaid-preview svg .classText text,
|
|
483
|
-
body.theme-custom .mermaid-preview svg .classText span { fill: #555 !important; color: #555 !important; }
|
|
484
|
-
body.theme-custom .mermaid-preview svg .divider { stroke: #b5b0a8; }
|
|
485
|
-
body.theme-custom .mermaid-preview svg .relation { stroke: #6a8a74; }
|
|
486
|
-
|
|
487
|
-
/* 甘特图 (ColaMD) */
|
|
488
|
-
body.theme-custom .mermaid-preview svg .task { stroke: #3d6b4a; }
|
|
489
|
-
body.theme-custom .mermaid-preview svg .taskText,
|
|
490
|
-
body.theme-custom .mermaid-preview svg .taskTextOutsideRight,
|
|
491
|
-
body.theme-custom .mermaid-preview svg .taskTextOutsideLeft,
|
|
492
|
-
body.theme-custom .mermaid-preview svg .sectionText,
|
|
493
|
-
body.theme-custom .mermaid-preview svg .sectionTitle { fill: #1a2e1f !important; }
|
|
494
|
-
body.theme-custom .mermaid-preview svg .section rect { stroke: #b5b0a8; }
|
|
495
|
-
body.theme-custom .mermaid-preview svg .today { stroke: #3d6b4a !important; }
|
|
496
|
-
body.theme-custom .mermaid-preview svg .grid .tick line { stroke: #c4bfb5; }
|
|
497
|
-
body.theme-custom .mermaid-preview svg .grid .domain { stroke: #6a8a74; }
|
|
498
|
-
body.theme-custom .mermaid-preview svg .tick text { fill: #777; }
|
|
499
|
-
|
|
500
|
-
/* 甘特图 (Typora) */
|
|
501
|
-
.md-diagram-panel.md-mermaid .section0,
|
|
502
|
-
.md-diagram-panel.md-mermaid .section1,
|
|
503
|
-
.md-diagram-panel.md-mermaid .section2,
|
|
504
|
-
.md-diagram-panel.md-mermaid .section3 { fill: rgba(61, 107, 74, 0.14) !important; }
|
|
505
|
-
.md-diagram-panel.md-mermaid .task0,
|
|
506
|
-
.md-diagram-panel.md-mermaid .task1,
|
|
507
|
-
.md-diagram-panel.md-mermaid .task2,
|
|
508
|
-
.md-diagram-panel.md-mermaid .task3 { fill: #3d6b4a !important; stroke: #2d5538 !important; }
|
|
509
|
-
.md-diagram-panel.md-mermaid .today { stroke: #3d6b4a !important; stroke-width: 2px !important; }
|
|
510
|
-
|
|
511
|
-
/* 思维导图 */
|
|
512
|
-
body.theme-custom .mermaid-preview svg .mindmap-node rect,
|
|
513
|
-
body.theme-custom .mermaid-preview svg .mindmap-node circle,
|
|
514
|
-
body.theme-custom .mermaid-preview svg .mindmap-node ellipse,
|
|
515
|
-
body.theme-custom .mermaid-preview svg .mindmap-node polygon,
|
|
516
|
-
body.theme-custom .mermaid-preview svg .mindmap-node path { stroke: #3d6b4a; }
|
|
517
|
-
body.theme-custom .mermaid-preview svg .mindmap-node text,
|
|
518
|
-
body.theme-custom .mermaid-preview svg .mindmap-node .nodeLabel text,
|
|
519
|
-
body.theme-custom .mermaid-preview svg .mindmap-node .nodeLabel span { fill: #1a2e1f !important; color: #1a2e1f !important; }
|
|
520
|
-
body.theme-custom .mermaid-preview svg .mindmap-edge { stroke: #6a8a74; }
|
|
521
|
-
|
|
522
|
-
/* Block 图 */
|
|
523
|
-
body.theme-custom .mermaid-preview svg .block rect,
|
|
524
|
-
body.theme-custom .mermaid-preview svg .block path { stroke: #3d6b4a; }
|
|
525
|
-
body.theme-custom .mermaid-preview svg .block text,
|
|
526
|
-
body.theme-custom .mermaid-preview svg .block .nodeLabel text,
|
|
527
|
-
body.theme-custom .mermaid-preview svg .block .nodeLabel span { fill: #1a2e1f !important; color: #1a2e1f !important; }
|
|
528
|
-
|
|
529
|
-
/* ER 图 */
|
|
530
|
-
body.theme-custom .mermaid-preview svg .er .entityBox rect,
|
|
531
|
-
body.theme-custom .mermaid-preview svg .er .entityBox path { stroke: #3d6b4a; }
|
|
532
|
-
body.theme-custom .mermaid-preview svg .er text,
|
|
533
|
-
body.theme-custom .mermaid-preview svg .er .relationshipLabel { fill: #1a2e1f !important; }
|
|
534
|
-
body.theme-custom .mermaid-preview svg .er .relationshipLine { stroke: #6a8a74; }
|
|
535
|
-
|
|
536
|
-
/* Git 图 */
|
|
537
|
-
body.theme-custom .mermaid-preview svg .git .commit rect,
|
|
538
|
-
body.theme-custom .mermaid-preview svg .git .commit circle { stroke: #3d6b4a; }
|
|
539
|
-
body.theme-custom .mermaid-preview svg .git text,
|
|
540
|
-
body.theme-custom .mermaid-preview svg .git .branchLabel text { fill: #1a2e1f !important; }
|
|
541
|
-
|
|
542
|
-
/* 用户旅程图 */
|
|
543
|
-
body.theme-custom .mermaid-preview svg .journey .task rect { stroke: #3d6b4a; }
|
|
544
|
-
body.theme-custom .mermaid-preview svg .journey text { fill: #1a2e1f !important; }
|
|
545
|
-
|
|
546
|
-
/* 时间线 */
|
|
547
|
-
body.theme-custom .mermaid-preview svg .timeline rect { stroke: #3d6b4a; }
|
|
548
|
-
body.theme-custom .mermaid-preview svg .timeline text { fill: #1a2e1f !important; }
|
|
549
|
-
|
|
550
|
-
/* C4 架构图 */
|
|
551
|
-
body.theme-custom .mermaid-preview svg .c4 .person rect,
|
|
552
|
-
body.theme-custom .mermaid-preview svg .c4 .person path,
|
|
553
|
-
body.theme-custom .mermaid-preview svg .c4 .system rect,
|
|
554
|
-
body.theme-custom .mermaid-preview svg .c4 .system path,
|
|
555
|
-
body.theme-custom .mermaid-preview svg .c4 .container rect,
|
|
556
|
-
body.theme-custom .mermaid-preview svg .c4 .container path,
|
|
557
|
-
body.theme-custom .mermaid-preview svg .c4 .boundary rect,
|
|
558
|
-
body.theme-custom .mermaid-preview svg .c4 .boundary path { stroke: #3d6b4a; }
|
|
559
|
-
body.theme-custom .mermaid-preview svg .c4 text,
|
|
560
|
-
body.theme-custom .mermaid-preview svg .c4 span { fill: #1a2e1f !important; color: #1a2e1f !important; }
|
|
561
|
-
|
|
562
|
-
/* 人物节点 */
|
|
563
|
-
body.theme-custom .mermaid-preview svg .person rect,
|
|
564
|
-
body.theme-custom .mermaid-preview svg .person path { stroke: #1a2e1f; }
|
|
565
|
-
body.theme-custom .mermaid-preview svg .person-man text { fill: #ffffff !important; }
|
|
566
|
-
body.theme-custom .mermaid-preview svg .person-man span { color: #ffffff !important; }
|
|
567
|
-
|
|
568
|
-
/* ── 15. YAML 元数据 ── */
|
|
569
|
-
pre.md-meta-block,
|
|
570
|
-
body.theme-custom .frontmatter,
|
|
571
|
-
body.theme-custom .yaml-front-matter {
|
|
572
|
-
font-family: "IBM Plex Mono", "JetBrains Mono", "Fira Code", monospace;
|
|
573
|
-
font-size: 0.85em;
|
|
574
|
-
background: #e3e7e3;
|
|
575
|
-
border: 1px solid #c8d0ca;
|
|
576
|
-
border-radius: 4px;
|
|
577
|
-
padding: 14px 18px;
|
|
578
|
-
margin-bottom: 2em;
|
|
579
|
-
color: #666;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
/* ── 16. 脚注 ── */
|
|
583
|
-
.md-footnote { font-size: 0.85em; color: #3d6b4a; }
|
|
584
|
-
sup.md-footnote { background: transparent; }
|
|
585
|
-
|
|
586
|
-
/* ── 17. 目录 ── */
|
|
587
|
-
.md-toc { font-size: 0.9em; }
|
|
588
|
-
.md-toc-content { margin-left: 0; }
|
|
589
|
-
.md-toc-item { color: #1a2e1f; }
|
|
590
|
-
.md-toc-h1 .md-toc-inner { font-weight: 700; }
|
|
591
|
-
|
|
592
|
-
/* ── 18. 侧边栏 ── */
|
|
593
|
-
.sidebar-content { font-family: inherit; }
|
|
594
|
-
.file-node-content { line-height: 1.6; }
|
|
595
|
-
.file-node-title { font-size: 1em; }
|
|
596
|
-
|
|
597
|
-
/* ── 19. 聚焦模式 ── */
|
|
598
|
-
.on-focus-mode .md-end-block:not(.md-focus):not(.md-focus-container) * { color: #bbb !important; }
|
|
599
|
-
.on-focus-mode .md-end-block:not(.md-focus):not(.md-focus-container) img { opacity: 0.5; }
|
|
600
|
-
|
|
601
|
-
/* ── 20. 搜索 & 选择 ── */
|
|
602
|
-
::selection, body.theme-custom ::selection { background: rgba(61, 107, 74, 0.18); }
|
|
603
|
-
#write .md-search-hit { background: rgba(61, 107, 74, 0.18); border-radius: 2px; }
|
|
604
|
-
|
|
605
|
-
/* ── 21. 滚动条 ── */
|
|
606
|
-
::-webkit-scrollbar,
|
|
607
|
-
body.theme-custom ::-webkit-scrollbar { width: 6px; height: 6px; }
|
|
608
|
-
::-webkit-scrollbar-thumb,
|
|
609
|
-
body.theme-custom ::-webkit-scrollbar-thumb { background: #c4c0b8; border-radius: 3px; }
|
|
610
|
-
::-webkit-scrollbar-thumb:hover,
|
|
611
|
-
body.theme-custom ::-webkit-scrollbar-thumb:hover { background: #ada9a2; }
|
|
612
|
-
::-webkit-scrollbar-track,
|
|
613
|
-
body.theme-custom ::-webkit-scrollbar-track { background: transparent; }
|
|
614
|
-
|
|
615
|
-
/* ── 22. Megamenu ── */
|
|
616
|
-
.megamenu-content { font-family: inherit; }
|
|
617
|
-
#megamenu-back-btn { color: #1a2e1f; }
|
|
618
|
-
|
|
619
|
-
/* ── 23. 大纲 ── */
|
|
620
|
-
.outline-content { font-size: 0.9em; }
|
|
621
|
-
.outline-item { padding: 4px 0; }
|
|
622
|
-
.outline-active, .outline-item:hover { color: #3d6b4a; }
|
|
623
|
-
|
|
624
|
-
/* ── 24. 工具提示 ── */
|
|
625
|
-
.ty-tooltip { font-size: 0.85em; background: #333; color: #eee; border-radius: 4px; }
|
|
626
|
-
|
|
627
|
-
/* ── 25. 打印 ── */
|
|
628
|
-
@media print {
|
|
629
|
-
html { font-size: 13px; }
|
|
630
|
-
html, body { background: #fff; }
|
|
631
|
-
#write { max-width: none; padding: 0; }
|
|
632
|
-
pre.md-fences { background: #f5f5f5; color: #333; border: 1px solid #ddd; }
|
|
633
|
-
table th { background: #f5f5f5; }
|
|
634
|
-
body.theme-custom { background: #fff !important; color: #000 !important; }
|
|
635
|
-
body.theme-custom pre {
|
|
636
|
-
background: #f5f5f5 !important;
|
|
637
|
-
color: #333 !important;
|
|
638
|
-
border: 1px solid #ddd !important;
|
|
639
|
-
}
|
|
640
|
-
body.theme-custom .math-block { background: #fafafa !important; border: 1px solid #ddd !important; }
|
|
641
|
-
body.theme-custom .mermaid-block,
|
|
642
|
-
body.theme-custom .mermaid-preview,
|
|
643
|
-
.md-diagram-panel.md-mermaid { background: #fafafa !important; border: 1px solid #ddd !important; }
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
/* ── 26. 移动端适配 ── */
|
|
647
|
-
@media only screen and (max-width:768px) {
|
|
648
|
-
body.theme-custom { font-size: 15px; line-height: 1.8; }
|
|
649
|
-
body.theme-custom h1 { font-size: 1.5em; }
|
|
650
|
-
body.theme-custom h2 { font-size: 1.3em; }
|
|
651
|
-
body.theme-custom h3 { font-size: 1.15em; }
|
|
652
|
-
body.theme-custom pre { padding: 14px 16px; font-size: 0.82em; }
|
|
653
|
-
body.theme-custom table { font-size: 0.85em; }
|
|
654
|
-
body.theme-custom table th,
|
|
655
|
-
body.theme-custom table td { padding: 8px 10px; }
|
|
656
|
-
body.theme-custom blockquote { padding: 12px 14px 12px 18px; }
|
|
657
|
-
body.theme-custom .math-block { padding: 12px 0; overflow-x: auto; }
|
|
658
|
-
body.theme-custom .mermaid-block,
|
|
659
|
-
body.theme-custom .mermaid-preview,
|
|
660
|
-
.md-diagram-panel.md-mermaid { padding: 12px; margin: 1em 0; }
|
|
661
|
-
body.theme-custom .mermaid-preview svg { max-width: 100% !important; height: auto !important; }
|
|
662
|
-
body.theme-custom .mermaid-preview svg text { font-size: 10px !important; }
|
|
663
|
-
body.theme-custom .mermaid-preview svg .titleText { font-size: 12px !important; }
|
|
664
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* ColaMD Theme: forest-ink(森林墨)
|
|
3
|
+
* 宣纸底 + 松烟墨绿;宋体正文、墨绿强调、深色代码块
|
|
4
|
+
* 契约:ColaMD Extend 2.7(CodeMirror 6 + Pele)
|
|
5
|
+
*
|
|
6
|
+
* 变量一律写在 :root;编辑器里没有 <h1>/<blockquote> 元素,
|
|
7
|
+
* 标题是带类的一行,引用/代码块是每行一个 div(禁止纵向 padding)。
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
/* ── 1.1 Seed Palette ── */
|
|
12
|
+
--seed-accent: #356b44;
|
|
13
|
+
--seed-accent-light: #c7d3ca;
|
|
14
|
+
--seed-accent-dark: #2a5c3a;
|
|
15
|
+
--seed-surface: #f0f1f0;
|
|
16
|
+
--seed-panel: #e4e8e4;
|
|
17
|
+
--seed-panel-alt: #e3e7e3;
|
|
18
|
+
--seed-ink: #1a2e1f;
|
|
19
|
+
--seed-ink-muted: #565e58;
|
|
20
|
+
--seed-ink-dim: #758078;
|
|
21
|
+
--seed-border: #c9c9c7;
|
|
22
|
+
--seed-border-strong: #356b44;
|
|
23
|
+
|
|
24
|
+
/* ── 1.2 Semantic Colors ── */
|
|
25
|
+
--bg-color: var(--seed-surface);
|
|
26
|
+
--text-color: var(--seed-ink);
|
|
27
|
+
--text-secondary: #444444;
|
|
28
|
+
--text-muted: var(--seed-ink-dim);
|
|
29
|
+
--border-color: var(--seed-border);
|
|
30
|
+
--link-color: var(--seed-accent);
|
|
31
|
+
--code-bg: var(--seed-panel);
|
|
32
|
+
--code-block-bg: var(--seed-ink);
|
|
33
|
+
--code-block-text: #dde4dd;
|
|
34
|
+
--blockquote-border: var(--seed-accent);
|
|
35
|
+
--blockquote-bg: var(--seed-panel-alt);
|
|
36
|
+
--table-header-bg: var(--seed-panel);
|
|
37
|
+
--selection-bg: rgba(53, 107, 68, 0.18);
|
|
38
|
+
--highlight-bg: rgba(53, 107, 68, 0.15);
|
|
39
|
+
|
|
40
|
+
/* ── 1.3 Typography & Metrics ── */
|
|
41
|
+
--font-body: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
|
|
42
|
+
--font-mono: "IBM Plex Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
|
|
43
|
+
--editor-font-size: 16px;
|
|
44
|
+
--editor-column-width: 820px;
|
|
45
|
+
|
|
46
|
+
/* ── 1.4 Pele(沿用原图表的浅绿纸面配色)── */
|
|
47
|
+
--pele-bg: #e5eae6;
|
|
48
|
+
--pele-fg: var(--seed-ink);
|
|
49
|
+
--pele-muted: var(--seed-ink-muted);
|
|
50
|
+
--pele-line: #6a8a74;
|
|
51
|
+
--pele-surface: #d6dfd6;
|
|
52
|
+
--pele-surface-alt: #dde4dd;
|
|
53
|
+
--pele-border: var(--seed-accent);
|
|
54
|
+
--pele-accent: var(--seed-accent);
|
|
55
|
+
--pele-radius: 6px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* ═══ SECTION 2 — 编辑器 DOM ═══ */
|
|
59
|
+
|
|
60
|
+
#editor .cm-content { font-family: var(--font-body); line-height: 1.9; }
|
|
61
|
+
|
|
62
|
+
/* 2.1 标题:宋体、墨色、逐级收小 */
|
|
63
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
64
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
65
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
66
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
67
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
68
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
69
|
+
color: var(--text-color); font-weight: 700; line-height: 1.4;
|
|
70
|
+
}
|
|
71
|
+
#editor .cm-content .cm-md-atxheading1 { font-size: 1.8em; padding-bottom: 0.3em; }
|
|
72
|
+
#editor .cm-content .cm-md-atxheading2 { font-size: 1.5em; padding-bottom: 0.2em; }
|
|
73
|
+
#editor .cm-content .cm-md-atxheading3 { font-size: 1.25em; }
|
|
74
|
+
#editor .cm-content .cm-md-atxheading4 { font-size: 1.1em; }
|
|
75
|
+
#editor .cm-content .cm-md-atxheading5 { font-size: 1em; }
|
|
76
|
+
#editor .cm-content .cm-md-atxheading6 { font-size: 0.95em; color: var(--text-secondary); }
|
|
77
|
+
|
|
78
|
+
/* 2.2 行内强调:墨绿是唯一的强调色 */
|
|
79
|
+
#editor .cm-content .cm-md-strong { color: var(--link-color); font-weight: 700; }
|
|
80
|
+
#editor .cm-content .cm-md-em { font-style: italic; color: #444444; }
|
|
81
|
+
#editor .cm-content .cm-md-strike { text-decoration: line-through; }
|
|
82
|
+
#editor .cm-content .cm-md-highlight { background: var(--highlight-bg); color: var(--text-color); }
|
|
83
|
+
#editor .cm-content .cm-md-link { color: var(--link-color); text-decoration: none; }
|
|
84
|
+
#editor .cm-content .cm-md-url { color: var(--text-muted); }
|
|
85
|
+
|
|
86
|
+
/* 2.3 内联代码:浅灰绿底 + 墨绿字 */
|
|
87
|
+
#editor .cm-content .cm-md-inlinecode {
|
|
88
|
+
font-family: var(--font-mono); font-size: 0.9em;
|
|
89
|
+
background: var(--code-bg); color: var(--seed-accent);
|
|
90
|
+
padding: 2px 6px; margin: 0 2px; border-radius: 3px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
#editor .cm-content .cm-md-marker,
|
|
94
|
+
#editor .cm-content .cm-md-quotemark,
|
|
95
|
+
#editor .cm-content .cm-md-listmark {
|
|
96
|
+
color: var(--text-muted);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* 2.4 引用块:四像素墨绿左线 + 浅纸底 */
|
|
100
|
+
#editor .cm-content .cm-md-blockquote {
|
|
101
|
+
background: var(--blockquote-bg); color: var(--text-secondary);
|
|
102
|
+
border-left: 4px solid var(--blockquote-border);
|
|
103
|
+
padding-left: 25px; padding-right: 20px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* 2.5 代码块:深墨绿底、米白字,圆角落在首末行 */
|
|
107
|
+
#editor .cm-content .cm-md-codeblock {
|
|
108
|
+
font-family: var(--font-mono); font-size: 0.88em; line-height: 1.6;
|
|
109
|
+
background: var(--code-block-bg); color: var(--code-block-text);
|
|
110
|
+
padding-left: 22px; padding-right: 22px;
|
|
111
|
+
}
|
|
112
|
+
#editor .cm-content .cm-md-codeblock-first {
|
|
113
|
+
border-top-left-radius: 6px; border-top-right-radius: 6px;
|
|
114
|
+
}
|
|
115
|
+
#editor .cm-content .cm-md-codeblock-last {
|
|
116
|
+
border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* 2.6 表格:浅灰绿表头 + 墨绿粗线 */
|
|
120
|
+
#editor .cm-content .cm-md-table-widget th,
|
|
121
|
+
#editor .cm-content .cm-md-table-widget td { border-color: var(--border-color); }
|
|
122
|
+
#editor .cm-content .cm-md-table-widget th {
|
|
123
|
+
background: var(--table-header-bg); color: var(--text-color);
|
|
124
|
+
font-weight: 700; border-bottom: 2px solid var(--link-color);
|
|
125
|
+
}
|
|
126
|
+
#editor .cm-content .cm-md-table-widget td { border-bottom: 1px solid var(--border-color); }
|
|
127
|
+
|
|
128
|
+
/* 2.7 分隔线 */
|
|
129
|
+
#editor .cm-content .cm-md-hr { border-top-color: var(--border-color); margin: 2.5em 0; }
|
|
130
|
+
|
|
131
|
+
/* 2.8 列表:按层级缩进 */
|
|
132
|
+
#editor .cm-content .cm-md-li-0 { margin-left: 0; }
|
|
133
|
+
#editor .cm-content .cm-md-li-1 { margin-left: 1.8em; }
|
|
134
|
+
#editor .cm-content .cm-md-li-2 { margin-left: 3.6em; }
|
|
135
|
+
#editor .cm-content .cm-md-li-3 { margin-left: 5.4em; }
|
|
136
|
+
#editor .cm-content .cm-md-li-4 { margin-left: 7.2em; }
|
|
137
|
+
#editor .cm-content .cm-md-li-5 { margin-left: 9em; }
|
|
138
|
+
#editor .cm-content .cm-md-li-6 { margin-left: 10.8em; }
|
|
139
|
+
|
|
140
|
+
/* 2.9 图表占位:浅纸绿底 */
|
|
141
|
+
#editor .cm-content .cm-md-mermaid {
|
|
142
|
+
background: var(--pele-bg); border-left: 3px solid var(--pele-border);
|
|
143
|
+
padding-left: 16px; padding-right: 16px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* 2.10 中文首行缩进:标题/引用/代码/图表/列表行归零 */
|
|
147
|
+
#editor .cm-content .cm-line { text-indent: 2em; }
|
|
148
|
+
|
|
149
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
150
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
151
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
152
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
153
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
154
|
+
#editor .cm-content .cm-md-atxheading6,
|
|
155
|
+
#editor .cm-content .cm-md-blockquote,
|
|
156
|
+
#editor .cm-content .cm-md-codeblock,
|
|
157
|
+
#editor .cm-content .cm-md-hr,
|
|
158
|
+
#editor .cm-content .cm-md-mermaid,
|
|
159
|
+
#editor .cm-content .cm-md-li-0,
|
|
160
|
+
#editor .cm-content .cm-md-li-1,
|
|
161
|
+
#editor .cm-content .cm-md-li-2,
|
|
162
|
+
#editor .cm-content .cm-md-li-3,
|
|
163
|
+
#editor .cm-content .cm-md-li-4,
|
|
164
|
+
#editor .cm-content .cm-md-li-5,
|
|
165
|
+
#editor .cm-content .cm-md-li-6 {
|
|
166
|
+
text-indent: 0;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* ═══ SECTION 3 — 导出 HTML(.colamd-document)═══ */
|
|
170
|
+
|
|
171
|
+
.colamd-document {
|
|
172
|
+
font-family: var(--font-body); font-size: 16px;
|
|
173
|
+
line-height: 1.9; color: var(--text-color);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.colamd-document h1,
|
|
177
|
+
.colamd-document h2,
|
|
178
|
+
.colamd-document h3,
|
|
179
|
+
.colamd-document h4,
|
|
180
|
+
.colamd-document h5,
|
|
181
|
+
.colamd-document h6 {
|
|
182
|
+
color: var(--text-color); font-weight: 700; line-height: 1.4;
|
|
183
|
+
}
|
|
184
|
+
.colamd-document h1 { font-size: 1.8em; }
|
|
185
|
+
.colamd-document h2 { font-size: 1.5em; }
|
|
186
|
+
.colamd-document h3 { font-size: 1.25em; }
|
|
187
|
+
.colamd-document h4 { font-size: 1.1em; }
|
|
188
|
+
.colamd-document h5 { font-size: 1em; }
|
|
189
|
+
.colamd-document h6 { font-size: 0.95em; color: var(--text-secondary); }
|
|
190
|
+
|
|
191
|
+
.colamd-document strong { color: var(--link-color); }
|
|
192
|
+
.colamd-document em { font-style: italic; color: #444444; }
|
|
193
|
+
.colamd-document a { color: var(--link-color); text-decoration: none; }
|
|
194
|
+
|
|
195
|
+
.colamd-document code {
|
|
196
|
+
font-family: var(--font-mono); font-size: 0.9em;
|
|
197
|
+
background: var(--code-bg); color: var(--seed-accent);
|
|
198
|
+
padding: 2px 6px; border-radius: 3px;
|
|
199
|
+
}
|
|
200
|
+
.colamd-document pre {
|
|
201
|
+
font-family: var(--font-mono); font-size: 0.88em; line-height: 1.6;
|
|
202
|
+
background: var(--code-block-bg); color: var(--code-block-text);
|
|
203
|
+
padding: 18px 22px; border-radius: 6px;
|
|
204
|
+
}
|
|
205
|
+
.colamd-document pre code { background: transparent; color: inherit; padding: 0; }
|
|
206
|
+
|
|
207
|
+
.colamd-document blockquote {
|
|
208
|
+
background: var(--blockquote-bg); color: var(--text-secondary);
|
|
209
|
+
border-left: 4px solid var(--blockquote-border);
|
|
210
|
+
}
|
|
211
|
+
.colamd-document mark { background: var(--highlight-bg); }
|
|
212
|
+
|
|
213
|
+
.colamd-document th {
|
|
214
|
+
background: var(--table-header-bg); color: var(--text-color);
|
|
215
|
+
font-weight: 700; border-bottom: 2px solid var(--link-color);
|
|
216
|
+
}
|
|
217
|
+
.colamd-document td { border-bottom: 1px solid var(--border-color); }
|
|
218
|
+
.colamd-document hr { border-top-color: var(--border-color); margin: 2.5em 0; }
|
|
219
|
+
|
|
220
|
+
.colamd-document ul,
|
|
221
|
+
.colamd-document ol { padding-left: 1.8em; }
|
|
222
|
+
.colamd-document li { margin: 0.35em 0; line-height: 1.8; }
|
|
223
|
+
|
|
224
|
+
.colamd-document p { text-indent: 2em; }
|
|
225
|
+
.colamd-document li p,
|
|
226
|
+
.colamd-document td p,
|
|
227
|
+
.colamd-document th p,
|
|
228
|
+
.colamd-document blockquote p { text-indent: 0; }
|
|
229
|
+
|
|
230
|
+
/* ═══ SECTION 4 — 打印 ═══ */
|
|
231
|
+
|
|
232
|
+
@media print {
|
|
233
|
+
html,
|
|
234
|
+
body {
|
|
235
|
+
background: var(--bg-color);
|
|
236
|
+
color: var(--text-color);
|
|
237
|
+
-webkit-print-color-adjust: exact;
|
|
238
|
+
print-color-adjust: exact;
|
|
239
|
+
}
|
|
240
|
+
}
|