Skip to content

Commit f223cd8

Browse files
committed
update typo.css
1 parent c7d1aaa commit f223cd8

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

blog-view/src/assets/css/typo.css

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
@charset "utf-8";
22

33
.typo {
4+
color: #24292F;
5+
font-size: 16px;
6+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
47
width: 100%;
58
text-align: justify;
69
word-wrap: break-word;
@@ -189,7 +192,6 @@
189192

190193
.typo strong, .typo b {
191194
font-weight: bold;
192-
color: #000;
193195
}
194196

195197
/* 可拖动文件添加拖动手势 */
@@ -225,35 +227,41 @@
225227
font-family: Palatino, Optima, Georgia, serif;
226228
}
227229

230+
.typo pre {
231+
font-size: 14px;
232+
}
233+
228234
/* 保证块/段落之间的空白隔行 */
229235
.typo p, .typo pre, .typo ul, .typo ol, .typo dl, .typo form, .typo hr, .typo table, blockquote {
230236
margin-bottom: 1.2em
231237
}
232238

233239
/* 标题应该更贴紧内容,并与其他块区分,margin 值要相应做优化 */
234240
.typo h1, .typo h2, .typo h3, .typo h4, .typo h5, .typo h6 {
235-
color: #000;
236-
margin-top: 1.2em;
237-
margin-bottom: 0.6em;
241+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
242+
margin-top: 24px;
243+
margin-bottom: 16px;
238244
font-weight: 600;
239245
line-height: 1.25;
240246
}
241247

242-
.typo h1, .typo h2, .typo h3 {
243-
padding-bottom: .3em;
244-
border-bottom: 1px solid #eaecef;
245-
}
246-
247248
.typo h1 {
248249
font-size: 2em;
250+
font-weight: 600;
251+
padding-bottom: .3em;
252+
border-bottom: 1px solid hsla(210, 18%, 87%, 1);
249253
}
250254

251255
.typo h2 {
252256
font-size: 1.5em;
257+
padding-bottom: .3em;
258+
border-bottom: 1px solid hsla(210, 18%, 87%, 1);
253259
}
254260

255261
.typo h3 {
256262
font-size: 1.25em;
263+
padding-bottom: .3em;
264+
border-bottom: 1px solid hsla(210, 18%, 87%, 1);
257265
}
258266

259267
.typo h4 {
@@ -266,7 +274,7 @@
266274

267275
.typo h6 {
268276
font-size: .85em;
269-
color: #6a737d;
277+
color: #57606a;
270278
}
271279

272280
/* 在文章中,应该还原 ul 和 ol 的样式 */
@@ -313,6 +321,5 @@
313321
}
314322

315323
.typo em, legend, caption {
316-
color: #000;
317324
font-weight: inherit;
318325
}

0 commit comments

Comments
 (0)