Add normalization of <form> and <fieldset> elements. Add input[type='reset'] to box sizing normalization. Add cursor:pointer for clickable inputs/buttons.

This commit is contained in:
Nicolas Gallagher 2011-05-17 04:46:20 -07:00
parent 56d63dfe7a
commit 11d60fe7ba

32
normalize.css vendored
View File

@ -222,6 +222,24 @@ sub {
/* ............................................................................................................. Form elements */
/*
* Remove margin from <form> element
* Fixes styling in IE6/7
*/
form {
margin: 0;
}
/*
* Define consistent margin and padding for <fieldset> element
*/
fieldset {
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
/*
* Define alignment for <legend> element
* Fixes alignment displayed oddly in IE6/7
@ -268,6 +286,19 @@ input::-moz-focus-inner {
padding: 0;
}
/*
* Display hand cursor for clickable form elements in all browsers except IE6.
* Improves usability and fixes inconsistent cursor style between type=image and other types
*/
input[type="button"],
input[type="image"],
input[type="reset"],
input[type="submit"],
button {
cursor: pointer;
}
/*
* 1. Disable default vertical scrollbar for <textarea> element
* Fixes scrollbar displayed oddly in IE6/7/8/9
@ -287,6 +318,7 @@ textarea {
input[type='button'],
input[type='checkbox'],
input[type='radio'],
input[type='reset'],
input[type='submit'],
select {
-moz-box-sizing: border-box;