@bytechain.cn/colamd-themes 0.6.0 → 0.6.1

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.
Files changed (39) hide show
  1. package/README.md +22 -4
  2. package/package.json +1 -1
  3. package/skills/colamd-themes/SKILL.md +86 -1
  4. package/themes/8-bit-orbit.css +817 -0
  5. package/themes/README.md +69 -0
  6. package/themes/biennale-yellow.css +577 -0
  7. package/themes/block-frame.css +774 -0
  8. package/themes/blue-professional.css +741 -0
  9. package/themes/bold-poster.css +794 -0
  10. package/themes/broadside.css +837 -0
  11. package/themes/capsule.css +767 -0
  12. package/themes/cartesian.css +584 -0
  13. package/themes/cobalt-grid.css +632 -0
  14. package/themes/coral.css +699 -0
  15. package/themes/creative-mode.css +642 -0
  16. package/themes/daisy-days.css +1052 -0
  17. package/themes/editorial-forest.css +796 -0
  18. package/themes/editorial-tri-tone.css +811 -0
  19. package/themes/emerald-editorial.css +683 -0
  20. package/themes/grove.css +623 -0
  21. package/themes/long-table.css +782 -0
  22. package/themes/mat.css +848 -0
  23. package/themes/monochrome.css +782 -0
  24. package/themes/neo-grid-bold.css +838 -0
  25. package/themes/peoples-platform.css +843 -0
  26. package/themes/pin-and-paper.css +700 -0
  27. package/themes/pink-script-dark.css +648 -0
  28. package/themes/pink-script.css +290 -0
  29. package/themes/playful.css +774 -0
  30. package/themes/raw-grid.css +814 -0
  31. package/themes/retro-windows.css +767 -0
  32. package/themes/retro-zine.css +814 -0
  33. package/themes/sakura-chroma.css +775 -0
  34. package/themes/scatterbrain.css +726 -0
  35. package/themes/signal.css +872 -0
  36. package/themes/soft-editorial.css +788 -0
  37. package/themes/stencil-tablet.css +922 -0
  38. package/themes/studio.css +767 -0
  39. package/themes/vellum.css +723 -0
