|
| 1 | + |
| 2 | +@font-face { |
| 3 | + font-family: 'Lato'; |
| 4 | + src: url('../vendor/assets/lato-fonts/lato-regular.eot'); |
| 5 | + src: url('../vendor/assets/lato-fonts/lato-regular.eot?#iefix') format('embedded-opentype'), url('../vendor/assets/lato-fonts/lato-regular.woff2') format('woff2'), url('../vendor/assets/lato-fonts/lato-regular.woff') format('woff'), url('../vendor/assets/lato-fonts/lato-regular.ttf') format('truetype'); |
| 6 | + font-weight: 400; |
| 7 | + font-style: normal; |
| 8 | +} |
| 9 | + |
| 10 | +@font-face { |
| 11 | + font-family: 'Lato'; |
| 12 | + src: url('../vendor/assets/lato-fonts/lato-italic.eot'); |
| 13 | + src: url('../vendor/assets/lato-fonts/lato-italic.eot?#iefix') format('embedded-opentype'), url('../vendor/assets/lato-fonts/lato-italic.woff2') format('woff2'), url('../vendor/assets/lato-fonts/lato-italic.woff') format('woff'), url('../vendor/assets/lato-fonts/lato-italic.ttf') format('truetype'); |
| 14 | + font-weight: 400; |
| 15 | + font-style: italic; |
| 16 | +} |
| 17 | + |
| 18 | +@font-face { |
| 19 | + font-family: 'Lato'; |
| 20 | + src: url('../vendor/assets/lato-fonts/lato-bold.eot'); |
| 21 | + src: url('../vendor/assets/lato-fonts/lato-bold.eot?#iefix') format('embedded-opentype'), url('../vendor/assets/lato-fonts/lato-bold.woff2') format('woff2'), url('../vendor/assets/lato-fonts/lato-bold.woff') format('woff'), url('../vendor/assets/lato-fonts/lato-bold.ttf') format('truetype'); |
| 22 | + font-weight: 700; |
| 23 | + font-style: normal; |
| 24 | +} |
| 25 | + |
| 26 | +@font-face { |
| 27 | + font-family: 'Lato'; |
| 28 | + src: url('../vendor/assets/lato-fonts/lato-bolditalic.eot'); |
| 29 | + src: url('../vendor/assets/lato-fonts/lato-bolditalic.eot?#iefix') format('embedded-opentype'), url('../vendor/assets/lato-fonts/lato-bolditalic.woff2') format('woff2'), url('../vendor/assets/lato-fonts/lato-bolditalic.woff') format('woff'), url('../vendor/assets/lato-fonts/lato-bolditalic.ttf') format('truetype'); |
| 30 | + font-weight: 700; |
| 31 | + font-style: italic; |
| 32 | +} |
| 33 | + |
| 34 | +@font-face { |
| 35 | + font-family: 'Yu Gothic'; |
| 36 | + src: local('Yu Gothic Medium'); |
| 37 | + font-weight: 400; |
| 38 | +} |
| 39 | + |
| 40 | +@font-face { |
| 41 | + font-family: 'Yu Gothic'; |
| 42 | + src: local('Yu Gothic Bold'); |
| 43 | + font-weight: 700; |
| 44 | +} |
| 45 | + |
| 46 | +@default-fonts: -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, Helvetica, Arial; |
| 47 | +@monospaced-fonts: 'SF Mono', Consolas, Menlo, 'Liberation Mono', Monaco, 'Lucida Console'; |
| 48 | + |
| 49 | +.override-fonts(@fonts) { |
| 50 | + textarea { |
| 51 | + font-family: @fonts, sans-serif; |
| 52 | + } |
| 53 | + |
| 54 | + .markdown:not(code) { |
| 55 | + font-family: @fonts, sans-serif; |
| 56 | + } |
| 57 | + |
| 58 | + /* We're going to just override the semantic fonts here */ |
| 59 | + h1, h2, h3, h4, h5 { |
| 60 | + font-family: Lato, @fonts, sans-serif; |
| 61 | + } |
| 62 | + |
| 63 | + .home .hero h1, .home .hero h2 { |
| 64 | + font-family: 'PT Sans Narrow', Lato, @fonts, sans-serif; |
| 65 | + } |
| 66 | + |
| 67 | + .ui.accordion .title:not(.ui), |
| 68 | + .ui.button, |
| 69 | + .ui.card > .content > .header.ui.card > .content > .header, |
| 70 | + .ui.category.search > .results .category > .name, |
| 71 | + .ui.form input:not([type]), .ui.form input[type=date], .ui.form input[type=datetime-local], .ui.form input[type=email], .ui.form input[type=file], .ui.form input[type=number], .ui.form input[type=password], .ui.form input[type=search], .ui.form input[type=tel], .ui.form input[type=text], .ui.form input[type=time], .ui.form input[type=url], |
| 72 | + .ui.header, |
| 73 | + .ui.items > .item > .content > .header, |
| 74 | + .ui.list .list > .item .header, |
| 75 | + .ui.list > .item .header, |
| 76 | + .ui.menu, |
| 77 | + .ui.message .header, |
| 78 | + .ui.modal > .header, |
| 79 | + .ui.popup > .header, |
| 80 | + .ui.search > .results .result .title, |
| 81 | + .ui.search > .results > .message .header, |
| 82 | + body, |
| 83 | + .ui.input>input, .ui.input input, |
| 84 | + .ui.statistics .statistic > .value, |
| 85 | + .ui.statistic > .value, |
| 86 | + .ui.statistics .statistic > .label, |
| 87 | + .ui.statistic > .label, |
| 88 | + .ui.steps .step .title, |
| 89 | + .ui.text.container, |
| 90 | + .ui.language > .menu > .item& |
| 91 | + { |
| 92 | + font-family: Lato, @fonts, sans-serif; |
| 93 | + } |
| 94 | +} |
| 95 | + |
| 96 | +.override-fonts(@default-fonts); |
| 97 | + |
1 | 98 | body {
|
2 |
| - font-family: "Lato", "Segoe UI", "Microsoft YaHei", Arial, Helvetica, sans-serif !important; |
3 | 99 | background-color: #fff;
|
4 | 100 | overflow-y: auto;
|
5 | 101 | -webkit-font-smoothing: antialiased;
|
6 | 102 | display: flex;
|
7 | 103 | flex-direction: column;
|
8 | 104 | }
|
| 105 | + |
| 106 | +@ja-fonts: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Source Han Sans JP', 'Noto Sans CJK JP', 'Droid Sans Japanese', 'Meiryo', 'MS PGothic'; |
| 107 | +:lang(ja) { |
| 108 | + .override-fonts(@default-fonts, @ja-fonts;); |
| 109 | +} |
| 110 | + |
| 111 | +@zh-CN-fonts: 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans CN', 'Source Han Sans SC', 'Noto Sans CJK SC', 'Microsoft YaHei', 'Heiti SC', SimHei; |
| 112 | +:lang(zh-CN) { |
| 113 | + .override-fonts(@default-fonts, @zh-CN-fonts;); |
| 114 | +} |
| 115 | + |
| 116 | +@zh-TW-fonts: 'PingFang TC', 'Hiragino Sans TC', 'Source Han Sans TW', 'Source Han Sans TC', 'Noto Sans CJK TC', 'Microsoft JhengHei', 'Heiti TC', PMingLiU; |
| 117 | +:lang(zh-TW) { |
| 118 | + .override-fonts(@default-fonts, @zh-TW-fonts;); |
| 119 | +} |
| 120 | + |
| 121 | +@zh-HK-fonts: 'PingFang HK', 'Hiragino Sans TC', 'Source Han Sans HK', 'Source Han Sans TC', 'Noto Sans CJK TC', 'Microsoft JhengHei', 'Heiti TC', PMingLiU_HKSCS, PMingLiU; |
| 122 | +:lang(zh-HK) { |
| 123 | + .override-fonts(@default-fonts, @zh-HK-fonts;); |
| 124 | +} |
| 125 | + |
| 126 | +@ko-fonts: 'Apple SD Gothic Neo', 'NanumBarunGothic', 'Malgun Gothic', 'Gulim', 'Dotum', 'Nanum Gothic', 'Source Han Sans KR', 'Noto Sans CJK KR'; |
| 127 | +:lang(ko) { |
| 128 | + .override-fonts(@default-fonts, @ko-fonts;); |
| 129 | +} |
| 130 | + |
9 | 131 | img {
|
10 | 132 | border-radius: 3px;
|
11 | 133 | }
|
|
19 | 141 | border-radius: .28571429rem !important;
|
20 | 142 | }
|
21 | 143 | pre, code {
|
22 |
| - font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace; |
| 144 | + font: 12px @monospaced-fonts, monospace; |
23 | 145 | &.raw {
|
24 | 146 | padding: 7px 12px;
|
25 | 147 | margin: 10px 0;
|
@@ -337,7 +459,7 @@ pre, code {
|
337 | 459 | }
|
338 | 460 |
|
339 | 461 | .sha.label {
|
340 |
| - font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace; |
| 462 | + font-family: @monospaced-fonts, monospace; |
341 | 463 | font-size: 13px;
|
342 | 464 | padding: 6px 10px 4px 10px;
|
343 | 465 | font-weight: normal;
|
@@ -391,7 +513,7 @@ pre, code {
|
391 | 513 | }
|
392 | 514 |
|
393 | 515 | .file-comment {
|
394 |
| - font: 12px Consolas,"Liberation Mono",Menlo,Courier,monospace; |
| 516 | + font: 12px @monospaced-fonts, monospace; |
395 | 517 | color: rgba(0,0,0,.87);
|
396 | 518 |
|
397 | 519 | }
|
|
0 commit comments