Update normalize.css and demo.html from master branch

This commit is contained in:
Nicolas Gallagher 2011-09-22 18:41:34 +01:00
parent 7e939a1ca7
commit 34680acb33
2 changed files with 6 additions and 15 deletions

View File

@ -235,7 +235,7 @@
<form> <form>
<fieldset> <fieldset>
<legend>Inputs as descendents of labels (form legend)</legend> <legend>Inputs as descendents of labels (form legend)</legend>
<p><label>Text input <input type="text" value="default value"></label></p> <p><label>Text input <input type="text" value="default value that goes on and on without stopping or punctuation"></label></p>
<p><label>Email input <input type="email"></label></p> <p><label>Email input <input type="email"></label></p>
<p><label>Search input <input type="search"></label></p> <p><label>Search input <input type="search"></label></p>
<p><label>Tel input <input type="tel"></label></p> <p><label>Tel input <input type="tel"></label></p>

19
normalize.css vendored
View File

@ -1,4 +1,4 @@
/*! normalize.css 2011-09-14T10:27 UTC - http://github.com/necolas/normalize.css */ /*! normalize.css 2011-09-22T17:42 UTC - http://github.com/necolas/normalize.css */
/* ============================================================================= /* =============================================================================
HTML5 display definitions HTML5 display definitions
@ -340,29 +340,19 @@ textarea {
} }
/* /*
* 1. Addresses FF3/4 setting line-height using !important in the UA stylesheet * Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
* 2. Corrects inner spacing displayed oddly in IE6/7
*/ */
button, button,
input { input {
line-height: normal; /* 1 */ line-height: normal; /* 1 */
*overflow: visible; /* 2 */
}
/*
* Corrects overlap and whitespace issue for buttons and inputs in IE6/7
* Known issue: reintroduces inner spacing
*/
table button,
table input {
*overflow: auto;
} }
/* /*
* 1. Improves usability and consistency of cursor style between image-type 'input' and others * 1. Improves usability and consistency of cursor style between image-type 'input' and others
* 2. Corrects inability to style clickable 'input' types in iOS * 2. Corrects inability to style clickable 'input' types in iOS
* 3. Corrects inner spacing displayed oddly in IE7 without effecting normal text inputs
* Known issue: inner spacing remains in IE6
*/ */
button, button,
@ -371,6 +361,7 @@ input[type="reset"],
input[type="submit"] { input[type="submit"] {
cursor: pointer; /* 1 */ cursor: pointer; /* 1 */
-webkit-appearance: button; /* 2 */ -webkit-appearance: button; /* 2 */
*overflow: visible; /* 3 */
} }
/* /*