@@ -0,0 +1,726 @@
1
+ /*
2
+ * ColaMD Theme: Scatterbrain(贴纸板 · 手工精修版)
3
+ * Post-it notes pinned on cork / paper / warm-glow surfaces; Shrikhand display,
4
+ * Zilla Slab body, Caveat hand-script.
5
+ * Generated by colamd-themes (local-html: D:\workspace\git\beautiful-html-templates\templates\scatterbrain\template.html)
6
+ * 手工精修:十页模板逐页复刻(映射总表见 1.5,换算式见各节注释)。
7
+ *
8
+ * paradigm 备案(暖纸 + 荧光贴纸身份,与 biennale-yellow / pin-and-paper 同类,有意保留):
9
+ * SL-01 —— surface #FAF8F3 暖纸白,HSL 饱和度 ≈41%(>5%):模板身份即"奶油纸",
10
+ * 去饱和就变成普通白底,贴纸失去纸面依托;
11
+ * SL-02 —— panel #F7F5F0 ≈30%、panelAlt #EFE9DD ≈36%(>10%):三层纸面同为暖色相轴
12
+ * (H 43°/43°/40°,SL-03 无违规),刻意保留纸感;
13
+ * CR-04 —— accent #FFE066 与纸底仅 1.2:1:黄只做贴纸底/荧光/条形,从不做字色;
14
+ * 文字一律 ink #2D2A26(13.5:1),链接走深琥珀 #8A6100(5.1:1)。
15
+ * 以上三项为模板刻意身份,文字色全部绕开黄色,故备案保留(validate exit 1 属预期)。
16
+ *
17
+ * 契约:ColaMD Extend 2.7(CodeMirror 6 编辑器 + Pele 图表引擎)
18
+ *
19
+ * 两条硬规矩:
20
+ * 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
21
+ * 编辑器继承不到。
22
+ * 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
23
+ * 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
24
+ * 并且引用/代码块**不能加纵向 padding**——那会按行累加。
25
+ *
26
+ * ═══════════════════════════════════════════════════════════
27
+ * SECTION 1 — Design Tokens
28
+ * 改 11 个种子色 + 3 组字体即可换一套主题
29
+ * ═══════════════════════════════════════════════════════════ */
30
+
31
+ :root {
32
+
33
+ /* ── 1.1 Seed Palette ──
34
+ 本工具的再生成与校验读这一层;编辑器不消费。
35
+ 来源(template.html :root):yellow #FFE066 / yellow-deep #FFD43B /
36
+ blue #A5D8FF / pink #FFC9C9 / green #B2F2BB / orange #FFCC80 /
37
+ cream #FAF8F3 / paper #F7F5F0 / ink #2D2A26 / ink-light #5C5750
38
+ 模板约定:七色贴纸只做底,不做字色;文字一律 ink,正文次级用 ink-light。 */
39
+ --seed-accent: #ffe066; /* yellow:贴纸底 / 荧光 / 色块 */
40
+ --seed-accent-light: #fff3bf; /* 黄浅档(选区 / 高亮纸) */
41
+ --seed-accent-dark: #ffd43b; /* yellow-deep:贴纸渐变深端 */
42
+ --seed-surface: #faf8f3; /* cream 纸底 */
43
+ --seed-panel: #f7f5f0; /* paper */
44
+ --seed-panel-alt: #efe9dd; /* 桌面暖褐:代码块底 */
45
+ --seed-ink: #2d2a26; /* 软炭墨 */
46
+ --seed-ink-muted: #5c5750; /* ink-light:正文次级 */
47
+ --seed-ink-dim: #6d6861; /* 同色相轴上的更淡档 */
48
+ --seed-border: #bab8b4; /* ink 22% over paper(中性档,NT-03 达标) */
49
+ --seed-border-strong: #2d2a26; /* 模板 2px ink 描边 */
50
+
51
+ /* ── 1.2 Semantic Colors(活变量)── */
52
+ --bg-color: var(--seed-surface);
53
+ --text-color: var(--seed-ink);
54
+ --text-secondary: var(--seed-ink-muted);
55
+ --text-muted: var(--seed-ink-dim);
56
+ --border-color: var(--seed-border);
57
+ /* 模板黄不可做字色(1.2:1);链接换深琥珀档保纸底 5.1:1(CR-04) */
58
+ --link-color: #8a6100;
59
+
60
+ --code-bg: var(--seed-panel);
61
+ --code-block-bg: var(--seed-panel-alt);
62
+ --code-block-text: #2d2a26;
63
+
64
+ --blockquote-border: var(--seed-border-strong); /* 模板:2px ink 描边体系 */
65
+ --blockquote-bg: var(--seed-panel);
66
+ --table-header-bg: var(--seed-panel);
67
+
68
+ --selection-bg: rgba(255, 224, 102, 0.45);
69
+ --highlight-bg: #ffe066; /* 荧光笔即贴纸黄 */
70
+
71
+ /* ── 1.3 Typography & Metrics(活变量)── */
72
+ --font-body: "Zilla Slab", "Yozai", "Noto Serif SC", serif;
73
+ --font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
74
+ --font-hand: "Caveat", "Yozai", cursive; /* 手写批注声部 */
75
+ /* 贴纸投影:模板 .post-it 双层柔影(非阴影体系禁用的模板之一) */
76
+ --postit-shadow: 2px 3px 15px rgba(45, 42, 38, 0.15), 0 1px 3px rgba(45, 42, 38, 0.25);
77
+ --editor-font-size: 16px;
78
+ --editor-column-width: 820px;
79
+
80
+ /* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
81
+ 图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导。 */
82
+ --pele-bg: var(--code-block-bg);
83
+ --pele-fg: var(--code-block-text);
84
+ --pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
85
+ --pele-line: var(--code-block-text);
86
+ --pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
87
+ --pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
88
+ --pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
89
+ --pele-accent: var(--seed-accent); /* 模板:贴纸黄作图表高亮 */
90
+ --pele-radius: 3px; /* 模板:贴纸零圆角,仅图表条 3px 圆角 */
91
+ }
92
+
93
+ /* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 scatterbrain 十页逐页复刻)──
94
+ 换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
95
+ 模板 1920 画布 px ÷ 26 = em(clamp 取 1920×1080 实际落点,模板 rem 按 16px 计:
96
+ h1 4.5rem=72px / h2 3rem=48px / h3 1.8rem=28.8px / p 1.25rem=20px)。
97
+ 字体体系:Shrikhand 400(display,仅 400)/ Zilla Slab 400(body)/
98
+ Caveat 400(手写眉标,大写 .15em)。页面对照:
99
+ P1 title → cover (cork 底)
100
+ P2 statement → quote (paper 底)
101
+ P3 two-column → two-col (warm 底)
102
+ P4 chart → figure (cork 底)
103
+ P5 three-features → matrix (paper 底)
104
+ P6 timeline → timeline (warm 底)
105
+ P7 image+text → figure (cork 底;与 P4 同版式,规则合并)
106
+ P8 diagram+stats → kpi (paper 底)
107
+ P9 comparison → two-col (warm 底;与 P3 同版式,规则合并)
108
+ P10 closing → closing (cork 底)
109
+ 模板没有章节分隔 / 目录 / 步骤流页 → section / agenda / steps 保持上游默认
110
+ (只随 1.5 字号令牌走,1.6 不另写规则)。
111
+ 有意未复刻(行式 DOM 每行一个 div,无挂点):别针(红/蓝/绿/金)、胶带、
112
+ 涂鸦 SVG、纸纹噪点与网格叠层、贴纸 ±1°~±15° 群旋转、绝对定位便签
113
+ (side-note / mini-note / title-accent-* / closing-accent-*)、feature-icon
114
+ 圆框、vs 圆章、双栏并排与图片半幅。 */
115
+ :root {
116
+ --slide-mono: "Caveat", "Yozai", cursive; /* 模板无 mono;眉标/日期声部是 Caveat */
117
+ --slide-title-font: "Shrikhand", "ZCOOL KuaiLe", "Noto Sans SC", serif;
118
+ --slide-title-size: 1.11em; /* 内容页 h3 28.8px ÷26 */
119
+ --slide-title-weight: 400; /* Shrikhand 仅 400 */
120
+ --slide-subhead-weight: 400;
121
+ --slide-title-tracking: 0.02em; /* 模板 display 正向字距 +0.02em */
122
+ --slide-title-line-height: 1.1;
123
+ --slide-cover-title-size: 2.77em; /* P1 h1 72px ÷26 */
124
+ --slide-cover-title-line-height: 1.1;
125
+ --slide-cover-title-tracking: 0.02em;
126
+ --slide-section-title-size: 2.46em; /* 模板无章节页,取 P10 h2 64px ÷26 档 */
127
+ --slide-closing-title-size: 2.46em; /* P10 h2 64px ÷26 */
128
+ --slide-lead-size: 0.8em; /* P1 subtitle-text 20.8px ÷26 */
129
+ --slide-kicker-size: clamp(12px, 0.75vw, 14px); /* .label 14.4px @1920 */
130
+ --slide-kicker-tracking: 0.15em; /* 模板 .label 大写 .15em */
131
+ --slide-kicker-transform: uppercase;
132
+ --slide-chrome-opacity: 0; /* 模板无页码/页眉(design.md) */
133
+ --slide-chrome-transform: uppercase;
134
+ --slide-kpi-number-size: 1.64em; /* P8 stat-value 28.8px ÷26 ÷0.677(li 缩放) */
135
+ --slide-quote-size: 2.15em; /* P2 statement h2 56px ÷26 */
136
+ --slide-page-pad-x: 2.5vw; /* 模板 .slide padding 3rem=48px @1920 */
137
+ --slide-page-top-pad: 64px; /* 48px 页边距 + chrome 安全区 */
138
+ --slide-page-top-pad-print: 48px;
139
+ --slide-cover-text-align: center;
140
+ --slide-cover-lead-inline: auto;
141
+ }
142
+
143
+ /* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
144
+ body.presenting / body.slides-printing 作用域) ═══════════════ */
145
+
146
+ /* 1.6.1 页标题声部对齐:Shrikhand 400 墨色 + 模板正向字距;
147
+ 并压掉文档式 h1/h2 的 border-bottom(编辑器规则带 id 权重会漏进放映) */
148
+ body.presenting #editor .cm-content .cm-md-page-title,
149
+ body.slides-printing #editor .cm-content .cm-md-page-title {
150
+ font-family: var(--slide-title-font);
151
+ font-size: var(--slide-title-size);
152
+ font-weight: 400;
153
+ line-height: 1.1;
154
+ letter-spacing: 0.02em;
155
+ color: var(--text-color);
156
+ border-bottom: none;
157
+ padding-bottom: 0;
158
+ margin-bottom: 0.45em;
159
+ }
160
+ body.presenting .cm-md-strong,
161
+ body.slides-printing .cm-md-strong {
162
+ color: var(--text-color); /* strong 永远正文色,不用贴纸黄 */
163
+ }
164
+
165
+ /* 1.6.2 页面底色:三套纸面(cork / paper / warm)整链上色 ──
166
+ 模板每页一个 bg 变体;页面底色实际由 .cm-editor/.cm-scroller 绘制,
167
+ 所以 body:has(...) / #editor / .cm-editor / .cm-scroller / .cm-content 五层同色,
168
+ 打印域用 body.slides-printing:has(.cm-md-slide-x)。纹理噪点/网格/光晕未复刻。 */
169
+ body.presenting,
170
+ body.slides-printing {
171
+ --page-bg: var(--bg-color);
172
+ }
173
+ body.presenting:has(#editor[data-slide-layout='cover']),
174
+ body.presenting:has(#editor[data-slide-layout='figure']),
175
+ body.presenting:has(#editor[data-slide-layout='closing']),
176
+ body.slides-printing:has(.cm-md-slide-cover),
177
+ body.slides-printing:has(.cm-md-slide-figure),
178
+ body.slides-printing:has(.cm-md-slide-closing) {
179
+ --page-bg: linear-gradient(135deg, #e8ddd0 0%, #d4c5b0 50%, #c9b8a0 100%); /* P1/P4/P7/P10 cork */
180
+ background: var(--page-bg);
181
+ }
182
+ body.presenting:has(#editor[data-slide-layout='quote']),
183
+ body.presenting:has(#editor[data-slide-layout='matrix']),
184
+ body.presenting:has(#editor[data-slide-layout='kpi']),
185
+ body.slides-printing:has(.cm-md-slide-quote),
186
+ body.slides-printing:has(.cm-md-slide-matrix),
187
+ body.slides-printing:has(.cm-md-slide-kpi) {
188
+ --page-bg: linear-gradient(180deg, #faf8f3 0%, #f5f2ec 100%); /* P2/P5/P8 paper */
189
+ background: var(--page-bg);
190
+ }
191
+ body.presenting:has(#editor[data-slide-layout='two-col']),
192
+ body.presenting:has(#editor[data-slide-layout='timeline']),
193
+ body.slides-printing:has(.cm-md-slide-two-col),
194
+ body.slides-printing:has(.cm-md-slide-timeline) {
195
+ --page-bg: linear-gradient(160deg, #fdf8f0 0%, #f7f0e6 100%); /* P3/P6/P9 warm */
196
+ background: var(--page-bg);
197
+ }
198
+ /* 五层链:body 上色在上一组;以下补齐内层,防原底色反盖 */
199
+ body.presenting #editor[data-slide-layout],
200
+ body.presenting #editor[data-slide-layout] .cm-editor,
201
+ body.presenting #editor[data-slide-layout] .cm-scroller,
202
+ body.presenting #editor[data-slide-layout] .cm-content,
203
+ body.slides-printing #editor,
204
+ body.slides-printing #editor .cm-editor,
205
+ body.slides-printing #editor .cm-scroller,
206
+ body.slides-printing #editor .cm-content {
207
+ background: var(--page-bg);
208
+ }
209
+
210
+ /* 1.6.3 cover · P1:黄贴纸承标题(渐变 + 双层柔影 + rotate -2°),
211
+ 手写副题 Caveat、导语 Zilla;色块便签/别针/涂鸦未复刻 */
212
+ body.presenting #editor[data-slide-layout='cover'] .cm-content,
213
+ body.slides-printing:has(.cm-md-slide-cover) .cm-content {
214
+ align-items: center;
215
+ justify-content: center;
216
+ text-align: center;
217
+ }
218
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-line,
219
+ body.slides-printing:has(.cm-md-slide-cover) .cm-content .cm-line {
220
+ text-indent: 0;
221
+ }
222
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
223
+ body.slides-printing .cm-md-slide-cover.cm-md-page-title {
224
+ display: inline-block;
225
+ font-size: var(--slide-cover-title-size);
226
+ line-height: 1.1;
227
+ letter-spacing: 0.02em;
228
+ background: linear-gradient(135deg, #ffe066 0%, #ffd43b 100%);
229
+ padding: 0.667em 0.889em; /* 模板 3rem 4rem ÷ 72px 标题字号 */
230
+ box-shadow: var(--postit-shadow);
231
+ transform: rotate(-2deg); /* .main-title-postit rotate(-2deg) */
232
+ }
233
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-atxheading2,
234
+ body.slides-printing .cm-md-slide-cover.cm-md-atxheading2 {
235
+ font-family: var(--font-hand);
236
+ font-size: 0.98em; /* .handwritten 25.6px ÷26 */
237
+ font-weight: 400;
238
+ line-height: 1.4;
239
+ letter-spacing: 0;
240
+ color: var(--text-secondary);
241
+ margin: 0.31em 0 0; /* 模板 margin-top 0.5rem */
242
+ }
243
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
244
+ body.slides-printing .cm-md-slide-cover.cm-md-page-lead {
245
+ font-size: var(--slide-lead-size); /* .subtitle-text 20.8px */
246
+ line-height: 1.6;
247
+ color: var(--text-secondary);
248
+ max-width: 19.2em; /* 500px ÷26 */
249
+ margin: 1.85em auto 0; /* margin-top 3rem ÷26 */
250
+ }
251
+
252
+ /* 1.6.4 quote · P2:整块黄贴纸承金句(Shrikhand 400 56px 居中);
253
+ 右侧蓝色便签 / 别针胶带 未复刻;署名行走手写右对齐 */
254
+ body.presenting #editor[data-slide-layout='quote'] .cm-content,
255
+ body.slides-printing:has(.cm-md-slide-quote) .cm-content {
256
+ justify-content: center;
257
+ text-align: center;
258
+ }
259
+ body.presenting #editor[data-slide-layout='quote'] .cm-content .cm-line,
260
+ body.slides-printing:has(.cm-md-slide-quote) .cm-content .cm-line {
261
+ text-indent: 0;
262
+ }
263
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
264
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
265
+ font-family: var(--slide-title-font);
266
+ font-size: var(--slide-quote-size);
267
+ font-weight: 400;
268
+ line-height: 1.1;
269
+ letter-spacing: 0.02em;
270
+ color: var(--text-color);
271
+ background: linear-gradient(135deg, #ffe066 0%, #ffd43b 100%);
272
+ border-left: none;
273
+ /* CSS-03:纵向留白只能走 margin,这里只给左右内边距 */
274
+ padding-left: 1.14em; /* 模板 4rem ÷ 56px */
275
+ padding-right: 1.14em;
276
+ box-shadow: var(--postit-shadow);
277
+ max-width: 700px; /* .statement-postit max-width */
278
+ margin-left: auto;
279
+ margin-right: auto;
280
+ }
281
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
282
+ body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
283
+ font-family: var(--font-hand);
284
+ font-size: 0.98em; /* 署名 .handwritten 25.6px ÷26 */
285
+ text-align: right;
286
+ color: var(--text-secondary);
287
+ margin-top: 0.62em; /* 模板 margin-top 1rem ÷26 */
288
+ }
289
+ body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-page-lead,
290
+ body.slides-printing .cm-md-slide-quote.cm-md-page-lead {
291
+ font-size: 0.77em; /* 正文 20px ÷26 */
292
+ color: var(--text-secondary);
293
+ max-width: 26.9em; /* 700px ÷26 */
294
+ margin-left: auto;
295
+ margin-right: auto;
296
+ }
297
+
298
+ /* 1.6.5 two-col · P3 / P9:栏目题 = Shrikhand 28.8px + 3px ink 底线(取对照页
299
+ 的 h3 身份);清单行 17.6px + rgba ink .1 分隔线。蓝色/黄色双贴纸、标签眉标、
300
+ vs 圆章、左右分栏 未复刻(行序无挂点,标签眉标走 kicker) */
301
+ body.presenting #editor .cm-content .cm-md-slide-two-col .cm-md-atxheading2,
302
+ body.slides-printing #editor .cm-content .cm-md-slide-two-col .cm-md-atxheading2 {
303
+ font-size: 1.11em; /* 栏目 h3 28.8px ÷26 */
304
+ border-bottom: 3px solid var(--text-color); /* .compare-postit h3 3px ink */
305
+ padding-bottom: 0.44em; /* 0.8rem ÷ 28.8px */
306
+ margin-bottom: 0.83em; /* 1.5rem ÷ 28.8px */
307
+ }
308
+ body.presenting #editor .cm-content .cm-md-slide-two-col.cm-md-li,
309
+ body.slides-printing #editor .cm-content .cm-md-slide-two-col.cm-md-li {
310
+ font-size: 0.677em; /* .compare-list li 17.6px ÷26 */
311
+ line-height: 1.5;
312
+ padding: 0.73em 0; /* 0.8rem ÷ 17.6px */
313
+ border-bottom: 1px solid rgba(45, 42, 38, 0.1);
314
+ }
315
+ body.presenting #editor .cm-content .cm-md-slide-two-col .cm-md-page-lead,
316
+ body.slides-printing .cm-md-slide-two-col.cm-md-page-lead {
317
+ font-size: 0.77em; /* 正文 20px ÷26 */
318
+ color: var(--text-secondary);
319
+ }
320
+
321
+ /* 1.6.6 figure · P4(chart)/ P7(image+text):白卡托底 + 柔影(图表卡/拍立得卡);
322
+ 图片给 16px 白边 + rotate -2°(.photo-frame);表格走 ink 虚线行(stat-row)。
323
+ 版面左右分栏、半幅图、贴纸叠放 未复刻 */
324
+ body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-image img,
325
+ body.presenting #editor[data-slide-layout='figure'] .cm-content svg.pele,
326
+ body.slides-printing .cm-md-slide-figure .cm-md-image img,
327
+ body.slides-printing .cm-md-slide-figure svg.pele {
328
+ background: #ffffff; /* 模板 .chart-container / .photo-frame 白纸 */
329
+ padding: 16px; /* .photo-frame 1rem 白边(P7 拍立得) */
330
+ box-shadow: var(--postit-shadow);
331
+ border-radius: 0;
332
+ }
333
+ body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-table-widget th,
334
+ body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-table-widget td,
335
+ body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-table-widget th,
336
+ body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-table-widget td {
337
+ padding: 0.57em 0.85em; /* 1rem 0 ÷ 17.6px 行基准 */
338
+ border-color: rgba(45, 42, 38, 0.2);
339
+ border-bottom-style: dashed; /* .stat-row 1px dashed ink .2 */
340
+ }
341
+ body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-table-widget th,
342
+ body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-table-widget th {
343
+ background: #ffffff;
344
+ border-bottom: 2px solid var(--text-color); /* 白卡 + 2px ink 底轨 */
345
+ font-weight: 600;
346
+ }
347
+ body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-page-lead,
348
+ body.slides-printing .cm-md-slide-figure.cm-md-page-lead {
349
+ font-size: 0.77em; /* 正文 20px ÷26 */
350
+ color: var(--text-secondary);
351
+ }
352
+
353
+ /* 1.6.7 matrix · P5:三张黄贴纸卡(li 行自绘:30.5% 宽 + 渐变底 + 柔影 + 居中);
354
+ 卡片题 Shrikhand 22.4px、正文 20px。逐卡换色(黄/蓝/粉)、图标圆框、
355
+ ±3°/±2°/±1° 群旋转、第 2 卡下移 未复刻 */
356
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
357
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
358
+ display: inline-block;
359
+ vertical-align: top;
360
+ width: 30.5%;
361
+ margin: 0 2% 1.4em 0;
362
+ padding: 2em 1.6em; /* .feature-postit 2.5rem 2rem ÷ 20px */
363
+ font-size: 0.77em; /* 卡片正文 20px ÷26 */
364
+ text-align: center;
365
+ background: linear-gradient(135deg, #ffe066 0%, #ffd43b 100%);
366
+ box-shadow: var(--postit-shadow);
367
+ border: none;
368
+ border-radius: 0;
369
+ color: var(--text-color);
370
+ }
371
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
372
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
373
+ display: block;
374
+ font-family: var(--slide-title-font);
375
+ font-size: 1.12em; /* 卡片题 22.4px ÷20 */
376
+ font-weight: 400;
377
+ line-height: 1.1;
378
+ letter-spacing: 0.02em;
379
+ color: var(--text-color);
380
+ margin-bottom: 0.5em;
381
+ }
382
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-listmark,
383
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-listmark {
384
+ display: none; /* 贴纸卡无项目符号 */
385
+ }
386
+
387
+ /* 1.6.8 timeline · P6:每行 = 白色便签卡(2px ink 描边 + 柔影,.post-it-white),
388
+ 行题 Shrikhand 28.8px、正文 20px;黄/蓝/绿节点贴纸与虚线箭头 SVG 未复刻 */
389
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li,
390
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li {
391
+ font-size: 0.77em; /* .timeline-content p 20px ÷26 */
392
+ background: #ffffff; /* .post-it-white */
393
+ border: 2px solid var(--text-color);
394
+ border-radius: 0;
395
+ box-shadow: var(--postit-shadow);
396
+ padding: 1.6em; /* .timeline-content 2rem ÷ 20px */
397
+ margin: 0 0 1em;
398
+ }
399
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-strong,
400
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-strong {
401
+ font-family: var(--slide-title-font);
402
+ font-size: 1.44em; /* 行题 h3 28.8px ÷20 */
403
+ font-weight: 400;
404
+ line-height: 1.1;
405
+ letter-spacing: 0.02em;
406
+ color: var(--text-color);
407
+ }
408
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-listmark,
409
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-listmark {
410
+ display: none; /* 行题即节点名,无序号列 */
411
+ }
412
+
413
+ /* 1.6.9 kpi · P8:统计卡 = 无卡裸排,1px 虚线 ink .2 行底;数字 Shrikhand 28.8px、
414
+ 标签 Zilla 17.6px。白色环形图卡、黄色贴纸底、手写批注 未复刻 */
415
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
416
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
417
+ display: inline-block;
418
+ vertical-align: top;
419
+ width: 47%;
420
+ margin: 0 2% 1em 0;
421
+ padding: 0.91em 0; /* .stat-row 1rem ÷ 17.6px */
422
+ font-size: 0.677em; /* .stat-label 17.6px ÷26 */
423
+ line-height: 1.5;
424
+ border: none;
425
+ border-bottom: 1px dashed rgba(45, 42, 38, 0.2);
426
+ border-radius: 0;
427
+ box-shadow: none;
428
+ background: transparent;
429
+ }
430
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
431
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
432
+ display: block;
433
+ font-family: var(--slide-title-font);
434
+ font-size: var(--slide-kpi-number-size); /* .stat-value 28.8px ÷26 ÷0.677 */
435
+ font-weight: 400;
436
+ line-height: 1.1;
437
+ letter-spacing: 0.02em;
438
+ color: var(--text-color);
439
+ margin-bottom: 0.2em;
440
+ }
441
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-listmark,
442
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-listmark {
443
+ display: none;
444
+ }
445
+
446
+ /* 1.6.10 closing · P10:黄贴纸承致谢标题(64px + rotate -1°),手写副题;
447
+ 四枚彩色角贴(蓝/粉/绿/橙)、别针、涂鸦 未复刻 */
448
+ body.presenting #editor[data-slide-layout='closing'] .cm-content,
449
+ body.slides-printing:has(.cm-md-slide-closing) .cm-content {
450
+ align-items: center;
451
+ justify-content: center;
452
+ text-align: center;
453
+ }
454
+ body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-line,
455
+ body.slides-printing:has(.cm-md-slide-closing) .cm-content .cm-line {
456
+ text-indent: 0;
457
+ }
458
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-title,
459
+ body.slides-printing .cm-md-slide-closing.cm-md-page-title {
460
+ display: inline-block;
461
+ font-size: var(--slide-closing-title-size); /* .closing-main h2 64px ÷26 */
462
+ line-height: 1.1;
463
+ letter-spacing: 0.02em;
464
+ background: linear-gradient(135deg, #ffe066 0%, #ffd43b 100%);
465
+ padding: 0.75em 1.25em; /* 模板 3rem 5rem ÷ 64px */
466
+ box-shadow: var(--postit-shadow);
467
+ transform: rotate(-1deg);
468
+ }
469
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-lead,
470
+ body.slides-printing .cm-md-slide-closing.cm-md-page-lead {
471
+ font-family: var(--font-hand);
472
+ font-size: 0.98em; /* .handwritten 25.6px ÷26 */
473
+ color: var(--text-secondary);
474
+ margin-top: 0.62em;
475
+ }
476
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
477
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
478
+ font-size: 0.677em; /* 落款列 17.6px ÷26 */
479
+ line-height: 1.6;
480
+ margin: 0.6em 0;
481
+ text-align: center;
482
+ }
483
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-listmark,
484
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-listmark {
485
+ display: none;
486
+ }
487
+
488
+ /* 1.6.11 chrome:模板没有页码/页眉/页脚(design.md「no persistent slide chrome」),
489
+ 三件 chrome(含幽灵字)整体隐去,与上游 section/closing 的隐 ghost 处理一致 */
490
+ body.presenting .slide-chrome,
491
+ body.presenting .slide-foot,
492
+ body.presenting .slide-ghost,
493
+ body.slides-printing .slide-chrome,
494
+ body.slides-printing .slide-foot,
495
+ body.slides-printing .slide-ghost {
496
+ opacity: 0;
497
+ }
498
+
499
+ /* ═══════════════════════════════════════════════════════════
500
+ SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
501
+ ═══════════════════════════════════════════════════════════ */
502
+
503
+ #editor .cm-content {
504
+ font-family: var(--font-body);
505
+ line-height: 1.7; /* 模板 p line-height 1.7 */
506
+ }
507
+
508
+ /* ── 2.1 Headings:Shrikhand 仅 400(生成版 700 是错的),模板无标题下划线 ── */
509
+ #editor .cm-content .cm-md-atxheading1,
510
+ #editor .cm-content .cm-md-atxheading2,
511
+ #editor .cm-content .cm-md-atxheading3,
512
+ #editor .cm-content .cm-md-atxheading4,
513
+ #editor .cm-content .cm-md-atxheading5,
514
+ #editor .cm-content .cm-md-atxheading6 {
515
+ font-family: "Shrikhand", "ZCOOL KuaiLe", "Noto Sans SC", serif;
516
+ color: var(--text-color);
517
+ font-weight: 400;
518
+ line-height: 1.1;
519
+ letter-spacing: 0.02em; /* 模板 display 正向字距 */
520
+ border-bottom: none;
521
+ padding-bottom: 0;
522
+ }
523
+
524
+ #editor .cm-content .cm-md-atxheading1 { font-size: 3em; }
525
+ #editor .cm-content .cm-md-atxheading2 { font-size: 2.2em; }
526
+ #editor .cm-content .cm-md-atxheading3 { font-size: 1.6em; }
527
+ #editor .cm-content .cm-md-atxheading4 { font-size: 1.3em; }
528
+ #editor .cm-content .cm-md-atxheading5 { font-size: 1.1em; }
529
+ #editor .cm-content .cm-md-atxheading6 {
530
+ font-size: 0.9em; /* .label 14.4px */
531
+ font-family: var(--font-hand); /* 模板眉标 = Caveat 大写 .15em */
532
+ color: var(--text-secondary);
533
+ letter-spacing: 0.15em;
534
+ text-transform: uppercase;
535
+ }
536
+
537
+ /* ── 2.2 Inline ── */
538
+ #editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 600; }
539
+ #editor .cm-content .cm-md-em { font-style: italic; }
540
+ #editor .cm-content .cm-md-strike { text-decoration: line-through; }
541
+ #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); color: var(--text-color); }
542
+ #editor .cm-content .cm-md-link { color: var(--link-color); }
543
+ #editor .cm-content .cm-md-url { color: var(--text-muted); }
544
+
545
+ #editor .cm-content .cm-md-inlinecode {
546
+ font-family: var(--font-mono);
547
+ background: var(--code-bg);
548
+ color: var(--text-color);
549
+ border-radius: 3px; /* 模板唯一圆角档(图表条 3px) */
550
+ }
551
+
552
+ #editor .cm-content .cm-md-marker,
553
+ #editor .cm-content .cm-md-quotemark,
554
+ #editor .cm-content .cm-md-listmark {
555
+ color: var(--text-muted);
556
+ }
557
+
558
+ /* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
559
+ 引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
560
+ 否则引用里的代码行会盖住代码块底色。 */
561
+ #editor .cm-content .cm-md-blockquote {
562
+ color: var(--text-secondary);
563
+ border-left: 2px solid var(--blockquote-border); /* 模板 2px ink 描边 */
564
+ padding-left: 16px;
565
+ padding-right: 16px;
566
+ }
567
+
568
+ #editor .cm-content .cm-md-codeblock {
569
+ background: var(--code-block-bg);
570
+ color: var(--code-block-text);
571
+ padding-left: 16px;
572
+ padding-right: 16px;
573
+ }
574
+ #editor .cm-content .cm-md-codeblock-first {
575
+ border-top-left-radius: 3px;
576
+ border-top-right-radius: 3px;
577
+ }
578
+ #editor .cm-content .cm-md-codeblock-last {
579
+ border-bottom-left-radius: 3px;
580
+ border-bottom-right-radius: 3px;
581
+ }
582
+
583
+ /* ── 2.4 Table / Rule(模板:stat-row 1px 虚线行 + 白卡 2px ink 底轨)── */
584
+ #editor .cm-content .cm-md-table-widget th,
585
+ #editor .cm-content .cm-md-table-widget td {
586
+ padding: 8px 12px;
587
+ border-color: rgba(45, 42, 38, 0.2);
588
+ border-bottom-style: dashed;
589
+ }
590
+ #editor .cm-content .cm-md-table-widget th {
591
+ background: var(--table-header-bg);
592
+ color: var(--text-color);
593
+ font-weight: 600;
594
+ border-bottom: 2px solid var(--seed-border-strong);
595
+ }
596
+ #editor .cm-content .cm-md-hr { border-top-color: var(--border-color); }
597
+
598
+ /* ── 2.5 中文首行缩进 ──
599
+ CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
600
+ #editor .cm-content .cm-line { text-indent: 2em; }
601
+
602
+ #editor .cm-content .cm-md-atxheading1,
603
+ #editor .cm-content .cm-md-atxheading2,
604
+ #editor .cm-content .cm-md-atxheading3,
605
+ #editor .cm-content .cm-md-atxheading4,
606
+ #editor .cm-content .cm-md-atxheading5,
607
+ #editor .cm-content .cm-md-atxheading6,
608
+ #editor .cm-content .cm-md-blockquote,
609
+ #editor .cm-content .cm-md-codeblock,
610
+ #editor .cm-content .cm-md-hr,
611
+ #editor .cm-content .cm-md-mermaid,
612
+ #editor .cm-content .cm-md-li-0,
613
+ #editor .cm-content .cm-md-li-1,
614
+ #editor .cm-content .cm-md-li-2,
615
+ #editor .cm-content .cm-md-li-3,
616
+ #editor .cm-content .cm-md-li-4,
617
+ #editor .cm-content .cm-md-li-5,
618
+ #editor .cm-content .cm-md-li-6 {
619
+ text-indent: 0;
620
+ }
621
+
622
+ /* ── 2.6 Image:拍立得白边 + 柔影(.photo-frame)── */
623
+ #editor .cm-content .cm-md-image img {
624
+ max-width: 100%;
625
+ background: #ffffff;
626
+ padding: 8px;
627
+ box-shadow: 0 2px 12px rgba(45, 42, 38, 0.15);
628
+ }
629
+
630
+ /* ═══════════════════════════════════════════════════════════
631
+ SECTION 3 — Exported HTML(.colamd-document,语义标签)
632
+ HTML/PDF 导出不走编辑器 DOM;这段让导出件沿用同一套配色。
633
+ ═══════════════════════════════════════════════════════════ */
634
+
635
+ .colamd-document {
636
+ font-family: var(--font-body);
637
+ font-size: 16px;
638
+ line-height: 1.7;
639
+ }
640
+
641
+ .colamd-document h1,
642
+ .colamd-document h2,
643
+ .colamd-document h3,
644
+ .colamd-document h4,
645
+ .colamd-document h5,
646
+ .colamd-document h6 {
647
+ font-family: "Shrikhand", "ZCOOL KuaiLe", "Noto Sans SC", serif;
648
+ color: var(--text-color);
649
+ font-weight: 400;
650
+ line-height: 1.1;
651
+ letter-spacing: 0.02em;
652
+ margin: 1.4em 0 0.5em;
653
+ }
654
+ .colamd-document h1 { font-size: 3em; margin-top: 0.4em; }
655
+ .colamd-document h2 { font-size: 2.2em; }
656
+ .colamd-document h3 { font-size: 1.6em; }
657
+ .colamd-document h4 { font-size: 1.3em; }
658
+ .colamd-document h5 { font-size: 1.1em; }
659
+ .colamd-document h6 {
660
+ font-size: 0.9em;
661
+ font-family: var(--font-hand);
662
+ color: var(--text-secondary);
663
+ letter-spacing: 0.15em;
664
+ text-transform: uppercase;
665
+ }
666
+
667
+ .colamd-document strong { color: var(--text-color); font-weight: 600; }
668
+ .colamd-document a { color: var(--link-color); }
669
+ .colamd-document code {
670
+ background: var(--code-bg);
671
+ color: var(--text-color);
672
+ font-family: var(--font-mono);
673
+ border-radius: 3px;
674
+ }
675
+ /* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
676
+ .colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
677
+ .colamd-document pre { background: var(--code-block-bg); }
678
+ .colamd-document pre code { color: var(--code-block-text); }
679
+ .colamd-document blockquote {
680
+ background: var(--blockquote-bg);
681
+ color: var(--text-secondary);
682
+ border-left: 2px solid var(--blockquote-border);
683
+ padding: 0.5em 1em;
684
+ }
685
+ .colamd-document mark { background: var(--highlight-bg); color: var(--text-color); }
686
+ .colamd-document img {
687
+ max-width: 100%;
688
+ background: #ffffff;
689
+ padding: 8px;
690
+ box-shadow: 0 2px 12px rgba(45, 42, 38, 0.15);
691
+ }
692
+ .colamd-document th,
693
+ .colamd-document td {
694
+ border-color: rgba(45, 42, 38, 0.2);
695
+ border-bottom-style: dashed;
696
+ padding: 8px 12px;
697
+ }
698
+ .colamd-document th {
699
+ background: var(--table-header-bg);
700
+ font-weight: 600;
701
+ border-bottom: 2px solid var(--seed-border-strong);
702
+ }
703
+ .colamd-document hr { border-top-color: var(--border-color); }
704
+
705
+ .colamd-document p { text-indent: 2em; }
706
+ .colamd-document li p,
707
+ .colamd-document td p,
708
+ .colamd-document th p,
709
+ .colamd-document blockquote p {
710
+ text-indent: 0;
711
+ }
712
+
713
+ /* ═══════════════════════════════════════════════════════════
714
+ SECTION 4 — Print
715
+ 应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
716
+ ═══════════════════════════════════════════════════════════ */
717
+
718
+ @media print {
719
+ html,
720
+ body {
721
+ background: var(--bg-color);
722
+ color: var(--text-color);
723
+ -webkit-print-color-adjust: exact;
724
+ print-color-adjust: exact;
725
+ }
726
+ }