Merge pull request #537 from necolas/fix/438

Reduce input type selector weight
This commit is contained in:
Jonathan Neal 2016-03-18 22:39:07 -04:00
commit 35673c5d99

37
normalize.css vendored
View File

@ -293,24 +293,31 @@ select {
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
* and `video` controls. * and `video` controls.
* 2. Correct inability to style clickable `input` types in iOS. * 2. Correct inability to style clickable `input` types in iOS.
* 3. Improve usability and consistency of cursor style between image-type
* `input` and others.
*/ */
button, button,
html input[type="button"], /* 1 */ html [type="button"], /* 1 */
input[type="reset"], [type="reset"],
input[type="submit"] { [type="submit"] {
-webkit-appearance: button; /* 2 */ -webkit-appearance: button; /* 2 */
cursor: pointer; /* 3 */ }
/**
* Improve consistency of cursor style between image-type `input` and others.
*/
button,
[type="button"],
[type="reset"],
[type="submit"] {
cursor: pointer;
} }
/** /**
* Re-set default cursor for disabled elements. * Re-set default cursor for disabled elements.
*/ */
button[disabled], [disabled] {
html input[disabled] {
cursor: default; cursor: default;
} }
@ -341,8 +348,8 @@ input:-moz-focusring {
* 2. Remove excess padding in IE 8/9/10. * 2. Remove excess padding in IE 8/9/10.
*/ */
input[type="checkbox"], [type="checkbox"],
input[type="radio"] { [type="radio"] {
box-sizing: border-box; /* 1 */ box-sizing: border-box; /* 1 */
padding: 0; /* 2 */ padding: 0; /* 2 */
} }
@ -353,8 +360,8 @@ input[type="radio"] {
* decrement button to change from `default` to `text`. * decrement button to change from `default` to `text`.
*/ */
input[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { [type="number"]::-webkit-outer-spin-button {
height: auto; height: auto;
} }
@ -362,7 +369,7 @@ input[type="number"]::-webkit-outer-spin-button {
* Address `appearance` set to `searchfield` in Safari and Chrome. * Address `appearance` set to `searchfield` in Safari and Chrome.
*/ */
input[type="search"] { [type="search"] {
-webkit-appearance: textfield; -webkit-appearance: textfield;
} }
@ -372,8 +379,8 @@ input[type="search"] {
* padding (and `textfield` appearance). * padding (and `textfield` appearance).
*/ */
input[type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { [type="search"]::-webkit-search-decoration {
-webkit-appearance: none; -webkit-appearance: none;
} }