@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,814 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ColaMD Theme: Raw Grid(硬网格 · 手工精修版)
|
|
3
|
+
* Neo-brutalist deck with thick borders, offset shadows, and a pink/sage/ink palette.
|
|
4
|
+
* 来源:D:\workspace\git\beautiful-html-templates\templates\raw-grid\
|
|
5
|
+
* template.html + design.md + template.json(10 页)
|
|
6
|
+
* 色板(template.html :root):
|
|
7
|
+
* black #0A0A0A / white #FFFFFF / pink #F2D4CF / green #E5EDD6
|
|
8
|
+
* gray #F5F5F5 / darkgray #333333
|
|
9
|
+
* 结构语汇:--border 3px solid black;--shadow 6px 6px 0 black;
|
|
10
|
+
* --shadow-sm 4px 4px 0 black。零圆角、全大写、900/800/700 重字重。
|
|
11
|
+
* 字体:Segoe UI / system-ui(display 与 body 同一套系统无衬线;模板所有
|
|
12
|
+
* t-display/t-headline/t-title/t-subtitle/t-caption/label 均 uppercase,
|
|
13
|
+
* 字距 -0.04em ~ +0.08em 按层级递增)。
|
|
14
|
+
*
|
|
15
|
+
* paradigm 备案:无保留的身份性违规——
|
|
16
|
+
* 粉/绿只作色块(seed-accent-light / seed-green),从不做文字;
|
|
17
|
+
* 可读强调色用同色相深玫瑰 #A2352B(白底 6.8:1,CR-04 / HR-01 过线);
|
|
18
|
+
* 黑边与灰面明度差 0.9(NT-02 过线),三层表面均为中性灰(SL-02 / SL-03
|
|
19
|
+
* 过线),文字三档同为中性灰(NT-01 过线)。
|
|
20
|
+
*
|
|
21
|
+
* 版式复刻:十页逐页对照与换算式见 1.5 注释;SECTION 1.6 为逐版式规则。
|
|
22
|
+
* 模板十页的「页面」底色全部是白纸(.slide{background:white}),粉/绿/黑
|
|
23
|
+
* 只出现在左栏、上图区、四宫格、页头等 pane 上——**无换底页**,因此不需要
|
|
24
|
+
* body:has()/editor/scroller 五层背景链;色块以行级近似:封面与收页标题的
|
|
25
|
+
* 粉底块、quote 的绿面板、kpi 的白卡黑框、表格的黑表头。
|
|
26
|
+
*
|
|
27
|
+
* 契约:ColaMD 2.7.13(:root 活变量;CM6 每行一 div;引用/代码块禁纵向 padding;
|
|
28
|
+
* SECTION 1.5 为幻灯片 --slide-* 令牌)
|
|
29
|
+
*
|
|
30
|
+
* 两条硬规矩:
|
|
31
|
+
* 1. 变量一律写在 :root。没写的活变量继承 Light 主题默认值;写在别的选择器里
|
|
32
|
+
* 编辑器继承不到。
|
|
33
|
+
* 2. 编辑器里没有 <h1>/<blockquote> 这种元素:标题是「一行」带一个类,引用与
|
|
34
|
+
* 代码块是每一行一个 div,加粗是一个 span。所以选择器只认 .cm-md-* 钩子,
|
|
35
|
+
* 并且引用/代码块**不能加纵向 padding**——那会按行累加。
|
|
36
|
+
*
|
|
37
|
+
* ═══════════════════════════════════════════════════════════
|
|
38
|
+
* SECTION 1 — Design Tokens
|
|
39
|
+
* 改 12 个种子色 + 3 组字体即可换一套主题
|
|
40
|
+
* ═══════════════════════════════════════════════════════════ */
|
|
41
|
+
|
|
42
|
+
:root {
|
|
43
|
+
|
|
44
|
+
/* ── 1.1 Seed Palette ──
|
|
45
|
+
本工具的再生成与校验读这一层;编辑器不消费。
|
|
46
|
+
模板 pink #F2D4CF 只做色块,做文字只有 1.3:1;accent 取同色相深玫瑰
|
|
47
|
+
承担链接/强调文字(白底 6.8:1)。green 单独留作色块种子。 */
|
|
48
|
+
--seed-accent: #a2352b; /* 深玫瑰:链接/强调文字(白底 6.8:1) */
|
|
49
|
+
--seed-accent-light: #f2d4cf; /* 模板 pink:色块身份色,只做底 */
|
|
50
|
+
--seed-accent-dark: #7c241c;
|
|
51
|
+
--seed-green: #e5edd6; /* 模板 green:kpi/quote/matrix 色块 */
|
|
52
|
+
--seed-surface: #ffffff; /* 模板 white 纸面 */
|
|
53
|
+
--seed-panel: #f5f5f5; /* 模板 gray */
|
|
54
|
+
--seed-panel-alt: #e5e5e5; /* gray 降一档(SL-04:surface>panel>panelAlt) */
|
|
55
|
+
--seed-ink: #0a0a0a; /* 模板 black */
|
|
56
|
+
--seed-ink-muted: #404040;
|
|
57
|
+
--seed-ink-dim: #666666;
|
|
58
|
+
--seed-border: #bfbfbf; /* 中性发丝线(可见档,NT-02) */
|
|
59
|
+
--seed-border-strong: #0a0a0a; /* 模板 3px 黑边 */
|
|
60
|
+
|
|
61
|
+
/* ── 1.2 Semantic Colors(活变量)── */
|
|
62
|
+
--bg-color: var(--seed-surface);
|
|
63
|
+
--text-color: var(--seed-ink);
|
|
64
|
+
--text-secondary: var(--seed-ink-muted);
|
|
65
|
+
--text-muted: var(--seed-ink-dim);
|
|
66
|
+
--border-color: var(--seed-border-strong); /* 模板边线一律纯黑 */
|
|
67
|
+
--link-color: var(--seed-accent);
|
|
68
|
+
|
|
69
|
+
--code-bg: rgba(242, 212, 207, 0.55); /* pink 30% 行内代码托 */
|
|
70
|
+
--code-block-bg: var(--seed-panel); /* gray 代码块 */
|
|
71
|
+
--code-block-text: var(--seed-ink);
|
|
72
|
+
|
|
73
|
+
--blockquote-border: var(--seed-border-strong); /* 3px 黑左轨 */
|
|
74
|
+
--blockquote-bg: var(--seed-green); /* P8 绿声明面板 */
|
|
75
|
+
--table-header-bg: var(--seed-ink); /* P9 表头黑底白字 */
|
|
76
|
+
|
|
77
|
+
--selection-bg: rgba(242, 212, 207, 0.75); /* 粉荧光选区 */
|
|
78
|
+
--highlight-bg: var(--seed-green); /* 绿荧光高亮 */
|
|
79
|
+
|
|
80
|
+
/* ── 1.3 Typography & Metrics(活变量)── */
|
|
81
|
+
--font-body: "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
|
|
82
|
+
--font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", Consolas, monospace;
|
|
83
|
+
--editor-font-size: 16px;
|
|
84
|
+
--editor-column-width: 820px;
|
|
85
|
+
|
|
86
|
+
/* ── 1.4 Pele Diagram(9 个变量,全部可省略)──
|
|
87
|
+
图直接画在代码块底色上,所以底色与字色都从 --code-block-* 推导。 */
|
|
88
|
+
--pele-bg: var(--code-block-bg);
|
|
89
|
+
--pele-fg: var(--code-block-text);
|
|
90
|
+
--pele-muted: color-mix(in srgb, var(--code-block-text) 70%, var(--code-block-bg));
|
|
91
|
+
--pele-line: var(--code-block-text);
|
|
92
|
+
--pele-surface: color-mix(in srgb, var(--code-block-text) 18%, var(--code-block-bg));
|
|
93
|
+
--pele-surface-alt: color-mix(in srgb, var(--code-block-text) 28%, var(--code-block-bg));
|
|
94
|
+
--pele-border: color-mix(in srgb, var(--code-block-text) 45%, var(--code-block-bg));
|
|
95
|
+
--pele-accent: var(--seed-accent); /* 深玫瑰:图上文字/描边可读 */
|
|
96
|
+
--pele-radius: 0px; /* 模板:零圆角,硬边 */
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* ── 1.5 PPT / Slides(ColaMD 2.7.13 · 按 raw-grid 十页逐页复刻)──
|
|
100
|
+
换算锚点:放映基准字号 clamp(17px,1.35vw,26px),1080p ≈ 26px/em;
|
|
101
|
+
模板 1920 画布 px ÷ 26 = em(clamp 取 1920×1080 实际落点)。字体体系:
|
|
102
|
+
Segoe UI 900(display/headline)/ 800(title)/ 700(subtitle/caption/
|
|
103
|
+
label),全大写;mono 仅用于 chrome 与页码。页面对照(10 页 → 11 版式):
|
|
104
|
+
cover←P1(96px display 封面) agenda←P1 右栏城市索引(箭头行)
|
|
105
|
+
section←P2(64px headline + 导语) figure←P5(左黑图区)/ P9(对照表)
|
|
106
|
+
steps←P6(01-04 四列流程) matrix←P4(2×2 四卡)
|
|
107
|
+
kpi←P3(三宫格统计)/ P7(四条指标,同形不单列)
|
|
108
|
+
quote←P8(绿面板金句 + 140px 统计带)
|
|
109
|
+
closing←P10(CTA + 联系列)
|
|
110
|
+
timeline / two-col 无对应页 → 保持上游默认。
|
|
111
|
+
字号落点:t-display min(7vw,96px)=96 · t-headline min(4.5vw,64px)=64 ·
|
|
112
|
+
t-title min(2.5vw,36px)=36 · t-subtitle min(1.4vw,22px)=22 ·
|
|
113
|
+
t-body min(1.3vw,20px)=20 · t-caption min(1vw,13px)=13 · label 11px。
|
|
114
|
+
列表内元素先定 li 基准再除补偿:kpi li .5em(13px)、steps/matrix li
|
|
115
|
+
.77em(20px)、agenda li 1.08em(28px)。
|
|
116
|
+
有意未复刻(行式 DOM 无挂点):P1 左右 1fr/1fr 分栏 + 右栏七行索引、
|
|
117
|
+
P2 45/55 分栏与右栏两枚 120px 数字、P3 柱状图、P4 卡片四宫格配色与
|
|
118
|
+
01-04 巨数字/图标盒、P5 左黑图区、P7 环形图与图例、P8 底部四格统计带、
|
|
119
|
+
P10 右栏联系块与社交黑块、全部 hover/transition 与 3px 外框分割线。 */
|
|
120
|
+
:root {
|
|
121
|
+
--slide-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", Consolas, monospace;
|
|
122
|
+
--slide-title-font: "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
|
|
123
|
+
--slide-title-size: 1.38em; /* 内容页页头 t-title 36px ÷26 */
|
|
124
|
+
--slide-title-weight: 900; /* t-display / t-headline */
|
|
125
|
+
--slide-subhead-weight: 700; /* t-subtitle 700 */
|
|
126
|
+
--slide-title-tracking: 0.01em; /* t-title .01em */
|
|
127
|
+
--slide-title-line-height: 1.2;
|
|
128
|
+
--slide-cover-title-size: 3.69em; /* P1 t-display 96px ÷26 */
|
|
129
|
+
--slide-cover-title-line-height: 1.05; /* t-display 1.05 */
|
|
130
|
+
--slide-cover-title-tracking: -0.02em; /* t-display -.02em */
|
|
131
|
+
--slide-section-title-size: 2.46em; /* P2 t-headline 64px ÷26 */
|
|
132
|
+
--slide-closing-title-size: 3.69em; /* P10 t-display 96px ÷26 */
|
|
133
|
+
--slide-lead-size: 0.77em; /* t-body 20px ÷26 */
|
|
134
|
+
--slide-kicker-size: clamp(10px, 0.57vw, 11px); /* .label 11px @1920 */
|
|
135
|
+
--slide-kicker-tracking: 0.08em; /* .label .08em */
|
|
136
|
+
--slide-kicker-transform: uppercase;
|
|
137
|
+
--slide-chrome-opacity: 0.85;
|
|
138
|
+
--slide-chrome-transform: uppercase;
|
|
139
|
+
--slide-kpi-number-size: 4.31em; /* P3 stat 56px ÷26 ÷0.5(li 基准) */
|
|
140
|
+
--slide-quote-size: 2.46em; /* P8 statement 64px ÷26 */
|
|
141
|
+
--slide-page-pad-x: 3.3vw; /* pad-lg 64px @1920 */
|
|
142
|
+
--slide-page-top-pad: 72px; /* 页头 32px + chrome 安全区 */
|
|
143
|
+
--slide-page-top-pad-print: 64px;
|
|
144
|
+
--slide-cover-text-align: left;
|
|
145
|
+
--slide-cover-lead-inline: 0;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* ═══════════════ SECTION 1.6 — 版式页复刻(SLIDE-02:全部包裹在
|
|
149
|
+
body.presenting / body.slides-printing 作用域) ═══════════════ */
|
|
150
|
+
|
|
151
|
+
/* 1.6.1 页标题声部对齐:Segoe UI 900 全大写;压掉文档式 h1/h2 下划线
|
|
152
|
+
(编辑器规则带 id 权重会漏进放映)。 */
|
|
153
|
+
body.presenting #editor .cm-content .cm-md-page-title,
|
|
154
|
+
body.slides-printing #editor .cm-content .cm-md-page-title {
|
|
155
|
+
font-family: var(--slide-title-font);
|
|
156
|
+
font-weight: 900;
|
|
157
|
+
line-height: var(--slide-title-line-height);
|
|
158
|
+
letter-spacing: var(--slide-title-tracking);
|
|
159
|
+
text-transform: uppercase;
|
|
160
|
+
color: var(--text-color);
|
|
161
|
+
border-bottom: none;
|
|
162
|
+
padding-bottom: 0;
|
|
163
|
+
margin-bottom: 0.8em;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* 1.6.1b kicker:模板 .label —— 黑底白字小块 11px/800/.08em(圆角 0) */
|
|
167
|
+
body.presenting #editor .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
168
|
+
body.slides-printing #editor .cm-content .cm-md-page-title[data-slide-kicker]::before {
|
|
169
|
+
display: inline-block;
|
|
170
|
+
margin-bottom: 1em;
|
|
171
|
+
padding: 0.5em 1.27em; /* 6px/14px ÷11(标签字号) */
|
|
172
|
+
background: var(--text-color);
|
|
173
|
+
color: var(--bg-color);
|
|
174
|
+
font-family: var(--font-body);
|
|
175
|
+
font-size: var(--slide-kicker-size);
|
|
176
|
+
font-weight: 800;
|
|
177
|
+
line-height: 1.2;
|
|
178
|
+
letter-spacing: var(--slide-kicker-tracking);
|
|
179
|
+
text-transform: uppercase;
|
|
180
|
+
opacity: 1;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* 1.6.2 内容页页头(agenda/kpi/figure/steps/matrix 共用 t-title):
|
|
184
|
+
36px/800 + 3px 黑底线,即模板 s3/s4/s6/s9 的 header 条 */
|
|
185
|
+
body.presenting #editor[data-slide-layout='agenda'] .cm-content .cm-md-page-title,
|
|
186
|
+
body.presenting #editor[data-slide-layout='kpi'] .cm-content .cm-md-page-title,
|
|
187
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-page-title,
|
|
188
|
+
body.presenting #editor[data-slide-layout='steps'] .cm-content .cm-md-page-title,
|
|
189
|
+
body.presenting #editor[data-slide-layout='matrix'] .cm-content .cm-md-page-title,
|
|
190
|
+
body.slides-printing #editor .cm-content .cm-md-page-title:not(.cm-md-page-default):not(.cm-md-slide-cover):not(.cm-md-slide-section):not(.cm-md-slide-closing) {
|
|
191
|
+
font-size: 1.38em; /* t-title 36px ÷26 */
|
|
192
|
+
font-weight: 800;
|
|
193
|
+
letter-spacing: 0.01em;
|
|
194
|
+
border-bottom: 3px solid var(--text-color);
|
|
195
|
+
padding-bottom: 0.5em;
|
|
196
|
+
margin-bottom: 1em;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* 1.6.3 粉底标题块(cover / P10 closing 共用):模板左半 pink pane 在行式
|
|
200
|
+
DOM 无挂点,标题取粉底 + 3px 黑框近似;封面再加 6px 错位实心阴影。
|
|
201
|
+
封面右栏七行城市索引未复刻。 */
|
|
202
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
|
|
203
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title,
|
|
204
|
+
body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-title,
|
|
205
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-page-title {
|
|
206
|
+
display: inline-block;
|
|
207
|
+
align-self: flex-start;
|
|
208
|
+
padding: 0.14em 0.22em 0.1em;
|
|
209
|
+
background: var(--seed-accent-light);
|
|
210
|
+
border: 3px solid var(--text-color);
|
|
211
|
+
}
|
|
212
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title,
|
|
213
|
+
body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-title {
|
|
214
|
+
font-size: var(--slide-cover-title-size);
|
|
215
|
+
line-height: var(--slide-cover-title-line-height);
|
|
216
|
+
letter-spacing: var(--slide-cover-title-tracking);
|
|
217
|
+
max-width: 10em; /* 左栏 50% ≈960px ÷96 */
|
|
218
|
+
box-shadow: 6px 6px 0 var(--text-color); /* --shadow */
|
|
219
|
+
}
|
|
220
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-atxheading2,
|
|
221
|
+
body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-atxheading2 {
|
|
222
|
+
font-family: var(--slide-title-font);
|
|
223
|
+
font-size: 0.77em; /* 品牌字 20px ÷26 */
|
|
224
|
+
font-weight: 900;
|
|
225
|
+
letter-spacing: -0.02em;
|
|
226
|
+
text-transform: uppercase;
|
|
227
|
+
color: var(--text-color);
|
|
228
|
+
border-bottom: none;
|
|
229
|
+
padding-bottom: 0;
|
|
230
|
+
}
|
|
231
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-lead,
|
|
232
|
+
body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-lead {
|
|
233
|
+
font-size: var(--slide-lead-size);
|
|
234
|
+
color: var(--text-secondary);
|
|
235
|
+
max-width: 55%;
|
|
236
|
+
}
|
|
237
|
+
/* 封面 kicker 取模板 logo 盒形态:白底 + 3px 黑框,替代黑底 label */
|
|
238
|
+
body.presenting #editor[data-slide-layout='cover'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
239
|
+
body.slides-printing #editor .cm-content .cm-md-slide-cover.cm-md-page-title[data-slide-kicker]::before {
|
|
240
|
+
background: var(--bg-color);
|
|
241
|
+
color: var(--text-color);
|
|
242
|
+
border: 3px solid var(--text-color);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/* 1.6.4 section · P2:64px/900 标题;导语 20px/500 限 420px(16em ÷26)。
|
|
246
|
+
模板 45/55 分栏与右栏两枚 120px 数字(250+/14)未复刻。 */
|
|
247
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title,
|
|
248
|
+
body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-title {
|
|
249
|
+
font-size: var(--slide-section-title-size);
|
|
250
|
+
font-weight: 900;
|
|
251
|
+
line-height: 1.1;
|
|
252
|
+
letter-spacing: -0.01em; /* t-headline -.01em */
|
|
253
|
+
max-width: 11em; /* 左栏 45% 内容宽 ≈736px ÷64 */
|
|
254
|
+
}
|
|
255
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-lead,
|
|
256
|
+
body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-lead {
|
|
257
|
+
font-size: var(--slide-lead-size);
|
|
258
|
+
line-height: 1.6;
|
|
259
|
+
color: var(--text-secondary);
|
|
260
|
+
max-width: 21em; /* 模板 420px ÷20(导语字号) */
|
|
261
|
+
}
|
|
262
|
+
/* 模板 s2-meta:4px×60px 黑短线 + 13px 大写眉标(不是 label 块) */
|
|
263
|
+
body.presenting #editor[data-slide-layout='section'] .cm-content .cm-md-page-title[data-slide-kicker]::before,
|
|
264
|
+
body.slides-printing #editor .cm-content .cm-md-slide-section.cm-md-page-title[data-slide-kicker]::before {
|
|
265
|
+
background: transparent;
|
|
266
|
+
color: var(--text-color);
|
|
267
|
+
border-left: 4px solid var(--text-color);
|
|
268
|
+
padding: 0 0 0 0.9em;
|
|
269
|
+
font-size: clamp(11px, 0.68vw, 13px);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/* 1.6.5 agenda · P1 右栏索引:28px/800 大写整行条目 + 3px 黑底线,
|
|
273
|
+
行首 → 箭头(.s1-list-item::before),listmark 序号藏掉 */
|
|
274
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li,
|
|
275
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li {
|
|
276
|
+
font-size: 1.08em; /* 28px ÷26 */
|
|
277
|
+
font-weight: 800;
|
|
278
|
+
letter-spacing: 0.02em;
|
|
279
|
+
text-transform: uppercase;
|
|
280
|
+
border-top: none;
|
|
281
|
+
border-bottom: 3px solid var(--text-color);
|
|
282
|
+
padding: 1.4em 0;
|
|
283
|
+
margin: 0;
|
|
284
|
+
}
|
|
285
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda .cm-md-listmark,
|
|
286
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda .cm-md-listmark {
|
|
287
|
+
display: none;
|
|
288
|
+
}
|
|
289
|
+
body.presenting #editor .cm-content .cm-md-slide-agenda.cm-md-li::before,
|
|
290
|
+
body.slides-printing #editor .cm-content .cm-md-slide-agenda.cm-md-li::before {
|
|
291
|
+
content: "\2192\00a0"; /* 模板箭头前缀 */
|
|
292
|
+
margin-right: 0.45em;
|
|
293
|
+
font-weight: 800;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/* 1.6.6 kpi · P3/P7 + matrix · P4 共用「白卡 + 3px 黑框 + 4px 错位阴影」
|
|
297
|
+
(--shadow-sm,零圆角)。kpi:56px/900 巨数字 + 13px/700 大写说明,
|
|
298
|
+
P3 柱状图、P7 环形图未复刻;matrix:2×2 卡 + 22px/700 卡名,模板四宫格
|
|
299
|
+
白/绿/粉/灰配色与 01-04 巨数字/图标盒未复刻。 */
|
|
300
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
|
|
301
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
|
|
302
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li,
|
|
303
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
|
|
304
|
+
display: inline-block;
|
|
305
|
+
vertical-align: top;
|
|
306
|
+
background: var(--bg-color);
|
|
307
|
+
border: 3px solid var(--text-color);
|
|
308
|
+
box-shadow: 4px 4px 0 var(--text-color);
|
|
309
|
+
border-radius: 0;
|
|
310
|
+
}
|
|
311
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi.cm-md-li,
|
|
312
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi.cm-md-li {
|
|
313
|
+
width: 29.5%;
|
|
314
|
+
margin: 0 1.6% 1.4em 0;
|
|
315
|
+
padding: 2.15em; /* 28px ÷13(li 基准) */
|
|
316
|
+
font-size: 0.5em; /* t-caption 13px ÷26 */
|
|
317
|
+
font-weight: 700;
|
|
318
|
+
letter-spacing: 0.06em;
|
|
319
|
+
line-height: 1.6;
|
|
320
|
+
text-transform: uppercase;
|
|
321
|
+
}
|
|
322
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-listmark,
|
|
323
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-listmark {
|
|
324
|
+
display: none;
|
|
325
|
+
}
|
|
326
|
+
body.presenting #editor .cm-content .cm-md-slide-kpi .cm-md-strong,
|
|
327
|
+
body.slides-printing #editor .cm-content .cm-md-slide-kpi .cm-md-strong {
|
|
328
|
+
display: block;
|
|
329
|
+
font-family: var(--slide-title-font);
|
|
330
|
+
font-size: var(--slide-kpi-number-size); /* 56px ÷26 ÷0.5 = 4.31em */
|
|
331
|
+
font-weight: 900;
|
|
332
|
+
line-height: 1;
|
|
333
|
+
letter-spacing: -0.02em;
|
|
334
|
+
color: var(--text-color);
|
|
335
|
+
margin-bottom: 0.15em;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/* 1.6.7 figure · P5 / P9:页头同内容页;图片给 3px 黑框 + 6px 错位阴影;
|
|
339
|
+
P9 对照表 = 3px 黑网格 + 黑底白字大写表头。P5 左半黑图区未复刻 */
|
|
340
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-content .cm-md-image img,
|
|
341
|
+
body.presenting #editor[data-slide-layout='figure'] .cm-content svg.pele,
|
|
342
|
+
body.slides-printing .cm-md-slide-figure .cm-md-image img {
|
|
343
|
+
background: var(--bg-color);
|
|
344
|
+
border: 3px solid var(--text-color);
|
|
345
|
+
box-shadow: 6px 6px 0 var(--text-color);
|
|
346
|
+
border-radius: 0;
|
|
347
|
+
}
|
|
348
|
+
body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-table-widget th,
|
|
349
|
+
body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-table-widget td,
|
|
350
|
+
body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-table-widget th,
|
|
351
|
+
body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-table-widget td {
|
|
352
|
+
border: 3px solid var(--text-color);
|
|
353
|
+
padding: 1.25em; /* 20px ÷16(td 基准) */
|
|
354
|
+
font-size: 0.62em; /* td 16px ÷26 */
|
|
355
|
+
}
|
|
356
|
+
body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-table-widget th,
|
|
357
|
+
body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-table-widget th {
|
|
358
|
+
background: var(--text-color);
|
|
359
|
+
color: var(--bg-color);
|
|
360
|
+
font-weight: 800;
|
|
361
|
+
letter-spacing: 0.06em;
|
|
362
|
+
text-transform: uppercase;
|
|
363
|
+
border-bottom: 3px solid var(--text-color);
|
|
364
|
+
}
|
|
365
|
+
body.presenting #editor .cm-content .cm-md-slide-figure .cm-md-table-widget td,
|
|
366
|
+
body.slides-printing #editor .cm-content .cm-md-slide-figure .cm-md-table-widget td {
|
|
367
|
+
background: var(--bg-color);
|
|
368
|
+
font-weight: 600;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/* 1.6.8 steps · P6:四列卡,3px 黑左轨;80px/900 序数(opacity .2)
|
|
372
|
+
+ 22px/700 大写步骤名 + 20px 说明。模板 03/04 列的绿/粉底色与
|
|
373
|
+
圆形连接箭头(绝对定位)未复刻 */
|
|
374
|
+
body.presenting #editor .cm-content .cm-md-slide-steps.cm-md-li,
|
|
375
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps.cm-md-li {
|
|
376
|
+
display: inline-block;
|
|
377
|
+
width: 23%;
|
|
378
|
+
margin: 0 1% 1em 0;
|
|
379
|
+
padding: 2.4em 1.4em; /* 48px/28px ÷20(li 基准) */
|
|
380
|
+
border-left: 3px solid var(--text-color);
|
|
381
|
+
border-bottom: none;
|
|
382
|
+
vertical-align: top;
|
|
383
|
+
font-size: 0.77em; /* t-body 20px ÷26 */
|
|
384
|
+
font-weight: 500;
|
|
385
|
+
line-height: 1.6;
|
|
386
|
+
}
|
|
387
|
+
body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-listmark,
|
|
388
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-listmark {
|
|
389
|
+
display: block;
|
|
390
|
+
font-family: var(--slide-title-font);
|
|
391
|
+
font-size: 4em; /* 80px ÷26 ÷0.77 */
|
|
392
|
+
font-weight: 900;
|
|
393
|
+
line-height: 1;
|
|
394
|
+
opacity: 0.2;
|
|
395
|
+
color: var(--text-color);
|
|
396
|
+
margin-bottom: 1.4em; /* 28px ÷20 */
|
|
397
|
+
}
|
|
398
|
+
body.presenting #editor .cm-content .cm-md-slide-steps .cm-md-strong,
|
|
399
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-strong,
|
|
400
|
+
body.slides-printing #editor .cm-content .cm-md-slide-steps .cm-md-strong,
|
|
401
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-strong {
|
|
402
|
+
display: block;
|
|
403
|
+
min-width: 0;
|
|
404
|
+
border: none;
|
|
405
|
+
border-radius: 0;
|
|
406
|
+
background: transparent;
|
|
407
|
+
padding: 0;
|
|
408
|
+
font-family: var(--slide-title-font);
|
|
409
|
+
font-size: 1.1em; /* 22px ÷26 ÷0.77 */
|
|
410
|
+
font-weight: 700;
|
|
411
|
+
line-height: 1.3;
|
|
412
|
+
letter-spacing: 0.04em;
|
|
413
|
+
text-transform: uppercase;
|
|
414
|
+
color: var(--text-color);
|
|
415
|
+
margin-bottom: 0.6em; /* 12px ÷20 */
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/* 1.6.9 matrix 几何:2×2(47.5% 宽、48px 内距、20px 正文) */
|
|
419
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix.cm-md-li,
|
|
420
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix.cm-md-li {
|
|
421
|
+
width: 47.5%;
|
|
422
|
+
margin: 0 2% 1.4em 0;
|
|
423
|
+
padding: 2.4em; /* 48px ÷20(li 基准) */
|
|
424
|
+
font-size: 0.77em; /* t-body 20px ÷26 */
|
|
425
|
+
font-weight: 500;
|
|
426
|
+
line-height: 1.6;
|
|
427
|
+
}
|
|
428
|
+
body.presenting #editor .cm-content .cm-md-slide-matrix .cm-md-listmark,
|
|
429
|
+
body.slides-printing #editor .cm-content .cm-md-slide-matrix .cm-md-listmark {
|
|
430
|
+
display: none;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/* 1.6.10 quote · P8:绿面板(sage)+ 3px 黑框,64px/900 大写金句;
|
|
434
|
+
160px 巨引号以 ::before 近似(opacity .15);引用后一行作 13px 大写
|
|
435
|
+
署名带(3px 黑顶线;CSS-03:纵向留白只走 margin)。模板右栏四格
|
|
436
|
+
统计带与 140px 高底栏未复刻 */
|
|
437
|
+
body.presenting #editor .cm-content .cm-md-slide-quote.cm-md-blockquote,
|
|
438
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote,
|
|
439
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote.cm-md-blockquote,
|
|
440
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote {
|
|
441
|
+
background: var(--seed-green);
|
|
442
|
+
border: 3px solid var(--text-color);
|
|
443
|
+
border-left: 3px solid var(--text-color);
|
|
444
|
+
border-radius: 0;
|
|
445
|
+
font-family: var(--slide-title-font);
|
|
446
|
+
font-size: var(--slide-quote-size);
|
|
447
|
+
font-weight: 900;
|
|
448
|
+
font-style: normal;
|
|
449
|
+
line-height: 1.1;
|
|
450
|
+
letter-spacing: -0.01em;
|
|
451
|
+
text-transform: uppercase;
|
|
452
|
+
color: var(--text-color);
|
|
453
|
+
text-align: left;
|
|
454
|
+
max-width: 100%;
|
|
455
|
+
padding-left: 0.75em; /* 48px ÷64 */
|
|
456
|
+
padding-right: 0.75em;
|
|
457
|
+
}
|
|
458
|
+
body.presenting #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before,
|
|
459
|
+
body.slides-printing #editor .cm-content .cm-md-slide-directive + .cm-md-blockquote.cm-md-slide-quote::before {
|
|
460
|
+
font-family: var(--slide-title-font);
|
|
461
|
+
font-size: 2.5em; /* 160px ÷64(引用字号) */
|
|
462
|
+
font-weight: 900;
|
|
463
|
+
font-style: normal;
|
|
464
|
+
line-height: 0.6;
|
|
465
|
+
color: var(--text-color);
|
|
466
|
+
opacity: 0.15;
|
|
467
|
+
}
|
|
468
|
+
body.presenting #editor .cm-content .cm-md-blockquote.cm-md-slide-quote + .cm-line:not(.cm-md-blockquote),
|
|
469
|
+
body.presenting #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line:not(.cm-md-blockquote),
|
|
470
|
+
body.slides-printing #editor .cm-content .cm-md-blockquote.cm-md-slide-quote + .cm-line:not(.cm-md-blockquote),
|
|
471
|
+
body.slides-printing #editor .cm-content .cm-md-slide-quote .cm-md-blockquote + .cm-line:not(.cm-md-blockquote) {
|
|
472
|
+
margin-top: 1.8em;
|
|
473
|
+
border-top: 3px solid var(--text-color);
|
|
474
|
+
font-family: var(--font-body);
|
|
475
|
+
font-size: 0.5em; /* .t-caption 13px ÷26 */
|
|
476
|
+
font-weight: 700;
|
|
477
|
+
line-height: 1.7;
|
|
478
|
+
letter-spacing: 0.08em;
|
|
479
|
+
text-transform: uppercase;
|
|
480
|
+
color: var(--text-color);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/* 1.6.11 closing · P10:标题粉底块见 1.6.3;行动清单转 20px 联系行。
|
|
484
|
+
右栏联系块与社交黑/绿块未复刻 */
|
|
485
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content .cm-md-page-title,
|
|
486
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-page-title {
|
|
487
|
+
font-size: var(--slide-closing-title-size);
|
|
488
|
+
line-height: 1.05; /* t-display 1.05 */
|
|
489
|
+
letter-spacing: var(--slide-cover-title-tracking);
|
|
490
|
+
max-width: 8em;
|
|
491
|
+
}
|
|
492
|
+
body.presenting #editor[data-slide-layout='closing'] .cm-content,
|
|
493
|
+
body.slides-printing .cm-md-slide-closing {
|
|
494
|
+
color: var(--text-color); /* 压掉上游 text-muted */
|
|
495
|
+
}
|
|
496
|
+
body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li,
|
|
497
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li {
|
|
498
|
+
list-style: none;
|
|
499
|
+
border: none;
|
|
500
|
+
margin: 0.55em 0;
|
|
501
|
+
padding: 0;
|
|
502
|
+
font-size: 0.77em; /* t-body 20px ÷26 */
|
|
503
|
+
font-weight: 500;
|
|
504
|
+
line-height: 1.6;
|
|
505
|
+
color: var(--text-color);
|
|
506
|
+
}
|
|
507
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-listmark,
|
|
508
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-listmark {
|
|
509
|
+
display: none;
|
|
510
|
+
}
|
|
511
|
+
body.presenting #editor .cm-content .cm-md-slide-closing.cm-md-li::before,
|
|
512
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing.cm-md-li::before {
|
|
513
|
+
content: none; /* 模板联系列无 ▸ 前缀 */
|
|
514
|
+
}
|
|
515
|
+
body.presenting #editor .cm-content .cm-md-slide-closing .cm-md-strong,
|
|
516
|
+
body.slides-printing #editor .cm-content .cm-md-slide-closing .cm-md-strong {
|
|
517
|
+
font-weight: 800;
|
|
518
|
+
letter-spacing: 0.02em;
|
|
519
|
+
text-transform: uppercase;
|
|
520
|
+
color: var(--text-color);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
/* 1.6.12 chrome · 模板没有页码/页脚文字,只有封面品牌行(20px/900 大写);
|
|
524
|
+
品牌行取 20px/900 + 3px 黑横线(模板页头底线)。幽灵页码在模板中
|
|
525
|
+
不存在——整副牌隐藏 */
|
|
526
|
+
body.presenting .slide-chrome,
|
|
527
|
+
body.slides-printing .slide-chrome {
|
|
528
|
+
font-family: var(--font-body);
|
|
529
|
+
font-size: clamp(12px, 1.04vw, 20px); /* P1 品牌字 20px @1920 */
|
|
530
|
+
font-weight: 900;
|
|
531
|
+
letter-spacing: -0.02em;
|
|
532
|
+
text-transform: uppercase;
|
|
533
|
+
color: var(--text-color);
|
|
534
|
+
}
|
|
535
|
+
body.presenting .slide-chrome-left::after,
|
|
536
|
+
body.slides-printing .slide-chrome-left::after {
|
|
537
|
+
height: 3px;
|
|
538
|
+
opacity: 1;
|
|
539
|
+
background: var(--text-color);
|
|
540
|
+
}
|
|
541
|
+
body.presenting .slide-chrome-logo,
|
|
542
|
+
body.slides-printing .slide-chrome-logo {
|
|
543
|
+
border: 3px solid var(--text-color);
|
|
544
|
+
background: var(--bg-color);
|
|
545
|
+
padding: 3px;
|
|
546
|
+
}
|
|
547
|
+
body.presenting .slide-foot,
|
|
548
|
+
body.slides-printing .slide-foot {
|
|
549
|
+
font-family: var(--font-body);
|
|
550
|
+
font-size: clamp(10px, 0.55vw, 11px);
|
|
551
|
+
font-weight: 700;
|
|
552
|
+
letter-spacing: 0.08em;
|
|
553
|
+
opacity: 0.75;
|
|
554
|
+
color: var(--text-color);
|
|
555
|
+
}
|
|
556
|
+
body.presenting .slide-ghost,
|
|
557
|
+
body.slides-printing .slide-ghost {
|
|
558
|
+
opacity: 0; /* 模板无幽灵页码 */
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/* ═══════════════════════════════════════════════════════════
|
|
562
|
+
SECTION 2 — Editor DOM(#editor .cm-content + .cm-md-*)
|
|
563
|
+
═══════════════════════════════════════════════════════════ */
|
|
564
|
+
|
|
565
|
+
#editor .cm-content {
|
|
566
|
+
font-family: var(--font-body);
|
|
567
|
+
font-weight: 500; /* 模板 t-body 500 */
|
|
568
|
+
line-height: 1.6;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
/* ── 2.1 Headings(900/800 重字重 + 全大写;文档式下划线换成 3px 黑压线)── */
|
|
572
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
573
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
574
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
575
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
576
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
577
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
578
|
+
font-family: var(--font-body);
|
|
579
|
+
color: var(--text-color);
|
|
580
|
+
text-transform: uppercase;
|
|
581
|
+
line-height: 1.15;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
#editor .cm-content .cm-md-atxheading1 {
|
|
585
|
+
font-size: 2.6em;
|
|
586
|
+
font-weight: 900;
|
|
587
|
+
line-height: 1.05;
|
|
588
|
+
letter-spacing: -0.02em;
|
|
589
|
+
padding-bottom: 0.25em;
|
|
590
|
+
border-bottom: 3px solid var(--text-color);
|
|
591
|
+
}
|
|
592
|
+
#editor .cm-content .cm-md-atxheading2 {
|
|
593
|
+
font-size: 2em;
|
|
594
|
+
font-weight: 900;
|
|
595
|
+
letter-spacing: -0.01em;
|
|
596
|
+
padding-bottom: 0.25em;
|
|
597
|
+
border-bottom: 3px solid var(--text-color);
|
|
598
|
+
}
|
|
599
|
+
#editor .cm-content .cm-md-atxheading3 { font-size: 1.5em; font-weight: 800; letter-spacing: 0.01em; }
|
|
600
|
+
#editor .cm-content .cm-md-atxheading4 { font-size: 1.25em; font-weight: 800; }
|
|
601
|
+
#editor .cm-content .cm-md-atxheading5 { font-size: 1.1em; font-weight: 700; letter-spacing: 0.04em; }
|
|
602
|
+
#editor .cm-content .cm-md-atxheading6 {
|
|
603
|
+
display: inline-block; /* 模板 .label 黑底小块 */
|
|
604
|
+
padding: 0.4em 0.9em;
|
|
605
|
+
background: var(--text-color);
|
|
606
|
+
color: var(--bg-color);
|
|
607
|
+
font-size: 0.8em;
|
|
608
|
+
font-weight: 800;
|
|
609
|
+
letter-spacing: 0.08em;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
/* ── 2.2 Inline ── */
|
|
613
|
+
#editor .cm-content .cm-md-strong { color: var(--text-color); font-weight: 800; }
|
|
614
|
+
#editor .cm-content .cm-md-highlight { background: var(--highlight-bg); }
|
|
615
|
+
#editor .cm-content .cm-md-link { color: var(--link-color); }
|
|
616
|
+
|
|
617
|
+
#editor .cm-content .cm-md-inlinecode {
|
|
618
|
+
font-family: var(--font-mono);
|
|
619
|
+
background: var(--code-bg);
|
|
620
|
+
color: var(--text-color);
|
|
621
|
+
border-radius: 0; /* 模板:零圆角 */
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/* ── 2.3 Blockquote / Code Block(每行一个 div,禁用纵向 padding)──
|
|
625
|
+
引用底色由编辑器按 --blockquote-bg 画在选区下方,这里不要写 background,
|
|
626
|
+
否则引用里的代码行会盖住代码块底色。 */
|
|
627
|
+
#editor .cm-content .cm-md-blockquote {
|
|
628
|
+
color: var(--text-color);
|
|
629
|
+
border-left: 3px solid var(--blockquote-border); /* 模板 3px 黑轨 */
|
|
630
|
+
padding-left: 16px;
|
|
631
|
+
padding-right: 16px;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
#editor .cm-content .cm-md-codeblock {
|
|
635
|
+
background: var(--code-block-bg);
|
|
636
|
+
color: var(--code-block-text);
|
|
637
|
+
border-left: 3px solid var(--text-color);
|
|
638
|
+
padding-left: 16px;
|
|
639
|
+
padding-right: 16px;
|
|
640
|
+
}
|
|
641
|
+
#editor .cm-content .cm-md-codeblock-first {
|
|
642
|
+
border-top-left-radius: 0;
|
|
643
|
+
border-top-right-radius: 0;
|
|
644
|
+
}
|
|
645
|
+
#editor .cm-content .cm-md-codeblock-last {
|
|
646
|
+
border-bottom-left-radius: 0;
|
|
647
|
+
border-bottom-right-radius: 0;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
/* ── 2.4 Table / Rule(3px 黑网格 + 黑底白字大写表头,同 P9)── */
|
|
651
|
+
#editor .cm-content .cm-md-table-widget th,
|
|
652
|
+
#editor .cm-content .cm-md-table-widget td {
|
|
653
|
+
border: 3px solid var(--text-color);
|
|
654
|
+
padding: 10px 14px;
|
|
655
|
+
}
|
|
656
|
+
#editor .cm-content .cm-md-table-widget th {
|
|
657
|
+
background: var(--table-header-bg);
|
|
658
|
+
color: var(--bg-color);
|
|
659
|
+
font-family: var(--font-body);
|
|
660
|
+
font-size: 0.78em;
|
|
661
|
+
font-weight: 800;
|
|
662
|
+
letter-spacing: 0.06em;
|
|
663
|
+
text-transform: uppercase;
|
|
664
|
+
border-bottom: 3px solid var(--text-color);
|
|
665
|
+
}
|
|
666
|
+
#editor .cm-content .cm-md-table-widget tr:nth-child(even) td {
|
|
667
|
+
background: var(--seed-panel); /* 隔行灰(.s9-table even) */
|
|
668
|
+
}
|
|
669
|
+
#editor .cm-content .cm-md-hr {
|
|
670
|
+
border-top: 3px solid var(--text-color);
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
/* ── 2.5 中文首行缩进 ──
|
|
674
|
+
CM6 里一行就是一个 div:段落缩进落在 .cm-line 上,标题/引用/代码/列表行归零。 */
|
|
675
|
+
#editor .cm-content .cm-line { text-indent: 2em; }
|
|
676
|
+
|
|
677
|
+
#editor .cm-content .cm-md-atxheading1,
|
|
678
|
+
#editor .cm-content .cm-md-atxheading2,
|
|
679
|
+
#editor .cm-content .cm-md-atxheading3,
|
|
680
|
+
#editor .cm-content .cm-md-atxheading4,
|
|
681
|
+
#editor .cm-content .cm-md-atxheading5,
|
|
682
|
+
#editor .cm-content .cm-md-atxheading6,
|
|
683
|
+
#editor .cm-content .cm-md-blockquote,
|
|
684
|
+
#editor .cm-content .cm-md-codeblock,
|
|
685
|
+
#editor .cm-content .cm-md-hr,
|
|
686
|
+
#editor .cm-content .cm-md-mermaid,
|
|
687
|
+
#editor .cm-content .cm-md-li-0,
|
|
688
|
+
#editor .cm-content .cm-md-li-1,
|
|
689
|
+
#editor .cm-content .cm-md-li-2,
|
|
690
|
+
#editor .cm-content .cm-md-li-3,
|
|
691
|
+
#editor .cm-content .cm-md-li-4,
|
|
692
|
+
#editor .cm-content .cm-md-li-5,
|
|
693
|
+
#editor .cm-content .cm-md-li-6 {
|
|
694
|
+
text-indent: 0;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
/* ═══════════════════════════════════════════════════════════
|
|
698
|
+
SECTION 3 — Exported HTML(.colamd-document,语义标签)
|
|
699
|
+
HTML/PDF 导出不走编辑器 DOM;这段让导出件沿用同一套配色。
|
|
700
|
+
═══════════════════════════════════════════════════════════ */
|
|
701
|
+
|
|
702
|
+
.colamd-document {
|
|
703
|
+
font-family: var(--font-body);
|
|
704
|
+
font-size: var(--editor-font-size);
|
|
705
|
+
font-weight: 500;
|
|
706
|
+
line-height: 1.6;
|
|
707
|
+
background: var(--bg-color);
|
|
708
|
+
color: var(--text-color);
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
.colamd-document h1,
|
|
712
|
+
.colamd-document h2,
|
|
713
|
+
.colamd-document h3,
|
|
714
|
+
.colamd-document h4,
|
|
715
|
+
.colamd-document h5,
|
|
716
|
+
.colamd-document h6 {
|
|
717
|
+
font-family: var(--font-body);
|
|
718
|
+
color: var(--text-color);
|
|
719
|
+
text-transform: uppercase;
|
|
720
|
+
line-height: 1.15;
|
|
721
|
+
margin: 1.4em 0 0.5em;
|
|
722
|
+
}
|
|
723
|
+
.colamd-document h1 {
|
|
724
|
+
font-size: 2.6em;
|
|
725
|
+
font-weight: 900;
|
|
726
|
+
line-height: 1.05;
|
|
727
|
+
letter-spacing: -0.02em;
|
|
728
|
+
padding-bottom: 0.25em;
|
|
729
|
+
border-bottom: 3px solid var(--text-color);
|
|
730
|
+
margin-top: 0.4em;
|
|
731
|
+
}
|
|
732
|
+
.colamd-document h2 {
|
|
733
|
+
font-size: 2em;
|
|
734
|
+
font-weight: 900;
|
|
735
|
+
letter-spacing: -0.01em;
|
|
736
|
+
padding-bottom: 0.25em;
|
|
737
|
+
border-bottom: 3px solid var(--text-color);
|
|
738
|
+
}
|
|
739
|
+
.colamd-document h3 { font-size: 1.5em; font-weight: 800; letter-spacing: 0.01em; }
|
|
740
|
+
.colamd-document h4 { font-size: 1.25em; font-weight: 800; }
|
|
741
|
+
.colamd-document h5 { font-size: 1.1em; font-weight: 700; letter-spacing: 0.04em; }
|
|
742
|
+
.colamd-document h6 {
|
|
743
|
+
display: inline-block;
|
|
744
|
+
padding: 0.4em 0.9em;
|
|
745
|
+
background: var(--text-color);
|
|
746
|
+
color: var(--bg-color);
|
|
747
|
+
font-size: 0.8em;
|
|
748
|
+
font-weight: 800;
|
|
749
|
+
letter-spacing: 0.08em;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.colamd-document strong { color: var(--text-color); font-weight: 800; }
|
|
753
|
+
.colamd-document code {
|
|
754
|
+
background: var(--code-bg);
|
|
755
|
+
color: var(--text-color);
|
|
756
|
+
font-family: var(--font-mono);
|
|
757
|
+
border-radius: 0;
|
|
758
|
+
}
|
|
759
|
+
/* Pele SVG 不自绘背景,编辑器里浮在代码块行上;导出后无类名 div 托底,需补回 */
|
|
760
|
+
.colamd-document svg.pele {
|
|
761
|
+
background: var(--pele-bg);
|
|
762
|
+
border: 3px solid var(--text-color);
|
|
763
|
+
border-radius: var(--pele-radius);
|
|
764
|
+
}
|
|
765
|
+
.colamd-document pre {
|
|
766
|
+
background: var(--code-block-bg);
|
|
767
|
+
border-left: 3px solid var(--text-color);
|
|
768
|
+
}
|
|
769
|
+
.colamd-document pre code { background: transparent; color: var(--code-block-text); }
|
|
770
|
+
.colamd-document blockquote {
|
|
771
|
+
background: var(--blockquote-bg);
|
|
772
|
+
color: var(--text-color);
|
|
773
|
+
border-left: 3px solid var(--blockquote-border);
|
|
774
|
+
padding: 1em 1.5em;
|
|
775
|
+
}
|
|
776
|
+
.colamd-document mark { background: var(--highlight-bg); }
|
|
777
|
+
.colamd-document th,
|
|
778
|
+
.colamd-document td {
|
|
779
|
+
border: 3px solid var(--text-color);
|
|
780
|
+
padding: 10px 14px;
|
|
781
|
+
}
|
|
782
|
+
.colamd-document th {
|
|
783
|
+
background: var(--table-header-bg);
|
|
784
|
+
color: var(--bg-color);
|
|
785
|
+
font-size: 0.78em;
|
|
786
|
+
font-weight: 800;
|
|
787
|
+
letter-spacing: 0.06em;
|
|
788
|
+
text-transform: uppercase;
|
|
789
|
+
}
|
|
790
|
+
.colamd-document tr:nth-child(even) td { background: var(--seed-panel); }
|
|
791
|
+
.colamd-document hr { border-top: 3px solid var(--text-color); }
|
|
792
|
+
|
|
793
|
+
.colamd-document p { text-indent: 2em; }
|
|
794
|
+
.colamd-document li p,
|
|
795
|
+
.colamd-document td p,
|
|
796
|
+
.colamd-document th p,
|
|
797
|
+
.colamd-document blockquote p {
|
|
798
|
+
text-indent: 0;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
/* ═══════════════════════════════════════════════════════════
|
|
802
|
+
SECTION 4 — Print
|
|
803
|
+
应用直接对当前窗口 printToPDF,屏幕规则原样生效;这里只补保真。
|
|
804
|
+
═══════════════════════════════════════════════════════════ */
|
|
805
|
+
|
|
806
|
+
@media print {
|
|
807
|
+
html,
|
|
808
|
+
body {
|
|
809
|
+
background: var(--bg-color);
|
|
810
|
+
color: var(--text-color);
|
|
811
|
+
-webkit-print-color-adjust: exact;
|
|
812
|
+
print-color-adjust: exact;
|
|
813
|
+
}
|
|
814
|
+
}
|