Skip to content

Commit 3e3db77

Browse files
committed
Use html selector for font-family
Fixes #70
1 parent 32713e4 commit 3e3db77

File tree

1 file changed

+14
-24
lines changed

1 file changed

+14
-24
lines changed

modern-normalize.css

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,20 @@ Use a better box model (opinionated).
1515
box-sizing: border-box;
1616
}
1717

18-
/**
19-
1. Correct the line height in all browsers.
20-
2. Prevent adjustments of font size after orientation changes in iOS.
21-
3. Use a more readable tab size (opinionated).
22-
*/
23-
2418
html {
25-
line-height: 1.15; /* 1 */
26-
-webkit-text-size-adjust: 100%; /* 2 */
27-
-moz-tab-size: 4; /* 3 */
19+
/* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
20+
font-family:
21+
system-ui,
22+
'Segoe UI',
23+
Roboto,
24+
Helvetica,
25+
Arial,
26+
sans-serif,
27+
'Apple Color Emoji',
28+
'Segoe UI Emoji';
29+
line-height: 1.15; /* 1. Correct the line height in all browsers. */
30+
-webkit-text-size-adjust: 100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */
31+
-moz-tab-size: 4; /* 3. Use a more readable tab size (opinionated). */
2832
tab-size: 4; /* 3 */
2933
}
3034

@@ -33,22 +37,8 @@ Sections
3337
========
3438
*/
3539

36-
/**
37-
1. Remove the margin in all browsers.
38-
2. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
39-
*/
40-
4140
body {
42-
margin: 0; /* 1 */
43-
font-family:
44-
system-ui,
45-
'Segoe UI',
46-
Roboto,
47-
Helvetica,
48-
Arial,
49-
sans-serif,
50-
'Apple Color Emoji',
51-
'Segoe UI Emoji'; /* 2 */
41+
margin: 0; /** Remove the margin in all browsers. */
5242
}
5343

5444
/*

0 commit comments

Comments
 (0)