@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
package/themes/coral.css
ADDED
|
@@ -0,0 +1,699 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ColaMD Theme: Coral(珊瑚海报 · 手工精修版)
|
|
3
|
+
* Three surface registers — coral fire / ink black / warm cream — meeting at hard
|
|
4
|
+
* edges; Bebas Neue display caps (native uppercase, 2-12px tracking) + Inter body;
|
|
5
|
+
* 45° diagonal hatch atmosphere. Mid-century travel poster / Saul Bass energy.
|
|
6
|
+
* Source: D:\workspace\git\beautiful-html-templates\templates\coral\template.html(十页,逐页复刻)
|
|
7
|
+
* 色板(template.html :root):coral #E85D5D / coral-dark #D44A4A / cream #F5F0E8 /
|
|
8
|
+
* cream-dark #E8E0D4 / ink #1A1A1A / gray #6B6B6B / light-gray #B0B0B0
|
|
9
|
+
* 字体:Bebas Neue 400(display,仅 400,原生大写,字距 2-12px)/
|
|
10
|
+
* Inter 300/400/600/700(正文/标签/署名/眉标);CJK 配对(design.md 推荐):
|
|
11
|
+
* display → ZCOOL XiaoWei,body → Yozai(Latin 落 Bebas/Inter,Hanzi 落中文族)。
|
|
12
|
+
* paradigm 备案(珊瑚海报身份,docs/slide-theme-replication.md §7;与 biennale-yellow
|
|
13
|
+
* 「黄纸」备案同类,均为模板刻意设计,有意保留,validate exit 1 属预期):
|
|
14
|
+
* SL-01 —— 底色 cream #F5F0E8 HSL 饱和度 39.4% > 5%:暖奶油画布是模板三面
|
|
15
|
+
* 体系之一(design.md「warm canvas — the magazine paper」);明度端 L≈93.5%
|
|
16
|
+
* 抬高 HSL S 值,视觉呈暖纸而非彩底,正文 gray / 标题 ink 均不受偏色影响;
|
|
17
|
+
* SL-02 —— 表面色 panel #E8E0D4(30.3%)/ panelAlt #DDD5C7(24.4%)> 10%:
|
|
18
|
+
* cream-dark 暖纸系面板(表头/代码块托底),同上属暖纸身份;
|
|
19
|
+
* NT-03 —— 边框 #BEBAB5 饱和度 6.5% > 5%:ink 25% 淡出落在暖纸上带暖调,刻意;
|
|
20
|
+
* CR-04 —— seed-accent 珊瑚 #E85D5D on cream 3.0:1:模板约定 coral 只做
|
|
21
|
+
* 色块/边框/图表主系列,从不做正文文字色;--link-color 已加深 #C13F3F
|
|
22
|
+
* (4.57:1);kicker/h6 眉标珊瑚文字 12px/700 为 design.md 刻意规则
|
|
23
|
+
* 「Every section eyebrow is rendered in coral」(微字号装饰标签,正文一律 ink)。
|
|
24
|
+
* 版式复刻见 SECTION 1.5/1.6(十页逐页对照与换算式均在其注释中)。
|
|
25
|
+
*
|
|
26
|
+
* 契约:ColaMD Extend 2.7.13(CodeMirror 6 编辑器 + Pele 图表引擎 + 幻灯片版式)
|
|
27
|
+
*
|
|
28
|
+
* 两条硬规矩:
|
|
29
|
+
* 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
|
|
30
|
+
* 编辑器继承不到。
|
|
31
|
+
* 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
|
|
32
|
+
* 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
|
|
33
|
+
* 并且引用/代码块**不能加纵向 padding**——那会按行累加。
|
|
34
|
+
*
|
|
35
|
+
* ═══════════════════════════════════════════════════════════
|
|
36
|
+
* SECTION 1 — Design Tokens
|
|
37
|
+
* 改 11 个种子色 + 3 组字体即可换一套主题
|
|
38
|
+
* ═══════════════════════════════════════════════════════════ */
|
|
39
|
+
|
|
40
|
+
:root {
|
|
41
|
+
|
|
42
|
+
/* ── 1.1 Seed Palette ──
|
|
43
|
+
本工具的再生成与校验读这一层;编辑器不消费。
|
|
44
|
+
模板约定:三面硬边分区(coral/ink/cream),零圆角、无阴影;
|
|
45
|
+
文字一律 ink(珊瑚面)或 gray(奶油面),珊瑚只做底/线/块/眉标。 */
|
|
46
|
+
--seed-accent: #e85d5d;
|
|
47
|
+
--seed-accent-light: #f29a94; /* coral 提亮档(工具层备位) */
|
|
48
|
+
--seed-accent-dark: #d44a4a; /* 模板 coral-dark:渐变起点/图表对比系列 */
|
|
49
|
+
--seed-surface: #f5f0e8; /* cream 画布 */
|
|
50
|
+
--seed-panel: #e8e0d4; /* cream-dark */
|
|
51
|
+
--seed-panel-alt: #ddd5c7; /* cream 再深一档(代码块托底) */
|
|
52
|
+
--seed-ink: #1a1a1a;
|
|
53
|
+
--seed-ink-muted: #6b6b6b; /* gray:模板奶油面正文色 */
|
|
54
|
+
--seed-ink-dim: #8f8f8f; /* gray 与 light-gray 之间(标记/URL) */
|
|
55
|
+
--seed-border: #bebab5; /* ink 25% over cream */
|
|
56
|
+
--seed-border-strong: #1a1a1a; /* 模板墨色实线(timeline/social/title-rule) */
|
|
57
|
+
|
|
58
|
+
/* ── 1.2 Semantic Colors(活变量)── */
|
|
59
|
+
--bg-color: var(--seed-surface);
|
|
60
|
+
--text-color: var(--seed-ink);
|
|
61
|
+
--text-secondary: var(--seed-ink-muted);
|
|
62
|
+
--text-muted: var(--seed-ink-dim);
|
|
63
|
+
--border-color: var(--seed-border);
|
|
64
|
+
/* 珊瑚在 cream 上仅 3.0:1(CR-04),链接加深一档保 ≥4.5:1;原珊瑚留给色块/线 */
|
|
65
|
+
--link-color: #c13f3f;
|
|
66
|
+
|
|
67
|
+
--code-bg: var(--seed-panel);
|
|
68
|
+
--code-block-bg: var(--seed-panel-alt);
|
|
69
|
+
--code-block-text: #1a1a1a;
|
|
70
|
+
|
|
71
|
+
--blockquote-border: var(--seed-accent); /* 模板:4px 珊瑚左缘(sidebar-item) */
|
|
72
|
+
--blockquote-bg: var(--seed-panel);
|
|
73
|
+
--table-header-bg: var(--seed-panel); /* cream-dark 表头 */
|
|
74
|
+
|
|
75
|
+
--selection-bg: rgba(232, 93, 93, 0.18);
|
|
76
|
+
--highlight-bg: rgba(232, 93, 93, 0.22);
|
|
77
|
+
|
|
78
|
+
/* ── 1.3 Typography & Metrics(活变量)── */
|
|
79
|
+
--font-body: "Inter", "Yozai", "Noto Sans SC", sans-serif;
|
|
80
|
+
--font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
|
|
81
|
+
--editor-font-size: 16px;
|
|
82
|
+
--editor-column-width: 820px;
|
|
83
|
+
|
|
84
|
+
/* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
|
|
85
|
+
模板图表(Chart.js P4):主系列 coral / 对比系列墨色 / 墨色 2px 描边 / 零圆角。 */
|
|
86
|
+
--pele-bg: var(--code-block-bg);
|
|
87
|
+
--pele-fg: var(--code-block-text);
|
|
88
|
+
--pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
|
|
89
|
+
--pele-line: var(--code-block-text);
|
|
90
|
+
--pele-surface: color-mix(in srgb, var(--seed-accent) 14%, var(--code-block-bg));
|
|
91
|
+
--pele-surface-alt: color-mix(in srgb, var(--seed-accent) 26%, var(--code-block-bg));
|
|
92
|
+
--pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
|
|
93
|
+
--pele-accent: var(--seed-accent); /* 图表主系列 coral */
|
|
94
|
+
--pele-radius: 0px; /* 模板:零圆角 */
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 coral 十页逐页复刻)──
|
|
98
|
+
换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
|
|
99
|
+
模板 1920 画布 px ÷ 26 = em(clamp/min 取 1920×1080 实际落点)。
|
|
100
|
+
字体体系:Bebas Neue 400(display,原生大写,标题字距 2-4px)/
|
|
101
|
+
Inter(labels 700 大写 .27-.33em、meta 600、quote 300)。
|
|
102
|
+
页面对照(→ ColaMD 版式):
|
|
103
|
+
cover←P1(上珊瑚带32%+下奶油68%,取奶油底) section←P2(cream)
|
|
104
|
+
agenda←P3(ink 墨底页) figure←P4(cream) matrix←P6(cream 白卡)
|
|
105
|
+
quote←P7(ink 墨底页) timeline←P8(cream) closing←P10(coral 底页)
|
|
106
|
+
(P5 巨词页与 section 同映射,其 ink 底 + 珊瑚渐变巨词区未复刻;
|
|
107
|
+
P9 团队网格与 matrix 同形不单列,ink 底 + 半透明卡未复刻;
|
|
108
|
+
kpi/steps/two-col 无对应页,令牌与版式保持上游默认。
|
|
109
|
+
绝对定位/网格装饰——45° 斜纹、珊瑚色带分区、巨号水印 03、zigzag、
|
|
110
|
+
48px 图标方块、timeline 虚线与圆点气泡、social 方块、巨引号左栏——
|
|
111
|
+
行式 DOM(CM6 每行一 div)无挂点,逐一在 1.6 注明未复刻或近似。)
|
|
112
|
+
Bebas 400 唯一字重:文档层与令牌层一律 400(生成版 700 为错)。 */
|
|
113
|
+
:root {
|
|
114
|
+
--slide-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
|
|
115
|
+
--slide-title-font: "Bebas Neue", "ZCOOL XiaoWei", "Noto Sans SC", sans-serif;
|
|
116
|
+
--slide-title-size: 3.08em; /* 内容页题 clamp(40,6vw,80) @1920=80px ÷26(P4/P6/P8 同档) */
|
|
117
|
+
--slide-title-weight: 400; /* Bebas Neue 仅 400 */
|
|
118
|
+
--slide-subhead-weight: 600; /* Inter meta/labels 600 */
|
|
119
|
+
--slide-title-tracking: 0.025em; /* 2px ÷80px(Bebas 标准字距) */
|
|
120
|
+
--slide-title-line-height: 1; /* 模板标题 line-height: 1 */
|
|
121
|
+
--slide-cover-title-size: 4.62em; /* P1 main-title min(120px,9vw,13vh) @1920=120px ÷26 */
|
|
122
|
+
--slide-cover-title-line-height: 0.9;
|
|
123
|
+
--slide-cover-title-tracking: 0.033em; /* 4px ÷120px(hero 字距) */
|
|
124
|
+
--slide-section-title-size: 3.85em; /* P2 big-statement clamp(42,7vw,100) @1920=100px ÷26 */
|
|
125
|
+
--slide-closing-title-size: 4.62em; /* P10 closing-title clamp(48,8vw,120) @1920=120px ÷26 */
|
|
126
|
+
--slide-lead-size: 0.77em; /* body-text clamp(15,1.4vw,20) @1920=20px ÷26 */
|
|
127
|
+
--slide-kicker-size: clamp(11px, 0.63vw, 12px); /* section-label 12px @1920 */
|
|
128
|
+
--slide-kicker-tracking: 0.33em; /* 4px ÷12px(section-label 字距) */
|
|
129
|
+
--slide-kicker-transform: uppercase;
|
|
130
|
+
--slide-chrome-opacity: 0.6; /* slide-counter 白 .6 / 墨 .5 档 */
|
|
131
|
+
--slide-chrome-transform: none; /* counter 不再大写(Bebas 原生大写) */
|
|
132
|
+
--slide-quote-size: 1.38em; /* P7 quote-text clamp(20,2.5vw,36) @1920=36px ÷26 */
|
|
133
|
+
--slide-page-pad-x: 5.2vw; /* 模板页边距 clamp(40,8vw,100) @1920=100px ÷1920 */
|
|
134
|
+
--slide-page-top-pad: 70px; /* 正文顶 clamp(40,6vh,80)=80px − chrome 安全区 */
|
|
135
|
+
--slide-page-top-pad-print: 60px;
|
|
136
|
+
--slide-cover-text-align: left; /* P1 bottom-section 左对齐 */
|
|
137
|
+
--slide-cover-lead-inline: auto;
|
|
138
|
+
/* kpi/steps/two-col 无对应页 → --slide-kpi-number-size 等保持上游默认 */
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
|
|
142
|
+
body.presenting / body.slides-printing 作用域) ═══════════════ */
|
|
143
|
+
|
|
144
|
+
/* 1.6.1 页标题声部对齐:Bebas 400 墨色;并压掉文档式 h1/h2 的 border-bottom
|
|
145
|
+
(编辑器规则带 id 权重会漏进放映)。眉标(kicker)珊瑚 700——CR-04 身份备案 */
|
|
146
|
+
body.presenting #editor .cm-content .cm-md-page-title,
|
|
147
|
+
body.slides-printing #editor .cm-content .cm-md-page-title {
|
|
148
|
+
font-family: var(--slide-title-font);
|
|
149
|
+
font-size: var(--slide-title-size);
|
|
150
|
+
font-weight: 400;
|
|
151
|
+
line-height: 1;
|
|
152
|
+
letter-spacing: 0.025em;
|
|
153
|
+
color: var(--text-color);
|
|
154
|
+
border-bottom: none;
|
|
155
|
+
padding-bottom: 0;
|
|
156
|
+
margin-bottom: 0.3em;
|
|
157
|
+
}
|
|
158
|
+
body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
159
|
+
body.slides-printing #editor .cm-content .cm-md-page-title[data-slide-kicker]::before {
|
|
160
|
+
color: var(--seed-accent); /* 眉标珊瑚(备案项) */
|
|
161
|
+
font-weight: 700;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* 1.6.2 cover · P1:32% 珊瑚顶带 + zigzag + brand-mark 为网格分区装饰(未复刻);
|
|
165
|
+
主标题 120px 落在 68% 奶油带顶部左对齐 → flex-end 近似下移;title-rule
|
|
166
|
+
3px 墨 @15% 以标题底边复刻;meta 行(Bebas 44/38px 地点/日期)无独立槽位,
|
|
167
|
+
由导语段落近似(Inter 20px gray) */
|
|
168
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content {
|
|
169
|
+
justify-content: flex-end;
|
|
170
|
+
padding-bottom: 120px; /* 底部 meta 行区近似 */
|
|
171
|
+
}
|
|
172
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
|
|
173
|
+
body.slides-printing .cm-md-slide-cover.cm-md-page-title {
|
|
174
|
+
font-size: var(--slide-cover-title-size);
|
|
175
|
+
line-height: 0.9;
|
|
176
|
+
letter-spacing: 0.033em;
|
|
177
|
+
max-width: 88%;
|
|
178
|
+
border-bottom: 3px solid rgba(26, 26, 26, 0.15); /* .title-rule 3px ink @15% */
|
|
179
|
+
padding-bottom: 0.27em; /* rule 上距 clamp(16,2.5vh,32)→32px ÷120 */
|
|
180
|
+
}
|
|
181
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
|
|
182
|
+
body.slides-printing .cm-md-slide-cover.cm-md-page-lead {
|
|
183
|
+
font-size: 0.77em; /* meta 行以 body-text 20px ÷26 近似 */
|
|
184
|
+
line-height: 1.7;
|
|
185
|
+
max-width: 600px;
|
|
186
|
+
color: var(--text-secondary);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* 1.6.3 section · P2(statement):眉标珊瑚 + 巨陈述 100px + 正文 20px gray
|
|
190
|
+
max-width 600px;底部 80×4 珊瑚 accent-line(margin-top:auto 落底)无挂点未复刻。
|
|
191
|
+
P5(巨词 IMPACT 200px + 珊瑚渐变区 + ink 页环境 + info-bar)同映射不单列——
|
|
192
|
+
巨词/渐变/竖纹未复刻,取本档 100px */
|
|
193
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
|
|
194
|
+
body.slides-printing .cm-md-slide-section.cm-md-page-lead {
|
|
195
|
+
font-size: 0.77em; /* .body-text 20px ÷26 */
|
|
196
|
+
line-height: 1.7;
|
|
197
|
+
max-width: 600px;
|
|
198
|
+
color: var(--text-secondary);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* 1.6.4 agenda · P3(two-column,ink 墨底页):页面底色 = ink(右栏)——
|
|
202
|
+
左 50% 珊瑚面板 + 45° 斜纹 + 巨号 03(200px @12%)为分区装饰未复刻,
|
|
203
|
+
页面按右栏 ink 底复刻。行式条目 = item-label 珊瑚 11px 700 大写 .27em +
|
|
204
|
+
item-text 奶油 18px;条目无序号(listmark 隐藏) */
|
|
205
|
+
/* ink 页整页换墨(P3 原页面底色即 ink):底色打满整条层叠链——
|
|
206
|
+
body / #editor / .cm-editor / .cm-scroller / .cm-content 五层
|
|
207
|
+
(只挂 body 会被平台给 #editor 画的奶油底反盖,蓝页显成奶油页) */
|
|
208
|
+
body.presenting:has(#editor[data-slide-layout='agenda']),
|
|
209
|
+
body.slides-printing:has(.cm-md-slide-agenda) {
|
|
210
|
+
background: var(--seed-ink);
|
|
211
|
+
}
|
|
212
|
+
body.presenting #editor[data-slide-layout='agenda'],
|
|
213
|
+
body.slides-printing:has(.cm-md-slide-agenda) #editor,
|
|
214
|
+
body.presenting #editor[data-slide-layout='agenda'] .cm-editor,
|
|
215
|
+
body.presenting #editor[data-slide-layout='agenda'] .cm-scroller,
|
|
216
|
+
body.presenting #editor[data-slide-layout='agenda'] .cm-content,
|
|
217
|
+
body.slides-printing:has(.cm-md-slide-agenda) .cm-editor,
|
|
218
|
+
body.slides-printing:has(.cm-md-slide-agenda) .cm-scroller,
|
|
219
|
+
body.slides-printing:has(.cm-md-slide-agenda) .cm-content {
|
|
220
|
+
background: var(--seed-ink);
|
|
221
|
+
}
|
|
222
|
+
body.presenting #editor[data-slide-layout='agenda'] .cm-content,
|
|
223
|
+
body.slides-printing .cm-md-slide-agenda .cm-md-page-title ~ * { color: var(--bg-color); }
|
|
224
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-page-title,
|
|
225
|
+
body.slides-printing .cm-md-slide-agenda.cm-md-page-title {
|
|
226
|
+
font-size: 2.77em; /* .col-title clamp(36,5vw,72) @1920=72px ÷26 */
|
|
227
|
+
color: var(--bg-color); /* 珊瑚面板未复刻 → 标题奶油 on ink */
|
|
228
|
+
}
|
|
229
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
|
|
230
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
|
|
231
|
+
font-size: 0.69em; /* .item-text clamp(14,1.2vw,18) @1920=18px ÷26 */
|
|
232
|
+
border: none;
|
|
233
|
+
padding: 0;
|
|
234
|
+
margin: 0 0 1.55em; /* .item 间距 28px ÷18 */
|
|
235
|
+
}
|
|
236
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
|
|
237
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
|
|
238
|
+
display: none; /* 条目无序号(巨号 03 未复刻) */
|
|
239
|
+
}
|
|
240
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-strong,
|
|
241
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-strong {
|
|
242
|
+
font-family: var(--font-body);
|
|
243
|
+
font-size: 0.61em; /* .item-label 11px ÷26 ÷0.69 */
|
|
244
|
+
font-weight: 700;
|
|
245
|
+
letter-spacing: 0.27em; /* 3px ÷11px */
|
|
246
|
+
text-transform: uppercase;
|
|
247
|
+
color: var(--seed-accent); /* 珊瑚 on ink 5.1:1 ✓ */
|
|
248
|
+
margin-right: 0.73em; /* label-text 间距 8px ÷11 */
|
|
249
|
+
}
|
|
250
|
+
/* 幽灵页码 = var(--text-color) 墨色,落 ink 页同色隐形 → 整页隐藏 */
|
|
251
|
+
body.presenting:has(#editor[data-slide-layout='agenda']) .slide-ghost,
|
|
252
|
+
body.slides-printing:has(.cm-md-slide-agenda) .slide-ghost {
|
|
253
|
+
opacity: 0;
|
|
254
|
+
}
|
|
255
|
+
body.presenting [data-slide-layout='agenda'] .slide-chrome,
|
|
256
|
+
body.slides-printing [data-slide-layout='agenda'] .slide-chrome,
|
|
257
|
+
body.presenting [data-slide-layout='agenda'] .slide-foot,
|
|
258
|
+
body.slides-printing [data-slide-layout='agenda'] .slide-foot {
|
|
259
|
+
color: var(--bg-color);
|
|
260
|
+
}
|
|
261
|
+
/* 表格 td 换奶油面(墨底上墨字会被吃掉;th 自带 cream-dark 底不受影响) */
|
|
262
|
+
body.presenting #editor[data-slide-layout='agenda'] .cm-md-table-widget td,
|
|
263
|
+
body.slides-printing:has(.cm-md-slide-agenda) .cm-md-table-widget td {
|
|
264
|
+
color: var(--bg-color);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/* 1.6.5 figure · P4(chart / data):眉标 + 页题 80px(=1.5 全局档)保持上游
|
|
268
|
+
图表版式默认;Chart.js 主系列 coral / 对比 coral-dark 已落 --pele-* 令牌。
|
|
269
|
+
stat-number 96px 珊瑚大数字 + 3 张白底珊瑚左缘 sidebar 数据卡无对应元素
|
|
270
|
+
(figure 无列表槽位)——未复刻 */
|
|
271
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-lead,
|
|
272
|
+
body.slides-printing .cm-md-slide-figure.cm-md-page-lead {
|
|
273
|
+
color: var(--text-secondary);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/* 1.6.6 matrix · P6(three columns,cream 白卡):页题 80px;副题 Inter 14px
|
|
277
|
+
gray .14em;三列白卡 = 5px 珊瑚顶缘(column-card 唯一 chrome,零圆角零阴影)+
|
|
278
|
+
card-title Bebas 36px + card-text 16px gray;card-icon 48px 珊瑚方块与
|
|
279
|
+
card-stat 珊瑚尾数无槽位(数字可写入说明)未复刻;P9 团队网格同形不单列
|
|
280
|
+
(ink 底 + 半透明卡未复刻)。卡顶缘在条目折行时会逐行重复——行式 DOM 已知限制 */
|
|
281
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-page-title,
|
|
282
|
+
body.slides-printing .cm-md-slide-matrix.cm-md-page-title {
|
|
283
|
+
font-size: var(--slide-title-size); /* clamp(40,6vw,80) @1920=80px ÷26 */
|
|
284
|
+
}
|
|
285
|
+
body.presenting #editor[data-slide-layout='matrix'] .cm-content .cm-md-page-lead,
|
|
286
|
+
body.slides-printing .cm-md-slide-matrix.cm-md-page-lead {
|
|
287
|
+
font-size: 0.54em; /* .slide-subtitle 14px ÷26 */
|
|
288
|
+
letter-spacing: 0.14em; /* 2px ÷14px */
|
|
289
|
+
color: var(--text-secondary);
|
|
290
|
+
}
|
|
291
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
|
|
292
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
|
|
293
|
+
display: inline-block;
|
|
294
|
+
width: 31%; /* 三列 + 32px gap @1920 */
|
|
295
|
+
margin: 0 2.9% 1.6em 0;
|
|
296
|
+
vertical-align: top;
|
|
297
|
+
background: #ffffff; /* column-card 白底 */
|
|
298
|
+
border-top: 5px solid var(--seed-accent); /* 5px 珊瑚顶缘(唯一 chrome) */
|
|
299
|
+
border-radius: 0;
|
|
300
|
+
box-shadow: none;
|
|
301
|
+
padding: 2.5em; /* card-pad clamp(24,3vh,40)→40px ÷16 */
|
|
302
|
+
font-size: 0.62em; /* .card-text clamp(13,1.1vw,16) @1920=16px ÷26 */
|
|
303
|
+
}
|
|
304
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-listmark,
|
|
305
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-listmark {
|
|
306
|
+
display: none; /* 卡片无序号(图标方块未复刻) */
|
|
307
|
+
}
|
|
308
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
|
|
309
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
|
|
310
|
+
display: block; /* 卡名独立行(同 pin-and-paper 步骤卡) */
|
|
311
|
+
font-family: var(--slide-title-font);
|
|
312
|
+
font-size: 2.25em; /* .card-title clamp(24,2.5vw,36) @1920=36px ÷26 ÷0.62 */
|
|
313
|
+
font-weight: 400;
|
|
314
|
+
line-height: 1.1;
|
|
315
|
+
letter-spacing: 0.028em; /* 1px ÷36px */
|
|
316
|
+
color: var(--text-color);
|
|
317
|
+
margin-bottom: 0.75em; /* 卡名-文距 12px ÷16 */
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/* 1.6.7 quote · P7(quote,ink 墨底页):40% 珊瑚左栏 + -45° 斜纹为分区装饰
|
|
321
|
+
未复刻;巨引号(giant-mark 280px @35%)以 ::before 珊瑚水印近似;
|
|
322
|
+
引文 Inter 300 36px 奶油(系统唯一 Light 档,对冲 Bebas 主导声部);
|
|
323
|
+
署名行 = 60×4 珊瑚 quote-accent 条(::before 块)+ Inter 600 14px 珊瑚大写 .21em;
|
|
324
|
+
quote-role 12px 第二行无槽位(并入署名行) */
|
|
325
|
+
body.presenting:has(#editor[data-slide-layout='quote']),
|
|
326
|
+
body.slides-printing:has(.cm-md-slide-quote) {
|
|
327
|
+
background: var(--seed-ink);
|
|
328
|
+
}
|
|
329
|
+
body.presenting #editor[data-slide-layout='quote'],
|
|
330
|
+
body.slides-printing:has(.cm-md-slide-quote) #editor,
|
|
331
|
+
body.presenting #editor[data-slide-layout='quote'] .cm-editor,
|
|
332
|
+
body.presenting #editor[data-slide-layout='quote'] .cm-scroller,
|
|
333
|
+
body.presenting #editor[data-slide-layout='quote'] .cm-content,
|
|
334
|
+
body.slides-printing:has(.cm-md-slide-quote) .cm-editor,
|
|
335
|
+
body.slides-printing:has(.cm-md-slide-quote) .cm-scroller,
|
|
336
|
+
body.slides-printing:has(.cm-md-slide-quote) .cm-content {
|
|
337
|
+
background: var(--seed-ink);
|
|
338
|
+
}
|
|
339
|
+
body.presenting #editor[data-slide-layout='quote'] .cm-content,
|
|
340
|
+
body.slides-printing .cm-md-slide-quote .cm-md-page-title ~ * { color: var(--bg-color); }
|
|
341
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-page-title,
|
|
342
|
+
body.slides-printing .cm-md-slide-quote.cm-md-page-title {
|
|
343
|
+
color: var(--bg-color);
|
|
344
|
+
}
|
|
345
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
|
|
346
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
|
|
347
|
+
font-family: var(--font-body);
|
|
348
|
+
font-size: var(--slide-quote-size); /* quote-text clamp(20,2.5vw,36) @1920=36px ÷26 */
|
|
349
|
+
font-weight: 300; /* 系统唯一 Inter Light 部署 */
|
|
350
|
+
line-height: 1.5;
|
|
351
|
+
color: var(--bg-color);
|
|
352
|
+
background: transparent;
|
|
353
|
+
border-left: none; /* 珊瑚左栏未复刻 → 去轨道 */
|
|
354
|
+
padding-left: 0;
|
|
355
|
+
padding-right: 0;
|
|
356
|
+
}
|
|
357
|
+
body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
|
|
358
|
+
body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
|
|
359
|
+
font-family: var(--slide-title-font);
|
|
360
|
+
font-size: 7.78em; /* giant-mark 280px ÷36(引文实际字号) */
|
|
361
|
+
line-height: 0.6;
|
|
362
|
+
color: var(--seed-accent);
|
|
363
|
+
opacity: 0.35; /* 模板 @35% 半装饰档 */
|
|
364
|
+
}
|
|
365
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
|
|
366
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
|
|
367
|
+
margin-top: 2.86em; /* quote-accent 上距 40px ÷14 */
|
|
368
|
+
font-family: var(--font-body);
|
|
369
|
+
font-weight: 600;
|
|
370
|
+
font-size: 0.54em; /* .quote-author 14px ÷26 */
|
|
371
|
+
letter-spacing: 0.21em; /* 3px ÷14px */
|
|
372
|
+
text-transform: uppercase;
|
|
373
|
+
color: var(--seed-accent); /* 珊瑚 on ink 5.1:1 ✓ */
|
|
374
|
+
}
|
|
375
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line::before,
|
|
376
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line::before {
|
|
377
|
+
content: '';
|
|
378
|
+
display: block;
|
|
379
|
+
width: 60px; /* .quote-accent 60×4 */
|
|
380
|
+
height: 4px;
|
|
381
|
+
background: var(--seed-accent);
|
|
382
|
+
margin-bottom: 2.29em; /* accent-署名距 32px ÷14 */
|
|
383
|
+
}
|
|
384
|
+
body.presenting:has(#editor[data-slide-layout='quote']) .slide-ghost,
|
|
385
|
+
body.slides-printing:has(.cm-md-slide-quote) .slide-ghost {
|
|
386
|
+
opacity: 0;
|
|
387
|
+
}
|
|
388
|
+
body.presenting [data-slide-layout='quote'] .slide-chrome,
|
|
389
|
+
body.slides-printing [data-slide-layout='quote'] .slide-chrome,
|
|
390
|
+
body.presenting [data-slide-layout='quote'] .slide-foot,
|
|
391
|
+
body.slides-printing [data-slide-layout='quote'] .slide-foot {
|
|
392
|
+
color: var(--bg-color);
|
|
393
|
+
}
|
|
394
|
+
body.presenting #editor[data-slide-layout='quote'] .cm-md-table-widget td,
|
|
395
|
+
body.slides-printing:has(.cm-md-slide-quote) .cm-md-table-widget td {
|
|
396
|
+
color: var(--bg-color);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/* 1.6.8 timeline · P8(roadmap,cream):页题 80px + 珊瑚眉标(全局档);
|
|
400
|
+
4px 墨色虚线 timeline-line + 20px 珊瑚圆点/100px 气泡为绝对定位装饰未复刻,
|
|
401
|
+
listmark 以珊瑚 Bebas 节点字近似;行式条目 = t-phase 珊瑚 12px 700 大写
|
|
402
|
+
.17em + t-desc 14px gray;条目无分隔线 */
|
|
403
|
+
body.presenting #editor .cm-content .cm-md-slide-timeline.cm-md-li,
|
|
404
|
+
body.slides-printing #editor .cm-content .cm-md-slide-timeline.cm-md-li {
|
|
405
|
+
font-size: 0.54em; /* .t-desc clamp(12,1vw,14) @1920=14px ÷26 */
|
|
406
|
+
border: none;
|
|
407
|
+
padding: 0;
|
|
408
|
+
margin: 0 0 1.7em; /* t-point 间距 24px ÷14 */
|
|
409
|
+
}
|
|
410
|
+
body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-listmark,
|
|
411
|
+
body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-listmark {
|
|
412
|
+
font-family: var(--slide-title-font);
|
|
413
|
+
font-weight: 400;
|
|
414
|
+
font-size: 2.28em; /* t-bubble 字 clamp(20,2vw,32)→32px ÷26 ÷0.54 */
|
|
415
|
+
line-height: 1;
|
|
416
|
+
color: var(--seed-accent);
|
|
417
|
+
margin-right: 0.35em;
|
|
418
|
+
}
|
|
419
|
+
body.presenting #editor .cm-content .cm-md-slide-timeline .cm-md-strong,
|
|
420
|
+
body.slides-printing #editor .cm-content .cm-md-slide-timeline .cm-md-strong {
|
|
421
|
+
font-family: var(--font-body);
|
|
422
|
+
font-size: 0.86em; /* .t-phase 12px ÷26 ÷0.54 */
|
|
423
|
+
font-weight: 700;
|
|
424
|
+
letter-spacing: 0.17em; /* 2px ÷12px */
|
|
425
|
+
text-transform: uppercase;
|
|
426
|
+
color: var(--seed-accent); /* 珊瑚 on cream 3.0:1(眉标档,备案) */
|
|
427
|
+
margin-right: 0.67em; /* phase-desc 间距 8px ÷12 */
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/* 1.6.9 closing · P10(closing,coral 底页):页面 55% 珊瑚左栏 + 45% 奶油右栏
|
|
431
|
+
硬边分区——取主导面珊瑚整页复刻;右栏分区/zigzag 底饰/44px social 方块
|
|
432
|
+
未复刻。标题 120px 顶部(垂直居中近似);清单 = contact-label 11px 黑 @72%
|
|
433
|
+
+ contact-value Bebas 40px(strong)。珊瑚面上正文一律黑(gray 1.6:1 不可读) */
|
|
434
|
+
body.presenting:has(#editor[data-slide-layout='closing']),
|
|
435
|
+
body.slides-printing:has(.cm-md-slide-closing) {
|
|
436
|
+
background: var(--seed-accent);
|
|
437
|
+
}
|
|
438
|
+
body.presenting #editor[data-slide-layout='closing'],
|
|
439
|
+
body.slides-printing:has(.cm-md-slide-closing) #editor,
|
|
440
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-editor,
|
|
441
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-scroller,
|
|
442
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content,
|
|
443
|
+
body.slides-printing:has(.cm-md-slide-closing) .cm-editor,
|
|
444
|
+
body.slides-printing:has(.cm-md-slide-closing) .cm-scroller,
|
|
445
|
+
body.slides-printing:has(.cm-md-slide-closing) .cm-content {
|
|
446
|
+
background: var(--seed-accent);
|
|
447
|
+
}
|
|
448
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content,
|
|
449
|
+
body.slides-printing:has(.cm-md-slide-closing) .cm-content {
|
|
450
|
+
color: var(--text-color); /* 珊瑚面上文字一律 ink-on-fire */
|
|
451
|
+
}
|
|
452
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-page-title,
|
|
453
|
+
body.slides-printing .cm-md-slide-closing.cm-md-page-title {
|
|
454
|
+
font-size: var(--slide-closing-title-size); /* clamp(48,8vw,120) @1920=120px ÷26 */
|
|
455
|
+
line-height: 0.95;
|
|
456
|
+
letter-spacing: 0.033em; /* 4px ÷120px */
|
|
457
|
+
}
|
|
458
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
459
|
+
body.slides-printing .cm-md-slide-closing .cm-md-page-title[data-slide-kicker]::before {
|
|
460
|
+
color: var(--text-color); /* 珊瑚面上眉标切墨(珊瑚上无珊瑚) */
|
|
461
|
+
}
|
|
462
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-lead,
|
|
463
|
+
body.slides-printing .cm-md-slide-closing.cm-md-page-lead {
|
|
464
|
+
font-size: 0.77em; /* .closing-subtitle clamp(14,1.3vw,20) @1920=20px ÷26 */
|
|
465
|
+
line-height: 1.6;
|
|
466
|
+
max-width: 400px;
|
|
467
|
+
color: rgba(26, 26, 26, 0.72); /* rgba(0,0,0,.7) 落墨档 */
|
|
468
|
+
}
|
|
469
|
+
body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
|
|
470
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
|
|
471
|
+
font-size: 0.42em; /* .contact-label 11px ÷26 */
|
|
472
|
+
border: none;
|
|
473
|
+
padding: 0;
|
|
474
|
+
margin: 0 0 2.9em; /* contact-block 间距 32px ÷11 */
|
|
475
|
+
color: rgba(26, 26, 26, 0.72);
|
|
476
|
+
}
|
|
477
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-listmark,
|
|
478
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-listmark {
|
|
479
|
+
display: none; /* contact 块无序号 */
|
|
480
|
+
}
|
|
481
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-strong,
|
|
482
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-strong {
|
|
483
|
+
font-family: var(--slide-title-font);
|
|
484
|
+
font-size: 3.64em; /* .contact-value clamp(24,3vw,40) @1920=40px ÷26 ÷0.42 */
|
|
485
|
+
font-weight: 400;
|
|
486
|
+
line-height: 1.1;
|
|
487
|
+
letter-spacing: 0.05em; /* 2px ÷40px */
|
|
488
|
+
color: var(--text-color);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/* 1.6.10 chrome · slide-counter:Bebas 18px .11em(模板 counter 白 .6/墨 .5),
|
|
492
|
+
不再大写 */
|
|
493
|
+
body.presenting .slide-chrome,
|
|
494
|
+
body.slides-printing .slide-chrome {
|
|
495
|
+
font-family: var(--slide-title-font);
|
|
496
|
+
font-size: 0.69em; /* counter 18px ÷26 */
|
|
497
|
+
letter-spacing: 0.11em; /* 2px ÷18px */
|
|
498
|
+
text-transform: none;
|
|
499
|
+
color: var(--text-color);
|
|
500
|
+
}
|
|
501
|
+
body.presenting .slide-foot,
|
|
502
|
+
body.slides-printing .slide-foot {
|
|
503
|
+
font-family: var(--slide-title-font);
|
|
504
|
+
font-size: 0.62em; /* bar-meta 12px ÷26 */
|
|
505
|
+
letter-spacing: 0.17em; /* 2px ÷12px */
|
|
506
|
+
text-transform: uppercase;
|
|
507
|
+
opacity: 0.6;
|
|
508
|
+
color: var(--text-color);
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
/* ═══════════════════════════════════════════════════════════
|
|
512
|
+
SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
|
|
513
|
+
═══════════════════════════════════════════════════════════ */
|
|
514
|
+
|
|
515
|
+
#editor .cm-content {
|
|
516
|
+
font-family: var(--font-body);
|
|
517
|
+
line-height: 1.7;
|
|
518
|
+
color: var(--text-secondary); /* 模板:奶油面正文 gray,标题另切 ink */
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/* ── 2.1 Headings(Bebas 400 墨色,原生大写 + 2px 级字距;生成版 700 为错)── */
|
|
522
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
523
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
524
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
525
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
526
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
527
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
528
|
+
font-family: "Bebas Neue", "ZCOOL XiaoWei", "Noto Sans SC", sans-serif;
|
|
529
|
+
color: var(--text-color);
|
|
530
|
+
font-weight: 400; /* Bebas Neue 仅 400,模板即常规体 */
|
|
531
|
+
line-height: 0.95;
|
|
532
|
+
letter-spacing: 0.03em;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
#editor .cm-content .cm-md-atxheading1 { font-size: 2.6em; }
|
|
536
|
+
#editor .cm-content .cm-md-atxheading2 { font-size: 2em; }
|
|
537
|
+
#editor .cm-content .cm-md-atxheading3 { font-size: 1.5em; }
|
|
538
|
+
#editor .cm-content .cm-md-atxheading4 { font-size: 1.25em; }
|
|
539
|
+
#editor .cm-content .cm-md-atxheading5 { font-size: 1.1em; }
|
|
540
|
+
#editor .cm-content .cm-md-atxheading6 { /* 模板 section-label 眉标档(备案项) */
|
|
541
|
+
font-size: 0.8em;
|
|
542
|
+
font-family: var(--font-body);
|
|
543
|
+
font-weight: 700;
|
|
544
|
+
letter-spacing: 0.33em;
|
|
545
|
+
text-transform: uppercase;
|
|
546
|
+
color: var(--seed-accent);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
/* ── 2.2 Inline(strong 一律正文墨色,不用 accent)── */
|
|
550
|
+
#editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 700; }
|
|
551
|
+
#editor .cm-content .cm-md-em { font-style: italic; }
|
|
552
|
+
#editor .cm-content .cm-md-strike { text-decoration: line-through; }
|
|
553
|
+
#editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
|
|
554
|
+
#editor .cm-content .cm-md-link { color: var(--link-color); }
|
|
555
|
+
#editor .cm-content .cm-md-url { color: var(--text-muted); }
|
|
556
|
+
|
|
557
|
+
#editor .cm-content .cm-md-inlinecode {
|
|
558
|
+
font-family: var(--font-mono);
|
|
559
|
+
background: var(--code-bg);
|
|
560
|
+
color: var(--text-color);
|
|
561
|
+
border-radius: 0; /* 模板:零圆角 */
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
#editor .cm-content .cm-md-marker,
|
|
565
|
+
#editor .cm-content .cm-md-quotemark,
|
|
566
|
+
#editor .cm-content .cm-md-listmark {
|
|
567
|
+
color: var(--text-muted);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
|
|
571
|
+
引用左轨 = 模板 sidebar-item 4px 珊瑚左缘;底色由编辑器按 --blockquote-bg
|
|
572
|
+
画在选区下方,这里不要写 background。 */
|
|
573
|
+
#editor .cm-content .cm-md-blockquote {
|
|
574
|
+
color: var(--text-secondary);
|
|
575
|
+
border-left: 4px solid var(--blockquote-border);
|
|
576
|
+
padding-left: 16px;
|
|
577
|
+
padding-right: 16px;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
#editor .cm-content .cm-md-codeblock {
|
|
581
|
+
background: var(--code-block-bg);
|
|
582
|
+
color: var(--code-block-text);
|
|
583
|
+
padding-left: 16px;
|
|
584
|
+
padding-right: 16px;
|
|
585
|
+
}
|
|
586
|
+
#editor .cm-content .cm-md-codeblock-first {
|
|
587
|
+
border-top-left-radius: 0;
|
|
588
|
+
border-top-right-radius: 0;
|
|
589
|
+
}
|
|
590
|
+
#editor .cm-content .cm-md-codeblock-last {
|
|
591
|
+
border-bottom-left-radius: 0;
|
|
592
|
+
border-bottom-right-radius: 0;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/* ── 2.4 Table / Rule(模板墨色实线体系,th = section-label 眉标档)── */
|
|
596
|
+
#editor .cm-content .cm-md-table-widget th,
|
|
597
|
+
#editor .cm-content .cm-md-table-widget td {
|
|
598
|
+
padding: 10px 14px;
|
|
599
|
+
border-color: var(--border-color);
|
|
600
|
+
}
|
|
601
|
+
#editor .cm-content .cm-md-table-widget th {
|
|
602
|
+
background: var(--table-header-bg);
|
|
603
|
+
color: var(--text-color);
|
|
604
|
+
font-family: var(--font-body);
|
|
605
|
+
font-size: 0.78em;
|
|
606
|
+
font-weight: 700;
|
|
607
|
+
letter-spacing: 0.18em;
|
|
608
|
+
text-transform: uppercase;
|
|
609
|
+
border-bottom: 2px solid var(--seed-border-strong);
|
|
610
|
+
}
|
|
611
|
+
#editor .cm-content .cm-md-hr { border-top-color: var(--seed-border-strong); }
|
|
612
|
+
|
|
613
|
+
/* ═══════════════════════════════════════════════════════════
|
|
614
|
+
SECTION 3 — Exported HTML(.colamd-document,语义标签)
|
|
615
|
+
HTML/PDF 导出不走编辑器 DOM;这段与 SECTION 2 镜像同步。
|
|
616
|
+
═══════════════════════════════════════════════════════════ */
|
|
617
|
+
|
|
618
|
+
.colamd-document {
|
|
619
|
+
font-family: var(--font-body);
|
|
620
|
+
font-size: 16px;
|
|
621
|
+
line-height: 1.7;
|
|
622
|
+
color: var(--text-secondary);
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.colamd-document h1,
|
|
626
|
+
.colamd-document h2,
|
|
627
|
+
.colamd-document h3,
|
|
628
|
+
.colamd-document h4,
|
|
629
|
+
.colamd-document h5,
|
|
630
|
+
.colamd-document h6 {
|
|
631
|
+
font-family: "Bebas Neue", "ZCOOL XiaoWei", "Noto Sans SC", sans-serif;
|
|
632
|
+
color: var(--text-color);
|
|
633
|
+
font-weight: 400;
|
|
634
|
+
line-height: 0.95;
|
|
635
|
+
letter-spacing: 0.03em;
|
|
636
|
+
margin: 1.5em 0 0.5em;
|
|
637
|
+
}
|
|
638
|
+
.colamd-document h1 { font-size: 2.6em; margin-top: 0.4em; }
|
|
639
|
+
.colamd-document h2 { font-size: 2em; }
|
|
640
|
+
.colamd-document h3 { font-size: 1.5em; }
|
|
641
|
+
.colamd-document h4 { font-size: 1.25em; }
|
|
642
|
+
.colamd-document h5 { font-size: 1.1em; }
|
|
643
|
+
.colamd-document h6 {
|
|
644
|
+
font-size: 0.8em;
|
|
645
|
+
font-family: var(--font-body);
|
|
646
|
+
font-weight: 700;
|
|
647
|
+
letter-spacing: 0.33em;
|
|
648
|
+
text-transform: uppercase;
|
|
649
|
+
color: var(--seed-accent);
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
.colamd-document strong { color: var(--text-color); font-weight: 700; }
|
|
653
|
+
.colamd-document code {
|
|
654
|
+
background: var(--code-bg);
|
|
655
|
+
color: var(--text-color);
|
|
656
|
+
font-family: var(--font-mono);
|
|
657
|
+
border-radius: 0;
|
|
658
|
+
}
|
|
659
|
+
/* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
|
|
660
|
+
.colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
|
|
661
|
+
.colamd-document pre { background: var(--code-block-bg); border-radius: 0; }
|
|
662
|
+
.colamd-document pre code { color: var(--code-block-text); }
|
|
663
|
+
.colamd-document blockquote {
|
|
664
|
+
background: var(--blockquote-bg);
|
|
665
|
+
color: var(--text-secondary);
|
|
666
|
+
border-left: 4px solid var(--blockquote-border);
|
|
667
|
+
padding: 0.5em 1.2em;
|
|
668
|
+
}
|
|
669
|
+
.colamd-document mark { background: var(--highlight-bg); }
|
|
670
|
+
.colamd-document th,
|
|
671
|
+
.colamd-document td {
|
|
672
|
+
border-color: var(--border-color);
|
|
673
|
+
padding: 10px 14px;
|
|
674
|
+
}
|
|
675
|
+
.colamd-document th {
|
|
676
|
+
background: var(--table-header-bg);
|
|
677
|
+
color: var(--text-color);
|
|
678
|
+
font-size: 0.78em;
|
|
679
|
+
font-weight: 700;
|
|
680
|
+
letter-spacing: 0.18em;
|
|
681
|
+
text-transform: uppercase;
|
|
682
|
+
border-bottom: 2px solid var(--seed-border-strong);
|
|
683
|
+
}
|
|
684
|
+
.colamd-document hr { border-top-color: var(--seed-border-strong); }
|
|
685
|
+
|
|
686
|
+
/* ═══════════════════════════════════════════════════════════
|
|
687
|
+
SECTION 4 — Print
|
|
688
|
+
应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
|
|
689
|
+
═══════════════════════════════════════════════════════════ */
|
|
690
|
+
|
|
691
|
+
@media print {
|
|
692
|
+
html,
|
|
693
|
+
body {
|
|
694
|
+
background: var(--bg-color);
|
|
695
|
+
color: var(--text-color);
|
|
696
|
+
-webkit-print-color-adjust: exact;
|
|
697
|
+
print-color-adjust: exact;
|
|
698
|
+
}
|
|
699
|
+
}
|