feat: add fonts for Traditional Chinese (#2)

* feat: update code style
* feat: add fonts for Traditional Chinese
This commit is contained in:
Sivan 2020-02-18 17:01:14 +08:00 committed by GitHub
parent fd5e303b2c
commit a187986823
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 224 additions and 76 deletions

View file

@ -18,13 +18,13 @@
h4,
h5,
h6 {
font-family: $font-family-kai;
font-family: $font-family-kai-black;
font-weight: $font-weight-bolder;
text-align: center;
// 标题内元信息仅在桌面端采取悬挂处理且不占据空间影响文字居中
#{$root-selector}-meta {
font-weight: 400;
font-weight: $font-weight-normal;
@media screen and (min-width: 640px) {
@include hang();

View file

@ -22,23 +22,18 @@
// 正文使用宋体
font-family: $font-family-song;
// 标题使用 800 字重
// 标题使用楷体 800 字重
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: $font-family-kai-black;
font-weight: $font-weight-bolder;
}
// 标题引用使用楷体
h1,
h2,
h3,
h4,
h5,
h6,
// 引用使用楷体
blockquote,
cite,
q {
@ -52,4 +47,16 @@
font-family: $font-family-hei;
}
}
&--hei {
font-family: $font-family-hei;
}
&--song {
font-family: $font-family-song;
}
&--kai {
font-family: $font-family-kai;
}
}