mirror of
https://github.com/necolas/normalize.css.git
synced 2024-12-25 15:14:19 +00:00
Remove all opinionated rules (#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.
This commit is contained in:
parent
1da0911dfb
commit
b5f0e9d79a
48
normalize.css
vendored
48
normalize.css
vendored
@ -4,30 +4,20 @@
|
|||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1. Change the default font family in all browsers (opinionated).
|
* 1. Correct the line height in all browsers.
|
||||||
* 2. Correct the line height in all browsers.
|
* 2. Prevent adjustments of font size after orientation changes in
|
||||||
* 3. Prevent adjustments of font size after orientation changes in
|
|
||||||
* IE on Windows Phone and in iOS.
|
* IE on Windows Phone and in iOS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
html {
|
html {
|
||||||
font-family: sans-serif; /* 1 */
|
line-height: 1.15; /* 1 */
|
||||||
line-height: 1.15; /* 2 */
|
-ms-text-size-adjust: 100%; /* 2 */
|
||||||
-ms-text-size-adjust: 100%; /* 3 */
|
-webkit-text-size-adjust: 100%; /* 2 */
|
||||||
-webkit-text-size-adjust: 100%; /* 3 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sections
|
/* Sections
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/**
|
|
||||||
* Remove the margin in all browsers (opinionated).
|
|
||||||
*/
|
|
||||||
|
|
||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add the correct display in IE 9-.
|
* Add the correct display in IE 9-.
|
||||||
*/
|
*/
|
||||||
@ -107,16 +97,6 @@ a {
|
|||||||
-webkit-text-decoration-skip: objects; /* 2 */
|
-webkit-text-decoration-skip: objects; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Remove the outline on focused links when they are also active or hovered
|
|
||||||
* in all browsers (opinionated).
|
|
||||||
*/
|
|
||||||
|
|
||||||
a:active,
|
|
||||||
a:hover {
|
|
||||||
outline-width: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1. Remove the bottom border in Firefox 39-.
|
* 1. Remove the bottom border in Firefox 39-.
|
||||||
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
||||||
@ -245,8 +225,7 @@ svg:not(:root) {
|
|||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1. Change the font styles in all browsers (opinionated).
|
* Remove the margin in Firefox and Safari.
|
||||||
* 2. Remove the margin in Firefox and Safari.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
button,
|
button,
|
||||||
@ -254,10 +233,7 @@ input,
|
|||||||
optgroup,
|
optgroup,
|
||||||
select,
|
select,
|
||||||
textarea {
|
textarea {
|
||||||
font-family: sans-serif; /* 1 */
|
margin: 0;
|
||||||
font-size: 100%; /* 1 */
|
|
||||||
line-height: 1.15; /* 1 */
|
|
||||||
margin: 0; /* 2 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -316,16 +292,6 @@ button:-moz-focusring,
|
|||||||
outline: 1px dotted ButtonText;
|
outline: 1px dotted ButtonText;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Change the border, margin, and padding in all browsers (opinionated).
|
|
||||||
*/
|
|
||||||
|
|
||||||
fieldset {
|
|
||||||
border: 1px solid #c0c0c0;
|
|
||||||
margin: 0 2px;
|
|
||||||
padding: 0.35em 0.625em 0.75em;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1. Correct the text wrapping in Edge and IE.
|
* 1. Correct the text wrapping in Edge and IE.
|
||||||
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
||||||
|
Loading…
Reference in New Issue
Block a user