Skip to content

Commit b5f0e9d

Browse files
Remove all opinionated rules (necolas#649)
- Remove changing the default font family in all browsers. - Remove the removal of margin on body in all browsers. - Remove the removal of outline on focused links when they are also active or hovered in all browsers (opinionated). - Remove changing the font styles of input controls in all browsers. - Remove the changing of border, margin, and padding of fieldsets in all browsers.
1 parent 1da0911 commit b5f0e9d

File tree

1 file changed

+7
-41
lines changed

1 file changed

+7
-41
lines changed

normalize.css

Lines changed: 7 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,20 @@
44
========================================================================== */
55

66
/**
7-
* 1. Change the default font family in all browsers (opinionated).
8-
* 2. Correct the line height in all browsers.
9-
* 3. Prevent adjustments of font size after orientation changes in
7+
* 1. Correct the line height in all browsers.
8+
* 2. Prevent adjustments of font size after orientation changes in
109
* IE on Windows Phone and in iOS.
1110
*/
1211

1312
html {
14-
font-family: sans-serif; /* 1 */
15-
line-height: 1.15; /* 2 */
16-
-ms-text-size-adjust: 100%; /* 3 */
17-
-webkit-text-size-adjust: 100%; /* 3 */
13+
line-height: 1.15; /* 1 */
14+
-ms-text-size-adjust: 100%; /* 2 */
15+
-webkit-text-size-adjust: 100%; /* 2 */
1816
}
1917

2018
/* Sections
2119
========================================================================== */
2220

23-
/**
24-
* Remove the margin in all browsers (opinionated).
25-
*/
26-
27-
body {
28-
margin: 0;
29-
}
30-
3121
/**
3222
* Add the correct display in IE 9-.
3323
*/
@@ -107,16 +97,6 @@ a {
10797
-webkit-text-decoration-skip: objects; /* 2 */
10898
}
10999

110-
/**
111-
* Remove the outline on focused links when they are also active or hovered
112-
* in all browsers (opinionated).
113-
*/
114-
115-
a:active,
116-
a:hover {
117-
outline-width: 0;
118-
}
119-
120100
/**
121101
* 1. Remove the bottom border in Firefox 39-.
122102
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
@@ -245,19 +225,15 @@ svg:not(:root) {
245225
========================================================================== */
246226

247227
/**
248-
* 1. Change the font styles in all browsers (opinionated).
249-
* 2. Remove the margin in Firefox and Safari.
228+
* Remove the margin in Firefox and Safari.
250229
*/
251230

252231
button,
253232
input,
254233
optgroup,
255234
select,
256235
textarea {
257-
font-family: sans-serif; /* 1 */
258-
font-size: 100%; /* 1 */
259-
line-height: 1.15; /* 1 */
260-
margin: 0; /* 2 */
236+
margin: 0;
261237
}
262238

263239
/**
@@ -316,16 +292,6 @@ button:-moz-focusring,
316292
outline: 1px dotted ButtonText;
317293
}
318294

319-
/**
320-
* Change the border, margin, and padding in all browsers (opinionated).
321-
*/
322-
323-
fieldset {
324-
border: 1px solid #c0c0c0;
325-
margin: 0 2px;
326-
padding: 0.35em 0.625em 0.75em;
327-
}
328-
329295
/**
330296
* 1. Correct the text wrapping in Edge and IE.
331297
* 2. Correct the color inheritance from `fieldset` elements in IE.

0 commit comments

Comments
 (0)