Skip to content

Commit 9e652eb

Browse files
committed
Fix octicons and icons
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 0fc334a commit 9e652eb

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

public/css/index.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/less/_base.less

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,49 @@
11
@footer-margin: 40px;
22

3+
@default-fonts: "Lato", "Segoe UI", "Microsoft YaHei", Arial, Helvetica, sans-serif;
4+
5+
.override-fonts(@fonts) {
6+
font-family: @fonts !important;
7+
.icon {
8+
font-family: Icons, @fonts !important;
9+
}
10+
.mega-octicon, .octicon {
11+
font-family: Octicons, @fonts !important;
12+
}
13+
}
14+
315
body {
4-
font-family: "Lato", "Segoe UI", "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
16+
.override-fonts(@default-fonts);
517
background-color: #fff;
618
overflow-y: scroll;
719
-webkit-font-smoothing: antialiased;
820
}
921

22+
@ja-fonts: "Lato", "Segoe UI", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", Roboto, Noto, "Noto Sans CJK JP", Arial, Helvetica, sans-serif;
1023
:lang(ja) {
11-
font-family: "Lato", "Segoe UI", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", Roboto, Noto, "Noto Sans CJK JP", Arial, Helvetica, sans-serif !important;
24+
.override-fonts(@ja-fonts);
1225
}
1326

27+
@zh-CN-fonts: "Lato", "Segoe UI", "Microsoft YaHei New", "Microsoft Yahei", "微软雅黑", "方体", "PingFang SC", "黑体", "Heiti SC", STXihei, "华文细黑", Roboto, Noto, "Noto Sans CJK SC", Arial, Helvetica, sans-serif;
1428
:lang(zh-CN) {
15-
font-family: "Lato", "Segoe UI", "Microsoft YaHei New", "Microsoft Yahei", "微软雅黑", "方体", "PingFang SC", "黑体", "Heiti SC", STXihei, "华文细黑", Roboto, Noto, "Noto Sans CJK SC", Arial, Helvetica, sans-serif !important;
29+
.override-fonts(@zh-CN-fonts);
1630
}
1731

32+
@zh-TW-fonts: "Lato", "Segoe UI", "方體", "PingFang TC", "黑體", "Heiti TC", "Microsoft JhengHei New", "Microsoft JhengHei", "微軟正黑體", "宋体", MingLiu, Roboto, Noto, "Noto Sans CJK TC", Arial, Helvetica, sans-serif;
1833
:lang(zh-TW) {
19-
font-family: "Lato", "Segoe UI", "方體", "PingFang TC", "黑體", "Heiti TC", "Microsoft JhengHei New", "Microsoft JhengHei", "微軟正黑體", "宋体", MingLiu, Roboto, Noto, "Noto Sans CJK TC", Arial, Helvetica, sans-serif !important;
34+
.override-fonts(@zh-TW-fonts);
2035
}
2136

37+
@zh-HK-fonts: "Lato", "Segoe UI", "方體", "PingFang HK", "方體", "PingFang TC", "黑體", "Heiti TC", "Microsoft JhengHei New", "Microsoft JhengHei", "微軟正黑體", "宋体", MingLiu, Roboto, Noto, "Noto Sans CJK TC", Arial, Helvetica, sans-serif;
2238
:lang(zh-HK) {
23-
font-family: "Lato", "Segoe UI", "方體", "PingFang HK", "方體", "PingFang TC", "黑體", "Heiti TC", "Microsoft JhengHei New", "Microsoft JhengHei", "微軟正黑體", "宋体", MingLiu, Roboto, Noto, "Noto Sans CJK TC", Arial, Helvetica, sans-serif !important;
39+
.override-fonts(@zh-HK-fonts);
2440
}
2541

42+
@ko-fonts: "Lato", "Segoe UI", 'Apple SD Gothic Neo', 'NanumBarunGothic', '맑은 고딕', 'Malgun Gothic', '굴림', 'Gulim', '돋움', 'Dotum', "Nanum Gothic", "Apple SD Gothic Neo", "Malgun Gothic", Roboto, Noto, "Noto Sans CJK KR", 'Helvetica Neue', 'Helvetica', Arial, sans-serif;
2643
:lang(ko) {
27-
font-family: "Lato", "Segoe UI", 'Apple SD Gothic Neo', 'NanumBarunGothic', '맑은 고딕', 'Malgun Gothic', '굴림', 'Gulim', '돋움', 'Dotum', "Nanum Gothic", "Apple SD Gothic Neo", "Malgun Gothic", Roboto, Noto, "Noto Sans CJK KR", 'Helvetica Neue', 'Helvetica', Arial, sans-serif !important;
28-
}
29-
30-
.icon {
31-
font-family: Icons !important;
44+
.override-fonts(@ko-fonts);
3245
}
3346

34-
3547
img {
3648
border-radius: 3px;
3749
}

0 commit comments

Comments
 (0)