mirror of
https://github.com/necolas/normalize.css.git
synced 2024-12-25 15:14:19 +00:00
Move input type appearance normalization into its own rule
This commit is contained in:
parent
9a3b1b32f4
commit
28f2f6c292
17
normalize.css
vendored
17
normalize.css
vendored
@ -293,8 +293,6 @@ 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,
|
||||||
@ -302,15 +300,24 @@ html [type="button"], /* 1 */
|
|||||||
[type="reset"],
|
[type="reset"],
|
||||||
[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.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[disabled],
|
[disabled] {
|
||||||
html [disabled] {
|
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user