Skip to content

Commit

Permalink
Reduce selector weight of input types
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathantneal committed Mar 18, 2016
1 parent 7b962cc commit 9a3b1b3
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions normalize.css
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,9 @@ select {
*/

button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
html [type="button"], /* 1 */
[type="reset"],
[type="submit"] {
-webkit-appearance: button; /* 2 */
cursor: pointer; /* 3 */
}
Expand All @@ -309,8 +309,8 @@ input[type="submit"] {
* Re-set default cursor for disabled elements.
*/

button[disabled],
html input[disabled] {
[disabled],
html [disabled] {
cursor: default;
}

Expand Down Expand Up @@ -341,8 +341,8 @@ input:-moz-focusring {
* 2. Remove excess padding in IE 8/9/10.
*/

input[type="checkbox"],
input[type="radio"] {
[type="checkbox"],
[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
Expand All @@ -353,16 +353,16 @@ input[type="radio"] {
* decrement button to change from `default` to `text`.
*/

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}

/**
* Address `appearance` set to `searchfield` in Safari and Chrome.
*/

input[type="search"] {
[type="search"] {
-webkit-appearance: textfield;
}

Expand All @@ -372,8 +372,8 @@ input[type="search"] {
* padding (and `textfield` appearance).
*/

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}

Expand Down

0 comments on commit 9a3b1b3

Please sign in to comment.