|
1 | 1 | @footer-margin: 40px;
|
2 | 2 |
|
| 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 | + |
3 | 15 | body {
|
4 |
| - font-family: "Lato", "Segoe UI", "Microsoft YaHei", Arial, Helvetica, sans-serif !important; |
| 16 | + .override-fonts(@default-fonts); |
5 | 17 | background-color: #fff;
|
6 | 18 | overflow-y: scroll;
|
7 | 19 | -webkit-font-smoothing: antialiased;
|
8 | 20 | }
|
9 | 21 |
|
| 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; |
10 | 23 | :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); |
12 | 25 | }
|
13 | 26 |
|
| 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; |
14 | 28 | :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); |
16 | 30 | }
|
17 | 31 |
|
| 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; |
18 | 33 | :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); |
20 | 35 | }
|
21 | 36 |
|
| 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; |
22 | 38 | :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); |
24 | 40 | }
|
25 | 41 |
|
| 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; |
26 | 43 | :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); |
32 | 45 | }
|
33 | 46 |
|
34 |
| - |
35 | 47 | img {
|
36 | 48 | border-radius: 3px;
|
37 | 49 | }
|
|
0 commit comments