|
1 | 1 | /** |
2 | 2 | * Set a more readable tab size. |
3 | 3 | * |
4 | | - * ✌︎ Credit https://github.com/sindresorhus/modern-normalize/issues/17. |
| 4 | + * ✌︎ Credit https://github.com/sindresorhus/modern-normalize/issues/17 |
5 | 5 | */ |
6 | 6 |
|
7 | 7 | :root { |
|
15 | 15 | * https://github.com/primer/primer/pull/408 |
16 | 16 | * https://infinnie.github.io/blog/2017/systemui.html |
17 | 17 | * http://markdotto.com/2018/02/07/github-system-fonts/ |
18 | | - * 2. Set the font size of the entire document using the default user-agent size |
| 18 | + * 2. Set OpenType features for the entire document. Enable kerning, |
| 19 | + * common/standard ligatures, contextual ligatures, and proportional, |
| 20 | + * oldstyle numerals. |
| 21 | + * NOTE: if any of the `font-feature-settings` values aren't needed on child |
| 22 | + * elements, e.g.: `<td>`, then you have to explicitly turn them off. Also, |
| 23 | + * see the "OpenType features" section in the README.md. |
| 24 | + * 3. Set the font size of the entire document using the default user-agent size |
19 | 25 | * which is typically 16px. |
20 | | - * 3. Increase the line height from normalize.css's small '1.15' value. The |
| 26 | + * 4. Increase the line height from normalize.css's small '1.15' value. The |
21 | 27 | * larger '1.5' value is recommended by the W3C Web Accessibility Initiative. |
22 | 28 | */ |
23 | 29 |
|
24 | 30 | html { |
25 | 31 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; /* 1 */ |
26 | | - font-size: 1rem; /* 2 */ |
27 | | - line-height: 1.5; /* 3 */ |
| 32 | + font-feature-settings: 'kern', 'liga', 'clig', 'calt', 'onum', 'pnum'; /* 2 */ |
| 33 | + font-kerning: normal; /* 2 */ |
| 34 | + font-size: 1rem; /* 3 */ |
| 35 | + font-variant-ligatures: common-ligatures contextual; /* 2 */ |
| 36 | + font-variant-numeric: oldstyle-nums proportional-nums; /* 2 */ |
| 37 | + line-height: 1.5; /* 4 */ |
28 | 38 | } |
0 commit comments