Skip to content

Commit

Permalink
Merge duplicate html and body selectors (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakejarvis committed May 23, 2021
1 parent 852af01 commit 1fc6b5a
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions modern-normalize.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,17 @@ Use a better box model (opinionated).
box-sizing: border-box;
}

/**
Use a more readable tab size (opinionated).
*/

html {
-moz-tab-size: 4;
tab-size: 4;
}

/**
1. Correct the line height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size (opinionated).
*/

html {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
-moz-tab-size: 4; /* 3 */
tab-size: 4; /* 3 */
}

/*
Expand All @@ -40,18 +34,12 @@ Sections
*/

/**
Remove the margin in all browsers.
*/

body {
margin: 0;
}

/**
Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
1. Remove the margin in all browsers.
2. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
*/

body {
margin: 0; /* 1 */
font-family:
system-ui,
-apple-system, /* Firefox supports this but not yet `system-ui` */
Expand All @@ -61,7 +49,7 @@ body {
Arial,
sans-serif,
'Apple Color Emoji',
'Segoe UI Emoji';
'Segoe UI Emoji'; /* 2 */
}

/*
Expand Down Expand Up @@ -186,11 +174,10 @@ textarea {

/**
Remove the inheritance of text transform in Edge and Firefox.
1. Remove the inheritance of text transform in Firefox.
*/

button,
select { /* 1 */
select {
text-transform: none;
}

Expand Down

0 comments on commit 1fc6b5a

Please sign in to comment.