@bytechain.cn/colamd-themes 0.5.9 → 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.
- package/README.md +85 -19
- package/dist/cli.js +70 -6
- package/dist/cli.js.map +1 -1
- package/dist/compat.d.ts +23 -3
- package/dist/compat.js +71 -12
- package/dist/compat.js.map +1 -1
- package/dist/dsh-plugin.js +1 -1
- package/dist/generator.d.ts +1 -1
- package/dist/generator.js +5 -2
- package/dist/generator.js.map +1 -1
- package/dist/models.d.ts +7 -1
- package/dist/models.js +1 -1
- package/dist/models.js.map +1 -1
- package/dist/renderer.d.ts +1 -1
- package/dist/renderer.js +21 -3
- package/dist/renderer.js.map +1 -1
- package/dist/slides-markdown.d.ts +45 -0
- package/dist/slides-markdown.js +515 -0
- package/dist/slides-markdown.js.map +1 -0
- package/dist/slides.d.ts +36 -0
- package/dist/slides.js +149 -0
- package/dist/slides.js.map +1 -0
- package/dist/templates/theme-template.hbs +11 -0
- package/dist/validators.d.ts +2 -2
- package/dist/validators.js +71 -4
- package/dist/validators.js.map +1 -1
- package/package.json +3 -2
- package/skills/build-skills.sh +224 -217
- package/skills/colamd-themes/SKILL.md +178 -6
- package/themes/8-bit-orbit.css +817 -0
- package/themes/README.md +69 -0
- package/themes/biennale-yellow.css +577 -0
- package/themes/block-frame.css +774 -0
- package/themes/blue-professional.css +741 -0
- package/themes/bold-poster.css +794 -0
- package/themes/broadside.css +837 -0
- package/themes/capsule.css +767 -0
- package/themes/cartesian.css +584 -0
- package/themes/cobalt-grid.css +632 -0
- package/themes/coral.css +699 -0
- package/themes/creative-mode.css +642 -0
- package/themes/daisy-days.css +1052 -0
- package/themes/editorial-forest.css +796 -0
- package/themes/editorial-tri-tone.css +811 -0
- package/themes/emerald-editorial.css +683 -0
- package/themes/grove.css +623 -0
- package/themes/indigo-deck.css +336 -0
- package/themes/indigo-porcelain-light.css +335 -0
- package/themes/long-table.css +782 -0
- package/themes/mat.css +848 -0
- package/themes/monochrome.css +782 -0
- package/themes/neo-grid-bold.css +838 -0
- package/themes/peoples-platform.css +843 -0
- package/themes/pin-and-paper.css +700 -0
- package/themes/pink-script-dark.css +648 -0
- package/themes/pink-script.css +290 -0
- package/themes/playful.css +774 -0
- package/themes/raw-grid.css +814 -0
- package/themes/retro-windows.css +767 -0
- package/themes/retro-zine.css +814 -0
- package/themes/sakura-chroma.css +775 -0
- package/themes/scatterbrain.css +726 -0
- package/themes/signal.css +872 -0
- package/themes/soft-editorial.css +788 -0
- package/themes/stencil-tablet.css +922 -0
- package/themes/studio.css +767 -0
- package/themes/swiss-lemon-dark.css +529 -0
- package/themes/swiss-lemon-light.css +375 -0
- package/themes/vellum.css +723 -0
|
@@ -0,0 +1,584 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ColaMD Theme: Cartesian(笛卡尔 · 石纸图谱手册 · 手工精修版)
|
|
3
|
+
* Quiet museum-catalog:暖砂石纸底 + Playfair Display 400 墨色标题 + Inter 正文,
|
|
4
|
+
* 五色石色板,普适 1px taupe 发丝线结构;零圆角、零阴影、零彩色。
|
|
5
|
+
* 来源:D:\workspace\git\beautiful-html-templates\templates\cartesian\template.html
|
|
6
|
+
* + design.md(museum-catalog 编辑体系)
|
|
7
|
+
* colors: bg-primary #EDE8E0 / bg-secondary #E2DBD1 / text-primary #1A1A1A
|
|
8
|
+
* text-secondary #5A5A5A / accent #8A8178 / line #B8B0A4
|
|
9
|
+
* fonts: Playfair Display(display/标题/数字,全 400——design.md「no bold
|
|
10
|
+
* Playfair」铁律)/ Inter(正文 400、label 500 大写 2-3px 字距)
|
|
11
|
+
* CJK 配对(design.md 推荐 Strategy A):思源宋体 Noto Serif SC
|
|
12
|
+
* 0.6.x 精修(相对工具生成版):
|
|
13
|
+
* ① Playfair 字重 700→400(文档层 + 令牌层双改,陷阱 §6-7);
|
|
14
|
+
* ② 标题阶梯修复(生成版 h2 1.125em < h3 1.3em 倒挂)并去掉文档式 h1/h2 下划线
|
|
15
|
+
* (模板标题无横线,1px 线只做结构分隔);
|
|
16
|
+
* ③ CR-04:accent 加深一档 #6B635A 承担全部小字/链接(对纸底 4.9:1),
|
|
17
|
+
* 模板原 taupe #8A8178 保留为 accent-light 身份档(供色板/派生);
|
|
18
|
+
* ④ 语义色去重:seed 五档各司其职(accent/line/panel 取模板原值,dim 归
|
|
19
|
+
* 中性灰 #666666 保 NT-01 文字色相轴);
|
|
20
|
+
* ⑤ 圆角体系归零(模板 only 50% circle or 0)、blockquote 轨道 3px→1px 发丝线;
|
|
21
|
+
* ⑥ --editor-font-size 13.6→15px(生成版误取 0.85rem attribution 档,正文档
|
|
22
|
+
* 实为 clamp(0.9rem,1.2vw,1.1rem))。
|
|
23
|
+
* paradigm 备案(石纸身份,有意保留):
|
|
24
|
+
* SL-01/SL-02 —— 砂石纸底/石面板刻意带暖调(S 18-27%):模板五色石色板即
|
|
25
|
+
* 身份(design.md "warm bone and stone neutrals only"),与
|
|
26
|
+
* biennale-yellow / pin-and-paper 黄纸备案同类;
|
|
27
|
+
* NT-03 —— line #B8B0A4 饱和度 12.3%:模板的普适结构线就是"淡 taupe 发丝线",
|
|
28
|
+
* 只做 1px 边线/分隔不做文字(文字一律 ink/secondary),低对比即身份;
|
|
29
|
+
* HR-01 —— accent 饱和度 10% < 30%:design.md 明言 "no saturated color",
|
|
30
|
+
* 全系统靠色调对比与字体层级,低饱和即身份。
|
|
31
|
+
* 版式复刻见 SECTION 1.5/1.6(十页逐页对照与换算式均在其注释中)。
|
|
32
|
+
*
|
|
33
|
+
* 契约:ColaMD 2.7.13(:root 活变量;CM6 每行一 div;引用/代码块禁纵向 padding)
|
|
34
|
+
*
|
|
35
|
+
* 两条硬规矩:
|
|
36
|
+
* 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
|
|
37
|
+
* 编辑器继承不到。
|
|
38
|
+
* 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
|
|
39
|
+
* 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
|
|
40
|
+
* 并且引用/代码块**不能加纵向 padding**——那会按行累加。
|
|
41
|
+
*
|
|
42
|
+
* ═══════════════════════════════════════════════════════════
|
|
43
|
+
* SECTION 1 — Design Tokens
|
|
44
|
+
* 改 11 个种子色 + 3 组字体即可换一套主题
|
|
45
|
+
* ═══════════════════════════════════════════════════════════ */
|
|
46
|
+
|
|
47
|
+
:root {
|
|
48
|
+
|
|
49
|
+
/* ── 1.1 Seed Palette ──
|
|
50
|
+
本工具的再生成与校验读这一层;编辑器不消费。
|
|
51
|
+
来源(template.html :root):bg-primary #EDE8E0 / bg-secondary #E2DBD1 /
|
|
52
|
+
text-primary #1A1A1A / text-secondary #5A5A5A / accent #8A8178 /
|
|
53
|
+
line #B8B0A4。明度排序(SL-04 亮色范式):surface > panel > panelAlt。 */
|
|
54
|
+
--seed-accent: #6b635a; /* 深 taupe:小字/链接档(纸底 4.9:1,CR-04) */
|
|
55
|
+
--seed-accent-light: #8a8178; /* 模板原 accent taupe —— 身份档/派生用 */
|
|
56
|
+
--seed-accent-dark: #544e47;
|
|
57
|
+
--seed-surface: #ede8e0; /* bg-primary 石纸画布(全十页同底,SL-01 备案) */
|
|
58
|
+
--seed-panel: #e2dbd1; /* bg-secondary 深一档石面(SL-02 备案) */
|
|
59
|
+
--seed-panel-alt: #d6cfc3; /* 再深一档(代码块底,SL-02 备案) */
|
|
60
|
+
--seed-ink: #1a1a1a; /* text-primary 近黑墨 */
|
|
61
|
+
--seed-ink-muted: #5a5a5a; /* text-secondary 中灰正文(5.7:1) */
|
|
62
|
+
--seed-ink-dim: #666666; /* 中性灰辅助(4.7:1,NT-01 文字同轴) */
|
|
63
|
+
--seed-border: #b8b0a4; /* line —— 普适 1px 发丝线(NT-03 备案) */
|
|
64
|
+
--seed-border-strong: #1a1a1a; /* horizontal-accent:全系统唯一墨色线 */
|
|
65
|
+
|
|
66
|
+
/* ── 1.2 Semantic Colors(活变量)── */
|
|
67
|
+
--bg-color: var(--seed-surface);
|
|
68
|
+
--text-color: var(--seed-ink);
|
|
69
|
+
--text-secondary: var(--seed-ink-muted);
|
|
70
|
+
--text-muted: var(--seed-ink-dim);
|
|
71
|
+
--border-color: var(--seed-border);
|
|
72
|
+
/* 模板 accent 加深一档保纸底 ≥4.5:1(CR-04);模板身份由石色板与发丝线承担 */
|
|
73
|
+
--link-color: var(--seed-accent);
|
|
74
|
+
|
|
75
|
+
--code-bg: var(--seed-panel);
|
|
76
|
+
--code-block-bg: var(--seed-panel-alt);
|
|
77
|
+
--code-block-text: #1a1a1a;
|
|
78
|
+
|
|
79
|
+
--blockquote-border: var(--seed-border); /* 模板:1px 发丝线体系 */
|
|
80
|
+
--blockquote-bg: var(--seed-panel);
|
|
81
|
+
--table-header-bg: var(--seed-panel); /* bg-secondary 表头 */
|
|
82
|
+
|
|
83
|
+
--selection-bg: rgba(138, 129, 120, 0.2);
|
|
84
|
+
--highlight-bg: rgba(138, 129, 120, 0.28); /* taupe 荧光 */
|
|
85
|
+
|
|
86
|
+
/* ── 1.3 Typography & Metrics(活变量)── */
|
|
87
|
+
--font-body: "Inter", "Noto Serif SC", serif; /* design.md CJK 配对:NSC 400 */
|
|
88
|
+
--font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
|
|
89
|
+
--editor-font-size: 15px;
|
|
90
|
+
--editor-column-width: 820px;
|
|
91
|
+
|
|
92
|
+
/* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
|
|
93
|
+
图表承模板 chart 约定:ink 主系列 / taupe 发丝网格(bg-secondary 级石面)/
|
|
94
|
+
零圆角;图直接画在代码块底色上,底色字色从 --code-block-* 推导。 */
|
|
95
|
+
--pele-bg: var(--code-block-bg);
|
|
96
|
+
--pele-fg: var(--code-block-text);
|
|
97
|
+
--pele-muted: color-mix(in srgb, var(--code-block-text) 55%, var(--code-block-bg));
|
|
98
|
+
--pele-line: var(--seed-border);
|
|
99
|
+
--pele-surface: color-mix(in srgb, var(--code-block-text) 12%, var(--code-block-bg));
|
|
100
|
+
--pele-surface-alt: color-mix(in srgb, var(--code-block-text) 22%, var(--code-block-bg));
|
|
101
|
+
--pele-border: var(--seed-border);
|
|
102
|
+
--pele-accent: var(--seed-ink); /* 主系列 = ink */
|
|
103
|
+
--pele-radius: 0px; /* 模板:矩形零圆角 */
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 cartesian 十页逐页复刻)──
|
|
107
|
+
换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
|
|
108
|
+
模板 px ÷ 26 = em;模板 clamp 一律取 1920×1080 实际落点:h2 48px、h1 72px、
|
|
109
|
+
封面 h1 88px、正文 17.6px、小字 12px、数字 32px。字体体系:Playfair Display
|
|
110
|
+
400(仅 400)+ Inter(label 500 大写 .25em)。页面对照:
|
|
111
|
+
cover←P1 agenda←P2 quote←P3 figure←P4 two-col←P5 matrix←P6
|
|
112
|
+
timeline←P8 closing←P10
|
|
113
|
+
(P7 line chart 与 P4 同形不单列;P9 team 与 P6 同为网格形态不单列;
|
|
114
|
+
section/steps/kpi 无对应页——令牌沿用上游默认。design.md 明言模板无 hero
|
|
115
|
+
大数字形态(stat 仅 32px 内联档),故不立 kpi 大字号令牌。全十页同一石纸
|
|
116
|
+
底——无整页换色页,不需要 1.6.4 式背景层叠链;ghost/td 亦无同色隐患。)
|
|
117
|
+
绝对定位装饰行式 DOM 无挂点——有意未复刻:geo 圆环+虚线弧(P1/P3)、
|
|
118
|
+
geo-ring 同心环(P10)、竖向 hairline、horizontal-accent 20vw 墨线、
|
|
119
|
+
右缘 nav-dot 列与左下 nav-arrow、图片占位框 X 斜线(P5)、圆形头像框
|
|
120
|
+
(P9)、卡内罗马数字圆环(P6);右下 slide-counter 由 ColaMD chrome 承担。 */
|
|
121
|
+
:root {
|
|
122
|
+
--slide-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
|
|
123
|
+
--slide-title-font: "Playfair Display", "Noto Serif SC", serif;
|
|
124
|
+
--slide-title-size: 1.85em; /* 内容页题 h2 48px ÷26(clamp 上限 3rem) */
|
|
125
|
+
--slide-title-weight: 400; /* Playfair 仅 400 */
|
|
126
|
+
--slide-subhead-weight: 400; /* 副题 Inter 400 */
|
|
127
|
+
--slide-title-tracking: 0em; /* 模板标题无字距 */
|
|
128
|
+
--slide-title-line-height: 1.1;
|
|
129
|
+
--slide-cover-title-size: 3.38em; /* P1 h1 88px ÷26(clamp 上限 5.5rem) */
|
|
130
|
+
--slide-cover-title-line-height: 1.1;
|
|
131
|
+
--slide-cover-title-tracking: 0em;
|
|
132
|
+
--slide-closing-title-size: 2.77em; /* P10 h1 72px ÷26(clamp 上限 4.5rem) */
|
|
133
|
+
--slide-lead-size: 0.68em; /* 正文 17.6px ÷26(clamp(0.9,1.2vw,1.1rem)@1920) */
|
|
134
|
+
--slide-kicker-size: clamp(10px, 0.63vw, 12px); /* label 12px @1920 */
|
|
135
|
+
--slide-kicker-tracking: 0.25em; /* label 3px 字距 */
|
|
136
|
+
--slide-kicker-transform: uppercase;
|
|
137
|
+
--slide-chrome-opacity: 0.9; /* slide-counter 全色 taupe */
|
|
138
|
+
--slide-chrome-transform: none; /* counter 不大写 */
|
|
139
|
+
--slide-quote-size: 1.85em; /* P3 statement h2 48px ÷26 */
|
|
140
|
+
--slide-page-pad-x: 4vw; /* 模板页边距 4vw */
|
|
141
|
+
--slide-page-top-pad: 40px; /* pad-y 4vh=43px − chrome 安全区 */
|
|
142
|
+
--slide-page-top-pad-print: 36px;
|
|
143
|
+
--slide-cover-text-align: left;
|
|
144
|
+
--slide-cover-lead-inline: auto;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
|
|
148
|
+
body.presenting / body.slides-printing 作用域) ═══════════════ */
|
|
149
|
+
|
|
150
|
+
/* 1.6.1 页标题声部对齐:Playfair 400 墨色;压掉文档式 h1/h2 下划线(编辑器
|
|
151
|
+
规则带 id 权重会漏进放映);kicker = 模板 label:Inter 500 taupe 大写 .25em */
|
|
152
|
+
body.presenting #editor .cm-content .cm-md-page-title,
|
|
153
|
+
body.slides-printing #editor .cm-content .cm-md-page-title {
|
|
154
|
+
font-family: var(--slide-title-font);
|
|
155
|
+
font-size: var(--slide-title-size);
|
|
156
|
+
font-weight: 400;
|
|
157
|
+
line-height: 1.1;
|
|
158
|
+
letter-spacing: 0em;
|
|
159
|
+
color: var(--text-color);
|
|
160
|
+
border-bottom: none;
|
|
161
|
+
padding-bottom: 0;
|
|
162
|
+
margin-bottom: 0.8em;
|
|
163
|
+
}
|
|
164
|
+
body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
165
|
+
body.slides-printing #editor .cm-content .cm-md-page-title[data-slide-kicker]::before {
|
|
166
|
+
color: var(--seed-accent);
|
|
167
|
+
font-weight: 500;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* 1.6.2 cover · P1:石纸居中舞台(justify-content center,标题左对齐);
|
|
171
|
+
h1 88px + 副题 Inter 20.8px max-width 40vw;geo 圆环/horizontal-accent 未复刻 */
|
|
172
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content {
|
|
173
|
+
justify-content: center;
|
|
174
|
+
}
|
|
175
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
|
|
176
|
+
body.slides-printing .cm-md-slide-cover.cm-md-page-title {
|
|
177
|
+
font-size: var(--slide-cover-title-size);
|
|
178
|
+
margin-bottom: 0.25em; /* h1 margin-bottom 2vh ÷88px */
|
|
179
|
+
}
|
|
180
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
|
|
181
|
+
body.slides-printing .cm-md-slide-cover.cm-md-page-lead {
|
|
182
|
+
font-size: 0.8em; /* subtitle 20.8px ÷26 */
|
|
183
|
+
max-width: 40vw; /* .subtitle max-width 40vw */
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* 1.6.3 agenda · P2(session agenda):行式条目 = 2vh 上下留白 + 1px 发丝底线;
|
|
187
|
+
序号 Playfair 24px taupe;行文 17.6px 中灰(模板行内无题/述分层,strong 仅
|
|
188
|
+
加 500 权重区分);行题右 gap 2vw 以 listmark margin 近似 */
|
|
189
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
|
|
190
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
|
|
191
|
+
font-size: 0.68em; /* 行文 17.6px ÷26 */
|
|
192
|
+
color: var(--text-secondary);
|
|
193
|
+
border-bottom: 1px solid var(--border-color);
|
|
194
|
+
padding: 1.2em 0; /* 2vh 21.6px ÷26 ÷0.68 */
|
|
195
|
+
margin: 0;
|
|
196
|
+
}
|
|
197
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
|
|
198
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
|
|
199
|
+
font-family: var(--slide-title-font);
|
|
200
|
+
font-weight: 400;
|
|
201
|
+
font-size: 1.36em; /* 24px ÷26 ÷0.68 */
|
|
202
|
+
color: var(--seed-accent);
|
|
203
|
+
margin-right: 1.2em; /* gap 2vw 近似 */
|
|
204
|
+
}
|
|
205
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-strong,
|
|
206
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-strong {
|
|
207
|
+
font-family: var(--font-body);
|
|
208
|
+
font-weight: 500;
|
|
209
|
+
color: var(--text-secondary);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/* 1.6.4 quote · P3(statement):整页居中声明页;引用 48px Playfair 墨色居中、
|
|
213
|
+
无轨无底(模板无左轨无面板);quote-mark 80px 发丝线色 .5 透明度(::before
|
|
214
|
+
继承引用行 1.85em 缩放 → 80÷26÷1.85 = 1.67em);署名 = attribution:Inter
|
|
215
|
+
taupe 大写 .15em */
|
|
216
|
+
body.presenting #editor[data-slide-layout='quote'] .cm-content,
|
|
217
|
+
body.slides-printing .cm-md-slide-quote {
|
|
218
|
+
text-align: center;
|
|
219
|
+
}
|
|
220
|
+
body.presenting #editor[data-slide-layout='quote'] .cm-content {
|
|
221
|
+
justify-content: center;
|
|
222
|
+
}
|
|
223
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
|
|
224
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
|
|
225
|
+
font-family: var(--slide-title-font);
|
|
226
|
+
font-weight: 400;
|
|
227
|
+
font-size: var(--slide-quote-size);
|
|
228
|
+
line-height: 1.1;
|
|
229
|
+
color: var(--text-color);
|
|
230
|
+
background: transparent;
|
|
231
|
+
border-left: none;
|
|
232
|
+
padding-left: 0;
|
|
233
|
+
padding-right: 0;
|
|
234
|
+
max-width: 24em; /* .content max-width 60vw @1920 */
|
|
235
|
+
margin-left: auto;
|
|
236
|
+
margin-right: auto;
|
|
237
|
+
}
|
|
238
|
+
body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
|
|
239
|
+
body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
|
|
240
|
+
font-family: var(--slide-title-font);
|
|
241
|
+
font-size: 1.67em; /* quote-mark 80px ÷26 ÷1.85 */
|
|
242
|
+
line-height: 1;
|
|
243
|
+
color: var(--border-color);
|
|
244
|
+
opacity: 0.5;
|
|
245
|
+
}
|
|
246
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
|
|
247
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
|
|
248
|
+
margin-top: 0.8em; /* attribution 上距 2vh(留白只走 margin) */
|
|
249
|
+
font-family: var(--font-body);
|
|
250
|
+
font-weight: 400;
|
|
251
|
+
font-size: 0.52em; /* 13.6px ÷26 */
|
|
252
|
+
letter-spacing: 0.15em; /* 2px 字距 */
|
|
253
|
+
text-transform: uppercase;
|
|
254
|
+
color: var(--seed-accent);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* 1.6.5 figure · P4(bar chart):页题/导语走 1.6.1 与正文声部(48px 题 +
|
|
258
|
+
17.6px 中灰导语);图表主体由 Pele 承接模板 chart 约定(ink 主系列、taupe
|
|
259
|
+
网格线、石面底、零圆角,见 1.4)。P7 line chart 与 P4 同形不单列。 */
|
|
260
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-lead,
|
|
261
|
+
body.slides-printing .cm-md-slide-figure.cm-md-page-lead {
|
|
262
|
+
color: var(--text-secondary);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/* 1.6.6 matrix · P6(three cards):三列描线卡——去胶囊化后重画 1px 发丝边 +
|
|
266
|
+
30% 白 overlay(模板 tracing-paper 卡,零圆角零阴影);卡名 Playfair 400
|
|
267
|
+
20.8px 墨色、文 14.4px 中灰;卡内罗马数字圆环(card-icon)无挂点未复刻,
|
|
268
|
+
序号 listmark 一并隐藏 */
|
|
269
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
|
|
270
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
|
|
271
|
+
display: inline-block;
|
|
272
|
+
width: 31.3%; /* 三列 + 3vw gap @1920 */
|
|
273
|
+
margin: 0 3% 1em 0;
|
|
274
|
+
vertical-align: top;
|
|
275
|
+
background: rgba(255, 255, 255, 0.3); /* white-overlay 描线卡 */
|
|
276
|
+
border: 1px solid var(--border-color);
|
|
277
|
+
border-radius: 0;
|
|
278
|
+
box-shadow: none;
|
|
279
|
+
padding: 3em 2.65em 2.6em; /* 4vh 2vw ÷26 ÷0.55 */
|
|
280
|
+
font-size: 0.55em; /* 卡文 14.4px ÷26 */
|
|
281
|
+
color: var(--text-secondary);
|
|
282
|
+
list-style: none;
|
|
283
|
+
}
|
|
284
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-listmark,
|
|
285
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-listmark {
|
|
286
|
+
display: none; /* 卡片无序号 */
|
|
287
|
+
}
|
|
288
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
|
|
289
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
|
|
290
|
+
font-family: var(--slide-title-font);
|
|
291
|
+
font-size: 1.45em; /* 卡题 20.8px ÷26 ÷0.55 */
|
|
292
|
+
font-weight: 400;
|
|
293
|
+
line-height: 1.1;
|
|
294
|
+
color: var(--text-color);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/* 1.6.7 timeline · P8(implementation phases):横向四列——列宽 24.25% +
|
|
298
|
+
1px 发丝顶线连成整条 timeline rule(design.md:无节点无标记,listmark 与
|
|
299
|
+
上游 ::before 节点一并隐藏);年份/日期并入 strong 行题文字(模板 year
|
|
300
|
+
12px taupe 大写声部无独立行内挂点);列题 Playfair 19.2px、文 13.6px */
|
|
301
|
+
body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li,
|
|
302
|
+
body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li {
|
|
303
|
+
display: inline-block;
|
|
304
|
+
width: 24.25%; /* 四列 + 3vw 间距 @1920 */
|
|
305
|
+
margin: 0 1% 1.4em 0;
|
|
306
|
+
vertical-align: top;
|
|
307
|
+
border-top: 1px solid var(--border-color); /* timeline rule */
|
|
308
|
+
border-bottom: none;
|
|
309
|
+
padding: 2.4em 0 0; /* 3vh 32.4px ÷26 ÷0.52 */
|
|
310
|
+
font-size: 0.52em; /* 说明 13.6px ÷26 */
|
|
311
|
+
color: var(--text-secondary);
|
|
312
|
+
background: transparent;
|
|
313
|
+
box-shadow: none;
|
|
314
|
+
}
|
|
315
|
+
body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li::before,
|
|
316
|
+
body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li::before {
|
|
317
|
+
content: none; /* 无节点标记 */
|
|
318
|
+
}
|
|
319
|
+
body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-listmark,
|
|
320
|
+
body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-listmark {
|
|
321
|
+
display: none;
|
|
322
|
+
}
|
|
323
|
+
body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-strong,
|
|
324
|
+
body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-strong {
|
|
325
|
+
display: block;
|
|
326
|
+
margin: 0 0 0.5em;
|
|
327
|
+
font-family: var(--slide-title-font);
|
|
328
|
+
font-size: 1.42em; /* 列题 19.2px ÷26 ÷0.52 */
|
|
329
|
+
font-weight: 400;
|
|
330
|
+
line-height: 1.1;
|
|
331
|
+
color: var(--text-color);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/* 1.6.8 two-col · P5(structural overview):双栏走上游默认;右栏统计簇
|
|
335
|
+
(stat-figure 32px Playfair 内联档 + 1px 发丝顶线)随行内 strong 声部走
|
|
336
|
+
上游默认(模板刻意无 hero 大数字);左栏图片占位框(石面块 + X 斜线)
|
|
337
|
+
无挂点——未复刻 */
|
|
338
|
+
|
|
339
|
+
/* 1.6.9 closing · P10(thank you):整页居中;h1 72px + 落款行(标题后首段)
|
|
340
|
+
taupe 大写 .2em;geo-ring 同心环未复刻;清单行(若有)沿用正文声部 */
|
|
341
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-title,
|
|
342
|
+
body.slides-printing .cm-md-slide-closing.cm-md-page-title {
|
|
343
|
+
font-size: var(--slide-closing-title-size);
|
|
344
|
+
}
|
|
345
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content {
|
|
346
|
+
justify-content: center;
|
|
347
|
+
text-align: center;
|
|
348
|
+
}
|
|
349
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-lead,
|
|
350
|
+
body.slides-printing .cm-md-slide-closing.cm-md-page-lead {
|
|
351
|
+
font-size: 0.55em; /* 落款 14.4px ÷26 */
|
|
352
|
+
letter-spacing: 0.2em; /* 3px 字距 */
|
|
353
|
+
text-transform: uppercase;
|
|
354
|
+
color: var(--seed-accent);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/* 1.6.10 chrome · slide-counter:Inter 12px taupe .17em 不大写(右下计数器) */
|
|
358
|
+
body.presenting .slide-chrome,
|
|
359
|
+
body.slides-printing .slide-chrome {
|
|
360
|
+
font-family: var(--font-body);
|
|
361
|
+
font-size: clamp(11px, 0.63vw, 12px);
|
|
362
|
+
letter-spacing: 0.17em; /* 2px 字距 */
|
|
363
|
+
text-transform: none;
|
|
364
|
+
color: var(--seed-accent);
|
|
365
|
+
}
|
|
366
|
+
body.presenting .slide-foot,
|
|
367
|
+
body.slides-printing .slide-foot {
|
|
368
|
+
font-family: var(--font-body);
|
|
369
|
+
font-size: clamp(10px, 0.58vw, 11px);
|
|
370
|
+
letter-spacing: 0.17em;
|
|
371
|
+
text-transform: none;
|
|
372
|
+
opacity: 0.75;
|
|
373
|
+
color: var(--seed-accent);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/* ═══════════════════════════════════════════════════════════
|
|
377
|
+
SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
|
|
378
|
+
═══════════════════════════════════════════════════════════ */
|
|
379
|
+
|
|
380
|
+
#editor .cm-content {
|
|
381
|
+
font-family: var(--font-body);
|
|
382
|
+
font-size: var(--editor-font-size);
|
|
383
|
+
line-height: 1.75;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/* ── 2.1 Headings(Playfair 400 墨色——design.md「no bold Playfair」;
|
|
387
|
+
标题无横线,1px 线只做结构分隔)── */
|
|
388
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
389
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
390
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
391
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
392
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
393
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
394
|
+
font-family: "Playfair Display", "Noto Serif SC", serif;
|
|
395
|
+
color: var(--text-color);
|
|
396
|
+
font-weight: 400;
|
|
397
|
+
line-height: 1.1;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
#editor .cm-content .cm-md-atxheading1 { font-size: 2.5em; }
|
|
401
|
+
#editor .cm-content .cm-md-atxheading2 { font-size: 1.9em; }
|
|
402
|
+
#editor .cm-content .cm-md-atxheading3 { font-size: 1.45em; }
|
|
403
|
+
#editor .cm-content .cm-md-atxheading4 { font-size: 1.25em; }
|
|
404
|
+
#editor .cm-content .cm-md-atxheading5 { font-size: 1.1em; }
|
|
405
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
406
|
+
font-size: 1em;
|
|
407
|
+
font-family: var(--font-body);
|
|
408
|
+
font-weight: 500;
|
|
409
|
+
letter-spacing: 0.2em; /* 模板 label/micro 眉标 */
|
|
410
|
+
text-transform: uppercase;
|
|
411
|
+
color: var(--seed-accent);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/* ── 2.2 Inline ── */
|
|
415
|
+
#editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 600; }
|
|
416
|
+
#editor .cm-content .cm-md-em { font-style: italic; }
|
|
417
|
+
#editor .cm-content .cm-md-strike { text-decoration: line-through; }
|
|
418
|
+
#editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
|
|
419
|
+
#editor .cm-content .cm-md-link { color: var(--link-color); }
|
|
420
|
+
#editor .cm-content .cm-md-url { color: var(--text-muted); }
|
|
421
|
+
|
|
422
|
+
#editor .cm-content .cm-md-inlinecode {
|
|
423
|
+
font-family: var(--font-mono);
|
|
424
|
+
background: var(--code-bg);
|
|
425
|
+
color: var(--text-color);
|
|
426
|
+
border-radius: 0; /* 模板:矩形零圆角 */
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
#editor .cm-content .cm-md-marker,
|
|
430
|
+
#editor .cm-content .cm-md-quotemark,
|
|
431
|
+
#editor .cm-content .cm-md-listmark {
|
|
432
|
+
color: var(--text-muted);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
|
|
436
|
+
引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
|
|
437
|
+
否则引用里的代码行会盖住代码块底色。 */
|
|
438
|
+
#editor .cm-content .cm-md-blockquote {
|
|
439
|
+
color: var(--text-secondary);
|
|
440
|
+
border-left: 1px solid var(--blockquote-border); /* 模板:1px 发丝线 */
|
|
441
|
+
padding-left: 16px;
|
|
442
|
+
padding-right: 16px;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
#editor .cm-content .cm-md-codeblock {
|
|
446
|
+
background: var(--code-block-bg);
|
|
447
|
+
color: var(--code-block-text);
|
|
448
|
+
padding-left: 16px;
|
|
449
|
+
padding-right: 16px;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/* ── 2.4 Table / Rule(模板:行式发丝线表格,th = micro-label)── */
|
|
453
|
+
#editor .cm-content .cm-md-table-widget th,
|
|
454
|
+
#editor .cm-content .cm-md-table-widget td {
|
|
455
|
+
padding: 10px 14px;
|
|
456
|
+
border-color: var(--border-color);
|
|
457
|
+
}
|
|
458
|
+
#editor .cm-content .cm-md-table-widget th {
|
|
459
|
+
background: var(--table-header-bg);
|
|
460
|
+
color: var(--text-color);
|
|
461
|
+
font-size: 0.85em;
|
|
462
|
+
font-weight: 500;
|
|
463
|
+
letter-spacing: 0.18em;
|
|
464
|
+
text-transform: uppercase;
|
|
465
|
+
border-bottom: 1px solid var(--seed-border-strong);
|
|
466
|
+
}
|
|
467
|
+
#editor .cm-content .cm-md-hr { border-top-color: var(--border-color); }
|
|
468
|
+
|
|
469
|
+
/* ── 2.5 中文首行缩进 ──
|
|
470
|
+
CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
|
|
471
|
+
#editor .cm-content .cm-line { text-indent: 2em; }
|
|
472
|
+
|
|
473
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
474
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
475
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
476
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
477
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
478
|
+
#editor .cm-content .cm-md-atxheading6,
|
|
479
|
+
#editor .cm-content .cm-md-blockquote,
|
|
480
|
+
#editor .cm-content .cm-md-codeblock,
|
|
481
|
+
#editor .cm-content .cm-md-hr,
|
|
482
|
+
#editor .cm-content .cm-md-mermaid,
|
|
483
|
+
#editor .cm-content .cm-md-li-0,
|
|
484
|
+
#editor .cm-content .cm-md-li-1,
|
|
485
|
+
#editor .cm-content .cm-md-li-2,
|
|
486
|
+
#editor .cm-content .cm-md-li-3,
|
|
487
|
+
#editor .cm-content .cm-md-li-4,
|
|
488
|
+
#editor .cm-content .cm-md-li-5,
|
|
489
|
+
#editor .cm-content .cm-md-li-6 {
|
|
490
|
+
text-indent: 0;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/* ═══════════════════════════════════════════════════════════
|
|
494
|
+
SECTION 3 — Exported HTML(.colamd-document,语义标签)
|
|
495
|
+
HTML/PDF 导出不走编辑器 DOM;这段与 SECTION 2 镜像同步。
|
|
496
|
+
═══════════════════════════════════════════════════════════ */
|
|
497
|
+
|
|
498
|
+
.colamd-document {
|
|
499
|
+
font-family: var(--font-body);
|
|
500
|
+
font-size: var(--editor-font-size);
|
|
501
|
+
line-height: 1.75;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.colamd-document h1,
|
|
505
|
+
.colamd-document h2,
|
|
506
|
+
.colamd-document h3,
|
|
507
|
+
.colamd-document h4,
|
|
508
|
+
.colamd-document h5,
|
|
509
|
+
.colamd-document h6 {
|
|
510
|
+
font-family: "Playfair Display", "Noto Serif SC", serif;
|
|
511
|
+
color: var(--text-color);
|
|
512
|
+
font-weight: 400;
|
|
513
|
+
line-height: 1.1;
|
|
514
|
+
margin: 1.4em 0 0.6em;
|
|
515
|
+
}
|
|
516
|
+
.colamd-document h1 { font-size: 2.5em; margin-top: 0.4em; }
|
|
517
|
+
.colamd-document h2 { font-size: 1.9em; }
|
|
518
|
+
.colamd-document h3 { font-size: 1.45em; }
|
|
519
|
+
.colamd-document h4 { font-size: 1.25em; }
|
|
520
|
+
.colamd-document h5 { font-size: 1.1em; }
|
|
521
|
+
.colamd-document h6 {
|
|
522
|
+
font-size: 1em;
|
|
523
|
+
font-family: var(--font-body);
|
|
524
|
+
font-weight: 500;
|
|
525
|
+
letter-spacing: 0.2em;
|
|
526
|
+
text-transform: uppercase;
|
|
527
|
+
color: var(--seed-accent);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.colamd-document strong { color: var(--text-color); font-weight: 600; }
|
|
531
|
+
.colamd-document code {
|
|
532
|
+
background: var(--code-bg);
|
|
533
|
+
color: var(--text-color);
|
|
534
|
+
font-family: var(--font-mono);
|
|
535
|
+
border-radius: 0;
|
|
536
|
+
}
|
|
537
|
+
/* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
|
|
538
|
+
.colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
|
|
539
|
+
.colamd-document pre { background: var(--code-block-bg); }
|
|
540
|
+
.colamd-document pre code { color: var(--code-block-text); }
|
|
541
|
+
.colamd-document blockquote {
|
|
542
|
+
background: var(--blockquote-bg);
|
|
543
|
+
color: var(--text-secondary);
|
|
544
|
+
border-left: 1px solid var(--blockquote-border);
|
|
545
|
+
padding: 0.5em 1.2em;
|
|
546
|
+
}
|
|
547
|
+
.colamd-document mark { background: var(--highlight-bg); }
|
|
548
|
+
.colamd-document th,
|
|
549
|
+
.colamd-document td {
|
|
550
|
+
padding: 10px 14px;
|
|
551
|
+
border-color: var(--border-color);
|
|
552
|
+
}
|
|
553
|
+
.colamd-document th {
|
|
554
|
+
background: var(--table-header-bg);
|
|
555
|
+
font-size: 0.85em;
|
|
556
|
+
font-weight: 500;
|
|
557
|
+
letter-spacing: 0.18em;
|
|
558
|
+
text-transform: uppercase;
|
|
559
|
+
border-bottom: 1px solid var(--seed-border-strong);
|
|
560
|
+
}
|
|
561
|
+
.colamd-document hr { border-top-color: var(--border-color); }
|
|
562
|
+
|
|
563
|
+
.colamd-document p { text-indent: 2em; }
|
|
564
|
+
.colamd-document li p,
|
|
565
|
+
.colamd-document td p,
|
|
566
|
+
.colamd-document th p,
|
|
567
|
+
.colamd-document blockquote p {
|
|
568
|
+
text-indent: 0;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
/* ═══════════════════════════════════════════════════════════
|
|
572
|
+
SECTION 4 — Print
|
|
573
|
+
应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
|
|
574
|
+
═══════════════════════════════════════════════════════════ */
|
|
575
|
+
|
|
576
|
+
@media print {
|
|
577
|
+
html,
|
|
578
|
+
body {
|
|
579
|
+
background: var(--bg-color);
|
|
580
|
+
color: var(--text-color);
|
|
581
|
+
-webkit-print-color-adjust: exact;
|
|
582
|
+
print-color-adjust: exact;
|
|
583
|
+
}
|
|
584
|
+
}
|