mirror of
https://github.com/necolas/normalize.css.git
synced 2024-12-25 15:14:19 +00:00
Update normalize.css and demo from master
This commit is contained in:
parent
4312c1db94
commit
1e500b9360
15
demo.html
15
demo.html
@ -85,13 +85,14 @@
|
|||||||
<h3>pre</h3>
|
<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>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et me.</pre>
|
||||||
<pre><code><html></code>
|
|
||||||
<code><head></code>
|
<pre><code><html>
|
||||||
<code></head></code>
|
<head>
|
||||||
<code><body></code>
|
</head>
|
||||||
<code><div class="main"> <div></code>
|
<body>
|
||||||
<code></body></code>
|
<div class="main"> <div>
|
||||||
<code></html></code></pre>
|
</body>
|
||||||
|
</html></code></pre>
|
||||||
|
|
||||||
<h3>blockquote</h3>
|
<h3>blockquote</h3>
|
||||||
|
|
||||||
|
129
normalize.css
vendored
129
normalize.css
vendored
@ -1,10 +1,11 @@
|
|||||||
|
/*! normalize.css 2011-06-21T02:22 http://github.com/necolas/normalize.css */
|
||||||
|
|
||||||
/* =============================================================================
|
/* =============================================================================
|
||||||
HTML5 element display
|
HTML5 element display
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Add display for block-level HTML5 elements
|
* Corrects block display not defined in IE6/7/8/9 & FF3
|
||||||
* Addresses display not defined in IE6/7/8/9 & FF3
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
article,
|
article,
|
||||||
@ -20,20 +21,31 @@ section {
|
|||||||
display: block;
|
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
|
Base
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 1. Add font size
|
* 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
|
||||||
* Addresses text resizing oddly in IE6/7 when body font-size is set using em units
|
|
||||||
* http://clagnut.com/blog/348/#c790
|
* http://clagnut.com/blog/348/#c790
|
||||||
* 2. Add vertical scrollbar
|
* 2. Keeps page centred in all browsers regardless of content height
|
||||||
* Keeps page centred in all browsers regardless of content height
|
* 3. Removes Android and iOS tap highlight color to prevent entire container being highlighted
|
||||||
* 3. Remove 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/
|
* 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/
|
* 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
|
* 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.
|
* Addresses font-family inconsistency between 'textarea' and other form elements.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -68,11 +78,9 @@ textarea {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 1. Remove border
|
* 1. Removes border when inside 'a' element in IE6/7/8/9
|
||||||
* Improves readability when inside 'a' element in all browsers
|
* 2. Improves image quality when scaled in IE7
|
||||||
* 2. Allow high quality bicubic image resampling
|
* code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
|
||||||
* 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/
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
img {
|
img {
|
||||||
@ -94,7 +102,6 @@ a:visited {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Define outline as thin dotted
|
|
||||||
* Addresses outline displayed oddly in Chrome
|
* 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
|
* Improves readability when focused and also mouse hovered in all browsers
|
||||||
* people.opera.com/patrickl/experiments/keyboard/test
|
* people.opera.com/patrickl/experiments/keyboard/test
|
||||||
*/
|
*/
|
||||||
@ -119,8 +125,7 @@ a:active {
|
|||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Add bottom border
|
* Addresses styling not present in IE7/8/9, S5, Chrome
|
||||||
* Fixes styling not present in IE7/8/9 S5 Chrome
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
abbr[title] {
|
abbr[title] {
|
||||||
@ -128,8 +133,7 @@ abbr[title] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Add bold font weight
|
* Addresses style set to 'bolder' in FF3/4, S4/5, Chrome
|
||||||
* Fixes style set to 'bolder' in FF3/4 S4/5 Chrome
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
b,
|
b,
|
||||||
@ -142,8 +146,7 @@ blockquote {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Add italic font style
|
* Addresses styling not present in S5, Chrome
|
||||||
* Fixes styling not present in S5 Chrome
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
dfn {
|
dfn {
|
||||||
@ -151,8 +154,7 @@ dfn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Add yellow background and black text
|
* Addresses styling not present in IE6/7/8/9
|
||||||
* Fixes styling not present in IE6/7/8/9
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
mark {
|
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
|
* 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,
|
pre,
|
||||||
code,
|
code,
|
||||||
kbd,
|
kbd,
|
||||||
samp {
|
samp {
|
||||||
font-family: monospace, monospace; /* 1 */
|
font-family: monospace, monospace;
|
||||||
_font-family: 'courier new', monospace; /* 2 */
|
_font-family: 'courier new', monospace;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Add line wrapping
|
|
||||||
* Improves readability of pre-formatted text in all browsers
|
* 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
|
* 1. Addresses CSS quotes not supported in IE6/7
|
||||||
* 2. Addresses quote property not supported in S4
|
* 2. Addresses quote property not supported in S4
|
||||||
*/
|
*/
|
||||||
@ -207,17 +205,12 @@ q:after {
|
|||||||
content: none;
|
content: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Define font-size
|
|
||||||
*/
|
|
||||||
|
|
||||||
small {
|
small {
|
||||||
font-size: 75%;
|
font-size: 75%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Position subscript and superscript content without affecting line-height
|
* Prevents sub and sup affecting line-height in all browsers
|
||||||
* Fixes alignment within multi-line text displayed oddly in all browsers
|
|
||||||
* gist.github.com/413930
|
* gist.github.com/413930
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -263,7 +256,6 @@ nav ol {
|
|||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Remove margin
|
|
||||||
* Addresses margin not present in IE6/7/8/9, S5, O11
|
* Addresses margin not present in IE6/7/8/9, S5, O11
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -277,8 +269,7 @@ figure {
|
|||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Remove margin
|
* Corrects margin displayed oddly in IE6/7
|
||||||
* Fixes styling in IE6/7
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
form {
|
form {
|
||||||
@ -295,19 +286,19 @@ fieldset {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Add negative left margin
|
* 1. Corrects color not being inherited in IE6/7/8/9
|
||||||
* Fixes alignment displayed oddly in IE6/7
|
* 2. Corrects alignment displayed oddly in IE6/7
|
||||||
*/
|
*/
|
||||||
|
|
||||||
legend {
|
legend {
|
||||||
*margin-left: -7px;
|
border: 0; /* 1 */
|
||||||
|
*margin-left: -7px; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 1. Define font-size as equal to ancestor's
|
* 1. Corrects font size not being inherited in all browsers
|
||||||
* 2. Remove margin
|
* 2. Addresses margins set differently in IE6/7, F3/4, S5, Chrome
|
||||||
* Fixes different margins set in FF3/4 S5 Chrome
|
* 3. Improves appearance and consistency in all browsers
|
||||||
* 3. Define consistent vertical alignment display in all browsers
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
button,
|
button,
|
||||||
@ -321,10 +312,8 @@ textarea {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 1. Define line-height as normal
|
* 1. Addresses FF3/4 setting line-height using !important in the UA stylesheet
|
||||||
* Addresses FF3/4 setting it using !important in the UA stylesheet
|
* 2. Corrects inner spacing displayed oddly in IE6/7
|
||||||
* 2. Make overflow visible
|
|
||||||
* Fixes spacing displayed oddly in IE6/7
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
button,
|
button,
|
||||||
@ -334,10 +323,8 @@ input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 1. Display hand cursor for clickable form elements
|
* 1. Improves usability and consistency of cursor style between image-type 'input' and others
|
||||||
* Improves usability and consistency of cursor style between image-type 'input' and others
|
* 2. Corrects inability to style clickable 'input' types in iOS
|
||||||
* 2. Define appearance for clickable form elements
|
|
||||||
* Fixes inability to style clickable 'input' types in iOS
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
button,
|
button,
|
||||||
@ -349,7 +336,6 @@ input[type="submit"] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Define box sizing
|
|
||||||
* Addresses box sizing set to content-box in IE8/9
|
* Addresses box sizing set to content-box in IE8/9
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -359,21 +345,19 @@ input[type="radio"] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Define box sizing and appearance
|
* 1. Addresses appearance set to searchfield in S5, Chrome
|
||||||
* Addresses box sizing set to border-box in S5 Chrome (include -moz to future-proof)
|
* 2. Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof)
|
||||||
* Addresses appearance set to searchfield in S5 Chrome
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
input[type="search"] {
|
input[type="search"] {
|
||||||
-webkit-appearance: textfield;
|
-webkit-appearance: textfield; /* 1 */
|
||||||
-moz-box-sizing: content-box;
|
-moz-box-sizing: content-box;
|
||||||
-webkit-box-sizing: content-box;
|
-webkit-box-sizing: content-box; /* 2 */
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Remove WebKit search decoration
|
* Corrects inner padding displayed oddly in S5, Chrome on OSX
|
||||||
* Addresses inner padding displaying oddly in S5 Chrome on OSX
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
input[type="search"]::-webkit-search-decoration {
|
input[type="search"]::-webkit-search-decoration {
|
||||||
@ -381,8 +365,7 @@ input[type="search"]::-webkit-search-decoration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Remove inner padding and border
|
* Corrects inner padding and border displayed oddly in FF3/4
|
||||||
* Fixes appearance displayed oddly in FF3/4
|
|
||||||
* www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
|
* 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
|
* 1. Removes default vertical scrollbar in IE6/7/8/9
|
||||||
* Fixes scrollbar displayed oddly in IE6/7/8/9
|
* 2. Improves readability and aligment in all browsers
|
||||||
* 2. Add top vertical alignment
|
|
||||||
* Improves readability and aligment in all browsers
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
@ -411,17 +392,9 @@ textarea {
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Remove most spacing between table cells
|
* Remove most spacing between table cells
|
||||||
* Consistent vertical and horizontal alignment in all browsers
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
table {
|
table {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
th,
|
|
||||||
td {
|
|
||||||
padding: 0;
|
|
||||||
text-align: left;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user