Update normalize.css and demo from master

This commit is contained in:
Nicolas Gallagher 2011-06-21 02:20:10 +01:00
parent 4312c1db94
commit 1e500b9360
2 changed files with 60 additions and 86 deletions

View File

@ -85,13 +85,14 @@
<h3>pre</h3>
<pre>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et me.</pre>
<pre><code>&lt;html></code>
<code>&lt;head></code>
<code>&lt;/head></code>
<code>&lt;body></code>
<code>&lt;div class="main"> &lt;div></code>
<code>&lt;/body></code>
<code>&lt;/html></code></pre>
<pre><code>&lt;html>
&lt;head>
&lt;/head>
&lt;body>
&lt;div class="main"> &lt;div>
&lt;/body>
&lt;/html></code></pre>
<h3>blockquote</h3>

129
normalize.css vendored
View File

@ -1,10 +1,11 @@
/*! normalize.css 2011-06-21T02:22 http://github.com/necolas/normalize.css */
/* =============================================================================
HTML5 element display
========================================================================== */
/*
* Add display for block-level HTML5 elements
* Addresses display not defined in IE6/7/8/9 & FF3
* Corrects block display not defined in IE6/7/8/9 & FF3
*/
article,
@ -20,20 +21,31 @@ section {
display: block;
}
/*
* Corrects inline-block display not defined in IE6/7/8/9 & FF3
* Known limitation: IE6 will not apply style for 'audio[controls]'
*/
audio[controls],
canvas,
video {
display: inline-block;
*display: inline;
zoom: 1;
}
/* =============================================================================
Base
========================================================================== */
/*
* 1. Add font size
* Addresses text resizing oddly in IE6/7 when body font-size is set using em units
* 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
* http://clagnut.com/blog/348/#c790
* 2. Add vertical scrollbar
* Keeps page centred in all browsers regardless of content height
* 3. Remove Android and iOS tap highlight color to prevent entire container being highlighted
* 2. Keeps page centred in all browsers regardless of content height
* 3. Removes Android and iOS tap highlight color to prevent entire container being highlighted
* www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/
* 4. Remove iOS text size adjust without disabling user zoom
* 4. Prevents iOS text size adjust after orientation change, without disabling user zoom
* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
*/
@ -46,7 +58,6 @@ html {
}
/*
* Remove margin
* Addresses margins handled incorrectly in IE6/7
*/
@ -55,7 +66,6 @@ body {
}
/*
* Define base font-family
* Addresses font-family inconsistency between 'textarea' and other form elements.
*/
@ -68,11 +78,9 @@ textarea {
}
/*
* 1. Remove border
* Improves readability when inside 'a' element in all browsers
* 2. Allow high quality bicubic image resampling
* Improves readability when scaled in IE7
* Read before using : code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
* 1. Removes border when inside 'a' element in IE6/7/8/9
* 2. Improves image quality when scaled in IE7
* code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
*/
img {
@ -94,7 +102,6 @@ a:visited {
}
/*
* Define outline as thin dotted
* Addresses outline displayed oddly in Chrome
*/
@ -103,7 +110,6 @@ a:focus {
}
/*
* Remove outline
* Improves readability when focused and also mouse hovered in all browsers
* people.opera.com/patrickl/experiments/keyboard/test
*/
@ -119,8 +125,7 @@ a:active {
========================================================================== */
/*
* Add bottom border
* Fixes styling not present in IE7/8/9 S5 Chrome
* Addresses styling not present in IE7/8/9, S5, Chrome
*/
abbr[title] {
@ -128,8 +133,7 @@ abbr[title] {
}
/*
* Add bold font weight
* Fixes style set to 'bolder' in FF3/4 S4/5 Chrome
* Addresses style set to 'bolder' in FF3/4, S4/5, Chrome
*/
b,
@ -142,8 +146,7 @@ blockquote {
}
/*
* Add italic font style
* Fixes styling not present in S5 Chrome
* Addresses styling not present in S5, Chrome
*/
dfn {
@ -151,8 +154,7 @@ dfn {
}
/*
* Add yellow background and black text
* Fixes styling not present in IE6/7/8/9
* Addresses styling not present in IE6/7/8/9
*/
mark {
@ -161,23 +163,20 @@ mark {
}
/*
* Redeclare monospace font family
* Corrects font family set oddly in IE6, S5, Chrome
* en.wikipedia.org/wiki/User:Davidgothberg/Test59
* 1. Fixes font family set oddly in S5 Chrome
* 2. Fixes monospace font family set oddly in IE6
*/
pre,
code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
_font-family: 'courier new', monospace; /* 2 */
font-family: monospace, monospace;
_font-family: 'courier new', monospace;
font-size: 1em;
}
/*
* Add line wrapping
* Improves readability of pre-formatted text in all browsers
*/
@ -188,7 +187,6 @@ pre {
}
/*
* Remove quotes
* 1. Addresses CSS quotes not supported in IE6/7
* 2. Addresses quote property not supported in S4
*/
@ -207,17 +205,12 @@ q:after {
content: none;
}
/*
* Define font-size
*/
small {
font-size: 75%;
}
/*
* Position subscript and superscript content without affecting line-height
* Fixes alignment within multi-line text displayed oddly in all browsers
* Prevents sub and sup affecting line-height in all browsers
* gist.github.com/413930
*/
@ -263,7 +256,6 @@ nav ol {
========================================================================== */
/*
* Remove margin
* Addresses margin not present in IE6/7/8/9, S5, O11
*/
@ -277,8 +269,7 @@ figure {
========================================================================== */
/*
* Remove margin
* Fixes styling in IE6/7
* Corrects margin displayed oddly in IE6/7
*/
form {
@ -295,19 +286,19 @@ fieldset {
}
/*
* Add negative left margin
* Fixes alignment displayed oddly in IE6/7
* 1. Corrects color not being inherited in IE6/7/8/9
* 2. Corrects alignment displayed oddly in IE6/7
*/
legend {
*margin-left: -7px;
border: 0; /* 1 */
*margin-left: -7px; /* 2 */
}
/*
* 1. Define font-size as equal to ancestor's
* 2. Remove margin
* Fixes different margins set in FF3/4 S5 Chrome
* 3. Define consistent vertical alignment display in all browsers
* 1. Corrects font size not being inherited in all browsers
* 2. Addresses margins set differently in IE6/7, F3/4, S5, Chrome
* 3. Improves appearance and consistency in all browsers
*/
button,
@ -321,10 +312,8 @@ textarea {
}
/*
* 1. Define line-height as normal
* Addresses FF3/4 setting it using !important in the UA stylesheet
* 2. Make overflow visible
* Fixes spacing displayed oddly in IE6/7
* 1. Addresses FF3/4 setting line-height using !important in the UA stylesheet
* 2. Corrects inner spacing displayed oddly in IE6/7
*/
button,
@ -334,10 +323,8 @@ input {
}
/*
* 1. Display hand cursor for clickable form elements
* Improves usability and consistency of cursor style between image-type 'input' and others
* 2. Define appearance for clickable form elements
* Fixes inability to style clickable 'input' types in iOS
* 1. Improves usability and consistency of cursor style between image-type 'input' and others
* 2. Corrects inability to style clickable 'input' types in iOS
*/
button,
@ -349,7 +336,6 @@ input[type="submit"] {
}
/*
* Define box sizing
* Addresses box sizing set to content-box in IE8/9
*/
@ -359,21 +345,19 @@ input[type="radio"] {
}
/*
* Define box sizing and appearance
* Addresses box sizing set to border-box in S5 Chrome (include -moz to future-proof)
* Addresses appearance set to searchfield in S5 Chrome
* 1. Addresses appearance set to searchfield in S5, Chrome
* 2. Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof)
*/
input[type="search"] {
-webkit-appearance: textfield;
-webkit-appearance: textfield; /* 1 */
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
-webkit-box-sizing: content-box; /* 2 */
box-sizing: content-box;
}
/*
* Remove WebKit search decoration
* Addresses inner padding displaying oddly in S5 Chrome on OSX
* Corrects inner padding displayed oddly in S5, Chrome on OSX
*/
input[type="search"]::-webkit-search-decoration {
@ -381,8 +365,7 @@ input[type="search"]::-webkit-search-decoration {
}
/*
* Remove inner padding and border
* Fixes appearance displayed oddly in FF3/4
* Corrects inner padding and border displayed oddly in FF3/4
* www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
*/
@ -393,10 +376,8 @@ input::-moz-focus-inner {
}
/*
* 1. Remove default vertical scrollbar
* Fixes scrollbar displayed oddly in IE6/7/8/9
* 2. Add top vertical alignment
* Improves readability and aligment in all browsers
* 1. Removes default vertical scrollbar in IE6/7/8/9
* 2. Improves readability and aligment in all browsers
*/
textarea {
@ -411,17 +392,9 @@ textarea {
/*
* Remove most spacing between table cells
* Consistent vertical and horizontal alignment in all browsers
*/
table {
border-collapse: collapse;
border-spacing: 0;
}
th,
td {
padding: 0;
text-align: left;
vertical-align: middle;
}