@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,767 @@
1
+ /*
2
+ * ColaMD Theme: Retro Windows(Win95 窗口 · 手工精修版)
3
+ * 来源:D:\workspace\git\beautiful-html-templates\templates\retro-windows\
4
+ * template.html(10 页窗口版式)+ design.md
5
+ * 视觉身份:1920 桌面(#808080)+ 居中 1200px 窗口(面 #D4D0C8 / 2px 白黑斜面 /
6
+ * navy 渐变标题栏 28px)+ 高密度 MS Sans Serif 软件 UI:窗内标题一律 navy
7
+ * 700,正文 14-18px,表格灰头白身,分组框为下沉斜面。
8
+ * 色板(template.html :root):bg-gray #C0C0C0 / bg-light #D4D0C8 / bg-dark #808080
9
+ * white #FFFFFF / black #000000 / text-dark #222222 / text-gray #505050
10
+ * blue-navy #000080 / blue-bright #0000A0 / blue-light #1084D0
11
+ * green #008000 / red #800000 / yellow #808000 / cyan #008080
12
+ * 字体:MS Sans Serif / Segoe UI(正文与窗内标题)/ Press Start 2P(仅 P01 像素
13
+ * 屏显标题、P10 告别页)/ VT323(终端页码、chrome、foot)
14
+ * paradigm 备案(Win9x 暖灰身份,与 pin-and-paper 黄纸同类,有意保留):
15
+ * SL-01 —— 窗口面 #D4D0C8 是 Win9x「3D Objects」系统色,饱和度 12.2% > 5%;
16
+ * 暖灰就是斜面按钮面的身份,改中性灰即失去 Win95 质感;文字 ink
17
+ * #222 对其 10.3:1,可读性不受影响。
18
+ * SL-03 —— surface 暖灰 H≈40° 与 panel/panelAlt 中性灰 H=0° 不同轴;Win9x
19
+ * 的窗口面/按钮面/非活动标题栏本就跨两种灰,仅 SHOULD 级保留。
20
+ * 版式复刻见 SECTION 1.5/1.6(十页逐页对照与 px÷26 换算式均在注释中)。
21
+ * 映射总表:P01 cover / P02 agenda / P03 matrix(无副题变体)/ P04 figure /
22
+ * P05 matrix / P06 figure / P07 kpi / P08 figure / P09 timeline / P10 closing;
23
+ * quote / steps / two-col / section 无对应页,保持上游默认。
24
+ * 有意未复刻(绝对定位装饰,行式 DOM 无挂点):桌面图标与滚动条、标题栏三键、
25
+ * P01 跑马灯/进度条/按钮/版本行、P05 复选框与进度条、P08 组织树连线、
26
+ * P09 页码斜面 chip。
27
+ *
28
+ * 契约:ColaMD Extend 2.7.13(CodeMirror 6 编辑器 + Pele 图表引擎)
29
+ *
30
+ * 两条硬规矩:
31
+ * 1. 变量一律写在 :root。写在别的选择器里编辑器继承不到。
32
+ * 2. 编辑器里没有 <h1>/<blockquote> 元素:标题是「一行」带一个类,引用与代码块
33
+ * 是每行一个 div。引用/代码块**不能加纵向 padding**——会按行累加。
34
+ *
35
+ * ═══════════════════════════════════════════════════════════
36
+ * SECTION 1 — Design Tokens
37
+ * ═══════════════════════════════════════════════════════════ */
38
+
39
+ :root {
40
+
41
+ /* ── 1.1 Seed Palette ──
42
+ 本工具的再生成与校验读这一层;编辑器不消费。
43
+ 模板约定:窗内标题与链接只用 blue-navy(不做正文色);green/red/yellow/cyan
44
+ 只出现在状态文字与图表色块;three-surface = 窗口面 / 按钮灰 / 非活动栏。 */
45
+ --seed-accent: #000080; /* blue-navy:标题、链接、主数据 */
46
+ --seed-accent-light: #1084d0; /* blue-light:渐变第二档(语义色不再重复) */
47
+ --seed-accent-dark: #000040; /* navy 加深:标题栏渐变起点 */
48
+ --seed-surface: #d4d0c8; /* bg-light 窗口面 */
49
+ --seed-panel: #c0c0c0; /* bg-gray 表头 / 滚动条 / 按钮面 */
50
+ --seed-panel-alt: #a8a8a8; /* 非活动标题栏中性档 */
51
+ --seed-ink: #222222; /* text-dark */
52
+ --seed-ink-muted: #4a4a4a; /* text-gray 加深一档保 CR-02 */
53
+ --seed-ink-dim: #4f4f4f;
54
+ --seed-border: #808080; /* bg-dark 桌面灰 = 边线 */
55
+ --seed-border-strong: #404040; /* btn-shadow 斜面暗边 */
56
+
57
+ /* ── 1.2 Semantic Colors(活变量)── */
58
+ --bg-color: var(--seed-surface);
59
+ --text-color: var(--seed-ink);
60
+ --text-secondary: var(--seed-ink-muted);
61
+ --text-muted: var(--seed-ink-dim);
62
+ --border-color: var(--seed-border);
63
+ --link-color: var(--seed-accent);
64
+
65
+ --code-bg: var(--seed-panel);
66
+ --code-block-bg: #ffffff; /* 模板:白色下沉井 / 图表托底 */
67
+ --code-block-text: var(--seed-ink);
68
+
69
+ --blockquote-border: var(--seed-border-strong); /* 模板:2px 斜面暗边 */
70
+ --blockquote-bg: #ffffff;
71
+ --table-header-bg: var(--seed-panel); /* 模板:灰底表头 */
72
+
73
+ --selection-bg: rgba(0, 0, 128, 0.25);
74
+ --highlight-bg: rgba(0, 0, 128, 0.12); /* 模板无荧光笔,取 navy 选区 */
75
+
76
+ /* ── 1.3 Typography & Metrics(活变量)── */
77
+ --font-body: "MS Sans Serif", "Segoe UI", Tahoma, "Noto Sans SC", sans-serif;
78
+ --font-mono: "VT323", "Noto Sans Mono CJK SC", monospace;
79
+ --editor-font-size: 16px; /* 模板 body 16px */
80
+ --editor-column-width: 860px;
81
+
82
+ /* ── 1.4 Pele Diagram(9 个变量)──
83
+ 图的井是白色下沉面板,描边/字色取正文 ink。 */
84
+ --pele-bg: var(--code-block-bg);
85
+ --pele-fg: var(--code-block-text);
86
+ --pele-muted: color-mix(in srgb, var(--code-block-text) 72%, var(--code-block-bg));
87
+ --pele-line: var(--code-block-text);
88
+ --pele-surface: color-mix(in srgb, var(--code-block-text) 16%, var(--code-block-bg));
89
+ --pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
90
+ --pele-border: color-mix(in srgb, var(--code-block-text) 50%, var(--code-block-bg));
91
+ --pele-accent: var(--seed-accent);
92
+ --pele-radius: 0px; /* 模板:零圆角 */
93
+ }
94
+
95
+ /* ── 1.5 PPT / Slides(ColaMD 2.7.13 · retro-windows 十页逐页复刻)──
96
+ 换算锚点:放映基准 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
97
+ 模板 1920 画布 px ÷ 26 = em(clamp 取 1920×1080 实际落点)。
98
+ 页面映射(模板页 → 11 种版式):
99
+ P01 splash → cover (24px 像素屏显标题,居中)
100
+ P02 agenda → agenda (22px 标题 + 14px 副题 + navy 序号)
101
+ P03 executive summary → matrix (无副题变体:24px 白色凸面板标题 +
102
+ 18px 正文 + 4 列状态条)
103
+ P04 quarterly trend → figure (22px 标题 + 斜面 hr + 灰头白身表)
104
+ P05 product capabilities→ matrix (22px 标题 + 下沉分组框 2 列卡片)
105
+ P06 revenue mix → figure (22px 标题 + 白井饼图 + 明细)
106
+ P07 KPI dashboard → kpi (22px 标题 + 4 个下沉 KPI 分组框)
107
+ P08 organization → figure (22px 标题 + 表格 / 组织树)
108
+ P09 2026 roadmap → timeline (22px 标题 + 4 个迷你窗口列)
109
+ P10 thank you → closing (20px 像素标题 + 三列联系信息)
110
+ quote / steps / two-col / section 无对应页,保持上游默认。
111
+ 换算式(每条规则的注释里保留除式):
112
+ 内容页题 22px → 0.85em;P03 题 24px → 0.92em;P01 题 24px → 0.92em、
113
+ 行高 1.8;P10 题 20px → 0.77em;副题 14px → 0.54em;正文 18px → 0.69em;
114
+ 列表 15px → 0.58em;KPI 数值 30px ÷26 ÷0.54(li 基准) = 2.14em;
115
+ 时间轴栏头 12px ÷26 ÷0.58 = 0.80em;联系信息 12px → 0.46em。
116
+ 窗口:桌面两侧各 18.75vw(1200px 窗宽 / 1920),文字左右各 20vw(内距
117
+ 1.25vw = 24px),正文宽 60vw = 1152px,与模板 win-body 一致。
118
+ 顶距 78px = 标题栏 28 + win-body 20 + 30 呼吸。 */
119
+ :root {
120
+ --slide-mono: "VT323", "Noto Sans Mono CJK SC", monospace;
121
+ --slide-title-font: "MS Sans Serif", "Segoe UI", "Noto Sans SC", sans-serif;
122
+ --slide-title-size: 0.85em; /* 内容页题 22px ÷26(P02/P04-P09) */
123
+ --slide-title-weight: 700; /* MS Sans Serif Bold */
124
+ --slide-subhead-weight: 700;
125
+ --slide-title-tracking: 0;
126
+ --slide-title-line-height: 1.3;
127
+ --slide-cover-title-size: 0.92em; /* P01 h1 24px ÷26(Press Start 2P 400) */
128
+ --slide-cover-title-line-height: 1.8;
129
+ --slide-cover-title-tracking: 0;
130
+ --slide-section-title-size: 0.85em; /* 章节页 22px ÷26(模板无 chapter 页) */
131
+ --slide-closing-title-size: 0.77em; /* P10 h2 20px ÷26 */
132
+ --slide-lead-size: 0.54em; /* 副题/说明 14px ÷26 */
133
+ --slide-kicker-size: clamp(11px, 0.63vw, 12px); /* 眉标 12px @1920 */
134
+ --slide-kicker-tracking: 0.02em;
135
+ --slide-kicker-transform: none; /* 模板不大写 */
136
+ --slide-chrome-opacity: 1; /* 标题栏白字不淡出 */
137
+ --slide-chrome-transform: uppercase; /* 标题栏文件名全大写 */
138
+ --slide-kpi-number-size: 2.14em; /* 30px ÷26 ÷0.54(li 基准 14px) */
139
+ --slide-quote-size: 2.4em; /* 模板无 quote 页,保留上游默认 */
140
+ --slide-page-pad-x: 20vw; /* 桌面 18.75vw + win-body 1.25vw */
141
+ --slide-page-top-pad: 78px;
142
+ --slide-page-top-pad-print: 60px;
143
+ --slide-cover-text-align: center;
144
+ --slide-cover-lead-inline: auto;
145
+ }
146
+
147
+ /* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
148
+ body.presenting / body.slides-printing 作用域) ═══════════════ */
149
+
150
+ /* 1.6.0 桌面与窗口容器(10 页同底,无换底页)
151
+ 模板每页 = 1920 桌面 + 1200px 居中窗口(win-body 内容 1152px)。行式 DOM
152
+ 没有窗框元素,用 .cm-content 的复合背景画出「桌面—2px 白斜面—窗口面—
153
+ 2px 黑右沿」:横向 18.75vw 起窗、62.5vw 窗宽;顶/底 2px 白/黑线只铺窗内
154
+ 62.5vw。整条层叠链(body/#editor/.cm-editor/.cm-scroller)统一铺桌面灰,
155
+ 避免平台给 #editor 画的纸面底盖住。 */
156
+ body.presenting,
157
+ body.presenting #editor,
158
+ body.presenting #editor .cm-editor,
159
+ body.presenting #editor .cm-scroller,
160
+ body.slides-printing,
161
+ body.slides-printing #editor,
162
+ body.slides-printing #editor .cm-editor,
163
+ body.slides-printing #editor .cm-scroller {
164
+ background: #808080; /* bg-dark 桌面 */
165
+ }
166
+ body.presenting #editor .cm-content,
167
+ body.slides-printing #editor .cm-content {
168
+ background-color: #808080;
169
+ background-image:
170
+ linear-gradient(180deg, #ffffff 0 2px, transparent 2px calc(100% - 2px), #000000 calc(100% - 2px) 100%),
171
+ linear-gradient(90deg,
172
+ #808080 0 18.75vw,
173
+ #ffffff 18.75vw calc(18.75vw + 2px),
174
+ #d4d0c8 calc(18.75vw + 2px) calc(81.25vw - 2px),
175
+ #000000 calc(81.25vw - 2px) 81.25vw,
176
+ #808080 81.25vw 100%);
177
+ background-size: 62.5vw 100%, 100% 100%;
178
+ background-position: 18.75vw 0, 0 0;
179
+ background-repeat: no-repeat, no-repeat;
180
+ color: #222222;
181
+ }
182
+ body.presenting #editor .cm-content {
183
+ min-height: 100vh; /* 窗底黑线落在视口底 */
184
+ }
185
+
186
+ /* 1.6.1 页标题声部:MS Sans Serif 700 navy;压掉文档式标题样式 */
187
+ body.presenting #editor .cm-content .cm-md-page-title,
188
+ body.slides-printing #editor .cm-content .cm-md-page-title {
189
+ font-family: var(--slide-title-font);
190
+ font-size: var(--slide-title-size);
191
+ font-weight: 700;
192
+ line-height: 1.3;
193
+ letter-spacing: 0;
194
+ color: #000080; /* 模板:窗内标题一律 navy */
195
+ border-bottom: none;
196
+ padding-bottom: 0;
197
+ margin: 0 0 0.35em;
198
+ max-width: none;
199
+ }
200
+ body.presenting #editor .cm-content .cm-md-page-lead,
201
+ body.slides-printing #editor .cm-content .cm-md-page-lead {
202
+ font-size: var(--slide-lead-size); /* 14px ÷26 */
203
+ line-height: 1.5;
204
+ color: #505050;
205
+ max-width: none;
206
+ margin: 0 0 0.8em;
207
+ }
208
+
209
+ /* 1.6.2 cover · P01(splash):Pixelify 屏显标题 24px 居中、行高 1.8;
210
+ 跑马灯 / 进度条 / 按钮 / 版本行是绝对定位装饰,未复刻 */
211
+ body.presenting #editor[data-slide-layout='cover'] .cm-content {
212
+ justify-content: center;
213
+ text-align: center;
214
+ }
215
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
216
+ body.slides-printing .cm-md-slide-cover.cm-md-page-title {
217
+ font-family: "Press Start 2P", "Noto Sans SC", sans-serif;
218
+ font-size: var(--slide-cover-title-size); /* 24px ÷26 */
219
+ font-weight: 400; /* Press Start 2P 仅 400 */
220
+ line-height: 1.8;
221
+ letter-spacing: 0;
222
+ color: #000080;
223
+ max-width: none;
224
+ margin: 0 auto 0.5em;
225
+ text-align: center;
226
+ }
227
+ body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
228
+ body.slides-printing .cm-md-slide-cover.cm-md-page-lead {
229
+ font-size: 0.54em; /* 14px ÷26 */
230
+ line-height: 1.5;
231
+ color: #505050;
232
+ text-align: center;
233
+ margin-inline: auto;
234
+ }
235
+
236
+ /* 1.6.3 agenda · P02:22px navy 题 + 14px 灰副题 + 斜面 hr;条目 15px 无分隔线,
237
+ 序号列 navy 700(模板自绘 ">" chevron,行式 DOM 无挂点,用序号近似);
238
+ 模板的 grid-2 分组框与状态面板无对应行,未复刻 */
239
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-page-title,
240
+ body.slides-printing .cm-md-slide-agenda.cm-md-page-title {
241
+ margin-bottom: 0.3em;
242
+ }
243
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-page-lead,
244
+ body.slides-printing .cm-md-slide-agenda.cm-md-page-lead {
245
+ font-size: 0.54em;
246
+ padding-bottom: 0.9em;
247
+ border-bottom: 1px solid #404040; /* hr:1px 暗边 + 1px 白边 */
248
+ box-shadow: 0 1px 0 #ffffff;
249
+ }
250
+ body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
251
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
252
+ font-size: 0.58em; /* 15px ÷26 */
253
+ line-height: 1.5;
254
+ border-top: none;
255
+ border-bottom: none;
256
+ padding: 0.35em 0;
257
+ margin: 0;
258
+ }
259
+ body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
260
+ body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
261
+ color: #000080;
262
+ font-weight: 700;
263
+ font-size: 1em;
264
+ }
265
+
266
+ /* 1.6.4 two-col · 模板无对应页(P03 走 matrix 的无副题变体),
267
+ 保持上游多栏流式默认,不覆写 */
268
+
269
+ /* 1.6.5 figure · P04/P06/P08:22px 题 + 斜面 hr;表格灰头白身、Pele 白井下沉框;
270
+ 图表图例颜色走 --pele-*;柱/饼的绝对值装饰(网格线、标签引线)随 Pele */
271
+ body.presenting #editor .cm-content .cm-md-slide-figure.cm-md-page-title,
272
+ body.slides-printing .cm-md-slide-figure.cm-md-page-title {
273
+ padding-bottom: 0.45em;
274
+ border-bottom: 1px solid #404040;
275
+ box-shadow: 0 1px 0 #ffffff;
276
+ }
277
+ body.presenting #editor .cm-content .cm-md-slide-figure:not(.cm-md-page-title):not(.cm-md-page-lead),
278
+ body.slides-printing #editor .cm-content .cm-md-slide-figure:not(.cm-md-page-title):not(.cm-md-page-lead) {
279
+ font-size: 0.54em; /* 图注/明细 14px ÷26 */
280
+ line-height: 1.6;
281
+ }
282
+
283
+ /* 1.6.6 matrix · P03 / P05
284
+ P05(有副题)= 22px 题 + 14px 副题 + 斜面 hr,2 列 47% 下沉分组框卡;
285
+ P03(无副题,executive summary)= 24px 白凸面板标题 + 18px 正文 + 4 列白色
286
+ 下沉状态条(标签 12px / 值 18px)。以「页内有无 .cm-md-page-lead」区分;
287
+ 模板中部两组 group-box 正文无对应行,未复刻。 */
288
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-page-title,
289
+ body.slides-printing .cm-md-slide-matrix.cm-md-page-title {
290
+ padding-bottom: 0.45em;
291
+ border-bottom: 1px solid #404040;
292
+ box-shadow: 0 1px 0 #ffffff;
293
+ }
294
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-page-lead,
295
+ body.slides-printing .cm-md-slide-matrix.cm-md-page-lead {
296
+ font-size: 0.54em;
297
+ padding-bottom: 0.9em;
298
+ border-bottom: 1px solid #404040;
299
+ box-shadow: 0 1px 0 #ffffff;
300
+ }
301
+ body.presenting #editor .cm-content .cm-md-slide-matrix:not(.cm-md-page-title):not(.cm-md-page-lead):not(.cm-md-li),
302
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix:not(.cm-md-page-title):not(.cm-md-page-lead):not(.cm-md-li) {
303
+ font-size: 0.54em; /* 普通正文 14px ÷26 */
304
+ line-height: 1.6;
305
+ }
306
+ body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
307
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
308
+ display: inline-block;
309
+ width: 47%;
310
+ margin: 0 2% 1em 0;
311
+ vertical-align: top;
312
+ background: #d4d0c8; /* group-box 面 */
313
+ border: 2px solid;
314
+ border-color: #404040 #ffffff #ffffff #404040; /* 下沉 */
315
+ padding: 1.1em 1em;
316
+ font-size: 0.54em; /* 说明 14px ÷26 */
317
+ line-height: 1.6;
318
+ box-sizing: border-box;
319
+ }
320
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
321
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
322
+ display: block;
323
+ font-size: 1em; /* 卡题 14px */
324
+ font-weight: 700;
325
+ color: #222222;
326
+ margin-bottom: 0.3em;
327
+ }
328
+ body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-listmark,
329
+ body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-listmark {
330
+ display: none; /* 模板是分组框不是列表 */
331
+ }
332
+
333
+ /* P03 无副题变体:白色凸起标题面板(24px)+ 4 列白色下沉状态条 */
334
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content:not(:has(.cm-md-page-lead)) .cm-md-page-title {
335
+ font-size: 0.92em; /* 24px ÷26 */
336
+ color: #000080;
337
+ background: #ffffff; /* panel-raised */
338
+ border: 2px solid;
339
+ border-color: #ffffff #000000 #000000 #ffffff;
340
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
341
+ padding: 0.55em 0.7em;
342
+ margin: 0 0 0.9em;
343
+ line-height: 1.3;
344
+ }
345
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content:not(:has(.cm-md-page-lead)) .cm-md-slide-matrix:not(.cm-md-page-title):not(.cm-md-page-lead):not(.cm-md-li) {
346
+ font-size: 0.69em; /* 正文 18px ÷26 */
347
+ line-height: 1.65;
348
+ }
349
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content:not(:has(.cm-md-page-lead)) .cm-md-slide-matrix.cm-md-li {
350
+ width: 23.2%;
351
+ margin: 0 1.1% 0.8em 0;
352
+ padding: 0.7em 0.6em;
353
+ background: #ffffff; /* sunken 状态面板 */
354
+ font-size: 0.69em; /* 值 18px ÷26 */
355
+ font-weight: 700;
356
+ color: #222222;
357
+ text-align: center;
358
+ }
359
+ body.presenting #editor[data-slide-layout='matrix'] .cm-content:not(:has(.cm-md-page-lead)) .cm-md-slide-matrix .cm-md-strong {
360
+ font-size: 0.67em; /* 标签 12px ÷ 18px */
361
+ font-weight: 400;
362
+ color: #505050; /* 模板 text-sm text-gray */
363
+ margin-bottom: 0.25em;
364
+ }
365
+
366
+ /* 1.6.7 kpi · P07:22px 题 + 斜面 hr;4 个下沉 KPI 分组框(23.2% 列宽),
367
+ 数值 30px navy 700;▲/▼ 与绿红状态文字是行内内容,颜色由模板语义色承担;
368
+ 模板的 group-box 标题(Revenue 等)与下方 grid-2 图表区无对应行,未复刻 */
369
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-page-title,
370
+ body.slides-printing .cm-md-slide-kpi.cm-md-page-title {
371
+ padding-bottom: 0.45em;
372
+ border-bottom: 1px solid #404040;
373
+ box-shadow: 0 1px 0 #ffffff;
374
+ }
375
+ body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
376
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
377
+ display: inline-block;
378
+ width: 23.2%;
379
+ margin: 0 1.1% 1em 0;
380
+ vertical-align: top;
381
+ background: #d4d0c8;
382
+ border: 2px solid;
383
+ border-color: #404040 #ffffff #ffffff #404040;
384
+ padding: 1em 0.8em;
385
+ font-size: 0.54em; /* 标签/说明 14px ÷26 */
386
+ line-height: 1.5;
387
+ text-align: center;
388
+ box-sizing: border-box;
389
+ }
390
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
391
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
392
+ display: block;
393
+ font-size: var(--slide-kpi-number-size); /* 30px ÷26 ÷0.54 */
394
+ font-weight: 700;
395
+ line-height: 1.1;
396
+ color: #000080;
397
+ margin: 0 0 0.2em;
398
+ }
399
+ body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-listmark,
400
+ body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-listmark {
401
+ display: none;
402
+ }
403
+
404
+ /* 1.6.8 timeline · P09:22px 题 + 斜面 hr;四季度 = 4 个迷你窗口列(23.2%),
405
+ 灰渐变栏头 12px 白字 700 + 15px 清单;上游圆点竖轨以 ::before 画出,压掉。
406
+ 活动季度(Q3)的 navy 栏头无法从 markdown 推断,统一用非活动灰渐变。 */
407
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-page-title,
408
+ body.slides-printing .cm-md-slide-timeline.cm-md-page-title {
409
+ padding-bottom: 0.45em;
410
+ border-bottom: 1px solid #404040;
411
+ box-shadow: 0 1px 0 #ffffff;
412
+ }
413
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li,
414
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li {
415
+ display: inline-block;
416
+ width: 23.2%;
417
+ margin: 0 1.1% 1em 0;
418
+ vertical-align: top;
419
+ background: #d4d0c8;
420
+ border: 2px solid;
421
+ border-color: #ffffff #000000 #000000 #ffffff; /* 迷你窗:凸起 */
422
+ padding: 8px 9px;
423
+ font-size: 0.58em; /* 清单 15px ÷26 */
424
+ line-height: 1.5;
425
+ box-sizing: border-box;
426
+ }
427
+ body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li::before,
428
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li::before {
429
+ display: none;
430
+ }
431
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-strong,
432
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-strong {
433
+ display: block;
434
+ margin: -8px -9px 8px; /* 栏头贴齐窗框内沿(li padding 8/9px) */
435
+ padding: 3px 9px;
436
+ background: linear-gradient(90deg, #808080 0%, #a0a0a0 100%);
437
+ color: #ffffff;
438
+ font-size: 0.8em; /* 栏头 12px ÷26 ÷0.58 */
439
+ font-weight: 700;
440
+ }
441
+ body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-listmark,
442
+ body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-listmark {
443
+ display: none;
444
+ }
445
+
446
+ /* 1.6.9 closing · P10:20px 像素标题居中 + 18px 居中正文;
447
+ 联系信息 = 三列(30%)小字 12px,2px 暗边 + 1px 白边竖分隔 */
448
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-page-title,
449
+ body.slides-printing .cm-md-slide-closing.cm-md-page-title {
450
+ font-family: "Press Start 2P", "Noto Sans SC", sans-serif;
451
+ font-size: var(--slide-closing-title-size); /* 20px ÷26 */
452
+ font-weight: 400;
453
+ line-height: 1.8;
454
+ letter-spacing: 0;
455
+ color: #000080;
456
+ max-width: none;
457
+ margin: 0 auto 0.5em;
458
+ text-align: center;
459
+ }
460
+ body.presenting #editor .cm-content .cm-md-slide-closing,
461
+ body.slides-printing #editor .cm-content .cm-md-slide-closing {
462
+ font-size: 0.69em; /* 正文 18px ÷26 */
463
+ line-height: 1.6;
464
+ }
465
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-page-lead,
466
+ body.slides-printing .cm-md-slide-closing.cm-md-page-lead {
467
+ font-size: 0.69em;
468
+ color: #222222;
469
+ text-align: center;
470
+ max-width: none;
471
+ }
472
+ body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
473
+ body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
474
+ display: inline-block;
475
+ width: 30%;
476
+ margin: 0 1.5% 1em 0;
477
+ vertical-align: top;
478
+ border-right: 2px solid #404040;
479
+ box-shadow: 1px 0 0 #ffffff;
480
+ font-size: 0.54em; /* 联系值 14px ÷26 */
481
+ font-weight: 700;
482
+ line-height: 1.5;
483
+ color: #222222;
484
+ text-align: center;
485
+ box-sizing: border-box;
486
+ }
487
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-strong,
488
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-strong {
489
+ display: block;
490
+ font-size: 0.857em; /* 联系标签 12px ÷ 14px */
491
+ font-weight: 400;
492
+ color: #505050;
493
+ margin-bottom: 0.25em;
494
+ }
495
+ body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-listmark,
496
+ body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-listmark {
497
+ display: none;
498
+ }
499
+
500
+ /* 1.6.10 表格与图表对象框(所有版式共用):th 灰底 1px 暗边、td 白底,
501
+ 与模板 table-retro 一致;Pele 井 = 白色下沉框 */
502
+ body.presenting #editor .cm-content .cm-md-table-widget table,
503
+ body.slides-printing #editor .cm-content .cm-md-table-widget table {
504
+ width: 100%;
505
+ font-size: 1em; /* 跟随所在版式行(figure 已 0.54) */
506
+ border-collapse: collapse;
507
+ color: #222222;
508
+ }
509
+ body.presenting #editor .cm-content .cm-md-table-widget th,
510
+ body.slides-printing #editor .cm-content .cm-md-table-widget th {
511
+ background: #c0c0c0;
512
+ color: #222222;
513
+ border: 1px solid #404040;
514
+ padding: 0.4em 0.7em;
515
+ font-weight: 700;
516
+ text-transform: none;
517
+ text-align: left;
518
+ }
519
+ body.presenting #editor .cm-content .cm-md-table-widget td,
520
+ body.slides-printing #editor .cm-content .cm-md-table-widget td {
521
+ background: #ffffff;
522
+ color: #222222;
523
+ border: 1px solid #c0c0c0;
524
+ padding: 0.4em 0.7em;
525
+ }
526
+ body.presenting #editor .cm-content svg.pele,
527
+ body.slides-printing #editor .cm-content svg.pele {
528
+ background: #ffffff;
529
+ border: 2px solid;
530
+ border-color: #404040 #ffffff #ffffff #404040; /* 白色下沉井 */
531
+ border-radius: 0;
532
+ }
533
+
534
+ /* 1.6.11 chrome · 窗口标题栏:navy 渐变横条只铺窗宽(18.75vw 透明边框让位
535
+ 桌面),白字 14px 700 大写;左组的 flex 横线压掉(Win95 标题栏没有) */
536
+ body.presenting .slide-chrome,
537
+ body.slides-printing .slide-chrome {
538
+ padding: 4px 1.25vw;
539
+ border-left: 18.75vw solid transparent;
540
+ border-right: 18.75vw solid transparent;
541
+ background: linear-gradient(90deg, #000080 0%, #0000a0 100%) padding-box;
542
+ color: #ffffff;
543
+ font-family: var(--font-body);
544
+ font-size: clamp(12px, 0.73vw, 14px); /* 标题栏 14px @1920 */
545
+ font-weight: 700;
546
+ letter-spacing: 0.03em;
547
+ text-transform: uppercase;
548
+ opacity: 1;
549
+ align-items: center;
550
+ }
551
+ body.presenting .slide-chrome-left::after,
552
+ body.slides-printing .slide-chrome-left::after {
553
+ display: none;
554
+ }
555
+ /* 上游在 closing 页淡出 chrome;模板 P10 仍是一个窗口(标题栏在),
556
+ 同等特异度下后加载覆盖回 1 */
557
+ body.presenting:has(#editor[data-slide-layout='closing']) .slide-chrome {
558
+ opacity: 1;
559
+ }
560
+
561
+ /* 1.6.12 foot / ghost:页脚 = 桌面左下角 VT323 提示 16px;模板页码是右下角
562
+ 斜面条(绝对定位),行式 DOM 无挂点,巨数字 ghost 隐去 */
563
+ body.presenting .slide-foot,
564
+ body.slides-printing .slide-foot {
565
+ padding: 0 1.5vw 12px;
566
+ font-family: var(--slide-mono);
567
+ font-size: clamp(12px, 0.83vw, 16px); /* VT323 16px @1920 */
568
+ letter-spacing: 0.02em;
569
+ text-transform: none;
570
+ color: #505050;
571
+ opacity: 1;
572
+ }
573
+ body.presenting .slide-ghost,
574
+ body.slides-printing .slide-ghost {
575
+ opacity: 0;
576
+ }
577
+
578
+ /* ═══════════════════════════════════════════════════════════
579
+ SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
580
+ 文档层修复:标题改回系统无衬线 700 navy(Press Start 2P 只留给放映封面/
581
+ 告别页);strong 用正文色而非链接色(语义色不重复);表格去掉 2px navy
582
+ 下划线,改 Win95 1px 暗边;引用/代码零圆角、只留横向 padding。
583
+ ═══════════════════════════════════════════════════════════ */
584
+
585
+ #editor .cm-content {
586
+ font-family: var(--font-body);
587
+ line-height: 1.75;
588
+ }
589
+
590
+ /* ── 2.1 Headings ── */
591
+ #editor .cm-content .cm-md-atxheading1,
592
+ #editor .cm-content .cm-md-atxheading2,
593
+ #editor .cm-content .cm-md-atxheading3,
594
+ #editor .cm-content .cm-md-atxheading4,
595
+ #editor .cm-content .cm-md-atxheading5,
596
+ #editor .cm-content .cm-md-atxheading6 {
597
+ font-family: var(--font-body);
598
+ color: #000080; /* 模板:窗内标题 navy */
599
+ font-weight: 700;
600
+ line-height: 1.3;
601
+ letter-spacing: 0;
602
+ }
603
+ #editor .cm-content .cm-md-atxheading1 { font-size: 1.5em; } /* 24px */
604
+ #editor .cm-content .cm-md-atxheading2 { font-size: 1.375em; } /* 22px */
605
+ #editor .cm-content .cm-md-atxheading3 { font-size: 1.125em; } /* 18px */
606
+ #editor .cm-content .cm-md-atxheading4 { font-size: 1em; } /* 16px */
607
+ #editor .cm-content .cm-md-atxheading5 { font-size: 0.875em; } /* 14px */
608
+ #editor .cm-content .cm-md-atxheading6 {
609
+ font-size: 0.8125em; /* 13px group-box 标题 */
610
+ color: #222222;
611
+ }
612
+
613
+ /* ── 2.2 Inline ── */
614
+ #editor .cm-content .cm-md-strong { color: #222222; font-weight: 700; }
615
+ #editor .cm-content .cm-md-em { font-style: italic; }
616
+ #editor .cm-content .cm-md-strike { text-decoration: line-through; }
617
+ #editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
618
+ #editor .cm-content .cm-md-link { color: var(--link-color); text-decoration: none; }
619
+ #editor .cm-content .cm-md-url { color: var(--text-muted); }
620
+
621
+ #editor .cm-content .cm-md-inlinecode {
622
+ font-family: var(--font-mono);
623
+ background: var(--code-bg);
624
+ color: #222222;
625
+ border-radius: 0;
626
+ padding-left: 4px;
627
+ padding-right: 4px;
628
+ }
629
+
630
+ #editor .cm-content .cm-md-marker,
631
+ #editor .cm-content .cm-md-quotemark,
632
+ #editor .cm-content .cm-md-listmark {
633
+ color: var(--text-muted);
634
+ }
635
+
636
+ /* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
637
+ 引用底色由编辑器画在选区下方,这里不写 background。 */
638
+ #editor .cm-content .cm-md-blockquote {
639
+ color: var(--text-secondary);
640
+ border-left: 3px solid var(--blockquote-border);
641
+ padding-left: 18px;
642
+ padding-right: 18px;
643
+ }
644
+ #editor .cm-content .cm-md-codeblock {
645
+ background: var(--code-block-bg);
646
+ color: var(--code-block-text);
647
+ padding-left: 16px;
648
+ padding-right: 16px;
649
+ }
650
+ #editor .cm-content .cm-md-codeblock-first,
651
+ #editor .cm-content .cm-md-codeblock-last {
652
+ border-radius: 0;
653
+ }
654
+
655
+ /* ── 2.4 Table / Rule(模板:灰头白身 1px 网格 + 斜面 hr)── */
656
+ #editor .cm-content .cm-md-table-widget th,
657
+ #editor .cm-content .cm-md-table-widget td {
658
+ padding: 8px 12px;
659
+ font-size: 1em;
660
+ letter-spacing: 0;
661
+ text-transform: none;
662
+ }
663
+ #editor .cm-content .cm-md-table-widget th {
664
+ background: var(--table-header-bg);
665
+ color: #222222;
666
+ font-weight: 700;
667
+ border: 1px solid #404040;
668
+ }
669
+ #editor .cm-content .cm-md-table-widget td {
670
+ background: #ffffff;
671
+ color: #222222;
672
+ border: 1px solid #c0c0c0;
673
+ }
674
+ #editor .cm-content .cm-md-hr {
675
+ border-top-color: #404040;
676
+ box-shadow: 0 1px 0 #ffffff; /* hr 白边 */
677
+ }
678
+
679
+ /* ═══════════════════════════════════════════════════════════
680
+ SECTION 3 — Exported HTML(.colamd-document,语义标签)
681
+ 导出件沿用同一套窗口配色。
682
+ ═══════════════════════════════════════════════════════════ */
683
+
684
+ .colamd-document {
685
+ font-family: var(--font-body);
686
+ font-size: 16px;
687
+ line-height: 1.75;
688
+ }
689
+
690
+ .colamd-document h1,
691
+ .colamd-document h2,
692
+ .colamd-document h3,
693
+ .colamd-document h4,
694
+ .colamd-document h5,
695
+ .colamd-document h6 {
696
+ font-family: var(--font-body);
697
+ color: #000080;
698
+ font-weight: 700;
699
+ line-height: 1.3;
700
+ letter-spacing: 0;
701
+ margin: 1.4em 0 0.5em;
702
+ }
703
+ .colamd-document h1 { font-size: 1.5em; margin-top: 0.4em; }
704
+ .colamd-document h2 { font-size: 1.375em; }
705
+ .colamd-document h3 { font-size: 1.125em; }
706
+ .colamd-document h4 { font-size: 1em; }
707
+ .colamd-document h5 { font-size: 0.875em; }
708
+ .colamd-document h6 { font-size: 0.8125em; color: #222222; }
709
+
710
+ .colamd-document strong { color: #222222; font-weight: 700; }
711
+ .colamd-document code {
712
+ background: var(--code-bg);
713
+ color: #222222;
714
+ font-family: var(--font-mono);
715
+ border-radius: 0;
716
+ padding: 0 4px;
717
+ }
718
+ /* Pele SVG 不自绘背景,导出后需补回白井与下沉框 */
719
+ .colamd-document svg.pele {
720
+ background: #ffffff;
721
+ border: 2px solid;
722
+ border-color: #404040 #ffffff #ffffff #404040;
723
+ border-radius: 0;
724
+ }
725
+ .colamd-document pre { background: var(--code-block-bg); }
726
+ .colamd-document pre code { color: var(--code-block-text); }
727
+ .colamd-document blockquote {
728
+ background: var(--blockquote-bg);
729
+ color: var(--text-secondary);
730
+ border-left: 3px solid var(--blockquote-border);
731
+ padding: 0.5em 1.2em;
732
+ }
733
+ .colamd-document mark { background: var(--highlight-bg); }
734
+ .colamd-document th,
735
+ .colamd-document td {
736
+ padding: 8px 12px;
737
+ font-size: 1em;
738
+ border: 1px solid #c0c0c0;
739
+ }
740
+ .colamd-document th {
741
+ background: var(--table-header-bg);
742
+ color: #222222;
743
+ font-weight: 700;
744
+ border: 1px solid #404040;
745
+ }
746
+ .colamd-document td {
747
+ background: #ffffff;
748
+ color: #222222;
749
+ }
750
+ .colamd-document hr {
751
+ border-top-color: #404040;
752
+ box-shadow: 0 1px 0 #ffffff;
753
+ }
754
+
755
+ /* ═══════════════════════════════════════════════════════════
756
+ SECTION 4 — Print
757
+ ═══════════════════════════════════════════════════════════ */
758
+
759
+ @media print {
760
+ html,
761
+ body {
762
+ background: var(--bg-color);
763
+ color: var(--text-color);
764
+ -webkit-print-color-adjust: exact;
765
+ print-color-adjust: exact;
766
+ }
767
+ }