-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.html
More file actions
265 lines (230 loc) · 6.03 KB
/
start.html
File metadata and controls
265 lines (230 loc) · 6.03 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>FreeBSD 中文社区文档</title>
<meta name="author" content="FreeBSD 中文社区">
<meta name="description" content="FreeBSD">
<meta name="keywords" content="FreeBSD, UNIX">
<meta name="generator" content="WeasyPrint">
<meta name="pdfaid:part" content="3">
<meta name="pdfaid:conformance" content="U">
<meta name="dcterms.created" content="2025-04-12T15:08:29+09:00">
<meta name="dcterms.modified" content="2025-04-12T15:08:29+09:00">
<link rel="stylesheet" href="../highlight.css">
<style>
/* 字体与基础结构 */
@font-face {
font-family: "WenQuanYi Micro Hei";
src: local("WenQuanYi Micro Hei"), local("PingFang SC"), local("Hiragino Sans GB"), local("Noto Sans CJK SC"), local("Microsoft YaHei");
font-display: swap;
}
/* 页码显示 */
@page {
size: A4;
margin: 2cm 2cm 2.5cm 2cm;
@bottom-center {
content: "第 " counter(page) " 页";
font-family: "WenQuanYi Micro Hei", sans-serif;
font-size: 14px;
color: black;
}
}
/* 首页不显示页码 */
@page:first {
@bottom-center {
content: "";
}
counter-reset: page 0;
}
body {
font-family: "WenQuanYi Micro Hei", "Segoe UI", "San Francisco", "Roboto", "PingFang SC", sans-serif !important;
font-size: 14px;
line-height: 1.6;
margin: 1.5em;
color: #222;
background-color: #fff;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
/* 黑暗模式支持 */
@media (prefers-color-scheme: dark) {
body {
background-color: #1e1e1e;
color: #ddd;
}
a {
color: #66bfff;
}
pre {
background-color: #2e2e2e;
}
code {
background-color: #3b3b3b;
}
}
p {
margin: 1em 0;
text-indent: 2em;
}
strong, b {
font-family: "Noto Sans CJK SC", sans-serif;
font-weight: bold;
}
/* 链接样式 */
a, a:hover, a:visited {
color: #007FFF; /* 统一链接颜色 */
text-decoration: none; /* 去除所有链接的下划线 */
}
/* 引用样式 */
blockquote {
border-left: 2px solid rgb(206, 219, 226);
margin: 1em 0;
padding-left: 1em;
color: rgb(97, 113, 121); /* 设置文字颜色为深灰蓝 */
}
/* 嵌套引用样式 */
blockquote blockquote {
border-left: 2px solid rgb(206, 219, 226);
color: rgb(97, 113, 121); /* 设置嵌套引用的文字颜色 */
}
/* 表格美化:三线表风格 */
table {
border-collapse: collapse;
margin: 1.5em auto;
width: 100%;
font-size: 14px;
}
table th {
border-bottom: 2px solid #000;
font-size: 16px;
text-align: center;
padding: 8px;
}
/* 顶部边框:第一行表头的顶部 */
table tr:first-child th {
border-top: 2px solid #000;
}
/* 正文单元格样式 */
table td {
padding: 8px;
text-align: left;
}
/* 底部边框:最后一行的底部 */
table tr:last-child td {
border-bottom: 2px solid #000;
}
/* 移除斑马纹效果 */
tr:nth-child(even), tr:nth-child(odd) {
background-color: transparent;
}
/* 代码块和内联代码 */
pre, code, .highlight, .highlight pre {
font-family: "WenQuanYi Micro Hei", "Noto Sans Mono CJK SC", "Source Han Mono", monospace !important;
}
/* 代码块样式 */
pre {
background-color: #ffffff;
border: 2px solid rgb(221, 232, 237); /*边框线颜色、宽度*/
border-radius: 6px;
padding: 1em;
white-space: pre-wrap;
word-break: break-word;
font-size: 14px;
}
/* 文本中的代码块样式 */
code {
background-color: rgb(244, 248, 250); /* 浅蓝灰背景 */
border-radius: 5px; /* 圆角边框 */
padding: 0 5px;
}
pre code {
background: none;
border: none;
}
/* 覆盖代码块高亮的默认斜体参数,即代码块不斜体 */
.highlight .c, .highlight .ch, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
font-style: normal !important; /* 强制取消斜体 */
font-family: inherit !important; /* 确保继承中文字体 */
}
.highlight .powershell {
font-family: "WenQuanYi Micro Hei", "Cascadia Mono", monospace !important;
}
td.linenos .normal, span.linenos {
color: inherit;
background-color: transparent;
padding: 0 5px;
font-family: inherit;
}
/* 图片通用 */
img, svg, canvas {
image-rendering: crisp-edges;
max-width: 60%;
display: block;
margin: 1.5em auto;
}
.figure-container {
page-break-inside: avoid;
break-inside: avoid;
margin: 1rem 0;
}
/* 打印优化 */
@media print {
/* 标题分页控制 */
h1, h2 {
page-break-before: always;
}
h1 {
page-break-after: avoid;
}
.figure-container {
page-break-inside: avoid;
max-height: 5cm;
margin: 0.5cm 0;
display: block;
}
.figure-container img {
max-height: 5cm !important;
max-width: 75% !important;
object-fit: contain;
margin: 0 auto;
}
input[type="checkbox"] {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
width: 1.2em;
height: 1.2em;
border: none;
background: none;
cursor: pointer;
display: inline-flex;
align-items: center;
vertical-align: middle;
}
input[type="checkbox"]::before {
content: "⬜";
font-size: 1.2em;
display: inline-block;
line-height: 1;
}
input[type="checkbox"]:checked::before {
content: "✅" !important;
color: black !important;
font-size: 1.2em;
}
label {
display: inline-flex;
align-items: center;
gap: 1em;
}
body {
margin: 0.3cm !important;
line-height: 1.3;
}
}
</style>
</head>
<body>
</body>
</html>