-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
79 lines (68 loc) · 1.42 KB
/
styles.css
File metadata and controls
79 lines (68 loc) · 1.42 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
body {
font-family: "Microsoft YaHei", Arial, sans-serif;
font-size: 12px;
line-height: 1.6;
padding: 20px;
max-width: 1200px;
margin: 0 auto;
}
h1 { font-size: 28px; }
h2 { font-size: 24px; }
/* 文件标题和代码块容器 */
.file-container {
page-break-inside: avoid; /* 防止容器内部分页 */
page-break-before: always; /* 每个文件从新页开始 */
}
/* 第一个文件容器不分页 */
h2 + .file-container {
page-break-before: avoid;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
}
pre {
font-size: 12px;
background-color: #f6f8fa;
padding: 16px;
border-radius: 6px;
overflow-x: auto;
}
code {
font-family: Consolas, Monaco, 'Courier New', monospace;
}
a {
color: #0366d6;
text-decoration: none;
}
.directory-tree {
font-size: 16px;
line-height: 1.8;
font-family: Consolas, Monaco, 'Courier New', monospace;
white-space: pre;
page-break-after: always;
}
/* 代码高亮主题 */
.hljs {
background: #f6f8fa;
color: #24292e;
}
.hljs-keyword { color: #d73a49; }
.hljs-string { color: #032f62; }
.hljs-comment { color: #6a737d; }
.hljs-function { color: #6f42c1; }
.hljs-number { color: #005cc5; }
.hljs-operator { color: #d73a49; }
.hljs-class { color: #6f42c1; }
.hljs-title { color: #6f42c1; }
.hljs-params { color: #24292e; }
.hljs-built_in { color: #005cc5; }
@media print {
pre {
white-space: pre-wrap;
word-wrap: break-word;
}
a {
color: #000;
}
}