forked from mxx1111/mdlook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.css
More file actions
49 lines (43 loc) · 1.25 KB
/
Copy pathbase.css
File metadata and controls
49 lines (43 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* MD 基础主题样式
* 包含所有元素的基础样式和 CSS 变量定义
*/
/* ==================== 容器样式 ==================== */
section,
#output .container {
font-family: var(--md-font-family);
font-size: var(--md-font-size);
line-height: 1.8;
text-align: left;
}
/* 确保 #output 容器应用基础样式 */
#output {
font-family: var(--md-font-family);
font-size: var(--md-font-size);
line-height: 1.8;
text-align: left;
}
/* 去除第一个元素的 margin-top */
#output section > :first-child {
margin-top: 0 !important;
}
/*
* 兜底重置:导出 HTML / 分享页 / VSCode 预览等脱离 Web App 的场景
* 没有 Tailwind preflight,浏览器 UA 默认样式会冒出来(如
* blockquote 默认左右各 40px margin、table 默认 border-collapse: separate)。
* 这里统一重置,保证导出结果与预览一致。各主题可在其后覆盖(如 margin-bottom)。
* section 选择器用于 VSCode 预览(无 #output 容器,内容在 section.container 内)。
*/
#output blockquote,
section blockquote {
margin: 0;
}
#output table,
section table {
border-collapse: collapse;
min-width: 100%;
}
.mermaid-diagram .nodeLabel p {
color: unset !important;
letter-spacing: unset !important;
}