@bytechain.cn/colamd-themes 0.3.2 → 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 -37
- package/.opencode/skills/colamd-themes/SKILL.md +17 -0
- package/.trae/rules/colamd-themes.md +0 -36
- package/CHANGELOG.md +318 -241
- package/DSH_SUPPORT_SUMMARY.md +87 -0
- package/README.md +414 -384
- package/README_CN.md +412 -384
- package/RELEASENOTE.md +541 -389
- package/bytechain.cn-colamd-themes-0.5.0.tgz +0 -0
- package/dist/cli.js +36 -55
- 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 +64 -84
- 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 -178
- package/src/cli.ts +474 -487
- 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 -359
- 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/guizang.css
CHANGED
|
@@ -1,732 +1,250 @@
|
|
|
1
|
-
/* ============================================
|
|
2
|
-
归藏 (Guizang) Theme for 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
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/* ════════════════════════════════════════════
|
|
252
|
-
Mermaid 图表 - 容器
|
|
253
|
-
════════════════════════════════════════════ */
|
|
254
|
-
|
|
255
|
-
body.theme-custom .mermaid-block {
|
|
256
|
-
background: #f0ebe3;
|
|
257
|
-
border: 1px solid #d4cfc6;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/* ════════════════════════════════════════════
|
|
261
|
-
Mermaid 图表 - 通用节点 & 连线
|
|
262
|
-
════════════════════════════════════════════ */
|
|
263
|
-
|
|
264
|
-
body.theme-custom .mermaid-preview svg .node rect,
|
|
265
|
-
body.theme-custom .mermaid-preview svg .node circle,
|
|
266
|
-
body.theme-custom .mermaid-preview svg .node ellipse,
|
|
267
|
-
body.theme-custom .mermaid-preview svg .node polygon,
|
|
268
|
-
body.theme-custom .mermaid-preview svg .node path {
|
|
269
|
-
stroke: #b0a89f;
|
|
270
|
-
fill: #ede8df !important;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
body.theme-custom .mermaid-preview svg .edgePath .path {
|
|
274
|
-
stroke: #8a7b6a;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
body.theme-custom .mermaid-preview svg .cluster rect,
|
|
278
|
-
body.theme-custom .mermaid-preview svg .cluster path {
|
|
279
|
-
stroke: #c4bbb0;
|
|
280
|
-
fill: #e8e0d4 !important;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
body.theme-custom .mermaid-preview svg defs marker path {
|
|
284
|
-
fill: #8a7b6a;
|
|
285
|
-
stroke: #8a7b6a;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/* ── 硬编码色值覆盖 (Mermaid 默认 bi染色) ── */
|
|
289
|
-
|
|
290
|
-
body.theme-custom .mermaid-preview svg rect[stroke="#444444"],
|
|
291
|
-
body.theme-custom .mermaid-preview svg rect[stroke="#000000"] {
|
|
292
|
-
stroke: #b0a89f !important;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
body.theme-custom .mermaid-preview svg path[stroke="#444444"],
|
|
296
|
-
body.theme-custom .mermaid-preview svg path[stroke="#000000"] {
|
|
297
|
-
stroke: #b0a89f !important;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
body.theme-custom .mermaid-preview svg line[stroke="#444444"],
|
|
301
|
-
body.theme-custom .mermaid-preview svg line[stroke="#000000"] {
|
|
302
|
-
stroke: #b0a89f !important;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
/* ════════════════════════════════════════════
|
|
306
|
-
Mermaid 图表 - 标签 & 文本
|
|
307
|
-
════════════════════════════════════════════ */
|
|
308
|
-
|
|
309
|
-
body.theme-custom .mermaid-preview svg text {
|
|
310
|
-
fill: #2b2520;
|
|
311
|
-
font-family: "LXGW WenKai", "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
body.theme-custom .mermaid-preview svg .edgeLabel text,
|
|
315
|
-
body.theme-custom .mermaid-preview svg .label text,
|
|
316
|
-
body.theme-custom .mermaid-preview svg .nodeLabel text {
|
|
317
|
-
fill: #2b2520 !important;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
body.theme-custom .mermaid-preview svg .nodeLabel span,
|
|
321
|
-
body.theme-custom .mermaid-preview svg .edgeLabel span,
|
|
322
|
-
body.theme-custom .mermaid-preview svg foreignObject span {
|
|
323
|
-
font-family: "LXGW WenKai", "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
|
|
324
|
-
color: #2b2520 !important;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
body.theme-custom .mermaid-preview svg .edgeLabel rect {
|
|
328
|
-
fill: #4f4d4b !important;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
/* ════════════════════════════════════════════
|
|
332
|
-
Mermaid - 状态图 (State Diagram)
|
|
333
|
-
════════════════════════════════════════════ */
|
|
334
|
-
|
|
335
|
-
body.theme-custom .mermaid-preview svg .statediagram-state rect,
|
|
336
|
-
body.theme-custom .mermaid-preview svg .statediagram-state circle {
|
|
337
|
-
stroke: #b0a89f;
|
|
338
|
-
fill: #ede8df !important;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
body.theme-custom .mermaid-preview svg .statediagram-cluster rect {
|
|
342
|
-
stroke: #c4bbb0;
|
|
343
|
-
fill: #e8e0d4 !important;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
body.theme-custom .mermaid-preview svg .statediagram-state .nodeLabel text,
|
|
347
|
-
body.theme-custom .mermaid-preview svg .statediagram-state .nodeLabel span,
|
|
348
|
-
body.theme-custom .mermaid-preview svg .statediagram-cluster .outer-title text {
|
|
349
|
-
fill: #2b2520 !important;
|
|
350
|
-
color: #2b2520 !important;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
body.theme-custom .mermaid-preview svg .transition {
|
|
354
|
-
stroke: #8a7b6a;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
body.theme-custom .mermaid-preview svg .edgeLabel .label text {
|
|
358
|
-
fill: #2b2520 !important;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
/* ════════════════════════════════════════════
|
|
362
|
-
Mermaid - 饼图 (Pie Chart)
|
|
363
|
-
════════════════════════════════════════════ */
|
|
364
|
-
|
|
365
|
-
body.theme-custom .mermaid-preview svg .pieCircle {
|
|
366
|
-
stroke: #b0a89f;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
body.theme-custom .mermaid-preview svg .slice {
|
|
370
|
-
stroke: #b0a89f;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
body.theme-custom .mermaid-preview svg .pieTitleText {
|
|
374
|
-
fill: #2b2520 !important;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
body.theme-custom .mermaid-preview svg .legend text {
|
|
378
|
-
fill: #2b2520 !important;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
/* ════════════════════════════════════════════
|
|
382
|
-
Mermaid - 四象限图 (Quadrant Chart)
|
|
383
|
-
════════════════════════════════════════════ */
|
|
384
|
-
|
|
385
|
-
body.theme-custom .mermaid-preview svg .quadrant rect {
|
|
386
|
-
stroke: #b0a89f;
|
|
387
|
-
fill: #f5f0e8 !important;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
body.theme-custom .mermaid-preview svg .quadrant text,
|
|
391
|
-
body.theme-custom .mermaid-preview svg .quadrant .titleText {
|
|
392
|
-
fill: #2b2520 !important;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
body.theme-custom .mermaid-preview svg .quadrant .axis text {
|
|
396
|
-
fill: #7a7068 !important;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
body.theme-custom .mermaid-preview svg .quadrant .axis line,
|
|
400
|
-
body.theme-custom .mermaid-preview svg .quadrant .axis path {
|
|
401
|
-
stroke: #8a7b6a;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
body.theme-custom .mermaid-preview svg .quadrant .point {
|
|
405
|
-
fill: #8b4513;
|
|
406
|
-
stroke: #b0a89f;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
/* ════════════════════════════════════════════
|
|
410
|
-
Mermaid - XY Chart / 柱状图
|
|
411
|
-
════════════════════════════════════════════ */
|
|
412
|
-
|
|
413
|
-
body.theme-custom .mermaid-preview svg .xychart .axis text {
|
|
414
|
-
fill: #7a7068 !important;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
body.theme-custom .mermaid-preview svg .xychart .axis line,
|
|
418
|
-
body.theme-custom .mermaid-preview svg .xychart .axis path {
|
|
419
|
-
stroke: #8a7b6a;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
body.theme-custom .mermaid-preview svg .xychart .plot rect {
|
|
423
|
-
stroke: #b0a89f;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
body.theme-custom .mermaid-preview svg .xychart .plot line {
|
|
427
|
-
stroke: #8a7b6a;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
body.theme-custom .mermaid-preview svg .xychart .titleText {
|
|
431
|
-
fill: #2b2520 !important;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
/* ════════════════════════════════════════════
|
|
435
|
-
Mermaid - Sankey 图
|
|
436
|
-
════════════════════════════════════════════ */
|
|
437
|
-
|
|
438
|
-
body.theme-custom .mermaid-preview svg .sankey .link {
|
|
439
|
-
stroke: #8a7b6a;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
body.theme-custom .mermaid-preview svg .sankey text {
|
|
443
|
-
fill: #2b2520 !important;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
/* ════════════════════════════════════════════
|
|
447
|
-
Mermaid - 时序图 (Sequence Diagram)
|
|
448
|
-
════════════════════════════════════════════ */
|
|
449
|
-
|
|
450
|
-
body.theme-custom .mermaid-preview svg .actor rect,
|
|
451
|
-
body.theme-custom .mermaid-preview svg .actor path {
|
|
452
|
-
stroke: #b0a89f;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
body.theme-custom .mermaid-preview svg text.actor {
|
|
456
|
-
fill: #2b2520 !important;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
body.theme-custom .mermaid-preview svg .messageLine0,
|
|
460
|
-
body.theme-custom .mermaid-preview svg .messageLine1 {
|
|
461
|
-
stroke: #8a7b6a !important;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
body.theme-custom .mermaid-preview svg .messageText {
|
|
465
|
-
fill: #2b2520 !important;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
body.theme-custom .mermaid-preview svg .loopText,
|
|
469
|
-
body.theme-custom .mermaid-preview svg .altText,
|
|
470
|
-
body.theme-custom .mermaid-preview svg .optText {
|
|
471
|
-
fill: #7a7068 !important;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
body.theme-custom .mermaid-preview svg .loopLine,
|
|
475
|
-
body.theme-custom .mermaid-preview svg .altLine,
|
|
476
|
-
body.theme-custom .mermaid-preview svg .optLine {
|
|
477
|
-
stroke: #8a7b6a !important;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
body.theme-custom .mermaid-preview svg .labelBox {
|
|
481
|
-
stroke: #b0a89f;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
body.theme-custom .mermaid-preview svg .labelText,
|
|
485
|
-
body.theme-custom .mermaid-preview svg .loopText tspan,
|
|
486
|
-
body.theme-custom .mermaid-preview svg .altText tspan,
|
|
487
|
-
body.theme-custom .mermaid-preview svg .optText tspan {
|
|
488
|
-
fill: #2b2520 !important;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
/* ════════════════════════════════════════════
|
|
492
|
-
Mermaid - 类图 (Class Diagram)
|
|
493
|
-
════════════════════════════════════════════ */
|
|
494
|
-
|
|
495
|
-
body.theme-custom .mermaid-preview svg .classBox rect,
|
|
496
|
-
body.theme-custom .mermaid-preview svg .classBox path {
|
|
497
|
-
stroke: #b0a89f;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
body.theme-custom .mermaid-preview svg .classTitle text,
|
|
501
|
-
body.theme-custom .mermaid-preview svg .classTitle span {
|
|
502
|
-
fill: #2b2520 !important;
|
|
503
|
-
color: #2b2520 !important;
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
body.theme-custom .mermaid-preview svg .classText text,
|
|
507
|
-
body.theme-custom .mermaid-preview svg .classText span {
|
|
508
|
-
fill: #7a7068 !important;
|
|
509
|
-
color: #7a7068 !important;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
body.theme-custom .mermaid-preview svg .divider {
|
|
513
|
-
stroke: #b0a89f;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
body.theme-custom .mermaid-preview svg .relation {
|
|
517
|
-
stroke: #8a7b6a;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
/* ════════════════════════════════════════════
|
|
521
|
-
Mermaid - 甘特图 (Gantt Chart)
|
|
522
|
-
════════════════════════════════════════════ */
|
|
523
|
-
|
|
524
|
-
body.theme-custom .mermaid-preview svg .task {
|
|
525
|
-
stroke: #b0a89f;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
body.theme-custom .mermaid-preview svg .taskText,
|
|
529
|
-
body.theme-custom .mermaid-preview svg .taskTextOutsideRight,
|
|
530
|
-
body.theme-custom .mermaid-preview svg .taskTextOutsideLeft {
|
|
531
|
-
fill: #2b2520 !important;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
body.theme-custom .mermaid-preview svg .section rect {
|
|
535
|
-
stroke: #b0a89f;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
body.theme-custom .mermaid-preview svg .sectionText,
|
|
539
|
-
body.theme-custom .mermaid-preview svg .sectionTitle {
|
|
540
|
-
fill: #2b2520 !important;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
body.theme-custom .mermaid-preview svg .today {
|
|
544
|
-
stroke: #8b4513 !important;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
body.theme-custom .mermaid-preview svg .grid .tick line {
|
|
548
|
-
stroke: #8a7b6a;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
body.theme-custom .mermaid-preview svg .grid .domain {
|
|
552
|
-
stroke: #8a7b6a;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
body.theme-custom .mermaid-preview svg .tick text {
|
|
556
|
-
fill: #7a7068;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
/* ════════════════════════════════════════════
|
|
560
|
-
Mermaid - 思维导图 (Mind Map)
|
|
561
|
-
════════════════════════════════════════════ */
|
|
562
|
-
|
|
563
|
-
body.theme-custom .mermaid-preview svg .mindmap-node rect,
|
|
564
|
-
body.theme-custom .mermaid-preview svg .mindmap-node circle,
|
|
565
|
-
body.theme-custom .mermaid-preview svg .mindmap-node ellipse,
|
|
566
|
-
body.theme-custom .mermaid-preview svg .mindmap-node polygon,
|
|
567
|
-
body.theme-custom .mermaid-preview svg .mindmap-node path {
|
|
568
|
-
stroke: #b0a89f;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
body.theme-custom .mermaid-preview svg .mindmap-node text,
|
|
572
|
-
body.theme-custom .mermaid-preview svg .mindmap-node .nodeLabel text,
|
|
573
|
-
body.theme-custom .mermaid-preview svg .mindmap-node .nodeLabel span {
|
|
574
|
-
fill: #2b2520 !important;
|
|
575
|
-
color: #2b2520 !important;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
body.theme-custom .mermaid-preview svg .mindmap-edge {
|
|
579
|
-
stroke: #8a7b6a;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
/* ════════════════════════════════════════════
|
|
583
|
-
Mermaid - Block 图
|
|
584
|
-
════════════════════════════════════════════ */
|
|
585
|
-
|
|
586
|
-
body.theme-custom .mermaid-preview svg .block rect,
|
|
587
|
-
body.theme-custom .mermaid-preview svg .block path {
|
|
588
|
-
stroke: #b0a89f;
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
body.theme-custom .mermaid-preview svg .block text,
|
|
592
|
-
body.theme-custom .mermaid-preview svg .block .nodeLabel text,
|
|
593
|
-
body.theme-custom .mermaid-preview svg .block .nodeLabel span {
|
|
594
|
-
fill: #2b2520 !important;
|
|
595
|
-
color: #2b2520 !important;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
/* ════════════════════════════════════════════
|
|
599
|
-
Mermaid - ER 图
|
|
600
|
-
════════════════════════════════════════════ */
|
|
601
|
-
|
|
602
|
-
body.theme-custom .mermaid-preview svg .er .entityBox rect,
|
|
603
|
-
body.theme-custom .mermaid-preview svg .er .entityBox path {
|
|
604
|
-
stroke: #b0a89f;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
body.theme-custom .mermaid-preview svg .er text,
|
|
608
|
-
body.theme-custom .mermaid-preview svg .er .relationshipLabel {
|
|
609
|
-
fill: #2b2520 !important;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
body.theme-custom .mermaid-preview svg .er .relationshipLine {
|
|
613
|
-
stroke: #8a7b6a;
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
/* ════════════════════════════════════════════
|
|
617
|
-
Mermaid - Git 图
|
|
618
|
-
════════════════════════════════════════════ */
|
|
619
|
-
|
|
620
|
-
body.theme-custom .mermaid-preview svg .git .commit rect,
|
|
621
|
-
body.theme-custom .mermaid-preview svg .git .commit circle {
|
|
622
|
-
stroke: #b0a89f;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
body.theme-custom .mermaid-preview svg .git text,
|
|
626
|
-
body.theme-custom .mermaid-preview svg .git .branchLabel text {
|
|
627
|
-
fill: #2b2520 !important;
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
/* ════════════════════════════════════════════
|
|
631
|
-
Mermaid - 用户旅程图 (Journey)
|
|
632
|
-
════════════════════════════════════════════ */
|
|
633
|
-
|
|
634
|
-
body.theme-custom .mermaid-preview svg .journey .task rect {
|
|
635
|
-
stroke: #b0a89f;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
body.theme-custom .mermaid-preview svg .journey text {
|
|
639
|
-
fill: #2b2520 !important;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
/* ════════════════════════════════════════════
|
|
643
|
-
Mermaid - 时间线 (Timeline)
|
|
644
|
-
════════════════════════════════════════════ */
|
|
645
|
-
|
|
646
|
-
body.theme-custom .mermaid-preview svg .timeline rect {
|
|
647
|
-
stroke: #b0a89f;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
body.theme-custom .mermaid-preview svg .timeline text {
|
|
651
|
-
fill: #2b2520 !important;
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
/* ════════════════════════════════════════════
|
|
655
|
-
Mermaid - C4 架构图
|
|
656
|
-
════════════════════════════════════════════ */
|
|
657
|
-
|
|
658
|
-
body.theme-custom .mermaid-preview svg .c4 .person rect,
|
|
659
|
-
body.theme-custom .mermaid-preview svg .c4 .person path,
|
|
660
|
-
body.theme-custom .mermaid-preview svg .c4 .system rect,
|
|
661
|
-
body.theme-custom .mermaid-preview svg .c4 .system path,
|
|
662
|
-
body.theme-custom .mermaid-preview svg .c4 .container rect,
|
|
663
|
-
body.theme-custom .mermaid-preview svg .c4 .container path,
|
|
664
|
-
body.theme-custom .mermaid-preview svg .c4 .boundary rect,
|
|
665
|
-
body.theme-custom .mermaid-preview svg .c4 .boundary path {
|
|
666
|
-
stroke: #b0a89f;
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
body.theme-custom .mermaid-preview svg .c4 text,
|
|
670
|
-
body.theme-custom .mermaid-preview svg .c4 span {
|
|
671
|
-
fill: #2b2520 !important;
|
|
672
|
-
color: #2b2520 !important;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
/* ════════════════════════════════════════════
|
|
676
|
-
Mermaid - 人物节点
|
|
677
|
-
════════════════════════════════════════════ */
|
|
678
|
-
|
|
679
|
-
body.theme-custom .mermaid-preview svg .person rect,
|
|
680
|
-
body.theme-custom .mermaid-preview svg .person path {
|
|
681
|
-
stroke: #3d3530;
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
body.theme-custom .mermaid-preview svg .person-man text {
|
|
685
|
-
fill: #ffffff !important;
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
body.theme-custom .mermaid-preview svg .person-man span {
|
|
689
|
-
color: #ffffff !important;
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
/* ════════════════════════════════════════════
|
|
693
|
-
滚动条 & 选区
|
|
694
|
-
════════════════════════════════════════════ */
|
|
695
|
-
|
|
696
|
-
body.theme-custom ::-webkit-scrollbar-thumb {
|
|
697
|
-
background: #c4bbb0;
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
body.theme-custom ::-webkit-scrollbar-thumb:hover {
|
|
701
|
-
background: #b0a89f;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
body.theme-custom ::selection {
|
|
705
|
-
background: rgba(139, 69, 19, 0.18);
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
body.theme-custom #source-editor {
|
|
709
|
-
background: #f5f0e8;
|
|
710
|
-
color: #2b2520;
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
/* ════════════════════════════════════════════
|
|
714
|
-
打印样式
|
|
715
|
-
════════════════════════════════════════════ */
|
|
716
|
-
|
|
717
|
-
@media print {
|
|
718
|
-
body.theme-custom,
|
|
719
|
-
body.theme-custom html {
|
|
720
|
-
background: #fff;
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
body.theme-custom #editor .ProseMirror pre {
|
|
724
|
-
background: #f5f0e8;
|
|
725
|
-
color: #2b2520;
|
|
726
|
-
border: 1px solid #d4cfc6;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
body.theme-custom #editor .ProseMirror table th {
|
|
730
|
-
background: #f5f0e8;
|
|
731
|
-
}
|
|
732
|
-
}
|
|
1
|
+
/* ============================================
|
|
2
|
+
归藏 (Guizang) Theme for ColaMD
|
|
3
|
+
万物莫不归藏于其中
|
|
4
|
+
|
|
5
|
+
暖纸底 + 赭石棕;霞鹜文楷正文、发丝分隔线、深褐代码块。
|
|
6
|
+
契约:ColaMD Extend 2.7(CodeMirror 6 + Pele)
|
|
7
|
+
|
|
8
|
+
变量一律写在 :root;编辑器里没有 <h1>/<blockquote> 元素,
|
|
9
|
+
标题是带类的一行,引用/代码块是每行一个 div(禁止纵向 padding)。
|
|
10
|
+
============================================ */
|
|
11
|
+
|
|
12
|
+
:root {
|
|
13
|
+
/* ── 1.1 Seed Palette ── */
|
|
14
|
+
--seed-accent: #8b4513;
|
|
15
|
+
--seed-accent-light: #ede8df;
|
|
16
|
+
--seed-accent-dark: #6b350f;
|
|
17
|
+
--seed-surface: #f5f5f4;
|
|
18
|
+
--seed-panel: #ebebe8;
|
|
19
|
+
--seed-panel-alt: #e3e3e0;
|
|
20
|
+
--seed-ink: #2b2520;
|
|
21
|
+
--seed-ink-muted: #6f665e;
|
|
22
|
+
--seed-ink-dim: #a09388;
|
|
23
|
+
--seed-border: #d2d2cf;
|
|
24
|
+
--seed-border-strong: #8b4513;
|
|
25
|
+
|
|
26
|
+
/* ── 1.2 Semantic Colors ── */
|
|
27
|
+
--bg-color: var(--seed-surface);
|
|
28
|
+
--text-color: var(--seed-ink);
|
|
29
|
+
--text-secondary: #5a5048;
|
|
30
|
+
--text-muted: var(--seed-ink-muted);
|
|
31
|
+
--border-color: var(--seed-border);
|
|
32
|
+
--link-color: var(--seed-accent);
|
|
33
|
+
--code-bg: var(--seed-panel-alt);
|
|
34
|
+
--code-block-bg: var(--seed-ink);
|
|
35
|
+
--code-block-text: #d8d0c4;
|
|
36
|
+
--blockquote-border: var(--seed-accent);
|
|
37
|
+
--blockquote-bg: var(--seed-panel);
|
|
38
|
+
--table-header-bg: var(--seed-panel);
|
|
39
|
+
--selection-bg: rgba(139, 69, 19, 0.18);
|
|
40
|
+
--highlight-bg: rgba(139, 69, 19, 0.15);
|
|
41
|
+
|
|
42
|
+
/* ── 1.3 Typography & Metrics ── */
|
|
43
|
+
--font-body: "LXGW WenKai", "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
|
|
44
|
+
--font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Menlo, Consolas, monospace;
|
|
45
|
+
--editor-font-size: 16px;
|
|
46
|
+
--editor-column-width: 820px;
|
|
47
|
+
|
|
48
|
+
/* ── 1.4 Pele(沿用原图表的暖纸配色)── */
|
|
49
|
+
--pele-bg: #f0ebe3;
|
|
50
|
+
--pele-fg: var(--seed-ink);
|
|
51
|
+
--pele-muted: var(--seed-ink-muted);
|
|
52
|
+
--pele-line: #8a7b6a;
|
|
53
|
+
--pele-surface: #ede8df;
|
|
54
|
+
--pele-surface-alt: #e8e0d4;
|
|
55
|
+
--pele-border: #b0a89f;
|
|
56
|
+
--pele-accent: var(--seed-accent);
|
|
57
|
+
--pele-radius: 6px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* ═══ SECTION 2 — 编辑器排版 ═══ */
|
|
61
|
+
|
|
62
|
+
#editor .cm-content { font-family: var(--font-body); line-height: 1.9; }
|
|
63
|
+
|
|
64
|
+
/* 2.1 标题:墨色楷体,一二级各压一条发丝线 */
|
|
65
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
66
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
67
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
68
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
69
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
70
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
71
|
+
color: #1a1815; font-weight: 700; line-height: 1.4;
|
|
72
|
+
}
|
|
73
|
+
#editor .cm-content .cm-md-atxheading1 {
|
|
74
|
+
font-size: 1.8em; padding-bottom: 0.3em; border-bottom: 1px solid var(--border-color);
|
|
75
|
+
}
|
|
76
|
+
#editor .cm-content .cm-md-atxheading2 {
|
|
77
|
+
font-size: 1.5em; padding-bottom: 0.25em; border-bottom: 1px solid var(--border-color);
|
|
78
|
+
}
|
|
79
|
+
#editor .cm-content .cm-md-atxheading3 { font-size: 1.25em; }
|
|
80
|
+
#editor .cm-content .cm-md-atxheading4 { font-size: 1.1em; }
|
|
81
|
+
#editor .cm-content .cm-md-atxheading5 { font-size: 1em; }
|
|
82
|
+
#editor .cm-content .cm-md-atxheading6 { font-size: 0.95em; color: var(--text-muted); }
|
|
83
|
+
|
|
84
|
+
/* 2.2 行内强调:赭石棕 */
|
|
85
|
+
#editor .cm-content .cm-md-strong { color: var(--link-color); font-weight: 700; }
|
|
86
|
+
#editor .cm-content .cm-md-em { font-style: italic; color: #4a4238; }
|
|
87
|
+
#editor .cm-content .cm-md-strike { text-decoration: line-through; }
|
|
88
|
+
#editor .cm-content .cm-md-highlight { background: var(--highlight-bg); color: var(--text-color); }
|
|
89
|
+
#editor .cm-content .cm-md-link { color: var(--link-color); text-decoration: none; }
|
|
90
|
+
#editor .cm-content .cm-md-url { color: var(--text-muted); }
|
|
91
|
+
|
|
92
|
+
/* 2.3 内联代码:米色底 + 赭石字 */
|
|
93
|
+
#editor .cm-content .cm-md-inlinecode {
|
|
94
|
+
font-family: var(--font-mono); font-size: 0.9em;
|
|
95
|
+
background: var(--code-bg); color: var(--seed-accent);
|
|
96
|
+
padding: 2px 6px; border-radius: 3px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
#editor .cm-content .cm-md-marker,
|
|
100
|
+
#editor .cm-content .cm-md-quotemark,
|
|
101
|
+
#editor .cm-content .cm-md-listmark {
|
|
102
|
+
color: var(--text-muted);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* 2.4 引用块:赭石左线 + 浅米底 */
|
|
106
|
+
#editor .cm-content .cm-md-blockquote {
|
|
107
|
+
background: var(--blockquote-bg); color: var(--text-secondary);
|
|
108
|
+
border-left: 4px solid var(--blockquote-border);
|
|
109
|
+
padding-left: 25px; padding-right: 20px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* 2.5 代码块:深褐底、米白字,圆角落在首末行 */
|
|
113
|
+
#editor .cm-content .cm-md-codeblock {
|
|
114
|
+
font-family: var(--font-mono); font-size: 0.88em; line-height: 1.6;
|
|
115
|
+
background: var(--code-block-bg); color: var(--code-block-text);
|
|
116
|
+
padding-left: 22px; padding-right: 22px;
|
|
117
|
+
}
|
|
118
|
+
#editor .cm-content .cm-md-codeblock-first {
|
|
119
|
+
border-top-left-radius: 6px; border-top-right-radius: 6px;
|
|
120
|
+
}
|
|
121
|
+
#editor .cm-content .cm-md-codeblock-last {
|
|
122
|
+
border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* 2.6 表格:米色表头 + 赭石粗线,只留横线 */
|
|
126
|
+
#editor .cm-content .cm-md-table-widget th,
|
|
127
|
+
#editor .cm-content .cm-md-table-widget td { border-color: var(--border-color); }
|
|
128
|
+
#editor .cm-content .cm-md-table-widget th {
|
|
129
|
+
background: var(--table-header-bg); color: #1a1815;
|
|
130
|
+
font-weight: 700; border-bottom: 2px solid var(--link-color);
|
|
131
|
+
}
|
|
132
|
+
#editor .cm-content .cm-md-table-widget td { border-bottom: 1px solid var(--border-color); }
|
|
133
|
+
|
|
134
|
+
/* 2.7 分隔线 */
|
|
135
|
+
#editor .cm-content .cm-md-hr { border-top-color: var(--border-color); margin: 2.5em 0; }
|
|
136
|
+
|
|
137
|
+
/* 2.8 列表:按层级缩进 */
|
|
138
|
+
#editor .cm-content .cm-md-li-0 { margin-left: 0; }
|
|
139
|
+
#editor .cm-content .cm-md-li-1 { margin-left: 1.8em; }
|
|
140
|
+
#editor .cm-content .cm-md-li-2 { margin-left: 3.6em; }
|
|
141
|
+
#editor .cm-content .cm-md-li-3 { margin-left: 5.4em; }
|
|
142
|
+
#editor .cm-content .cm-md-li-4 { margin-left: 7.2em; }
|
|
143
|
+
#editor .cm-content .cm-md-li-5 { margin-left: 9em; }
|
|
144
|
+
#editor .cm-content .cm-md-li-6 { margin-left: 10.8em; }
|
|
145
|
+
|
|
146
|
+
/* 2.9 图表占位:暖纸底 */
|
|
147
|
+
#editor .cm-content .cm-md-mermaid {
|
|
148
|
+
background: var(--pele-bg); border-left: 3px solid var(--pele-border);
|
|
149
|
+
padding-left: 16px; padding-right: 16px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* 2.10 中文首行缩进:标题/引用/代码/图表/列表行归零 */
|
|
153
|
+
#editor .cm-content .cm-line { text-indent: 2em; }
|
|
154
|
+
|
|
155
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
156
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
157
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
158
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
159
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
160
|
+
#editor .cm-content .cm-md-atxheading6,
|
|
161
|
+
#editor .cm-content .cm-md-blockquote,
|
|
162
|
+
#editor .cm-content .cm-md-codeblock,
|
|
163
|
+
#editor .cm-content .cm-md-hr,
|
|
164
|
+
#editor .cm-content .cm-md-mermaid,
|
|
165
|
+
#editor .cm-content .cm-md-li-0,
|
|
166
|
+
#editor .cm-content .cm-md-li-1,
|
|
167
|
+
#editor .cm-content .cm-md-li-2,
|
|
168
|
+
#editor .cm-content .cm-md-li-3,
|
|
169
|
+
#editor .cm-content .cm-md-li-4,
|
|
170
|
+
#editor .cm-content .cm-md-li-5,
|
|
171
|
+
#editor .cm-content .cm-md-li-6 {
|
|
172
|
+
text-indent: 0;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* ═══ SECTION 3 — 导出 HTML(.colamd-document)═══ */
|
|
176
|
+
|
|
177
|
+
.colamd-document {
|
|
178
|
+
font-family: var(--font-body); font-size: 16px;
|
|
179
|
+
line-height: 1.9; color: var(--text-color);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.colamd-document h1,
|
|
183
|
+
.colamd-document h2,
|
|
184
|
+
.colamd-document h3,
|
|
185
|
+
.colamd-document h4,
|
|
186
|
+
.colamd-document h5,
|
|
187
|
+
.colamd-document h6 {
|
|
188
|
+
color: #1a1815; font-weight: 700; line-height: 1.4;
|
|
189
|
+
}
|
|
190
|
+
.colamd-document h1 {
|
|
191
|
+
font-size: 1.8em; padding-bottom: 0.3em; border-bottom: 1px solid var(--border-color);
|
|
192
|
+
}
|
|
193
|
+
.colamd-document h2 {
|
|
194
|
+
font-size: 1.5em; padding-bottom: 0.25em; border-bottom: 1px solid var(--border-color);
|
|
195
|
+
}
|
|
196
|
+
.colamd-document h3 { font-size: 1.25em; }
|
|
197
|
+
.colamd-document h4 { font-size: 1.1em; }
|
|
198
|
+
.colamd-document h5 { font-size: 1em; }
|
|
199
|
+
.colamd-document h6 { font-size: 0.95em; color: var(--text-muted); }
|
|
200
|
+
|
|
201
|
+
.colamd-document strong { color: var(--link-color); }
|
|
202
|
+
.colamd-document em { font-style: italic; color: #4a4238; }
|
|
203
|
+
.colamd-document a { color: var(--link-color); text-decoration: none; }
|
|
204
|
+
|
|
205
|
+
.colamd-document code {
|
|
206
|
+
font-family: var(--font-mono); font-size: 0.9em;
|
|
207
|
+
background: var(--code-bg); color: var(--seed-accent);
|
|
208
|
+
padding: 2px 6px; border-radius: 3px;
|
|
209
|
+
}
|
|
210
|
+
.colamd-document pre {
|
|
211
|
+
font-family: var(--font-mono); font-size: 0.88em; line-height: 1.6;
|
|
212
|
+
background: var(--code-block-bg); color: var(--code-block-text);
|
|
213
|
+
padding: 18px 22px; border-radius: 6px;
|
|
214
|
+
}
|
|
215
|
+
.colamd-document pre code { background: transparent; color: inherit; padding: 0; }
|
|
216
|
+
|
|
217
|
+
.colamd-document blockquote {
|
|
218
|
+
background: var(--blockquote-bg); color: var(--text-secondary);
|
|
219
|
+
border-left: 4px solid var(--blockquote-border);
|
|
220
|
+
}
|
|
221
|
+
.colamd-document mark { background: var(--highlight-bg); }
|
|
222
|
+
|
|
223
|
+
.colamd-document th {
|
|
224
|
+
background: var(--table-header-bg); color: #1a1815;
|
|
225
|
+
font-weight: 700; border-bottom: 2px solid var(--link-color);
|
|
226
|
+
}
|
|
227
|
+
.colamd-document td { border-bottom: 1px solid var(--border-color); }
|
|
228
|
+
.colamd-document hr { border-top-color: var(--border-color); margin: 2.5em 0; }
|
|
229
|
+
|
|
230
|
+
.colamd-document ul,
|
|
231
|
+
.colamd-document ol { padding-left: 1.8em; }
|
|
232
|
+
.colamd-document li { margin: 0.35em 0; line-height: 1.8; }
|
|
233
|
+
|
|
234
|
+
.colamd-document p { text-indent: 2em; }
|
|
235
|
+
.colamd-document li p,
|
|
236
|
+
.colamd-document td p,
|
|
237
|
+
.colamd-document th p,
|
|
238
|
+
.colamd-document blockquote p { text-indent: 0; }
|
|
239
|
+
|
|
240
|
+
/* ═══ SECTION 4 — 打印 ═══ */
|
|
241
|
+
|
|
242
|
+
@media print {
|
|
243
|
+
html,
|
|
244
|
+
body {
|
|
245
|
+
background: var(--bg-color);
|
|
246
|
+
color: var(--text-color);
|
|
247
|
+
-webkit-print-color-adjust: exact;
|
|
248
|
+
print-color-adjust: exact;
|
|
249
|
+
}
|
|
250
|
+
}
|