@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,648 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ColaMD Theme: Pink Script Dark(粉墨脚本 · 暗底精修版)
|
|
3
|
+
* 来源:D:\workspace\git\beautiful-html-templates\templates\pink-script\
|
|
4
|
+
* template.html + design.md(nocturnal couture editorial:热粉油墨印在暗暖黑纸上)
|
|
5
|
+
* colors: ink-deep #060507 / ink-violet #0F0D11 / paper-blush #F5EDF1
|
|
6
|
+
* pink #ED3D8C / pink-deep #B81D67 / line-pink rgba(237,61,140,.32)
|
|
7
|
+
* hair-paper rgba(245,237,241,.14)
|
|
8
|
+
* fonts: DM Serif Display(编辑体标题)/ Inter 300(正文)/ JetBrains Mono(元数据)
|
|
9
|
+
* 与工具生成版(themes/pink-script.css,from-html 提取,奶油纸方向)并存互不覆盖。
|
|
10
|
+
* 模板特有约定(已落实):零圆角、1px 发丝线体系、粉色 kicker、
|
|
11
|
+
* 标题 halo 光晕 text-shadow、标题内 em 切粉色、引用左轨 1px 粉线
|
|
12
|
+
* 契约:ColaMD 2.7.13(:root 活变量;CM6 每行一 div;引用/代码块禁纵向 padding;
|
|
13
|
+
* .cm-md-blockquote 不写 background;SECTION 1.5 为幻灯片 --slide-* 令牌)
|
|
14
|
+
*
|
|
15
|
+
* paradigm 说明(近黑底陷阱):surface/panel 在极低明度下 HSL 饱和度被放大,
|
|
16
|
+
* 模板 #060507/#0F0D11 直接用会触发 SL-01/SL-02;且 hslHue 对 max==min 返回 0,
|
|
17
|
+
* 带 1 级蓝差的面板(H240)又会撞 SL-03 —— 三层表面必须完全中性:
|
|
18
|
+
* #060606 / #0e0e0e / #111111(与模板差 1-2/255,肉眼不可辨)。
|
|
19
|
+
* 粉色身份由 accent / 边框 / kicker / 高亮 / Pele 承担,paradigm 全过。
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
:root {
|
|
23
|
+
/* ── 1.1 Seed Palette(11 色) ── */
|
|
24
|
+
--seed-accent: #ED3D8C; /* pink —— 全系统唯一彩色 */
|
|
25
|
+
--seed-accent-light: rgba(237, 61, 140, 0.16);
|
|
26
|
+
--seed-accent-dark: #B81D67; /* pink-deep */
|
|
27
|
+
--seed-surface: #060606; /* ink-deep 中性化(SL-01:S=0) */
|
|
28
|
+
--seed-panel: #0e0e0e; /* ≈ink-violet,全中性(max==min → H0 与 surface 同轴) */
|
|
29
|
+
--seed-panel-alt: #111111; /* L 6.7%(SL-04:surface < panel < panelAlt) */
|
|
30
|
+
--seed-ink: #F5EDF1; /* paper-blush */
|
|
31
|
+
--seed-ink-muted: #b9aab2; /* mute-paper 轴向对齐版(NT-01 H328) */
|
|
32
|
+
--seed-ink-dim: #8c8287; /* H330,辅助文字 */
|
|
33
|
+
--seed-border: #272528; /* hair-paper 14% over surface(NT-03 中性发丝) */
|
|
34
|
+
--seed-border-strong: #B81D67; /* pink-deep 强调边框 */
|
|
35
|
+
|
|
36
|
+
/* ── 1.2 Semantic Colors(27 活变量 · 14 色) ── */
|
|
37
|
+
--bg-color: var(--seed-surface);
|
|
38
|
+
--text-color: var(--seed-ink);
|
|
39
|
+
--text-secondary: var(--seed-ink-muted);
|
|
40
|
+
--text-muted: var(--seed-ink-dim);
|
|
41
|
+
--border-color: var(--seed-border);
|
|
42
|
+
--link-color: var(--seed-accent);
|
|
43
|
+
|
|
44
|
+
--code-bg: #120a11; /* pink 8% over surface */
|
|
45
|
+
--code-block-bg: var(--seed-panel-alt);
|
|
46
|
+
--code-block-text: var(--seed-ink);
|
|
47
|
+
|
|
48
|
+
--blockquote-border: var(--seed-accent); /* 模板:1px 粉色左轨 */
|
|
49
|
+
--blockquote-bg: #14090f; /* pink 6% over surface */
|
|
50
|
+
--table-header-bg: #160b10; /* pink 7% over surface */
|
|
51
|
+
|
|
52
|
+
--selection-bg: rgba(237, 61, 140, 0.35);
|
|
53
|
+
--highlight-bg: #4b172f; /* pink 30% over surface */
|
|
54
|
+
|
|
55
|
+
/* ── 1.3 Typography & Metrics(4 活变量) ── */
|
|
56
|
+
--font-body: "Inter", "Noto Sans SC", source-han-sans-sc, "PingFang SC",
|
|
57
|
+
"Microsoft YaHei", system-ui, sans-serif;
|
|
58
|
+
--font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace,
|
|
59
|
+
"Noto Sans SC", monospace;
|
|
60
|
+
--editor-font-size: 16px; /* 模板 body 16px */
|
|
61
|
+
--editor-column-width: 840px;
|
|
62
|
+
|
|
63
|
+
/* ── 1.4 Pele Diagram(9 活变量) ── */
|
|
64
|
+
--pele-bg: var(--code-block-bg);
|
|
65
|
+
--pele-fg: var(--text-color);
|
|
66
|
+
--pele-muted: var(--seed-ink-dim);
|
|
67
|
+
--pele-line: var(--seed-ink-muted);
|
|
68
|
+
--pele-surface: var(--seed-panel);
|
|
69
|
+
--pele-surface-alt: var(--seed-panel-alt);
|
|
70
|
+
--pele-border: rgba(237, 61, 140, 0.42); /* 模板:图表轴线 = pink 32-42% */
|
|
71
|
+
--pele-accent: var(--seed-accent);
|
|
72
|
+
--pele-radius: 0px; /* 模板:结构元素零圆角 */
|
|
73
|
+
|
|
74
|
+
/* ── 1.5 PPT 幻灯片令牌(ColaMD 2.7.13 slides · 按 pink-script 九页逐页复刻) ──
|
|
75
|
+
换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
|
|
76
|
+
模板 1920 画布 px ÷ 26 = em。页面对照(指定参照):
|
|
77
|
+
cover←s-cover(P1) agenda←s-toc(P2) section←s-stats(P3)
|
|
78
|
+
figure←s-chart(P5) steps←s-process(P6) matrix←s-matrix(P7)
|
|
79
|
+
quote←s-quote(P8) closing←s-cta(P9) kpi 沿用 s-stats 数字形态
|
|
80
|
+
(s-section(P4) 与 timeline/two-col 无指定,保持上游默认) */
|
|
81
|
+
--slide-serif: "DM Serif Display", "Noto Serif SC", "Songti SC", Georgia, serif;
|
|
82
|
+
--slide-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
|
|
83
|
+
--slide-title-font: "DM Serif Display", "Noto Serif SC", "Songti SC", Georgia, serif;
|
|
84
|
+
--slide-title-weight: 400; /* DM Serif Display 仅 400 */
|
|
85
|
+
--slide-subhead-weight: 400;
|
|
86
|
+
--slide-title-size: 5.1em; /* s-stats/s-matrix h2 132px ÷26 */
|
|
87
|
+
--slide-title-tracking: -0.01em; /* 模板 .script 字距 */
|
|
88
|
+
--slide-title-line-height: 1.05; /* 模板 .script 行高 */
|
|
89
|
+
--slide-cover-title-size: 10.8em; /* s-cover title 280px ÷26 */
|
|
90
|
+
--slide-cover-title-line-height: 1.02;
|
|
91
|
+
--slide-cover-title-tracking: -0.015em;
|
|
92
|
+
--slide-section-title-size: 5.1em; /* P3 s-stats h2 132px ÷26 */
|
|
93
|
+
--slide-closing-title-size: 5.4em; /* s-cta h2 140px ÷26 */
|
|
94
|
+
--slide-lead-size: 0.95em; /* 模板 Inter 300 描述 24-26px ÷26 */
|
|
95
|
+
--slide-kicker-size: clamp(18px, 1.25vw, 24px); /* 模板 kicker 22-28px @1920 */
|
|
96
|
+
--slide-kicker-tracking: 0.18em; /* s-stats kicker;封面 .42em 由 1.6.2 页级覆盖 */
|
|
97
|
+
--slide-kicker-transform: uppercase;
|
|
98
|
+
--slide-chrome-opacity: 0.85; /* runner 用 mute 色,透明度留给淡出过渡 */
|
|
99
|
+
--slide-chrome-transform: uppercase;
|
|
100
|
+
--slide-kpi-number-size: 4.5em; /* s-stats figure 116px ÷26 */
|
|
101
|
+
--slide-quote-size: 3.5em; /* s-quote blockquote 92px ÷26 */
|
|
102
|
+
--slide-page-pad-x: 3.2vw; /* 模板页边距 60px @1920 */
|
|
103
|
+
--slide-page-top-pad: 132px; /* 模板正文顶 140px − chrome 安全区 */
|
|
104
|
+
--slide-page-top-pad-print: 116px;
|
|
105
|
+
--slide-cover-text-align: center; /* s-cover 舞台居中(stage flex center) */
|
|
106
|
+
--slide-cover-lead-inline: auto;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
|
|
110
|
+
body.presenting / body.slides-printing 作用域;仅已知令牌 + 版式类) ═══ */
|
|
111
|
+
|
|
112
|
+
/* 1.6.1 页标题声部对齐:主题文档式标题(#editor .cm-content 权重)会在放映时
|
|
113
|
+
压过 slides.css 的页标题规则——这里以更高权重重新断言 slides 声部。
|
|
114
|
+
模板内容页标题 = paper 色,em 才切粉(s-stats/s-chart/s-matrix/s-cta h2)。 */
|
|
115
|
+
body.presenting #editor .cm-content .cm-md-page-title,
|
|
116
|
+
body.slides-printing #editor .cm-content .cm-md-page-title {
|
|
117
|
+
font-family: var(--slide-title-font);
|
|
118
|
+
font-size: var(--slide-title-size);
|
|
119
|
+
font-weight: var(--slide-title-weight);
|
|
120
|
+
line-height: var(--slide-title-line-height);
|
|
121
|
+
letter-spacing: var(--slide-title-tracking);
|
|
122
|
+
color: var(--text-color);
|
|
123
|
+
border-bottom: none;
|
|
124
|
+
padding-bottom: 0.1em;
|
|
125
|
+
margin-bottom: 0.35em;
|
|
126
|
+
}
|
|
127
|
+
body.presenting #editor .cm-content .cm-md-page-title .cm-md-em,
|
|
128
|
+
body.slides-printing #editor .cm-content .cm-md-page-title .cm-md-em {
|
|
129
|
+
color: var(--seed-accent);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* 1.6.2 cover · After Hours:居中粉字巨题 + 80px halo + .42em 宽字距 pre +
|
|
133
|
+
Inter 300 大写副题(s-cover .pre/.title/.sub) */
|
|
134
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
|
|
135
|
+
body.slides-printing .cm-md-slide-cover.cm-md-page-title {
|
|
136
|
+
font-size: var(--slide-cover-title-size);
|
|
137
|
+
color: var(--seed-accent);
|
|
138
|
+
text-shadow: 0 0 80px rgba(237, 61, 140, 0.18);
|
|
139
|
+
}
|
|
140
|
+
body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
141
|
+
body.slides-printing #editor .cm-content .cm-md-page-title[data-slide-kicker]::before {
|
|
142
|
+
color: var(--text-color);
|
|
143
|
+
opacity: 0.75;
|
|
144
|
+
}
|
|
145
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title[data-slide-kicker]::before {
|
|
146
|
+
letter-spacing: 0.42em;
|
|
147
|
+
}
|
|
148
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-atxheading2,
|
|
149
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-atxheading3,
|
|
150
|
+
body.slides-printing .cm-md-slide-cover .cm-md-atxheading2,
|
|
151
|
+
body.slides-printing .cm-md-slide-cover .cm-md-atxheading3 {
|
|
152
|
+
font-family: var(--font-body);
|
|
153
|
+
font-weight: 300;
|
|
154
|
+
font-size: 1.1em;
|
|
155
|
+
letter-spacing: 0.12em;
|
|
156
|
+
text-transform: uppercase;
|
|
157
|
+
color: var(--text-color);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* 1.6.3 section · 参照模板第 3 页 s-stats(By the Numbers)左栏:
|
|
161
|
+
粉色 mono kicker → 132px paper 大标题(em 切粉)→ Inter 压淡导语;
|
|
162
|
+
内容顶部对齐(模板 body inset 140px),不再垂直居中 */
|
|
163
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content {
|
|
164
|
+
justify-content: flex-start;
|
|
165
|
+
min-height: 92vh;
|
|
166
|
+
padding-top: 140px;
|
|
167
|
+
}
|
|
168
|
+
body.presenting #editor .cm-content .cm-md-slide-section .cm-md-page-title,
|
|
169
|
+
body.slides-printing .cm-md-slide-section.cm-md-page-title {
|
|
170
|
+
font-size: var(--slide-section-title-size);
|
|
171
|
+
max-width: 10em;
|
|
172
|
+
}
|
|
173
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
174
|
+
body.slides-printing .cm-md-slide-section .cm-md-page-title[data-slide-kicker]::before {
|
|
175
|
+
color: var(--seed-accent);
|
|
176
|
+
opacity: 1;
|
|
177
|
+
}
|
|
178
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
|
|
179
|
+
body.slides-printing .cm-md-slide-section.cm-md-page-lead {
|
|
180
|
+
font-size: 0.92em;
|
|
181
|
+
color: var(--text-muted);
|
|
182
|
+
max-width: 42%;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/* 1.6.4 kpi · By the Numbers:粉色衬线大数字,行高 .9(s-stats .figure) */
|
|
186
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
|
|
187
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
|
|
188
|
+
color: var(--seed-accent);
|
|
189
|
+
font-weight: 400;
|
|
190
|
+
line-height: 0.9;
|
|
191
|
+
letter-spacing: -0.01em;
|
|
192
|
+
}
|
|
193
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-page-title[data-slide-kicker]::before,
|
|
194
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-page-title[data-slide-kicker]::before {
|
|
195
|
+
color: var(--seed-accent);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* 1.6.5 agenda · 参照模板第 2 页 s-toc(The Index):
|
|
199
|
+
页题 220px 粉衬线(h1 ÷26);行式条目 = hairline 底线,衬线粉序号 64px、
|
|
200
|
+
衬线 paper 章名 56px、说明 24px mute */
|
|
201
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-page-title,
|
|
202
|
+
body.slides-printing .cm-md-slide-agenda.cm-md-page-title {
|
|
203
|
+
font-size: 8.5em;
|
|
204
|
+
line-height: 1.04;
|
|
205
|
+
color: var(--seed-accent);
|
|
206
|
+
}
|
|
207
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
|
|
208
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
|
|
209
|
+
font-size: 0.92em;
|
|
210
|
+
margin: 0;
|
|
211
|
+
padding: 1em 0;
|
|
212
|
+
border-top: none;
|
|
213
|
+
border-bottom: 1px solid var(--border-color);
|
|
214
|
+
}
|
|
215
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
|
|
216
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
|
|
217
|
+
font-family: var(--slide-title-font);
|
|
218
|
+
font-size: 2.67em; /* 64px ÷26 ÷0.92(li) */
|
|
219
|
+
line-height: 1;
|
|
220
|
+
font-weight: 400;
|
|
221
|
+
margin-right: 0.5em;
|
|
222
|
+
}
|
|
223
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-strong,
|
|
224
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-strong {
|
|
225
|
+
font-family: var(--slide-title-font);
|
|
226
|
+
font-size: 2.34em; /* 56px ÷26 ÷0.92(li) */
|
|
227
|
+
font-weight: 400;
|
|
228
|
+
color: var(--text-color);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* 1.6.6 steps · 参照模板第 6 页 s-process(Process):
|
|
232
|
+
页题 156px paper(em 切粉);五列横排步骤条——顶线 1px 粉、衬线粉序号 96px、
|
|
233
|
+
衬线 paper 步骤名 38px、说明 22px mute(.row .step) */
|
|
234
|
+
body.presenting #editor[data-slide-layout='steps'] .cm-content .cm-md-page-title,
|
|
235
|
+
body.slides-printing .cm-md-slide-steps.cm-md-page-title {
|
|
236
|
+
font-size: 6em; /* 156px ÷26 */
|
|
237
|
+
max-width: 12ch;
|
|
238
|
+
}
|
|
239
|
+
body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
|
|
240
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
|
|
241
|
+
display: inline-block;
|
|
242
|
+
width: 18.4%; /* 五列 + 24px gap @1920 */
|
|
243
|
+
margin: 0 1.9% 1.2em 0;
|
|
244
|
+
vertical-align: top;
|
|
245
|
+
border-left: none;
|
|
246
|
+
border-bottom: none;
|
|
247
|
+
border-top: 1px solid rgba(237, 61, 140, 0.45);
|
|
248
|
+
padding: 0.9em 0 0;
|
|
249
|
+
font-size: 0.85em; /* 说明 22px ÷26 */
|
|
250
|
+
text-align: left;
|
|
251
|
+
list-style: none;
|
|
252
|
+
}
|
|
253
|
+
body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark,
|
|
254
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-listmark {
|
|
255
|
+
display: inline;
|
|
256
|
+
font-family: var(--slide-title-font);
|
|
257
|
+
font-size: 4.35em; /* 96px ÷26 ÷0.85(li) */
|
|
258
|
+
font-weight: 400;
|
|
259
|
+
line-height: 1;
|
|
260
|
+
color: var(--seed-accent);
|
|
261
|
+
margin-right: 0.3em;
|
|
262
|
+
}
|
|
263
|
+
body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong,
|
|
264
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong {
|
|
265
|
+
display: block;
|
|
266
|
+
border: none;
|
|
267
|
+
border-radius: 0;
|
|
268
|
+
background: transparent;
|
|
269
|
+
padding: 0;
|
|
270
|
+
min-width: 0;
|
|
271
|
+
font-family: var(--slide-title-font);
|
|
272
|
+
font-size: 1.72em; /* 38px ÷26 ÷0.85(li) */
|
|
273
|
+
font-weight: 400;
|
|
274
|
+
line-height: 1.05;
|
|
275
|
+
color: var(--text-color);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/* 1.6.7 quote · 参照模板第 8 页 s-quote(Voices):
|
|
279
|
+
320px 粉色巨引号(qmark ÷26)、92px paper 金句非斜体、em 切粉;
|
|
280
|
+
署名行(引用后一行)= 粉色 1px 顶线 + 48px 衬线 paper(.attr .who) */
|
|
281
|
+
body.presenting .cm-md-slide-quote .cm-md-blockquote,
|
|
282
|
+
body.slides-printing .cm-md-slide-quote .cm-md-blockquote {
|
|
283
|
+
color: var(--text-color);
|
|
284
|
+
font-style: normal;
|
|
285
|
+
line-height: 1.05;
|
|
286
|
+
letter-spacing: -0.005em;
|
|
287
|
+
max-width: 82%;
|
|
288
|
+
}
|
|
289
|
+
body.presenting .cm-md-slide-quote .cm-md-blockquote .cm-md-em,
|
|
290
|
+
body.slides-printing .cm-md-slide-quote .cm-md-blockquote .cm-md-em {
|
|
291
|
+
color: var(--seed-accent);
|
|
292
|
+
}
|
|
293
|
+
body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
|
|
294
|
+
body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
|
|
295
|
+
font-size: 12.3em; /* 320px ÷26 */
|
|
296
|
+
line-height: 0.6;
|
|
297
|
+
}
|
|
298
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line,
|
|
299
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line {
|
|
300
|
+
margin-top: 1.4em;
|
|
301
|
+
padding-top: 0.6em;
|
|
302
|
+
border-top: 1px solid rgba(237, 61, 140, 0.45);
|
|
303
|
+
font-family: var(--slide-title-font);
|
|
304
|
+
font-size: 1.85em; /* 48px ÷26 */
|
|
305
|
+
color: var(--text-color);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/* 1.6.8 closing · Encore:标题 paper 色 + 清单换模板顶线画法(s-cta .step) */
|
|
309
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title,
|
|
310
|
+
body.slides-printing .cm-md-slide-closing.cm-md-page-title {
|
|
311
|
+
font-size: var(--slide-closing-title-size);
|
|
312
|
+
line-height: 1.04;
|
|
313
|
+
color: var(--text-color);
|
|
314
|
+
}
|
|
315
|
+
body.presenting .cm-md-slide-closing.cm-md-li,
|
|
316
|
+
body.slides-printing .cm-md-slide-closing.cm-md-li {
|
|
317
|
+
border-top: 1px solid rgba(237, 61, 140, 0.45);
|
|
318
|
+
padding-top: 0.8em;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/* 1.6.9 figure · The Curve:页题收一档(s-chart h2 90px ÷26) */
|
|
322
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title,
|
|
323
|
+
body.slides-printing .cm-md-slide-figure.cm-md-page-title {
|
|
324
|
+
font-size: 3.5em;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/* 1.6.10 matrix · 参照模板第 7 页 s-matrix(The Field):
|
|
328
|
+
页题 132px paper(em 切粉,走 1.6.1 全局 5.1em);四列 hairline 底线网格,
|
|
329
|
+
行标 = 衬线 paper 32px,列头概念由 strong 承担(.cell.label) */
|
|
330
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
|
|
331
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
|
|
332
|
+
width: 23%; /* 四列 + gap @1920 */
|
|
333
|
+
margin: 0 1.8% 1.2em 0;
|
|
334
|
+
border: none;
|
|
335
|
+
border-bottom: 1px solid var(--border-color);
|
|
336
|
+
border-radius: 0;
|
|
337
|
+
background: transparent;
|
|
338
|
+
padding: 0.7em 0.2em;
|
|
339
|
+
font-size: 0.85em;
|
|
340
|
+
vertical-align: top;
|
|
341
|
+
}
|
|
342
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
|
|
343
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
|
|
344
|
+
font-family: var(--slide-title-font);
|
|
345
|
+
font-size: 1.5em; /* 32px ÷26 ÷0.85(li) */
|
|
346
|
+
font-weight: 400;
|
|
347
|
+
color: var(--text-color);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/* 1.6.11 chrome · runner/footer:JetBrains Mono mute 色 .14em(.runner/.footer)。
|
|
351
|
+
SLIDE-02:.slide-chrome|foot 必须包裹在放映/导出作用域下 */
|
|
352
|
+
body.presenting .slide-chrome,
|
|
353
|
+
body.slides-printing .slide-chrome {
|
|
354
|
+
font-size: clamp(14px, 1.1vw, 22px);
|
|
355
|
+
letter-spacing: 0.14em;
|
|
356
|
+
color: var(--text-muted);
|
|
357
|
+
}
|
|
358
|
+
body.presenting .slide-foot,
|
|
359
|
+
body.slides-printing .slide-foot {
|
|
360
|
+
font-size: clamp(13px, 1vw, 20px);
|
|
361
|
+
letter-spacing: 0.14em;
|
|
362
|
+
color: var(--text-muted);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/* ═══════════════ SECTION 2 — Editor DOM ═══════════════ */
|
|
366
|
+
|
|
367
|
+
#editor .cm-content {
|
|
368
|
+
color: var(--text-color);
|
|
369
|
+
font-family: var(--font-body); /* Inter 300 正文声部 */
|
|
370
|
+
font-weight: 300;
|
|
371
|
+
line-height: 1.75;
|
|
372
|
+
letter-spacing: -0.005em;
|
|
373
|
+
-webkit-font-smoothing: antialiased;
|
|
374
|
+
text-rendering: optimizeLegibility;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/* ── 2.1 Headings:DM Serif Display 400 + 粉色光晕(模板 hero script) ── */
|
|
378
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
379
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
380
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
381
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
382
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
383
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
384
|
+
color: var(--seed-ink);
|
|
385
|
+
font-family: "DM Serif Display", "Noto Serif SC", source-han-serif-sc,
|
|
386
|
+
"Songti SC", Georgia, serif;
|
|
387
|
+
font-weight: 400; /* DM Serif Display 只有 400 */
|
|
388
|
+
line-height: 1.1;
|
|
389
|
+
letter-spacing: -0.01em;
|
|
390
|
+
}
|
|
391
|
+
#editor .cm-content .cm-md-atxheading1 {
|
|
392
|
+
font-size: 3.05em;
|
|
393
|
+
line-height: 1.05;
|
|
394
|
+
letter-spacing: -0.015em;
|
|
395
|
+
color: var(--seed-accent); /* hero script 一律粉色 */
|
|
396
|
+
text-shadow: 0 0 0.6em rgba(237, 61, 140, 0.22); /* 模板 halo */
|
|
397
|
+
padding-bottom: 0.06em; /* 模板 padding-bottom .1em 补 descender */
|
|
398
|
+
}
|
|
399
|
+
#editor .cm-content .cm-md-atxheading2 {
|
|
400
|
+
font-size: 2.4em;
|
|
401
|
+
padding-bottom: 0.18em;
|
|
402
|
+
border-bottom: 1px solid rgba(237, 61, 140, 0.32); /* 粉色发丝 */
|
|
403
|
+
}
|
|
404
|
+
#editor .cm-content .cm-md-atxheading3 { font-size: 1.75em; }
|
|
405
|
+
#editor .cm-content .cm-md-atxheading4 { font-size: 1.42em; }
|
|
406
|
+
#editor .cm-content .cm-md-atxheading5 { font-size: 1.22em; }
|
|
407
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
408
|
+
font-size: 1.02em;
|
|
409
|
+
color: var(--seed-accent); /* 粉色 kicker 眉标 */
|
|
410
|
+
font-family: var(--font-mono);
|
|
411
|
+
font-weight: 400;
|
|
412
|
+
letter-spacing: 0.24em; /* 模板 mono-kicker 宽字距 */
|
|
413
|
+
text-transform: uppercase;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/* ── 2.2 Inline / Lists ── */
|
|
417
|
+
#editor .cm-content .cm-md-strong { color: var(--seed-ink); font-weight: 600; }
|
|
418
|
+
#editor .cm-content .cm-md-em {
|
|
419
|
+
font-family: Georgia, "Noto Serif SC", serif; /* 模板:正文斜体走衬线 */
|
|
420
|
+
font-style: italic;
|
|
421
|
+
}
|
|
422
|
+
#editor .cm-content .cm-md-strike { text-decoration: line-through; color: var(--text-muted); }
|
|
423
|
+
#editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
|
|
424
|
+
#editor .cm-content .cm-md-link {
|
|
425
|
+
color: var(--link-color);
|
|
426
|
+
text-decoration: none;
|
|
427
|
+
border-bottom: 1px solid rgba(237, 61, 140, 0.32);
|
|
428
|
+
}
|
|
429
|
+
#editor .cm-content .cm-md-url { color: var(--text-muted); font-family: var(--font-mono); }
|
|
430
|
+
#editor .cm-content .cm-md-inlinecode {
|
|
431
|
+
color: var(--text-color);
|
|
432
|
+
font-family: var(--font-mono);
|
|
433
|
+
font-weight: 400;
|
|
434
|
+
font-size: 0.88em;
|
|
435
|
+
background: var(--code-bg);
|
|
436
|
+
border: 1px solid rgba(237, 61, 140, 0.32); /* 粉色发丝框 */
|
|
437
|
+
border-radius: 0; /* 模板:零圆角 */
|
|
438
|
+
padding: 1px 5px;
|
|
439
|
+
}
|
|
440
|
+
#editor .cm-content .cm-md-marker,
|
|
441
|
+
#editor .cm-content .cm-md-quotemark { color: var(--text-muted); font-family: var(--font-mono); }
|
|
442
|
+
#editor .cm-content .cm-md-listmark { color: var(--seed-accent); }
|
|
443
|
+
#editor .cm-content .cm-md-li-0,
|
|
444
|
+
#editor .cm-content .cm-md-li-1,
|
|
445
|
+
#editor .cm-content .cm-md-li-2,
|
|
446
|
+
#editor .cm-content .cm-md-li-3,
|
|
447
|
+
#editor .cm-content .cm-md-li-4,
|
|
448
|
+
#editor .cm-content .cm-md-li-5,
|
|
449
|
+
#editor .cm-content .cm-md-li-6 { color: var(--text-color); }
|
|
450
|
+
|
|
451
|
+
/* ── 2.3 Blockquote / Code Block(禁纵向 padding;blockquote 不写 background) ── */
|
|
452
|
+
#editor .cm-content .cm-md-blockquote {
|
|
453
|
+
color: var(--text-secondary);
|
|
454
|
+
font-family: "DM Serif Display", "Noto Serif SC", "Songti SC", Georgia, serif;
|
|
455
|
+
font-size: 1.18em; /* 模板 serif-quote 声部 */
|
|
456
|
+
line-height: 1.5;
|
|
457
|
+
border-left: 1px solid var(--blockquote-border); /* 模板:1px 粉色左轨,无更粗边 */
|
|
458
|
+
padding-left: 16px;
|
|
459
|
+
padding-right: 16px;
|
|
460
|
+
}
|
|
461
|
+
#editor .cm-content .cm-md-codeblock {
|
|
462
|
+
color: var(--code-block-text);
|
|
463
|
+
font-family: var(--font-mono);
|
|
464
|
+
font-weight: 400;
|
|
465
|
+
line-height: 1.6;
|
|
466
|
+
background: var(--code-block-bg);
|
|
467
|
+
border-left: 1px solid var(--border-color);
|
|
468
|
+
border-right: 1px solid var(--border-color);
|
|
469
|
+
padding-left: 16px;
|
|
470
|
+
padding-right: 16px;
|
|
471
|
+
}
|
|
472
|
+
#editor .cm-content .cm-md-codeblock-first {
|
|
473
|
+
border-top: 1px solid var(--border-color);
|
|
474
|
+
border-radius: 0;
|
|
475
|
+
}
|
|
476
|
+
#editor .cm-content .cm-md-codeblock-last {
|
|
477
|
+
border-bottom: 1px solid var(--border-color);
|
|
478
|
+
border-radius: 0;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/* ── 2.4 Table / Rule(模板:表分隔线 = pink 32%) ── */
|
|
482
|
+
#editor .cm-content .cm-md-table-widget th,
|
|
483
|
+
#editor .cm-content .cm-md-table-widget td {
|
|
484
|
+
padding: 10px 14px;
|
|
485
|
+
border-color: rgba(237, 61, 140, 0.32);
|
|
486
|
+
}
|
|
487
|
+
#editor .cm-content .cm-md-table-widget td { font-weight: 400; }
|
|
488
|
+
#editor .cm-content .cm-md-table-widget th {
|
|
489
|
+
color: var(--seed-ink);
|
|
490
|
+
font-family: var(--font-mono);
|
|
491
|
+
font-size: 0.8em;
|
|
492
|
+
font-weight: 400;
|
|
493
|
+
letter-spacing: 0.14em; /* 模板 mono runner 字距 */
|
|
494
|
+
text-transform: uppercase;
|
|
495
|
+
background: var(--table-header-bg);
|
|
496
|
+
border-bottom: 1px solid var(--seed-accent);
|
|
497
|
+
}
|
|
498
|
+
#editor .cm-content .cm-md-table-widget tr:nth-child(even) td { background: var(--seed-panel); }
|
|
499
|
+
#editor .cm-content .cm-md-hr { border-top-color: rgba(237, 61, 140, 0.32); }
|
|
500
|
+
#editor .cm-content .cm-md-task-checked { color: var(--text-muted); }
|
|
501
|
+
|
|
502
|
+
/* ═══════════════ SECTION 3 — Exported HTML ═══════════════ */
|
|
503
|
+
|
|
504
|
+
.colamd-document {
|
|
505
|
+
color: var(--text-color);
|
|
506
|
+
font-family: var(--font-body);
|
|
507
|
+
font-weight: 300; /* Inter 300 正文 */
|
|
508
|
+
font-size: var(--editor-font-size);
|
|
509
|
+
line-height: 1.75;
|
|
510
|
+
letter-spacing: -0.005em;
|
|
511
|
+
-webkit-font-smoothing: antialiased;
|
|
512
|
+
text-rendering: optimizeLegibility;
|
|
513
|
+
background: var(--bg-color);
|
|
514
|
+
}
|
|
515
|
+
.colamd-document h1,
|
|
516
|
+
.colamd-document h2,
|
|
517
|
+
.colamd-document h3,
|
|
518
|
+
.colamd-document h4,
|
|
519
|
+
.colamd-document h5,
|
|
520
|
+
.colamd-document h6 {
|
|
521
|
+
color: var(--seed-ink);
|
|
522
|
+
font-family: "DM Serif Display", "Noto Serif SC", source-han-serif-sc,
|
|
523
|
+
"Songti SC", Georgia, serif;
|
|
524
|
+
font-weight: 400;
|
|
525
|
+
line-height: 1.1;
|
|
526
|
+
letter-spacing: -0.01em;
|
|
527
|
+
margin: 1.6em 0 0.55em;
|
|
528
|
+
}
|
|
529
|
+
.colamd-document h1 {
|
|
530
|
+
font-size: 3.05em;
|
|
531
|
+
line-height: 1.05;
|
|
532
|
+
letter-spacing: -0.015em;
|
|
533
|
+
color: var(--seed-accent);
|
|
534
|
+
text-shadow: 0 0 0.6em rgba(237, 61, 140, 0.22); /* halo */
|
|
535
|
+
padding-bottom: 0.06em;
|
|
536
|
+
margin-top: 0.4em;
|
|
537
|
+
}
|
|
538
|
+
.colamd-document h2 {
|
|
539
|
+
font-size: 2.4em;
|
|
540
|
+
padding-bottom: 0.18em;
|
|
541
|
+
border-bottom: 1px solid rgba(237, 61, 140, 0.32);
|
|
542
|
+
}
|
|
543
|
+
.colamd-document h3 { font-size: 1.75em; }
|
|
544
|
+
.colamd-document h4 { font-size: 1.42em; }
|
|
545
|
+
.colamd-document h5 { font-size: 1.22em; }
|
|
546
|
+
.colamd-document h6 {
|
|
547
|
+
font-size: 1.02em;
|
|
548
|
+
color: var(--seed-accent); /* 粉色 kicker */
|
|
549
|
+
font-family: var(--font-mono);
|
|
550
|
+
font-weight: 400;
|
|
551
|
+
letter-spacing: 0.24em;
|
|
552
|
+
text-transform: uppercase;
|
|
553
|
+
}
|
|
554
|
+
/* 模板:标题里的 em = 切成粉色(不是斜体) */
|
|
555
|
+
.colamd-document h1 em,
|
|
556
|
+
.colamd-document h2 em,
|
|
557
|
+
.colamd-document h3 em,
|
|
558
|
+
.colamd-document h4 em {
|
|
559
|
+
color: var(--seed-accent);
|
|
560
|
+
font-style: normal;
|
|
561
|
+
}
|
|
562
|
+
.colamd-document strong { color: var(--seed-ink); font-weight: 600; }
|
|
563
|
+
.colamd-document em {
|
|
564
|
+
font-family: Georgia, "Noto Serif SC", serif;
|
|
565
|
+
font-style: italic;
|
|
566
|
+
}
|
|
567
|
+
.colamd-document a {
|
|
568
|
+
color: var(--link-color);
|
|
569
|
+
text-decoration: none;
|
|
570
|
+
border-bottom: 1px solid rgba(237, 61, 140, 0.32);
|
|
571
|
+
}
|
|
572
|
+
.colamd-document p { margin: 0.9em 0; }
|
|
573
|
+
.colamd-document ul,
|
|
574
|
+
.colamd-document ol { padding-left: 1.75em; }
|
|
575
|
+
.colamd-document li { margin: 0.25em 0; }
|
|
576
|
+
.colamd-document li::marker { color: var(--seed-accent); }
|
|
577
|
+
.colamd-document code {
|
|
578
|
+
color: var(--text-color);
|
|
579
|
+
font-family: var(--font-mono);
|
|
580
|
+
font-weight: 400;
|
|
581
|
+
font-size: 0.88em;
|
|
582
|
+
background: var(--code-bg);
|
|
583
|
+
border: 1px solid rgba(237, 61, 140, 0.32);
|
|
584
|
+
border-radius: 0;
|
|
585
|
+
padding: 1px 5px;
|
|
586
|
+
}
|
|
587
|
+
.colamd-document pre {
|
|
588
|
+
background: var(--code-block-bg);
|
|
589
|
+
border: 1px solid var(--border-color);
|
|
590
|
+
border-radius: 0; /* 零圆角 */
|
|
591
|
+
}
|
|
592
|
+
.colamd-document pre code {
|
|
593
|
+
color: var(--code-block-text);
|
|
594
|
+
background: transparent;
|
|
595
|
+
border: 0;
|
|
596
|
+
padding: 0;
|
|
597
|
+
}
|
|
598
|
+
.colamd-document blockquote {
|
|
599
|
+
color: var(--text-secondary);
|
|
600
|
+
font-family: "DM Serif Display", "Noto Serif SC", "Songti SC", Georgia, serif;
|
|
601
|
+
font-size: 1.18em;
|
|
602
|
+
line-height: 1.5;
|
|
603
|
+
background: var(--blockquote-bg);
|
|
604
|
+
border-left: 1px solid var(--blockquote-border);
|
|
605
|
+
padding: 0.5em 1.2em;
|
|
606
|
+
}
|
|
607
|
+
.colamd-document mark { background: var(--highlight-bg); color: var(--seed-ink); }
|
|
608
|
+
.colamd-document table { border-collapse: collapse; width: 100%; }
|
|
609
|
+
.colamd-document th,
|
|
610
|
+
.colamd-document td {
|
|
611
|
+
border: 1px solid rgba(237, 61, 140, 0.32);
|
|
612
|
+
padding: 10px 14px;
|
|
613
|
+
border-radius: 0;
|
|
614
|
+
}
|
|
615
|
+
.colamd-document td { font-weight: 400; }
|
|
616
|
+
.colamd-document th {
|
|
617
|
+
color: var(--seed-ink);
|
|
618
|
+
font-family: var(--font-mono);
|
|
619
|
+
font-size: 0.8em;
|
|
620
|
+
font-weight: 400;
|
|
621
|
+
letter-spacing: 0.14em;
|
|
622
|
+
text-transform: uppercase;
|
|
623
|
+
background: var(--table-header-bg);
|
|
624
|
+
border-bottom: 1px solid var(--seed-accent);
|
|
625
|
+
}
|
|
626
|
+
.colamd-document tbody tr:nth-child(even) td { background: var(--seed-panel); }
|
|
627
|
+
.colamd-document hr {
|
|
628
|
+
border: 0;
|
|
629
|
+
border-top: 1px solid rgba(237, 61, 140, 0.32); /* 粉色发丝分隔 */
|
|
630
|
+
}
|
|
631
|
+
.colamd-document img {
|
|
632
|
+
max-width: 100%;
|
|
633
|
+
border: 1px solid var(--border-color);
|
|
634
|
+
border-radius: 0;
|
|
635
|
+
}
|
|
636
|
+
.colamd-document svg.pele { background: var(--pele-bg); border-radius: var(--pele-radius); }
|
|
637
|
+
|
|
638
|
+
/* ═══════════════ SECTION 4 — Print ═══════════════ */
|
|
639
|
+
|
|
640
|
+
@media print {
|
|
641
|
+
html,
|
|
642
|
+
body {
|
|
643
|
+
background: var(--bg-color);
|
|
644
|
+
color: var(--text-color);
|
|
645
|
+
-webkit-print-color-adjust: exact;
|
|
646
|
+
print-color-adjust: exact;
|
|
647
|
+
}
|
|
648
|
+
}
|