@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.
- package/README.md +22 -4
- package/package.json +1 -1
- package/skills/colamd-themes/SKILL.md +86 -1
- 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/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/vellum.css +723 -0
|
@@ -0,0 +1,767 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ColaMD Theme: Capsule(胶囊 · 手工精修逐页版式复刻版)
|
|
3
|
+
* Memphis-meets-editorial:奶油纸底 + 九色糖果盘,一切容器皆胶囊(9999px/2rem 圆角
|
|
4
|
+
* + 2px ink 描边 + 右下硬偏移阴影);Bodoni Moda didone 衬线扛全部 display/标题/
|
|
5
|
+
* 数字/引言,Space Grotesk 扛全部正文/标签/胶囊文字。
|
|
6
|
+
* 来源:D:\workspace\git\beautiful-html-templates\templates\capsule\template.html
|
|
7
|
+
* + design.md(pill 体系 / candy palette / 两声部字体 / grain overlay)
|
|
8
|
+
* colors: cream #F5F5F0 / ink #1A1A1A / outline #1E1E1E / white #FFFFFF
|
|
9
|
+
* coral #E85D4E / lime #C4D94E / lavender #C5B5E0 / sky #8BB4F7
|
|
10
|
+
* violet #A06CE8 / yellow #F2D160 / peach #F5B895 / mint #A8E6CF
|
|
11
|
+
* shadow rgba(26,26,26,0.08)
|
|
12
|
+
* fonts: Bodoni Moda(display 700-800,模板明确用重字重,非"仅 400"陷阱)/
|
|
13
|
+
* Space Grotesk(body/label 300-700);CJK 配对按 design.md:
|
|
14
|
+
* ZCOOL XiaoWei(display)/ Yozai(body),缺字退 Noto 系
|
|
15
|
+
*
|
|
16
|
+
* paradigm 备案(模板刻意身份,与 biennale-yellow 的黄纸同类,有意保留):
|
|
17
|
+
* SL-01 —— 奶油底 #F5F5F0 带暖调(H≈60, S≈20%),模板身份即"杂志纸",
|
|
18
|
+
* 不中性化;糖果九色全部保留做胶囊填充/数字/条形。
|
|
19
|
+
* (panel 层已压到 S<10% 过 SL-02,暖调只留在页面底。)
|
|
20
|
+
* CR-04 —— link-color 用 coral 加深档 #C0392B(奶油上 4.97:1 ≥4.5 过线),
|
|
21
|
+
* 原 coral #E85D4E(3.14:1)保留做胶囊底/描边装饰/KPI 大数字——
|
|
22
|
+
* 模板刻意让数字上糖果色,48px·800 大字号 ≥3:1 大文本线(白卡上
|
|
23
|
+
* 3.44:1);正文一律 ink(15.9:1),strong 不上强调色。
|
|
24
|
+
*
|
|
25
|
+
* 页面映射总表(template.html 十页 → ColaMD 2.7.13 版式):
|
|
26
|
+
* cover←P1 two-col←P2/P9 matrix←P3 figure←P4/P8 quote←P5 steps←P6
|
|
27
|
+
* kpi←P7 closing←P10
|
|
28
|
+
* (section 无对应页——令牌取内容页页头 48px 声部;agenda/timeline 无对应页
|
|
29
|
+
* 保持上游默认。)
|
|
30
|
+
* 有意未复刻(行式 DOM 无挂点的绝对定位/整页装饰):
|
|
31
|
+
* · 每页 1-3 个放射光晕(candy 6-15% 径向渐变)与 4% 颗粒噪点 overlay
|
|
32
|
+
* · 装饰漂浮胶囊墙(P1/P5/P10 五至八枚倾斜胶囊)
|
|
33
|
+
* · P2/P9 轨道构成与渐变视觉框(右/左栏纯视觉)
|
|
34
|
+
* · P6 时间轴横轨(节点已复刻为行式圆点列)、P8 箭头连接线(Mermaid 自绘)
|
|
35
|
+
* · P4 胶囊条形轨道(无对应 Markdown 结构,figure 页以白卡 Mermaid 承载)
|
|
36
|
+
* · 逐卡糖果色差异(P3 图标 I/II/II 三色、P7 数字四色、P5 双色高亮)→
|
|
37
|
+
* 统一取默认声部 coral/lime(纯 CSS 行式 DOM 无法按项换色)
|
|
38
|
+
*
|
|
39
|
+
* 契约:ColaMD Extend 2.7.13(:root 活变量;CM6 每行一 div;引用/代码块禁纵向
|
|
40
|
+
* padding;SECTION 1.5 为幻灯片 --slide-* 令牌;1.6 全部 SLIDE-02 作用域)
|
|
41
|
+
*
|
|
42
|
+
* 两条硬规矩:
|
|
43
|
+
* 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
|
|
44
|
+
* 编辑器继承不到。
|
|
45
|
+
* 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
|
|
46
|
+
* 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
|
|
47
|
+
* 并且引用/代码块**不能加纵向 padding**——那会按行累加。
|
|
48
|
+
*
|
|
49
|
+
* ═══════════════════════════════════════════════════════════
|
|
50
|
+
* SECTION 1 — Design Tokens
|
|
51
|
+
* 改 11 个种子色 + 3 组字体即可换一套主题
|
|
52
|
+
* ═══════════════════════════════════════════════════════════ */
|
|
53
|
+
|
|
54
|
+
:root {
|
|
55
|
+
|
|
56
|
+
/* ── 1.1 Seed Palette ──
|
|
57
|
+
本工具的再生成与校验读这一层;编辑器不消费。
|
|
58
|
+
明度排序(SL-04 亮色范式):surface > panel > panel-alt;
|
|
59
|
+
muted/dim 对奶油底 ≥4.5:1(CR-02);描边全 ink(NT-03 已备案)。 */
|
|
60
|
+
--seed-accent: #e85d4e; /* coral —— 声部强调(胶囊底/条形/KPI 数字) */
|
|
61
|
+
--seed-accent-light: #f5b895; /* peach —— 最软糖果 */
|
|
62
|
+
--seed-accent-dark: #c0392b; /* coral 加深档(奶油上 4.97:1,CR-04 链接用) */
|
|
63
|
+
--seed-surface: #f5f5f0; /* cream —— 晒褪杂志纸(S≈20%,SL-01 备案:纸感身份) */
|
|
64
|
+
--seed-panel: #ededea; /* 纸面降一档(压到 S<10% 过 SL-02;行内代码/引用/表头托) */
|
|
65
|
+
--seed-panel-alt: #e0e0dc; /* 再降一档(代码块) */
|
|
66
|
+
--seed-ink: #1a1a1a; /* ink —— 正文与描边 */
|
|
67
|
+
--seed-ink-muted: #5c5c5c; /* 正文压淡档(纯灰保 NT-01 色相轴,6.1:1) */
|
|
68
|
+
--seed-ink-dim: #6e6e6e; /* 再压档(4.7:1) */
|
|
69
|
+
--seed-border: #1e1e1e; /* outline —— 2px ink 描边体系 */
|
|
70
|
+
--seed-border-strong: #1e1e1e;
|
|
71
|
+
|
|
72
|
+
/* ── 1.2 Semantic Colors(活变量)── */
|
|
73
|
+
--bg-color: var(--seed-surface);
|
|
74
|
+
--text-color: var(--seed-ink);
|
|
75
|
+
--text-secondary: var(--seed-ink-muted);
|
|
76
|
+
--text-muted: var(--seed-ink-dim);
|
|
77
|
+
--border-color: var(--seed-border);
|
|
78
|
+
/* coral 加深档保奶油上 ≥4.5:1(CR-04 备案);coral 原色只做底/线/大数字 */
|
|
79
|
+
--link-color: var(--seed-accent-dark);
|
|
80
|
+
|
|
81
|
+
--code-bg: var(--seed-panel);
|
|
82
|
+
--code-block-bg: var(--seed-panel-alt);
|
|
83
|
+
--code-block-text: #1a1a1a;
|
|
84
|
+
|
|
85
|
+
--blockquote-border: var(--seed-accent); /* coral 左轨(模板 accent-line 声部) */
|
|
86
|
+
--blockquote-bg: var(--seed-panel);
|
|
87
|
+
--table-header-bg: var(--seed-panel);
|
|
88
|
+
|
|
89
|
+
--selection-bg: rgba(232, 93, 78, 0.18); /* coral 18% 选区 */
|
|
90
|
+
--highlight-bg: #c4d94e; /* lime —— quote-highlight 荧光胶囊 */
|
|
91
|
+
|
|
92
|
+
/* ── 1.3 Typography & Metrics(活变量)── */
|
|
93
|
+
--font-body: "Space Grotesk", "Yozai", "Noto Sans SC", sans-serif;
|
|
94
|
+
--font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", monospace;
|
|
95
|
+
--editor-font-size: 16px;
|
|
96
|
+
--editor-column-width: 820px;
|
|
97
|
+
|
|
98
|
+
/* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
|
|
99
|
+
模板图表容器/流程节点皆为白卡胶囊 → Pele 画在白底上,ink 描边声部。 */
|
|
100
|
+
--pele-bg: #ffffff;
|
|
101
|
+
--pele-fg: #1a1a1a;
|
|
102
|
+
--pele-muted: color-mix(in srgb, #1a1a1a 70%, #ffffff);
|
|
103
|
+
--pele-line: #1a1a1a;
|
|
104
|
+
--pele-surface: color-mix(in srgb, #1a1a1a 8%, #ffffff);
|
|
105
|
+
--pele-surface-alt: color-mix(in srgb, #1a1a1a 16%, #ffffff);
|
|
106
|
+
--pele-border: color-mix(in srgb, #1a1a1a 45%, #ffffff);
|
|
107
|
+
--pele-accent: var(--seed-accent); /* coral:条形/序号/连线高亮 */
|
|
108
|
+
--pele-radius: 16px; /* 卡片 2rem 的收敛档 */
|
|
109
|
+
|
|
110
|
+
/* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 capsule 十页逐页复刻)──
|
|
111
|
+
换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
|
|
112
|
+
模板 1920 画布 px ÷ 26 = em(clamp 取 1920×1080 实际落点,rem=16px)。
|
|
113
|
+
字体体系:Bodoni Moda 700-800(display/headline/stat/quote)+
|
|
114
|
+
Space Grotesk(body/label/pill,大写 0.08-0.15em 小字身份)。页面对照:
|
|
115
|
+
cover←P1 two-col←P2/P9 matrix←P3 figure←P4/P8 quote←P5
|
|
116
|
+
steps←P6 kpi←P7 closing←P10
|
|
117
|
+
(section/agenda/timeline 无对应页保持上游默认。装饰清单见文件头
|
|
118
|
+
"有意未复刻"。全部十页奶油底,无换底页——不做页面级背景覆写。)
|
|
119
|
+
胶囊三件套换算:描边 2px ink、圆角 9999px/2rem(32px)、阴影
|
|
120
|
+
4/6/8/12px 硬偏移 rgba(26,26,26,0.08),在 1.6 按 li 字号换 em。 */
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
:root {
|
|
124
|
+
--slide-mono: "Space Grotesk", "Noto Sans SC", sans-serif;
|
|
125
|
+
--slide-title-font: "Bodoni Moda", "ZCOOL XiaoWei", "Noto Serif SC", serif;
|
|
126
|
+
--slide-title-size: 1.85em; /* 内容页头 48px ÷26(P3/P4/P6/P7 同档) */
|
|
127
|
+
--slide-title-weight: 700; /* Bodoni headline 档 */
|
|
128
|
+
--slide-subhead-weight: 600;
|
|
129
|
+
--slide-title-tracking: -0.01em; /* section-headline -.01em */
|
|
130
|
+
--slide-title-line-height: 1.05;
|
|
131
|
+
--slide-cover-title-size: 4.31em; /* display @1920 = 112px ÷26 */
|
|
132
|
+
--slide-cover-title-line-height: 0.9;
|
|
133
|
+
--slide-cover-title-tracking: -0.02em;
|
|
134
|
+
--slide-section-title-size: 1.85em; /* 无对应页,取内容页头声部 */
|
|
135
|
+
--slide-closing-title-size: 3.08em; /* closing-display @1920 = 80px ÷26 */
|
|
136
|
+
--slide-lead-size: 0.71em; /* body @1920 = 18.4px ÷26 */
|
|
137
|
+
--slide-kicker-size: clamp(12px, 0.71vw, 14px); /* title-pill 0.85rem=13.6px @1920 */
|
|
138
|
+
--slide-kicker-tracking: 0.12em; /* title-pill .12em */
|
|
139
|
+
--slide-kicker-transform: uppercase;
|
|
140
|
+
--slide-chrome-opacity: 0.5; /* slide-counter opacity .5 */
|
|
141
|
+
--slide-chrome-transform: uppercase; /* 计数器大写 */
|
|
142
|
+
--slide-kpi-number-size: 4em; /* stat-number @1920=48px ÷26 ÷0.46(li) */
|
|
143
|
+
--slide-quote-size: 1.85em; /* quote-display @1920 = 48px ÷26 */
|
|
144
|
+
--slide-page-pad-x: 3.33vw; /* slide 内边距 4rem=64px @1920 */
|
|
145
|
+
--slide-page-top-pad: 64px; /* 正文顶 48px + chrome 安全区 */
|
|
146
|
+
--slide-page-top-pad-print: 52px;
|
|
147
|
+
--slide-cover-text-align: center; /* P1 整页居中 */
|
|
148
|
+
--slide-cover-lead-inline: auto;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
|
|
152
|
+
body.presenting / body.slides-printing 作用域) ═══════════════ */
|
|
153
|
+
|
|
154
|
+
/* 1.6.0 全局微修:加粗收回 ink(上游借强调色,模板正文 strong 从不上糖果色);
|
|
155
|
+
导语行清缩进(SECTION 2.5 的 2em 缩进只属于文章阅读,放映页不留) */
|
|
156
|
+
body.presenting #editor .cm-content .cm-md-strong,
|
|
157
|
+
body.slides-printing #editor .cm-content .cm-md-strong {
|
|
158
|
+
color: var(--text-color);
|
|
159
|
+
font-weight: 600;
|
|
160
|
+
}
|
|
161
|
+
body.presenting #editor .cm-content .cm-md-page-lead,
|
|
162
|
+
body.slides-printing #editor .cm-content .cm-md-page-lead {
|
|
163
|
+
text-indent: 0;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* 1.6.1 页标题声部对齐:Bodoni 700 ink;压掉文档式 h1/h2 样式(含 border-bottom,
|
|
167
|
+
编辑器规则带 id 权重会漏进放映) */
|
|
168
|
+
body.presenting #editor .cm-content .cm-md-page-title,
|
|
169
|
+
body.slides-printing #editor .cm-content .cm-md-page-title {
|
|
170
|
+
font-family: var(--slide-title-font);
|
|
171
|
+
font-size: var(--slide-title-size);
|
|
172
|
+
font-weight: 700;
|
|
173
|
+
line-height: 1.05;
|
|
174
|
+
letter-spacing: -0.01em;
|
|
175
|
+
color: var(--text-color);
|
|
176
|
+
border-bottom: none;
|
|
177
|
+
padding-bottom: 0;
|
|
178
|
+
margin-bottom: 0.45em;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* 1.6.2 cover · P1:奶油居中舞台 + 112px Bodoni 800 + 黄色标题胶囊 kicker
|
|
182
|
+
(title-pill:2px ink 描边 9999px 圆角,padding 1.5rem 3.5rem ÷13.6px)
|
|
183
|
+
装饰胶囊墙/光晕未复刻(见文件头) */
|
|
184
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
|
|
185
|
+
body.slides-printing .cm-md-slide-cover.cm-md-page-title {
|
|
186
|
+
font-size: var(--slide-cover-title-size);
|
|
187
|
+
font-weight: 800;
|
|
188
|
+
line-height: 0.9;
|
|
189
|
+
letter-spacing: -0.02em;
|
|
190
|
+
}
|
|
191
|
+
/* 副标题 = main-title .subtitle:Space Grotesk 400 大写 .15em 17.6px 压淡 */
|
|
192
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-atxheading2,
|
|
193
|
+
body.slides-printing .cm-md-slide-cover.cm-md-atxheading2 {
|
|
194
|
+
font-family: var(--font-body);
|
|
195
|
+
font-size: 0.68em;
|
|
196
|
+
font-weight: 400;
|
|
197
|
+
line-height: 1.4;
|
|
198
|
+
letter-spacing: 0.15em;
|
|
199
|
+
text-transform: uppercase;
|
|
200
|
+
color: var(--text-color);
|
|
201
|
+
opacity: 0.6;
|
|
202
|
+
}
|
|
203
|
+
/* kicker → 黄色标题胶囊(上游 ::before 是标题行内 block,fit-content 收成胶囊) */
|
|
204
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
205
|
+
body.slides-printing .cm-md-slide-cover .cm-md-page-title[data-slide-kicker]::before {
|
|
206
|
+
width: fit-content;
|
|
207
|
+
margin: 0 auto 2.35em; /* title-pill margin-bottom 2rem */
|
|
208
|
+
padding: 1.7em 4.1em; /* 1.5rem/3.5rem ÷13.6px */
|
|
209
|
+
background: #f2d160;
|
|
210
|
+
border: 2px solid var(--seed-border-strong);
|
|
211
|
+
border-radius: 9999px;
|
|
212
|
+
font-family: var(--font-body);
|
|
213
|
+
font-weight: 600;
|
|
214
|
+
color: var(--text-color); /* ink on yellow 11.7:1 */
|
|
215
|
+
opacity: 1;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/* 1.6.3 two-col · P2/P9(split 文+视觉):页题 56px(headline clamp @1920);
|
|
219
|
+
accent-line = 标题上方 60×4 coral 胶囊短线(无 kicker 时经 ::before 复刻);
|
|
220
|
+
中缝细线与视觉栏未复刻(模板右栏为纯视觉轨道构成) */
|
|
221
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-title,
|
|
222
|
+
body.slides-printing .cm-md-slide-two-col.cm-md-page-title {
|
|
223
|
+
font-size: 2.15em; /* headline 56px ÷26 */
|
|
224
|
+
letter-spacing: -0.02em;
|
|
225
|
+
}
|
|
226
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-title:not([data-slide-kicker])::before,
|
|
227
|
+
body.slides-printing .cm-md-slide-two-col.cm-md-page-title:not([data-slide-kicker])::before {
|
|
228
|
+
content: '';
|
|
229
|
+
display: block;
|
|
230
|
+
width: 60px;
|
|
231
|
+
height: 4px;
|
|
232
|
+
margin-bottom: 0.3em; /* accent-line margin-bottom 16px ÷56px */
|
|
233
|
+
background: var(--seed-accent);
|
|
234
|
+
border-radius: 9999px; /* accent-line 60×4 coral 胶囊 */
|
|
235
|
+
}
|
|
236
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-content {
|
|
237
|
+
column-gap: 2.46em; /* grid gap 4rem=64px ÷26 */
|
|
238
|
+
column-rule: none; /* 模板分栏无中缝线 */
|
|
239
|
+
}
|
|
240
|
+
body.presenting #editor[data-slide-layout='two-col'] .cm-content .cm-md-page-lead,
|
|
241
|
+
body.slides-printing .cm-md-slide-two-col.cm-md-page-lead {
|
|
242
|
+
font-size: 0.71em;
|
|
243
|
+
max-width: 90%; /* .left-content p max-width 90% */
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/* 1.6.4 matrix · P3(three pillars):页题居中 48px + 淡紫 header-pill kicker;
|
|
247
|
+
白卡胶囊列(2px ink 描边 + 2rem 圆角 + 8px 硬偏移阴影);
|
|
248
|
+
序号 = 60px 圆形 coral 图标(card-icon,Roman 序号 → 行号近似) */
|
|
249
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-page-title,
|
|
250
|
+
body.slides-printing .cm-md-slide-matrix.cm-md-page-title {
|
|
251
|
+
text-align: center;
|
|
252
|
+
}
|
|
253
|
+
body.presenting #editor[data-slide-layout='matrix'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
254
|
+
body.slides-printing .cm-md-slide-matrix .cm-md-page-title[data-slide-kicker]::before {
|
|
255
|
+
width: fit-content;
|
|
256
|
+
margin: 0 auto 1.43em; /* header-pill margin-bottom 16px ÷11.2px */
|
|
257
|
+
padding: 0.57em 1.71em; /* header-pill 0.4rem/1.2rem ÷11.2px */
|
|
258
|
+
background: #c5b5e0; /* lavender header-pill */
|
|
259
|
+
border: 2px solid var(--seed-border-strong);
|
|
260
|
+
border-radius: 9999px;
|
|
261
|
+
font-family: var(--font-body);
|
|
262
|
+
font-weight: 600;
|
|
263
|
+
font-size: clamp(10px, 0.58vw, 11px); /* header-pill 0.7rem=11.2px @1920 */
|
|
264
|
+
letter-spacing: 0.1em;
|
|
265
|
+
color: var(--text-color); /* ink on lavender 9.2:1 */
|
|
266
|
+
opacity: 1;
|
|
267
|
+
}
|
|
268
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
|
|
269
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
|
|
270
|
+
width: 30.3%; /* 三列 + 2rem gap @1200 内栏 */
|
|
271
|
+
margin: 0 1.67% 1.5em 0;
|
|
272
|
+
padding: 2.78em 2.22em; /* card-pad 2.5rem/2rem ÷14.4px */
|
|
273
|
+
background: #ffffff; /* pillar-card 白卡 */
|
|
274
|
+
border: 2px solid var(--seed-border-strong);
|
|
275
|
+
border-radius: 2rem;
|
|
276
|
+
box-shadow: 8px 8px 0 rgba(26, 26, 26, 0.08);
|
|
277
|
+
font-size: 0.55em; /* card p 0.9rem=14.4px ÷26 */
|
|
278
|
+
line-height: 1.55;
|
|
279
|
+
vertical-align: top;
|
|
280
|
+
color: var(--text-muted); /* 卡片正文 65% 压淡档 */
|
|
281
|
+
}
|
|
282
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-listmark,
|
|
283
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-listmark {
|
|
284
|
+
display: inline-block;
|
|
285
|
+
width: 60px;
|
|
286
|
+
height: 60px;
|
|
287
|
+
line-height: 56px;
|
|
288
|
+
text-align: center;
|
|
289
|
+
background: var(--seed-accent); /* card-icon coral 圆 */
|
|
290
|
+
border: 2px solid var(--seed-border-strong);
|
|
291
|
+
border-radius: 50%;
|
|
292
|
+
font-family: var(--slide-title-font);
|
|
293
|
+
font-weight: 700;
|
|
294
|
+
font-size: 1.67em; /* icon 字 24px ÷26 ÷0.55 */
|
|
295
|
+
color: var(--text-color); /* ink on coral 5.1:1 */
|
|
296
|
+
margin-bottom: 0.8em;
|
|
297
|
+
}
|
|
298
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
|
|
299
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
|
|
300
|
+
display: block;
|
|
301
|
+
font-family: var(--slide-title-font);
|
|
302
|
+
font-size: 1.67em; /* card-headline 24px ÷26 ÷0.55 */
|
|
303
|
+
font-weight: 700;
|
|
304
|
+
line-height: 1.1;
|
|
305
|
+
color: var(--text-color); /* 模板:衬线卡题永远 ink */
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/* 1.6.5 kpi · P7(statistics):页题居中 48px;白卡胶囊四列(6px 硬偏移阴影);
|
|
309
|
+
stat-number 48px Bodoni 800 糖果色(coral,备案见文件头)+ 40×4 stat-bar */
|
|
310
|
+
body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title,
|
|
311
|
+
body.slides-printing .cm-md-slide-kpi.cm-md-page-title {
|
|
312
|
+
text-align: center;
|
|
313
|
+
}
|
|
314
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
|
|
315
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
|
|
316
|
+
width: 23.2%; /* 四列 + 1.5rem gap */
|
|
317
|
+
margin: 0 2.4% 1.4em 0;
|
|
318
|
+
padding: 2.67em 2em; /* stat-pill pad 2rem/1.5rem ÷12px */
|
|
319
|
+
background: #ffffff;
|
|
320
|
+
border: 2px solid var(--seed-border-strong);
|
|
321
|
+
border-radius: 2rem;
|
|
322
|
+
box-shadow: 6px 6px 0 rgba(26, 26, 26, 0.08);
|
|
323
|
+
font-size: 0.46em; /* stat-label 0.75rem=12px ÷26 */
|
|
324
|
+
line-height: 1.5;
|
|
325
|
+
text-align: center; /* stat-pill 居中 */
|
|
326
|
+
vertical-align: top;
|
|
327
|
+
color: var(--text-muted);
|
|
328
|
+
}
|
|
329
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
|
|
330
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
|
|
331
|
+
font-size: var(--slide-kpi-number-size);
|
|
332
|
+
font-weight: 800;
|
|
333
|
+
line-height: 1;
|
|
334
|
+
letter-spacing: -0.03em;
|
|
335
|
+
color: var(--seed-accent); /* CR-04 备案:糖果大数字 */
|
|
336
|
+
}
|
|
337
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li::after,
|
|
338
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li::after {
|
|
339
|
+
content: '';
|
|
340
|
+
display: block;
|
|
341
|
+
width: 40px;
|
|
342
|
+
height: 4px;
|
|
343
|
+
margin: 0.75em auto 0;
|
|
344
|
+
background: var(--seed-accent);
|
|
345
|
+
border-radius: 9999px; /* stat-bar 40×4 coral 胶囊 */
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/* 1.6.6 quote · P5(statement):无轨居中陈述——引用 48px Bodoni 600 直立
|
|
349
|
+
(模板非斜体)、max-width 900px 居中;巨引号 = quote-mark coral 30% 近似;
|
|
350
|
+
strong → lime 胶囊(quote-highlight:SG 700 大写 + 2px ink 描边);
|
|
351
|
+
署名行 = attribution SG 500 大写 .08em 压淡 */
|
|
352
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
|
|
353
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
|
|
354
|
+
font-style: normal;
|
|
355
|
+
font-size: var(--slide-quote-size);
|
|
356
|
+
font-weight: 600;
|
|
357
|
+
line-height: 1.35;
|
|
358
|
+
letter-spacing: -0.01em;
|
|
359
|
+
color: var(--text-color);
|
|
360
|
+
background: transparent;
|
|
361
|
+
border-left: none;
|
|
362
|
+
padding-left: 0;
|
|
363
|
+
padding-right: 0;
|
|
364
|
+
max-width: 50%; /* statement-box 900px ÷1792 内容宽 */
|
|
365
|
+
margin-inline: auto;
|
|
366
|
+
text-align: center;
|
|
367
|
+
}
|
|
368
|
+
body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
|
|
369
|
+
body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
|
|
370
|
+
font-size: 2.67em; /* quote-mark 128px ÷48px 引用字号(::before 按自身继承字号解析) */
|
|
371
|
+
line-height: 0.6;
|
|
372
|
+
color: var(--seed-accent);
|
|
373
|
+
opacity: 0.3; /* 模板 mark 压淡 30% */
|
|
374
|
+
}
|
|
375
|
+
/* quote-highlight 胶囊:行内强调换糖果底 + 描边(纵向 padding 在 span 上,不触 CSS-03) */
|
|
376
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-strong,
|
|
377
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-strong {
|
|
378
|
+
display: inline-block;
|
|
379
|
+
padding: 0.05em 0.3em; /* 0.1rem/0.8rem ÷48px */
|
|
380
|
+
background: var(--highlight-bg); /* lime 默认;alt sky 变体未复刻 */
|
|
381
|
+
border: 2px solid var(--seed-border-strong);
|
|
382
|
+
border-radius: 9999px;
|
|
383
|
+
font-family: var(--font-body);
|
|
384
|
+
font-weight: 700;
|
|
385
|
+
text-transform: uppercase;
|
|
386
|
+
color: var(--text-color);
|
|
387
|
+
}
|
|
388
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
|
|
389
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
|
|
390
|
+
margin-top: 2.35em; /* attribution margin-top 32px ÷13.6px(em 按自身字号解析) */
|
|
391
|
+
font-family: var(--font-body);
|
|
392
|
+
font-weight: 500;
|
|
393
|
+
font-size: 0.52em; /* .attribution 0.85rem=13.6px ÷26 */
|
|
394
|
+
letter-spacing: 0.08em;
|
|
395
|
+
text-transform: uppercase;
|
|
396
|
+
text-align: center;
|
|
397
|
+
text-indent: 0;
|
|
398
|
+
color: var(--text-color);
|
|
399
|
+
opacity: 0.5;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/* 1.6.7 steps · P6(phased implementation):页题居中 48px;白圆节点列——
|
|
403
|
+
序号 = 56px 白圆(step-node:2px ink 描边 + 4px 硬偏移阴影 + Bodoni 700),
|
|
404
|
+
步骤名 SG 600 大写 .06em;横排五列轨道未复刻(行式 DOM 纵排) */
|
|
405
|
+
body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-page-title,
|
|
406
|
+
body.slides-printing .cm-md-slide-steps.cm-md-page-title {
|
|
407
|
+
text-align: center;
|
|
408
|
+
}
|
|
409
|
+
body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
|
|
410
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
|
|
411
|
+
display: inline-block;
|
|
412
|
+
width: 17.6%; /* 五列 + 1rem gap @1920 */
|
|
413
|
+
margin: 0 1.7% 1.4em 0;
|
|
414
|
+
padding: 0;
|
|
415
|
+
background: transparent;
|
|
416
|
+
border: none;
|
|
417
|
+
border-left: none;
|
|
418
|
+
border-bottom: none;
|
|
419
|
+
border-radius: 0;
|
|
420
|
+
box-shadow: none;
|
|
421
|
+
font-size: 0.49em; /* step-desc 0.8rem=12.8px ÷26 */
|
|
422
|
+
line-height: 1.5;
|
|
423
|
+
vertical-align: top;
|
|
424
|
+
color: var(--text-muted);
|
|
425
|
+
text-align: left;
|
|
426
|
+
}
|
|
427
|
+
body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark,
|
|
428
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-listmark {
|
|
429
|
+
display: inline-block;
|
|
430
|
+
width: 56px;
|
|
431
|
+
height: 56px;
|
|
432
|
+
line-height: 52px;
|
|
433
|
+
text-align: center;
|
|
434
|
+
background: #ffffff; /* step-node 白圆 */
|
|
435
|
+
border: 2px solid var(--seed-border-strong);
|
|
436
|
+
border-radius: 50%;
|
|
437
|
+
box-shadow: 4px 4px 0 rgba(26, 26, 26, 0.08);
|
|
438
|
+
font-family: var(--slide-title-font);
|
|
439
|
+
font-weight: 700;
|
|
440
|
+
font-size: 1.63em; /* node 字 1.3rem=20.8px ÷26 ÷0.49 */
|
|
441
|
+
color: var(--text-color);
|
|
442
|
+
margin-right: 0;
|
|
443
|
+
}
|
|
444
|
+
body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong,
|
|
445
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
|
|
446
|
+
display: block;
|
|
447
|
+
margin-top: 0.8em;
|
|
448
|
+
border: none;
|
|
449
|
+
border-radius: 0;
|
|
450
|
+
background: transparent;
|
|
451
|
+
padding: 0;
|
|
452
|
+
min-width: 0;
|
|
453
|
+
font-family: var(--font-body);
|
|
454
|
+
font-size: 1em; /* step-label 12.8px = li 基准 */
|
|
455
|
+
font-weight: 600;
|
|
456
|
+
letter-spacing: 0.06em;
|
|
457
|
+
text-transform: uppercase;
|
|
458
|
+
color: var(--text-color);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/* 1.6.8 figure · P4/P8(chart/diagram):页题居中 48px;
|
|
462
|
+
Mermaid/Pele SVG 托白卡(chart-container:2px ink 描边 + 2rem 圆角 +
|
|
463
|
+
8px 硬偏移阴影);胶囊条形轨道与箭头连接线未复刻(见文件头) */
|
|
464
|
+
body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-page-title,
|
|
465
|
+
body.slides-printing .cm-md-slide-figure.cm-md-page-title {
|
|
466
|
+
text-align: center;
|
|
467
|
+
}
|
|
468
|
+
body.presenting #editor[data-slide-layout='figure'] svg.pele,
|
|
469
|
+
body.slides-printing .cm-md-slide-figure svg.pele {
|
|
470
|
+
border: 2px solid var(--seed-border-strong);
|
|
471
|
+
border-radius: 2rem;
|
|
472
|
+
box-shadow: 8px 8px 0 rgba(26, 26, 26, 0.08);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/* 1.6.9 closing · P10(thank you):整页居中 + 80px Bodoni 800 收束判断;
|
|
476
|
+
kicker → 黄色 closing-pill(padding 1rem/2.5rem ÷12.8px);
|
|
477
|
+
标题下 80×4 coral 胶囊短线 = closing-line(经 ::after);
|
|
478
|
+
行动清单无对应元素,保持上游 ▸ 声部 */
|
|
479
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content {
|
|
480
|
+
text-align: center;
|
|
481
|
+
}
|
|
482
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title,
|
|
483
|
+
body.slides-printing .cm-md-slide-closing.cm-md-page-title {
|
|
484
|
+
font-size: var(--slide-closing-title-size);
|
|
485
|
+
font-weight: 800;
|
|
486
|
+
line-height: 0.95;
|
|
487
|
+
letter-spacing: -0.03em;
|
|
488
|
+
max-width: 8.75em; /* closing h2 max-width 700px ÷80px */
|
|
489
|
+
}
|
|
490
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
491
|
+
body.slides-printing .cm-md-slide-closing .cm-md-page-title[data-slide-kicker]::before {
|
|
492
|
+
width: fit-content;
|
|
493
|
+
margin: 0 auto 1.6em;
|
|
494
|
+
padding: 1.25em 3.1em; /* closing-pill 1rem/2.5rem ÷12.8px */
|
|
495
|
+
background: #f2d160;
|
|
496
|
+
border: 2px solid var(--seed-border-strong);
|
|
497
|
+
border-radius: 9999px;
|
|
498
|
+
font-family: var(--font-body);
|
|
499
|
+
font-weight: 600;
|
|
500
|
+
color: var(--text-color);
|
|
501
|
+
opacity: 1;
|
|
502
|
+
}
|
|
503
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title::after,
|
|
504
|
+
body.slides-printing .cm-md-slide-closing.cm-md-page-title::after {
|
|
505
|
+
content: '';
|
|
506
|
+
display: block;
|
|
507
|
+
width: 80px;
|
|
508
|
+
height: 4px;
|
|
509
|
+
margin: 0.3em auto 0; /* closing-line margin-top 24px ÷80px */
|
|
510
|
+
background: var(--seed-accent);
|
|
511
|
+
border-radius: 9999px; /* closing-line 80×4 coral 胶囊 */
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/* 1.6.10 chrome · slide-counter(右下)/nav-hint(左下):Space Grotesk 500
|
|
515
|
+
大写小字(模板无等宽面,--slide-mono 即 SG) */
|
|
516
|
+
body.presenting .slide-chrome,
|
|
517
|
+
body.slides-printing .slide-chrome {
|
|
518
|
+
font-size: clamp(11px, 0.63vw, 12px); /* slide-counter 0.75rem=12px @1920 */
|
|
519
|
+
letter-spacing: 0.1em;
|
|
520
|
+
font-weight: 500;
|
|
521
|
+
color: var(--text-color);
|
|
522
|
+
}
|
|
523
|
+
body.presenting .slide-foot,
|
|
524
|
+
body.slides-printing .slide-foot {
|
|
525
|
+
font-size: clamp(9px, 0.55vw, 10px); /* nav-hint 0.65rem=10.4px @1920 */
|
|
526
|
+
letter-spacing: 0.08em;
|
|
527
|
+
opacity: 0.3; /* nav-hint opacity .3 */
|
|
528
|
+
color: var(--text-color);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
/* ═══════════════════════════════════════════════════════════
|
|
532
|
+
SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
|
|
533
|
+
═══════════════════════════════════════════════════════════ */
|
|
534
|
+
|
|
535
|
+
#editor .cm-content {
|
|
536
|
+
font-family: var(--font-body);
|
|
537
|
+
line-height: 1.6;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
/* ── 2.1 Headings(Bodoni didone 声部:700/800、负字距、紧行高;模板无下划线)── */
|
|
541
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
542
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
543
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
544
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
545
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
546
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
547
|
+
font-family: "Bodoni Moda", "ZCOOL XiaoWei", "Noto Serif SC", serif;
|
|
548
|
+
color: var(--text-color);
|
|
549
|
+
font-weight: 700;
|
|
550
|
+
line-height: 1.05;
|
|
551
|
+
letter-spacing: -0.02em;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
#editor .cm-content .cm-md-atxheading1 {
|
|
555
|
+
font-size: 2.7em;
|
|
556
|
+
line-height: 1.05;
|
|
557
|
+
}
|
|
558
|
+
#editor .cm-content .cm-md-atxheading2 {
|
|
559
|
+
font-size: 2.1em;
|
|
560
|
+
line-height: 1.05;
|
|
561
|
+
}
|
|
562
|
+
#editor .cm-content .cm-md-atxheading3 { font-size: 1.6em; }
|
|
563
|
+
#editor .cm-content .cm-md-atxheading4 { font-size: 1.3em; }
|
|
564
|
+
#editor .cm-content .cm-md-atxheading5 { font-size: 1.12em; }
|
|
565
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
566
|
+
font-size: 1em;
|
|
567
|
+
font-family: var(--font-body);
|
|
568
|
+
font-weight: 600;
|
|
569
|
+
letter-spacing: 0.12em; /* 模板 label/pill 小字声部 */
|
|
570
|
+
text-transform: uppercase;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
/* ── 2.2 Inline(strong 永远 ink——CR-04,糖果色只上胶囊底)── */
|
|
574
|
+
#editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 600; }
|
|
575
|
+
#editor .cm-content .cm-md-em { font-style: italic; }
|
|
576
|
+
#editor .cm-content .cm-md-strike { text-decoration: line-through; }
|
|
577
|
+
#editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
|
|
578
|
+
#editor .cm-content .cm-md-link { color: var(--link-color); }
|
|
579
|
+
#editor .cm-content .cm-md-url { color: var(--text-muted); }
|
|
580
|
+
|
|
581
|
+
/* 行内代码 = 胶囊:9999px 圆角(一切容器皆胶囊的体系身份) */
|
|
582
|
+
#editor .cm-content .cm-md-inlinecode {
|
|
583
|
+
font-family: var(--font-mono);
|
|
584
|
+
background: var(--code-bg);
|
|
585
|
+
color: var(--text-color);
|
|
586
|
+
border-radius: 9999px;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
#editor .cm-content .cm-md-marker,
|
|
590
|
+
#editor .cm-content .cm-md-quotemark,
|
|
591
|
+
#editor .cm-content .cm-md-listmark {
|
|
592
|
+
color: var(--text-muted);
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
|
|
596
|
+
引用走 coral 左轨(accent-line 声部);代码块描白边成 2px ink 卡片,
|
|
597
|
+
圆角只落在首尾行。引用底色由编辑器按 --blockquote-bg 画,这里不写 background。 */
|
|
598
|
+
#editor .cm-content .cm-md-blockquote {
|
|
599
|
+
color: var(--text-secondary);
|
|
600
|
+
border-left: 2px solid var(--blockquote-border);
|
|
601
|
+
padding-left: 16px;
|
|
602
|
+
padding-right: 16px;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
#editor .cm-content .cm-md-codeblock {
|
|
606
|
+
background: var(--code-block-bg);
|
|
607
|
+
color: var(--code-block-text);
|
|
608
|
+
border-left: 2px solid var(--seed-border-strong);
|
|
609
|
+
border-right: 2px solid var(--seed-border-strong);
|
|
610
|
+
padding-left: 16px;
|
|
611
|
+
padding-right: 16px;
|
|
612
|
+
}
|
|
613
|
+
#editor .cm-content .cm-md-codeblock-first {
|
|
614
|
+
border-top: 2px solid var(--seed-border-strong);
|
|
615
|
+
border-top-left-radius: 16px;
|
|
616
|
+
border-top-right-radius: 16px;
|
|
617
|
+
}
|
|
618
|
+
#editor .cm-content .cm-md-codeblock-last {
|
|
619
|
+
border-bottom: 2px solid var(--seed-border-strong);
|
|
620
|
+
border-bottom-left-radius: 16px;
|
|
621
|
+
border-bottom-right-radius: 16px;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/* ── 2.4 Table / Rule(模板无表格;表头按 label 小字声部 + ink 粗定标线)── */
|
|
625
|
+
#editor .cm-content .cm-md-table-widget th,
|
|
626
|
+
#editor .cm-content .cm-md-table-widget td {
|
|
627
|
+
padding: 10px 14px;
|
|
628
|
+
border-color: rgba(26, 26, 26, 0.2);
|
|
629
|
+
}
|
|
630
|
+
#editor .cm-content .cm-md-table-widget th {
|
|
631
|
+
background: var(--table-header-bg);
|
|
632
|
+
color: var(--text-color);
|
|
633
|
+
font-family: var(--font-body);
|
|
634
|
+
font-size: 0.78em;
|
|
635
|
+
font-weight: 600;
|
|
636
|
+
letter-spacing: 0.1em;
|
|
637
|
+
text-transform: uppercase;
|
|
638
|
+
border-bottom: 2px solid var(--seed-border-strong);
|
|
639
|
+
}
|
|
640
|
+
#editor .cm-content .cm-md-hr { border-top-color: var(--seed-border-strong); }
|
|
641
|
+
|
|
642
|
+
/* ── 2.5 中文首行缩进 ──
|
|
643
|
+
CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
|
|
644
|
+
#editor .cm-content .cm-line { text-indent: 2em; }
|
|
645
|
+
|
|
646
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
647
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
648
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
649
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
650
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
651
|
+
#editor .cm-content .cm-md-atxheading6,
|
|
652
|
+
#editor .cm-content .cm-md-blockquote,
|
|
653
|
+
#editor .cm-content .cm-md-codeblock,
|
|
654
|
+
#editor .cm-content .cm-md-hr,
|
|
655
|
+
#editor .cm-content .cm-md-mermaid,
|
|
656
|
+
#editor .cm-content .cm-md-li-0,
|
|
657
|
+
#editor .cm-content .cm-md-li-1,
|
|
658
|
+
#editor .cm-content .cm-md-li-2,
|
|
659
|
+
#editor .cm-content .cm-md-li-3,
|
|
660
|
+
#editor .cm-content .cm-md-li-4,
|
|
661
|
+
#editor .cm-content .cm-md-li-5,
|
|
662
|
+
#editor .cm-content .cm-md-li-6 {
|
|
663
|
+
text-indent: 0;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/* ═══════════════════════════════════════════════════════════
|
|
667
|
+
SECTION 3 — Exported HTML(.colamd-document,语义标签)
|
|
668
|
+
HTML/PDF 导出不走编辑器 DOM;这段让导出件沿用同一套配色。
|
|
669
|
+
═══════════════════════════════════════════════════════════ */
|
|
670
|
+
|
|
671
|
+
.colamd-document {
|
|
672
|
+
font-family: var(--font-body);
|
|
673
|
+
font-size: 16px;
|
|
674
|
+
line-height: 1.6;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
.colamd-document h1,
|
|
678
|
+
.colamd-document h2,
|
|
679
|
+
.colamd-document h3,
|
|
680
|
+
.colamd-document h4,
|
|
681
|
+
.colamd-document h5,
|
|
682
|
+
.colamd-document h6 {
|
|
683
|
+
font-family: "Bodoni Moda", "ZCOOL XiaoWei", "Noto Serif SC", serif;
|
|
684
|
+
color: var(--text-color);
|
|
685
|
+
font-weight: 700;
|
|
686
|
+
line-height: 1.05;
|
|
687
|
+
letter-spacing: -0.02em;
|
|
688
|
+
margin: 1.5em 0 0.5em;
|
|
689
|
+
}
|
|
690
|
+
.colamd-document h1 { font-size: 2.7em; line-height: 1.05; margin-top: 0.4em; }
|
|
691
|
+
.colamd-document h2 { font-size: 2.1em; line-height: 1.05; }
|
|
692
|
+
.colamd-document h3 { font-size: 1.6em; }
|
|
693
|
+
.colamd-document h4 { font-size: 1.3em; }
|
|
694
|
+
.colamd-document h5 { font-size: 1.12em; }
|
|
695
|
+
.colamd-document h6 {
|
|
696
|
+
font-size: 1em;
|
|
697
|
+
font-family: var(--font-body);
|
|
698
|
+
font-weight: 600;
|
|
699
|
+
letter-spacing: 0.12em;
|
|
700
|
+
text-transform: uppercase;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.colamd-document strong { color: var(--text-color); font-weight: 600; }
|
|
704
|
+
/* 行内代码胶囊(与编辑器一致) */
|
|
705
|
+
.colamd-document code {
|
|
706
|
+
background: var(--code-bg);
|
|
707
|
+
color: var(--text-color);
|
|
708
|
+
font-family: var(--font-mono);
|
|
709
|
+
border-radius: 9999px;
|
|
710
|
+
}
|
|
711
|
+
/* Pele SVG 白卡(chart-container 声部):白底 + 2px ink 描边 + 硬偏移阴影 */
|
|
712
|
+
.colamd-document svg.pele {
|
|
713
|
+
background: var(--pele-bg);
|
|
714
|
+
border: 2px solid var(--seed-border-strong);
|
|
715
|
+
border-radius: var(--pele-radius);
|
|
716
|
+
box-shadow: 8px 8px 0 rgba(26, 26, 26, 0.08);
|
|
717
|
+
}
|
|
718
|
+
.colamd-document pre {
|
|
719
|
+
background: var(--code-block-bg);
|
|
720
|
+
border: 2px solid var(--seed-border-strong);
|
|
721
|
+
border-radius: 16px;
|
|
722
|
+
}
|
|
723
|
+
.colamd-document pre code { color: var(--code-block-text); background: transparent; border-radius: 0; }
|
|
724
|
+
.colamd-document blockquote {
|
|
725
|
+
background: var(--blockquote-bg);
|
|
726
|
+
color: var(--text-secondary);
|
|
727
|
+
border-left: 2px solid var(--blockquote-border);
|
|
728
|
+
padding: 0.5em 1.2em;
|
|
729
|
+
}
|
|
730
|
+
.colamd-document mark { background: var(--highlight-bg); }
|
|
731
|
+
.colamd-document th,
|
|
732
|
+
.colamd-document td {
|
|
733
|
+
border-color: rgba(26, 26, 26, 0.2);
|
|
734
|
+
padding: 10px 14px;
|
|
735
|
+
}
|
|
736
|
+
.colamd-document th {
|
|
737
|
+
background: var(--table-header-bg);
|
|
738
|
+
font-size: 0.78em;
|
|
739
|
+
font-weight: 600;
|
|
740
|
+
letter-spacing: 0.1em;
|
|
741
|
+
text-transform: uppercase;
|
|
742
|
+
border-bottom: 2px solid var(--seed-border-strong);
|
|
743
|
+
}
|
|
744
|
+
.colamd-document hr { border-top-color: var(--seed-border-strong); }
|
|
745
|
+
|
|
746
|
+
.colamd-document p { text-indent: 2em; }
|
|
747
|
+
.colamd-document li p,
|
|
748
|
+
.colamd-document td p,
|
|
749
|
+
.colamd-document th p,
|
|
750
|
+
.colamd-document blockquote p {
|
|
751
|
+
text-indent: 0;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/* ═══════════════════════════════════════════════════════════
|
|
755
|
+
SECTION 4 — Print
|
|
756
|
+
应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
|
|
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
|
+
}
|