Skip to content

Commit 0758b0b

Browse files
ydfzgyjjonirrings
authored andcommitted
Add Chinese Fonts (xitu#79)
1 parent e559e6a commit 0758b0b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

site/_css/variables.less

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
@text-color: #202020;
55

66
.headline-font(@size: 48px, @color: @text-color) {
7-
font-family: 'Rubik', 'Helvetica Neue', Helvetica, Arial, sans-serif;
7+
font-family: quote, 'Rubik', 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans CN', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;
88
font-weight: 300;
99
color: @color;
1010
font-size: @size;
1111
line-height: @size * 1.4;
1212
}
1313

1414
.body-font(@size: 18px, @color: @text-color) {
15-
font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
15+
font-family: quote, 'Roboto', 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans CN', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;
1616
font-weight: 300;
1717
color: @color;
1818
font-size: @size;
@@ -26,3 +26,9 @@
2626
font-size: @size;
2727
line-height: @size * 17/13;
2828
}
29+
30+
@font-face {
31+
font-family: quote;
32+
src: local('Lantinghei SC'), local('SimSun');
33+
unicode-range: U+201c, U+201d;
34+
}

0 commit comments

Comments
 (0)