markdown-it-any-block 3.2.7 → 3.2.8

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.
Files changed (3) hide show
  1. package/README.md +15 -0
  2. package/package.json +50 -48
  3. package/styles.css +1130 -0
package/README.md CHANGED
@@ -29,6 +29,13 @@ const userConfig: UserConfig = {
29
29
  }
30
30
  ```
31
31
 
32
+ > [!WARNING]
33
+ >
34
+ > 注意,构建出来的只有对应的dom结构,而没有样式。因为纯markdown-it插件是不含样式的(除非用内联样式),自己引用一下就好
35
+ >
36
+ > 对应的样式位置,例如在scss中:
37
+ > `@import '../../../node_modules/markdown-it-any-block/styles.css'`
38
+
32
39
  ## 构建
33
40
 
34
41
  构建就简单的 `pnpm build`
@@ -51,3 +58,11 @@ $ npm publish # 上传 (注意不要重名、npm账号可能需要邮箱验证)
51
58
  $ npm publish --tag beta # 如果使用测试或beta版本 (包含 `-tagname`),如 `-beta`
52
59
  # 需要 添加 `--tag <tagname>`,如 `--tag beta`
53
60
  ```
61
+
62
+ ## 服务端渲染与客户端渲染
63
+
64
+ 其中,如果你想部署静态文档,并使用 anyblock 提前渲染好对应的结果,
65
+ 那么你需要执行 `jsdom_init_()`,像前面教程中说到的那样。
66
+
67
+ 又或者,你可能想二次封装该 markdown-it 插件,让其在客户端渲染,
68
+ 那么你无需使用虚拟dom模块,即无需执行 `jsdom_init_()`
package/package.json CHANGED
@@ -1,48 +1,50 @@
1
- {
2
- "name": "markdown-it-any-block",
3
- "version": "3.2.7",
4
- "description": "```typescript\r import { ABConvertManager } from \"ABConvertManager\"",
5
- "types": "@types/index_mdit.d.ts",
6
- "type": "module",
7
- "main": "dist/mdit-any-block.cjs",
8
- "exports": {
9
- ".": {
10
- "import": "./dist/mdit-any-block.js",
11
- "require": "./dist/mdit-any-block.cjs"
12
- }
13
- },
14
- "scripts": {
15
- "test": "echo \"Error: no test specified\" && exit 1",
16
- "build": "pnpm build_vite",
17
- "build_tsc": "tsc",
18
- "build_tsup": "tsup",
19
- "build_vite": "vite build",
20
- "build_rollup": "rollup -c rollup.config.ts --configPlugin esbuild",
21
- "build_test": "echo '区别见README文件的 `构建测试` 一节'",
22
- "prepublishOnly": "pnpm build"
23
- },
24
- "author": "LincZero",
25
- "license": "GNU Affero General Public License v3.0",
26
- "peerDependencies": {
27
- "markdown-it": "^14.1.0"
28
- },
29
- "dependencies": {
30
- "jsdom": "^26.0.0",
31
- "markdown-it": "^14.1.0",
32
- "plantuml-encoder": "^1.4.0"
33
- },
34
- "devDependencies": {
35
- "@rollup/plugin-alias": "^5.1.1",
36
- "@types/jsdom": "^21.1.7",
37
- "@types/markdown-it": "^14.1.2",
38
- "@types/markdown-it-container": "^2.0.10",
39
- "@types/plantuml-encoder": "^1.4.2",
40
- "markdown-it-container": "^4.0.0",
41
- "rollup": "4.40.1",
42
- "rollup-plugin-dts": "6.2.1",
43
- "rollup-plugin-esbuild": "6.2.1",
44
- "tsup": "^8.2.4",
45
- "typescript": "^5.6.2",
46
- "vite": "^5.4.5"
47
- }
48
- }
1
+ {
2
+ "name": "markdown-it-any-block",
3
+ "version": "3.2.8",
4
+ "description": "```typescript\r import { ABConvertManager } from \"ABConvertManager\"",
5
+ "types": "@types/index_mdit.d.ts",
6
+ "type": "module",
7
+ "main": "dist/mdit-any-block.cjs",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/mdit-any-block.js",
11
+ "require": "./dist/mdit-any-block.cjs"
12
+ }
13
+ },
14
+ "scripts": {
15
+ "test": "echo \"Error: no test specified\" && exit 1",
16
+ "build": "pnpm build_vite",
17
+ "build_tsc": "pnpm copy_abc_style && tsc",
18
+ "build_tsup": "pnpm copy_abc_style && tsup",
19
+ "build_vite": "pnpm copy_abc_style && vite build",
20
+ "build_rollup": "pnpm copy_abc_style && rollup -c rollup.config.ts --configPlugin esbuild",
21
+ "build_test": "echo '区别见README文件的 `构建测试` 一节'",
22
+ "prepublishOnly": "pnpm build",
23
+ "copy_abc_style": "copyfiles --flat ../../src/ABConverter/style/styles.css ./"
24
+ },
25
+ "author": "LincZero",
26
+ "license": "GNU Affero General Public License v3.0",
27
+ "peerDependencies": {
28
+ "markdown-it": "^14.1.0"
29
+ },
30
+ "dependencies": {
31
+ "jsdom": "^26.0.0",
32
+ "markdown-it": "^14.1.0",
33
+ "plantuml-encoder": "^1.4.0"
34
+ },
35
+ "devDependencies": {
36
+ "@rollup/plugin-alias": "^5.1.1",
37
+ "@types/jsdom": "^21.1.7",
38
+ "@types/markdown-it": "^14.1.2",
39
+ "@types/markdown-it-container": "^2.0.10",
40
+ "@types/plantuml-encoder": "^1.4.2",
41
+ "copyfiles": "^2.4.1",
42
+ "markdown-it-container": "^4.0.0",
43
+ "rollup": "4.40.1",
44
+ "rollup-plugin-dts": "6.2.1",
45
+ "rollup-plugin-esbuild": "6.2.1",
46
+ "tsup": "^8.2.4",
47
+ "typescript": "^5.6.2",
48
+ "vite": "^5.4.5"
49
+ }
50
+ }
package/styles.css ADDED
@@ -0,0 +1,1130 @@
1
+ @charset "UTF-8";
2
+ /**
3
+ * ABC 样式文件
4
+ *
5
+ * 修改/使用说明:
6
+ *
7
+ * vuepress-mdit环境直接用scss,ob这边需要使用css
8
+ * 编辑ABC模块的该文件时,需要手动编译/使用vscode `easy sass` 插件
9
+ *
10
+ * 换行问题:AnyBlock的块宽度很多都是不满100%的,在窄区域中显示多文本时经常需要使用换行
11
+ * - 不换行时
12
+ * - white-space: pre; // 有换行符要换
13
+ * - 换行时
14
+ * - white-space: break-spaces; // 自动换行 ~normal~~
15
+ * - overflow-wrap: break-word; // 单词中换行
16
+ * - code {white-space: pre;} // 一个用于手动控制不换行的方式
17
+ */
18
+ /**
19
+ * 颜色相关
20
+ */
21
+ :root {
22
+ --ab-tab-root-bg-color: #0d1117;
23
+ --ab-tab-root-bd-color: #34343f;
24
+ --ab-tab-root-tx-color: #9e9e9e;
25
+ --ab-bright-color: orange;
26
+ --pre-background-color: #1b1b1b;
27
+ --ab-table-border-width: 1px;
28
+ --ab-table-border-color: #363636;
29
+ --ab-width-inner: 100%;
30
+ --ab-width-outer: 100%;
31
+ }
32
+
33
+ .theme-dark,
34
+ .theme-light {
35
+ --ab-tab-root-bg-color: var(--color-base-00);
36
+ --ab-tab-root-bd-color: var(--color-base-30);
37
+ --ab-tab-root-tx-color: var(--color-base-70);
38
+ --ab-bright-color: var(--blockquote-border-color);
39
+ --pre-background-color: var(--secondary-background);
40
+ --ab-table-border-width: var(--table-border-width);
41
+ --ab-table-border-color: var(--table-border-color);
42
+ }
43
+
44
+ html[data-theme=light] #app,
45
+ html[data-theme=dark] #app {
46
+ --ab-tab-root-bg-color: var(--vp-c-bg);
47
+ --ab-tab-root-bd-color: var(--vp-c-border);
48
+ --ab-tab-root-tx-color: var(--vp-c-text);
49
+ --ab-bright-color: var(--vp-c-accent);
50
+ --pre-background-color: var(--code-bg-color);
51
+ }
52
+
53
+ html[data-theme=light] #app {
54
+ --color-red: #e93147;
55
+ --color-orange: #ec7500;
56
+ --color-yellow: #e0ac00;
57
+ --color-green: #08b94e;
58
+ --color-cyan: #00bfbc;
59
+ --color-blue: #086ddd;
60
+ --color-purple: #7852ee;
61
+ --color-pink: #d53984;
62
+ }
63
+
64
+ html[data-theme=dark] #app {
65
+ --color-red: #fb464c;
66
+ --color-orange: #e9973f;
67
+ --color-yellow: #e0de71;
68
+ --color-green: #44cf6e;
69
+ --color-cyan: #53dfdd;
70
+ --color-blue: #027aff;
71
+ --color-purple: #a882ff;
72
+ --color-pink: #fa99cd;
73
+ }
74
+
75
+ /**
76
+ * obsidian各模式下的微调
77
+ *
78
+ * 替换内容
79
+ * .ab-replace // 整体 (外框、圆角)
80
+ * &>.ab-note // 内容
81
+ * &>.ab-replaceEl // 内容 (感觉冗余了)
82
+ * &>.ab-button // 操作控件 (刷新/编辑/下拉框)
83
+ */
84
+ .app-container .markdown-reading-view .ab-replace {
85
+ margin-top: 0;
86
+ margin-bottom: 22px;
87
+ }
88
+ .app-container .markdown-source-view .ab-replace {
89
+ margin-top: -0.5em;
90
+ margin-bottom: -0.5em;
91
+ }
92
+ .app-container .markdown-source-view .block-language-anyblock > .ab-replace {
93
+ margin-top: 0;
94
+ margin-bottom: 0;
95
+ }
96
+ .app-container .markdown-source-view .markdown-preview-view .ab-replace {
97
+ margin-top: 0;
98
+ margin-bottom: 22px;
99
+ }
100
+ .print .ab-replace > .ab-button {
101
+ display: none;
102
+ }
103
+ .print .ab-replaceEl > button {
104
+ display: none;
105
+ }
106
+
107
+ /**
108
+ * 替换内容
109
+ * .ab-replace // 整体 (外框、圆角)
110
+ * &>.ab-note // 内容
111
+ * &>.ab-replaceEl // 内容 (感觉冗余了)
112
+ * &>.ab-button // 操作控件 (刷新/编辑/下拉框)
113
+ */
114
+ .ab-replace {
115
+ /*background-color: #272e3a;*/
116
+ position: relative;
117
+ border-radius: 4px;
118
+ }
119
+ .ab-replace > .ab-note {
120
+ position: relative;
121
+ /*padding: 24px 12px 12px 12px;*/
122
+ }
123
+ .ab-replace > .ab-button {
124
+ box-sizing: border-box;
125
+ position: absolute;
126
+ top: 4px;
127
+ }
128
+ .ab-replace > .ab-button.ab-button-1 {
129
+ right: 4px;
130
+ }
131
+ .ab-replace > .ab-button.ab-button-2 {
132
+ right: 40px;
133
+ }
134
+ .ab-replace > .ab-button.ab-button-3 {
135
+ right: 76px;
136
+ }
137
+ .ab-replace > .ab-button.ab-button-select > * {
138
+ padding: 0 10px;
139
+ width: 24px;
140
+ height: 24px;
141
+ box-sizing: border-box;
142
+ }
143
+ .ab-replace > .ab-button.ab-button-select > button {
144
+ padding: 0;
145
+ position: absolute;
146
+ pointer-events: none;
147
+ z-index: 2;
148
+ text-align: center;
149
+ border: none;
150
+ box-shadow: none;
151
+ background: none;
152
+ }
153
+ .ab-replace > .ab-button.ab-button-select > select {
154
+ z-index: 1;
155
+ opacity: 0;
156
+ }
157
+ .ab-replace > .ab-button.ab-button-select option {
158
+ padding: 0 10px;
159
+ }
160
+ .ab-replace img.cm-widgetBuffer {
161
+ height: 2px;
162
+ }
163
+
164
+ .ab-note .markdown-rendered table {
165
+ min-width: 0;
166
+ }
167
+ .ab-note .markdown-rendered ul li,
168
+ .ab-note .markdown-rendered ol li {
169
+ margin-bottom: 0;
170
+ }
171
+ .ab-note table {
172
+ display: table;
173
+ width: 100%;
174
+ }
175
+ .ab-note table[modeT=true] tr {
176
+ display: block;
177
+ float: left;
178
+ }
179
+ .ab-note table[modeT=true] th, .ab-note table[modeT=true] td {
180
+ display: block;
181
+ }
182
+ .ab-note pre.ab-mermaid-raw {
183
+ border: solid 1px;
184
+ border-radius: 6px;
185
+ margin-top: 0;
186
+ }
187
+ .ab-note .ab-markmap-svg {
188
+ border: solid 1px;
189
+ border-radius: 6px;
190
+ width: 100%;
191
+ }
192
+ .ab-note .ab-tab-root .ab-tab-nav {
193
+ box-sizing: border-box;
194
+ border: 2px solid var(--ab-tab-root-bd-color);
195
+ background-color: var(--ab-tab-root-bd-color);
196
+ color: var(--ab-tab-root-tx-color);
197
+ border-bottom: none;
198
+ border-radius: 10px 10px 0 0;
199
+ padding-right: 60px;
200
+ }
201
+ .ab-note .ab-tab-root .ab-tab-nav .ab-tab-nav-item {
202
+ height: 38px;
203
+ box-shadow: none;
204
+ border: none;
205
+ border-radius: 10px 10px 0 0;
206
+ padding-left: 20px;
207
+ padding-right: 20px;
208
+ font-size: 0.9em;
209
+ font-weight: bold;
210
+ }
211
+ .ab-note .ab-tab-root .ab-tab-nav .ab-tab-nav-item[is_activate=false] {
212
+ background-color: var(--ab-tab-root-bd-color);
213
+ color: var(--ab-tab-root-tx-color);
214
+ }
215
+ .ab-note .ab-tab-root .ab-tab-nav .ab-tab-nav-item[is_activate=true] {
216
+ background-color: var(--ab-tab-root-bg-color);
217
+ color: var(--ab-tab-root-tx-color);
218
+ }
219
+ .ab-note .ab-tab-root .ab-tab-content {
220
+ border: 2px solid var(--ab-tab-root-bd-color);
221
+ background-color: var(--ab-tab-root-bg-color);
222
+ color: var(--ab-tab-root-tx-color);
223
+ border-top: none;
224
+ padding: 10px 20px;
225
+ }
226
+ .ab-note td > p:first-child, .ab-note th > p:first-child,
227
+ .ab-note td > ul:first-child, .ab-note th > ul:first-child,
228
+ .ab-note .ab-list-table-witharrow > p:first-child,
229
+ .ab-note .ab-nodes-content > p:first-child,
230
+ .ab-note .ab-items-item > div > p:first-child, .ab-note .ab-items-item > div > ul:first-child,
231
+ .ab-note td > div > p:first-child, .ab-note th > div > p:first-child,
232
+ .ab-note td > div > ul:first-child, .ab-note th > div > ul:first-child,
233
+ .ab-note .ab-list-table-witharrow > div > p:first-child,
234
+ .ab-note .ab-nodes-content > div > p:first-child,
235
+ .ab-note .ab-items-item > div > div > p:first-child, .ab-note .ab-items-item > div > div > ul:first-child {
236
+ margin-top: 2px;
237
+ }
238
+ .ab-note td > p:last-child, .ab-note th > p:last-child,
239
+ .ab-note td > ul:last-child, .ab-note th > ul:last-child,
240
+ .ab-note .ab-list-table-witharrow > p:last-child,
241
+ .ab-note .ab-nodes-content > p:last-child,
242
+ .ab-note .ab-items-item > div > p:last-child, .ab-note .ab-items-item > div > ul:last-child,
243
+ .ab-note td > div > p:last-child, .ab-note th > div > p:last-child,
244
+ .ab-note td > div > ul:last-child, .ab-note th > div > ul:last-child,
245
+ .ab-note .ab-list-table-witharrow > div > p:last-child,
246
+ .ab-note .ab-nodes-content > div > p:last-child,
247
+ .ab-note .ab-items-item > div > div > p:last-child, .ab-note .ab-items-item > div > div > ul:last-child {
248
+ margin-bottom: 2px;
249
+ }
250
+ .ab-note table.ab-table {
251
+ border-collapse: collapse;
252
+ }
253
+ .ab-note table.ab-table td, .ab-note table.ab-table th {
254
+ white-space: normal;
255
+ overflow-wrap: break-word;
256
+ padding: 2px 5px;
257
+ border: solid var(--ab-table-border-width) var(--ab-table-border-color);
258
+ }
259
+ .ab-note table.ab-table td code, .ab-note table.ab-table th code {
260
+ white-space: pre;
261
+ }
262
+ .ab-note table.ab-table tr {
263
+ background: none;
264
+ }
265
+ .ab-note .ab-branch-table.ab-table-likelist td {
266
+ border: none;
267
+ padding-bottom: 10px;
268
+ vertical-align: top;
269
+ box-sizing: border-box;
270
+ }
271
+ .ab-note .ab-branch-table.ab-table-likelist td[col_index="0"] {
272
+ padding-right: 8px;
273
+ padding-left: 20px;
274
+ position: relative;
275
+ }
276
+ .ab-note .ab-branch-table.ab-table-likelist td[col_index="0"]::before {
277
+ position: absolute;
278
+ top: 14px;
279
+ transform: translateY(-50%);
280
+ width: 5px;
281
+ height: 5px;
282
+ border: none;
283
+ left: 6px;
284
+ content: "";
285
+ border-radius: 50%;
286
+ background-color: currentColor;
287
+ }
288
+ .ab-note .ab-branch-table.ab-table-likelist td[col_index="0"]::after {
289
+ content: "";
290
+ position: absolute;
291
+ top: 3px;
292
+ bottom: 5px;
293
+ right: 0;
294
+ border-right: 1px solid currentColor;
295
+ pointer-events: none;
296
+ }
297
+ .ab-note table.ab-list-table .ab-foldable-tr > td:first-child > div {
298
+ padding-left: 15px;
299
+ position: relative;
300
+ }
301
+ .ab-note table.ab-list-table .ab-foldable-tr[able_fold=true] > td:first-child > div::before {
302
+ content: "";
303
+ position: absolute;
304
+ width: 0;
305
+ height: 0;
306
+ }
307
+ .ab-note table.ab-list-table .ab-foldable-tr[able_fold=true][is_fold=true] > td:first-child > div:first-child::before {
308
+ top: 5px;
309
+ left: 2px;
310
+ border: 6px solid transparent;
311
+ border-left-color: currentColor;
312
+ cursor: pointer;
313
+ }
314
+ .ab-note table.ab-list-table .ab-foldable-tr[able_fold=true][is_fold=false] > td:first-child > div:first-child::before {
315
+ top: 9px;
316
+ left: -1px;
317
+ border: 6px solid transparent;
318
+ border-top-color: currentColor;
319
+ cursor: pointer;
320
+ }
321
+ .ab-note table.ab-list-table .ab-foldable-tr[tr_level="0"] > td:first-child {
322
+ padding-left: 0px;
323
+ }
324
+ .ab-note table.ab-list-table .ab-foldable-tr[tr_level="1"] > td:first-child {
325
+ padding-left: 24px;
326
+ }
327
+ .ab-note table.ab-list-table .ab-foldable-tr[tr_level="2"] > td:first-child {
328
+ padding-left: 48px;
329
+ }
330
+ .ab-note table.ab-list-table .ab-foldable-tr[tr_level="3"] > td:first-child {
331
+ padding-left: 72px;
332
+ }
333
+ .ab-note table.ab-list-table .ab-foldable-tr[tr_level="4"] > td:first-child {
334
+ padding-left: 96px;
335
+ }
336
+ .ab-note table.ab-list-table .ab-foldable-tr[tr_level="5"] > td:first-child {
337
+ padding-left: 120px;
338
+ }
339
+ .ab-note table.ab-list-table .ab-foldable-tr[tr_level="6"] > td:first-child {
340
+ padding-left: 144px;
341
+ }
342
+ .ab-note table.ab-list-table .ab-foldable-tr[tr_level="7"] > td:first-child {
343
+ padding-left: 168px;
344
+ }
345
+ .ab-note table.ab-list-table .ab-foldable-tr[tr_level="8"] > td:first-child {
346
+ padding-left: 192px;
347
+ }
348
+ .ab-note table.ab-list-table .ab-foldable-tr[tr_level="9"] > td:first-child {
349
+ padding-left: 216px;
350
+ }
351
+ .ab-note table.ab-list-table .ab-foldable-tr[tr_level="10"] > td:first-child {
352
+ padding-left: 240px;
353
+ }
354
+ .ab-note table.ab-list-table .ab-foldable-tr[tr_level="11"] > td:first-child {
355
+ padding-left: 264px;
356
+ }
357
+ .ab-note table.ab-list-table .ab-foldable-tr[tr_level="12"] > td:first-child {
358
+ padding-left: 288px;
359
+ }
360
+ .ab-note table.ab-list-table .ab-foldable-tr[tr_level="13"] > td:first-child {
361
+ padding-left: 312px;
362
+ }
363
+ .ab-note table.ab-list-table .ab-foldable-tr[tr_level="14"] > td:first-child {
364
+ padding-left: 336px;
365
+ }
366
+ .ab-note table.ab-list-table .ab-foldable-tr[tr_level="15"] > td:first-child {
367
+ padding-left: 360px;
368
+ }
369
+ .ab-note table.ab-list-table .ab-foldable-tr[tr_level="16"] > td:first-child {
370
+ padding-left: 384px;
371
+ }
372
+ .ab-note table.ab-list-table.ab-listtable-likelist {
373
+ margin-left: 24px;
374
+ }
375
+ .ab-note table.ab-list-table.ab-listtable-likelist td {
376
+ border: none;
377
+ vertical-align: top;
378
+ }
379
+ .ab-note table.ab-list-table.ab-listtable-likelist .ab-foldable-tr > td:first-child > div.ab-list-table-witharrow {
380
+ padding: 0 !important;
381
+ padding-right: 8px;
382
+ padding-left: 20px;
383
+ position: relative;
384
+ display: inline-block;
385
+ }
386
+ .ab-note table.ab-list-table.ab-listtable-likelist .ab-foldable-tr > td:first-child > div.ab-list-table-witharrow::before {
387
+ border: solid 1px !important;
388
+ background: none !important;
389
+ width: 6px !important;
390
+ height: 6px !important;
391
+ box-sizing: border-box;
392
+ position: absolute;
393
+ top: 12px !important;
394
+ transform: translateY(-50%) !important;
395
+ left: -14px !important;
396
+ content: "";
397
+ border-radius: 50%;
398
+ }
399
+ .ab-note table.ab-list-table.ab-listtable-likelist .ab-foldable-tr[tr_level="0"] > td:first-child > div.ab-list-table-witharrow::before {
400
+ border: 0 !important;
401
+ background-color: currentColor !important;
402
+ width: 6px !important;
403
+ height: 6px !important;
404
+ }
405
+ .ab-note table.ab-list-table.ab-table-folder .ab-foldable-tr td:first-child {
406
+ white-space: pre;
407
+ vertical-align: top;
408
+ }
409
+ .ab-note table.ab-list-table.ab-table-folder .ab-foldable-tr > td > div {
410
+ display: inline-block;
411
+ vertical-align: top;
412
+ }
413
+ .ab-note table.ab-list-table.ab-table-folder .ab-foldable-tr > td > div.ab-list-table-witharrow {
414
+ padding-left: 6px;
415
+ }
416
+ .ab-note table.ab-list-table.ab-table-folder .ab-foldable-tr .ab-list-table-svg {
417
+ padding-top: 4px;
418
+ }
419
+ .ab-note table.ab-list-table.ab-table-folder .ab-foldable-tr .ab-list-table-svg svg {
420
+ width: 14px;
421
+ height: 14px;
422
+ fill: var(--ab-bright-color);
423
+ }
424
+ .ab-note table.ab-list-table.ab-table-folder .ab-foldable-tr td:first-child {
425
+ border: none;
426
+ }
427
+ .ab-note table.ab-list-table.ab-table-folder .ab-foldable-tr td {
428
+ border-left: none;
429
+ border-right: none;
430
+ border-bottom: none;
431
+ }
432
+ .ab-note table.ab-list-table .ab-table-fold {
433
+ position: absolute;
434
+ bottom: 0;
435
+ right: 0;
436
+ }
437
+ .ab-note table.ab-table-timeline td {
438
+ border-right: none;
439
+ padding-left: 20px;
440
+ }
441
+ .ab-note table.ab-table-timeline td[col_index="0"] {
442
+ border: none;
443
+ border-left: none;
444
+ border-right: solid 2px;
445
+ padding-left: 5px;
446
+ padding-right: 20px;
447
+ color: var(--ab-bright-color);
448
+ position: relative;
449
+ overflow: visible;
450
+ }
451
+ .ab-note table.ab-table-timeline td[col_index="0"]::after {
452
+ position: absolute;
453
+ top: 1em;
454
+ transform: translateY(-50%);
455
+ width: 10px;
456
+ height: 10px;
457
+ right: -8px;
458
+ content: "";
459
+ background-color: var(--ab-bright-color);
460
+ border-radius: 50%;
461
+ border: solid 2px;
462
+ }
463
+ .ab-note table.ab-table-timeline tr:first-child td {
464
+ border-top: none;
465
+ }
466
+ .ab-note table.ab-table-timeline tr:last-child td {
467
+ border-bottom: none;
468
+ }
469
+ .ab-note .markdown-rendered.ab-faq-content p:first-child {
470
+ margin-top: 0;
471
+ }
472
+ .ab-note .markdown-rendered.ab-faq-content p:last-child {
473
+ margin-bottom: 0;
474
+ }
475
+ .ab-note .ab-faq .ab-faq-line {
476
+ line-height: 30px;
477
+ width: 100%;
478
+ padding: 0 15px 0 15px;
479
+ clear: both;
480
+ overflow-y: auto;
481
+ }
482
+ .ab-note .ab-faq .ab-faq-line .ab-faq-bubble {
483
+ float: left;
484
+ width: calc(100% - 75px);
485
+ }
486
+ .ab-note .ab-faq .ab-faq-line.ab-faq-q,
487
+ .ab-note .ab-faq .ab-faq-line.ab-faq-Q {
488
+ background-color: #1e53ee;
489
+ border-radius: 12px 12px 0 0;
490
+ }
491
+ .ab-note .ab-faq .ab-faq-line.ab-faq-a,
492
+ .ab-note .ab-faq .ab-faq-line.ab-faq-A {
493
+ background-color: #f5f8fe;
494
+ border-radius: 0 0 12px 12px;
495
+ color: #a994a6;
496
+ margin-bottom: 20px;
497
+ }
498
+ .ab-note .ab-faq .ab-faq-line::before {
499
+ float: left;
500
+ width: 24px;
501
+ }
502
+ .ab-note .ab-faq .ab-faq-line.ab-faq-q::before,
503
+ .ab-note .ab-faq .ab-faq-line.ab-faq-Q::before {
504
+ content: "Q";
505
+ }
506
+ .ab-note .ab-faq .ab-faq-line.ab-faq-a::before,
507
+ .ab-note .ab-faq .ab-faq-line.ab-faq-A::before {
508
+ content: "A";
509
+ }
510
+ .ab-note .ab-deco-fold .ab-deco-fold-button {
511
+ color: var(--ab-bright-color);
512
+ border-bottom: 1px solid var(--ab-bright-color);
513
+ height: 30px;
514
+ line-height: 30px;
515
+ padding-left: 6px;
516
+ width: 100%;
517
+ }
518
+ .ab-note .ab-deco-scroll.ab-deco-scroll-y {
519
+ overflow-y: auto;
520
+ }
521
+ .ab-note .ab-deco-scroll.ab-deco-scroll-x {
522
+ overflow-x: auto;
523
+ white-space: pre !important;
524
+ }
525
+ .ab-note .ab-deco-scroll.ab-deco-scroll-x th, .ab-note .ab-deco-scroll.ab-deco-scroll-x td {
526
+ white-space: pre !important;
527
+ }
528
+ .ab-note .ab-deco-overfold {
529
+ overflow-y: hidden;
530
+ position: relative;
531
+ }
532
+ .ab-note .ab-deco-overfold .ab-deco-overfold-button {
533
+ position: absolute;
534
+ bottom: 0;
535
+ height: 40px;
536
+ line-height: 40px;
537
+ width: 100%;
538
+ text-align: center;
539
+ box-sizing: content-box;
540
+ }
541
+ .ab-note .ab-deco-overfold .ab-deco-overfold-content {
542
+ margin-bottom: 40px;
543
+ }
544
+ .ab-note .ab-deco-overfold[is-fold=true] .ab-deco-overfold-button {
545
+ padding-top: 60px;
546
+ background-image: linear-gradient(-180deg, rgba(24, 26, 27, 0) 0%, rgb(24, 26, 27) 100%);
547
+ }
548
+ .ab-note .ab-deco-heimu, .ab-note .ab-deco-heimu a {
549
+ background-color: #252525;
550
+ color: #252525;
551
+ text-shadow: none;
552
+ }
553
+ .ab-note .ab-deco-heimu::-moz-selection, .ab-note .ab-deco-heimu a::-moz-selection {
554
+ background: #9ab0c0;
555
+ color: #fff;
556
+ }
557
+ .ab-note .ab-deco-heimu::selection, .ab-note .ab-deco-heimu a::selection {
558
+ background: #9ab0c0;
559
+ color: #fff;
560
+ }
561
+ .ab-note .ab-deco-heimu:hover, .ab-note .ab-deco-heimu:hover a {
562
+ transition: color 0.13s linear;
563
+ color: #fff;
564
+ }
565
+ .ab-note .ab-deco-title {
566
+ width: 100%;
567
+ }
568
+ .ab-note .ab-deco-title p {
569
+ font-size: 17px;
570
+ line-height: 17px;
571
+ margin: 0;
572
+ margin-bottom: 10px;
573
+ }
574
+ .ab-note .ab-deco-title pre {
575
+ margin: 0;
576
+ }
577
+ .ab-note .ab-deco-title .ab-deco-title-title {
578
+ height: auto;
579
+ }
580
+ .ab-note .ab-deco-title .ab-deco-title-title[title-type=table] > p {
581
+ font-weight: bold;
582
+ text-align: center;
583
+ margin-top: 10px;
584
+ margin-bottom: 16px;
585
+ }
586
+ .ab-note .ab-deco-title .ab-deco-title-title[title-type=pre] > p {
587
+ display: inline;
588
+ font-size: 16px;
589
+ font-weight: 400;
590
+ background-color: var(--pre-background-color);
591
+ padding: 8px 16px 11px 16px;
592
+ border-radius: 8px 8px 0 0;
593
+ margin: 0;
594
+ }
595
+ .ab-note .ab-deco-title .ab-deco-title-title[title-type=quote] > p {
596
+ font-weight: bold;
597
+ margin-bottom: 20px;
598
+ }
599
+ .ab-note .ab-deco-title .ab-deco-title-title[title-type=ul] > p {
600
+ font-weight: bold;
601
+ }
602
+ .ab-note .ab-items {
603
+ white-space: normal;
604
+ overflow-wrap: break-word;
605
+ }
606
+ .ab-note .ab-items code {
607
+ white-space: pre;
608
+ }
609
+ .ab-note .ab-items.ab-col {
610
+ display: flex;
611
+ flex-wrap: wrap;
612
+ gap: 0rem;
613
+ }
614
+ .ab-note .ab-items.ab-col .ab-items-item {
615
+ flex: 1 0 calc(33.33% - 1rem);
616
+ box-sizing: border-box;
617
+ padding: 10px;
618
+ }
619
+ .ab-note .ab-items.ab-card .ab-items-item {
620
+ box-sizing: border-box;
621
+ color: var(--ab-tab-root-tx-color);
622
+ background-color: var(--ab-tab-root-bg-color);
623
+ border: solid 2px var(--ab-tab-root-bd-color);
624
+ border-radius: 6px;
625
+ box-shadow: #34343f;
626
+ margin-bottom: 10px;
627
+ padding: 5px 10px;
628
+ }
629
+ .ab-note .ab-items.ab-card .ab-items-item > div {
630
+ padding-top: 2px;
631
+ padding-bottom: 2px;
632
+ }
633
+ .ab-note .ab-items.ab-card .ab-items-item .ab-items-title {
634
+ border-bottom: 1px solid var(--ab-bright-color);
635
+ }
636
+ .ab-note .ab-items.ab-card.ab-lay-vfall:not(.ab-hfall) {
637
+ /*display: flex; // Flexbox 布局
638
+ flex-wrap: wrap; // 元素换行显示
639
+ gap: 1rem; // 间隙
640
+ .ab-items-item {
641
+ flex: 1 0 calc(25% - 1rem); // 每个项目的宽度大约为容器的 33.33%,减去间隙的一半
642
+ }*/
643
+ -moz-column-count: 4;
644
+ column-count: 4;
645
+ -moz-column-gap: 10px;
646
+ column-gap: 10px;
647
+ /*display: grid;
648
+ grid-template-columns: repeat(4, 1fr);
649
+ grid-gap: 1rem; // 间隙
650
+ grid-template-rows: masonry; // 兼容有问题,只有火狐支持,还tm的要开选项
651
+ .ab-items-item {
652
+ width: 100%;
653
+ display: block;
654
+ }*/
655
+ /*display: flex; // Flexbox 布局
656
+ flex-wrap: wrap; // 元素换行显示
657
+ // gap: 1rem; // 间隙
658
+ flex-direction: column; // 按列填充
659
+ .ab-items-item {
660
+ position: relative;
661
+ width: calc(100% / 4);
662
+ padding: 5px;
663
+ box-sizing: border-box;
664
+ &:nth-child(4n+1){ order: 1; }
665
+ &:nth-child(4n+2){ order: 2; }
666
+ &:nth-child(4n+3){ order: 3; }
667
+ &:nth-child(4n+0){ order: 4; }
668
+ }*/
669
+ }
670
+ .ab-note .ab-items.ab-card.ab-lay-vfall:not(.ab-hfall) .ab-items-item {
671
+ -moz-column-break-inside: avoid;
672
+ break-inside: avoid-column;
673
+ }
674
+ .ab-note .ab-items.ab-card.ab-lay-hfall {
675
+ display: flex;
676
+ flex-wrap: wrap;
677
+ flex-direction: row;
678
+ }
679
+ .ab-note .ab-items.ab-card.ab-lay-hfall .ab-items-item .ab-items-title {
680
+ color: currentColor;
681
+ border-bottom: none;
682
+ }
683
+ .ab-note .ab-items.ab-card.ab-lay-hfall::after {
684
+ content: "";
685
+ flex-grow: 99999;
686
+ }
687
+ .ab-note .ab-items.ab-card.ab-lay-hfall > .ab-items-item {
688
+ flex-grow: 1;
689
+ margin: 5px;
690
+ padding: 0 10px;
691
+ position: relative;
692
+ overflow: hidden;
693
+ }
694
+ .ab-note .ab-items.ab-card.ab-lay-hfall > .ab-items-item img {
695
+ max-width: 100%;
696
+ min-width: 100%;
697
+ height: 200px;
698
+ margin: 0;
699
+ -o-object-fit: cover;
700
+ object-fit: cover;
701
+ vertical-align: bottom;
702
+ }
703
+ .ab-note .ab-items.ab-card.ab-lay-hfall > .ab-items-item p {
704
+ max-width: 300px;
705
+ margin: 0;
706
+ }
707
+ .ab-note .ab-items.ab-card.ab-lay-hfall > .ab-items-item > .ab-items-content {
708
+ height: 100%;
709
+ min-width: 100%;
710
+ }
711
+ .ab-note .ab-items.ab-card.ab-lay-grid {
712
+ display: grid;
713
+ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
714
+ gap: 0px !important;
715
+ margin: 0 auto;
716
+ }
717
+ .ab-note .ab-items.ab-card.ab-lay-grid::after {
718
+ content: "";
719
+ flex-grow: 99999;
720
+ }
721
+ .ab-note .ab-items.ab-card.ab-lay-grid > .ab-items-item {
722
+ position: relative;
723
+ margin: 5px;
724
+ display: flex;
725
+ flex-direction: column;
726
+ align-items: center;
727
+ text-align: center; /* 确保文字居中 */
728
+ }
729
+ .ab-note .ab-items.ab-card.ab-lay-grid > .ab-items-item img {
730
+ max-width: 200px;
731
+ max-height: 200px;
732
+ width: 100%; /* 确保图片宽度为100%,适应网格布局 */
733
+ height: auto;
734
+ margin: 0;
735
+ }
736
+ .ab-note .ab-items.ab-card.ab-lay-grid > .ab-items-item > .ab-items-content {
737
+ width: 100%;
738
+ padding: 0;
739
+ }
740
+ .ab-note .ab-items.ab-card.ab-deco-scroll-x {
741
+ margin: 0 auto;
742
+ display: flex;
743
+ flex-wrap: nowrap;
744
+ overflow-x: auto;
745
+ }
746
+ .ab-note .ab-items.ab-card.ab-deco-scroll-x .ab-items-item {
747
+ flex: 0 0 auto;
748
+ width: 170px;
749
+ }
750
+ .ab-note .ab-items > .ab-items-item {
751
+ overflow-x: auto;
752
+ }
753
+ .ab-note .ab-items.ab-col1 {
754
+ -moz-column-count: 1 !important;
755
+ column-count: 1 !important;
756
+ grid-template-columns: repeat(1, 1fr) !important;
757
+ }
758
+ .ab-note .ab-items.ab-col2 {
759
+ -moz-column-count: 2 !important;
760
+ column-count: 2 !important;
761
+ grid-template-columns: repeat(2, 1fr) !important;
762
+ }
763
+ .ab-note .ab-items.ab-col3 {
764
+ -moz-column-count: 3 !important;
765
+ column-count: 3 !important;
766
+ grid-template-columns: repeat(3, 1fr) !important;
767
+ }
768
+ .ab-note .ab-items.ab-col4 {
769
+ -moz-column-count: 4 !important;
770
+ column-count: 4 !important;
771
+ grid-template-columns: repeat(4, 1fr) !important;
772
+ }
773
+ .ab-note .ab-items.ab-col5 {
774
+ -moz-column-count: 5 !important;
775
+ column-count: 5 !important;
776
+ grid-template-columns: repeat(5, 1fr) !important;
777
+ }
778
+ .ab-note .ab-items.ab-col6 {
779
+ -moz-column-count: 6 !important;
780
+ column-count: 6 !important;
781
+ grid-template-columns: repeat(6, 1fr) !important;
782
+ }
783
+ .ab-note .ab-items.ab-col7 {
784
+ -moz-column-count: 7 !important;
785
+ column-count: 7 !important;
786
+ grid-template-columns: repeat(7, 1fr) !important;
787
+ }
788
+ .ab-note .ab-items.ab-col8 {
789
+ -moz-column-count: 8 !important;
790
+ column-count: 8 !important;
791
+ grid-template-columns: repeat(8, 1fr) !important;
792
+ }
793
+ .ab-note .ab-nodes {
794
+ white-space: normal;
795
+ overflow-wrap: break-word;
796
+ }
797
+ .ab-note .ab-nodes code {
798
+ white-space: pre;
799
+ }
800
+ .ab-note .ab-nodes .ab-nodes-content {
801
+ display: inline-block;
802
+ background-color: rgba(100, 100, 100, 0.25);
803
+ padding: 2px 10px;
804
+ margin-left: 5px;
805
+ }
806
+ .ab-note .ab-nodes .ab-nodes-children {
807
+ display: flex;
808
+ flex-direction: column;
809
+ gap: 16px;
810
+ padding-left: 0.8em;
811
+ position: relative;
812
+ }
813
+ .ab-note .ab-nodes .ab-nodes-children .ab-nodes-bracket {
814
+ content: "";
815
+ box-sizing: border-box;
816
+ position: absolute;
817
+ width: 8px;
818
+ height: 8px;
819
+ top: calc(50% - 4px);
820
+ left: -6px;
821
+ -webkit-clip-path: polygon(100% 0, 100% 100%, 13.4% 50%);
822
+ clip-path: polygon(100% 0, 100% 100%, 13.4% 50%);
823
+ background-color: currentColor;
824
+ }
825
+ .ab-note .ab-nodes .ab-nodes-children .ab-nodes-bracket2 {
826
+ content: "";
827
+ box-sizing: border-box;
828
+ position: absolute;
829
+ width: 10px;
830
+ height: calc(100% - 8px);
831
+ top: 4px;
832
+ left: 0;
833
+ border-radius: 10px 0 0 10px;
834
+ border-left: 2px solid currentColor;
835
+ border-top: 2px solid currentColor;
836
+ border-bottom: 2px solid currentColor;
837
+ }
838
+ .ab-note .ab-nodes .ab-nodes-children .ab-nodes-node {
839
+ display: flex;
840
+ flex-direction: row;
841
+ align-items: center;
842
+ gap: 1.2em;
843
+ }
844
+ .ab-note .ab-nodes > .ab-nodes-node > .ab-nodes-bracket {
845
+ display: none;
846
+ }
847
+ .ab-note .ab-nodes > .ab-nodes-node > .ab-nodes-bracket2 {
848
+ display: none;
849
+ }
850
+ .ab-note .ab-nodes .ab-nodes-node[has_children=false] > .ab-nodes-children {
851
+ display: none;
852
+ }
853
+ .ab-note .ab-nodes.min .ab-nodes-content {
854
+ padding: 0;
855
+ background: none;
856
+ border-bottom: solid 1px currentColor;
857
+ }
858
+ .ab-note .ab-nodes.min .ab-nodes-children {
859
+ gap: 2px;
860
+ }
861
+ .ab-note .ab-nodes.min .ab-nodes-children .ab-nodes-bracket2 {
862
+ border-width: 1px;
863
+ }
864
+ .ab-note .ab-nodes.min .ab-nodes-children .ab-nodes-bracket {
865
+ display: none;
866
+ width: 6px;
867
+ height: 6px;
868
+ top: calc(50% - 4px);
869
+ left: -6px;
870
+ }
871
+ .ab-note .ab-nodes.min .ab-nodes-content {
872
+ padding-right: 1.2em;
873
+ }
874
+ .ab-note .ab-nodes.min .ab-nodes-children .ab-nodes-node {
875
+ gap: 0;
876
+ }
877
+ .ab-note .ab-nodes-node[has_children=false] > .ab-nodes-content {
878
+ padding-right: 4px;
879
+ }
880
+ .ab-note .ab-nodes.min > .ab-nodes-children > .ab-nodes-node:nth-child(8n+1) {
881
+ --node-color: var(--color-red);
882
+ }
883
+ .ab-note .ab-nodes.min > .ab-nodes-children > .ab-nodes-node:nth-child(8n+2) {
884
+ --node-color: var(--color-orange);
885
+ }
886
+ .ab-note .ab-nodes.min > .ab-nodes-children > .ab-nodes-node:nth-child(8n+3) {
887
+ --node-color: var(--color-yellow);
888
+ }
889
+ .ab-note .ab-nodes.min > .ab-nodes-children > .ab-nodes-node:nth-child(8n+4) {
890
+ --node-color: var(--color-green);
891
+ }
892
+ .ab-note .ab-nodes.min > .ab-nodes-children > .ab-nodes-node:nth-child(8n+5) {
893
+ --node-color: var(--color-cyan);
894
+ }
895
+ .ab-note .ab-nodes.min > .ab-nodes-children > .ab-nodes-node:nth-child(8n+6) {
896
+ --node-color: var(--color-blue);
897
+ }
898
+ .ab-note .ab-nodes.min > .ab-nodes-children > .ab-nodes-node:nth-child(8n+7) {
899
+ --node-color: var(--color-purple);
900
+ }
901
+ .ab-note .ab-nodes.min > .ab-nodes-children > .ab-nodes-node:nth-child(8n+0) {
902
+ --node-color: var(--color-pink);
903
+ }
904
+ .ab-note .ab-nodes.min > .ab-nodes-children > .ab-nodes-node .ab-nodes-content, .ab-note .ab-nodes.min > .ab-nodes-children > .ab-nodes-node .ab-nodes-bracket, .ab-note .ab-nodes.min > .ab-nodes-children > .ab-nodes-node .ab-nodes-bracket2 {
905
+ border-color: var(--node-color);
906
+ }
907
+ .ab-note .ab-nodes.min > .ab-nodes-children > .ab-nodes-node .ab-nodes-bracket {
908
+ background-color: var(--node-color);
909
+ }
910
+ .ab-note .ab-nodes.scroll {
911
+ overflow-x: auto;
912
+ }
913
+ .ab-note .ab-nodes.scroll .ab-nodes-content {
914
+ white-space: nowrap;
915
+ max-width: 300px;
916
+ overflow-x: auto;
917
+ }
918
+ .ab-note table.scroll {
919
+ overflow-x: auto;
920
+ }
921
+ .ab-note table.scroll td {
922
+ white-space: nowrap;
923
+ max-width: 300px;
924
+ overflow-x: auto;
925
+ }
926
+
927
+ div.md-table-fig1 {
928
+ overflow-x: scroll;
929
+ transform: scaleY(-1);
930
+ }
931
+ div.md-table-fig1 table.ab-setting.md-table-fig2 {
932
+ overflow-x: scroll;
933
+ text-overflow: clip !important;
934
+ transform: scaleY(-1);
935
+ white-space: pre-wrap;
936
+ }
937
+
938
+ .ab-custom-text-red {
939
+ color: red !important;
940
+ }
941
+
942
+ .ab-custom-text-orange {
943
+ color: orange !important;
944
+ }
945
+
946
+ .ab-custom-text-yellow {
947
+ color: yellow !important;
948
+ }
949
+
950
+ .ab-custom-text-green {
951
+ color: green !important;
952
+ }
953
+
954
+ .ab-custom-text-cyan {
955
+ color: cyan !important;
956
+ }
957
+
958
+ .ab-custom-text-blue {
959
+ color: blue !important;
960
+ }
961
+
962
+ .ab-custom-text-purple {
963
+ color: purple !important;
964
+ }
965
+
966
+ .ab-custom-text-white {
967
+ color: white !important;
968
+ }
969
+
970
+ .ab-custom-text-black {
971
+ color: black !important;
972
+ }
973
+
974
+ .ab-custom-bg-red {
975
+ background-color: red !important;
976
+ }
977
+
978
+ .ab-custom-bg-orange {
979
+ background-color: orange !important;
980
+ }
981
+
982
+ .ab-custom-bg-yellow {
983
+ background-color: yellow !important;
984
+ }
985
+
986
+ .ab-custom-bg-green {
987
+ background-color: green !important;
988
+ }
989
+
990
+ .ab-custom-bg-cyan {
991
+ background-color: cyan !important;
992
+ }
993
+
994
+ .ab-custom-bg-blue {
995
+ background-color: blue !important;
996
+ }
997
+
998
+ .ab-custom-bg-purple {
999
+ background-color: purple !important;
1000
+ }
1001
+
1002
+ .ab-custom-bg-white {
1003
+ background-color: white !important;
1004
+ }
1005
+
1006
+ .ab-custom-bg-black {
1007
+ background-color: black !important;
1008
+ }
1009
+
1010
+ .ab-custom-dire-top * {
1011
+ vertical-align: top !important;
1012
+ }
1013
+
1014
+ .ab-custom-dire-down * {
1015
+ vertical-align: bottom !important;
1016
+ }
1017
+
1018
+ .ab-custom-dire-left * {
1019
+ text-align: left !important;
1020
+ }
1021
+
1022
+ .ab-custom-dire-right * {
1023
+ text-align: right !important;
1024
+ }
1025
+
1026
+ .ab-custom-dire-center * {
1027
+ vertical-align: middle !important;
1028
+ text-align: center !important;
1029
+ }
1030
+
1031
+ .ab-custom-dire-hcenter * {
1032
+ text-align: center !important;
1033
+ }
1034
+
1035
+ .ab-custom-dire-vcenter * {
1036
+ vertical-align: middle !important;
1037
+ }
1038
+
1039
+ .ab-custom-dire-justify * {
1040
+ text-align: justify !important;
1041
+ }
1042
+
1043
+ .ab-custom-font-large {
1044
+ font-size: large !important;
1045
+ }
1046
+
1047
+ .ab-custom-font-largex {
1048
+ font-size: x-large !important;
1049
+ }
1050
+
1051
+ .ab-custom-font-largexx {
1052
+ font-size: xx-large !important;
1053
+ }
1054
+
1055
+ .ab-custom-font-small {
1056
+ font-size: small !important;
1057
+ }
1058
+
1059
+ .ab-custom-font-smallx {
1060
+ font-size: x-small !important;
1061
+ }
1062
+
1063
+ .ab-custom-font-smallxx {
1064
+ font-size: xx-small !important;
1065
+ }
1066
+
1067
+ .ab-custom-font-bold {
1068
+ font-weight: bold !important;
1069
+ }
1070
+
1071
+ table.ab-table-fc th[col_index="0"], table.ab-table-fc td[col_index="0"] {
1072
+ white-space: pre;
1073
+ font-weight: 500;
1074
+ vertical-align: top;
1075
+ width: 0px;
1076
+ }
1077
+
1078
+ .ab-table-fc > table th:first-child, .ab-table-fc > table td:first-child {
1079
+ white-space: pre;
1080
+ font-weight: 500;
1081
+ vertical-align: top;
1082
+ width: 0px;
1083
+ }
1084
+
1085
+ .ab-custom-td-nowrap td, .ab-custom-td1-nowrap tr > td:first-child {
1086
+ white-space: pre !important;
1087
+ }
1088
+
1089
+ .ab-custom-td-wrap td, .ab-custom-td1-wrap tr > td:first-child {
1090
+ white-space: normal !important;
1091
+ overflow-wrap: break-word;
1092
+ }
1093
+
1094
+ .ab-custom-td-0 td, .ab-custom-td1-0 tr > td:first-child {
1095
+ width: 0px !important;
1096
+ }
1097
+
1098
+ .ab-custom-td-100 td, .ab-custom-td1-100 tr > td:first-child {
1099
+ width: 100px !important;
1100
+ }
1101
+
1102
+ .ab-custom-td-150 td, .ab-custom-td1-150 tr > td:first-child {
1103
+ width: 150px !important;
1104
+ }
1105
+
1106
+ .ab-custom-td-200 td, .ab-custom-td1-200 tr > td:first-child {
1107
+ width: 200px !important;
1108
+ }
1109
+
1110
+ .ab-custom-td-250 td, .ab-custom-td1-250 tr > td:first-child {
1111
+ width: 250px !important;
1112
+ }
1113
+
1114
+ .ab-custom-td-300 td, .ab-custom-td1-300 tr > td:first-child {
1115
+ width: 300px !important;
1116
+ }
1117
+
1118
+ .ab-custom-td-half td, .ab-custom-td1-half tr > td:first-child {
1119
+ width: 50% !important;
1120
+ }
1121
+
1122
+ .ab-super-width-p {
1123
+ width: var(--ab-width-outer);
1124
+ margin-left: calc((100% - var(--ab-width-outer)) / 2);
1125
+ }
1126
+
1127
+ /**************** 兼容性补充 ******************/
1128
+ :is(.markdown-preview-view, .markdown-rendered).is-readable-line-width:not(.matrix) .ab-note :is(.markdown-rendered) {
1129
+ width: auto !important;
1130
+ }