mirror of
https://github.com/necolas/normalize.css.git
synced 2024-12-25 15:14:19 +00:00
Language and comment style
* Consistent use of tense. * Small change to use common comment style.
This commit is contained in:
parent
43af50617c
commit
d6c54bba6f
181
normalize.css
vendored
181
normalize.css
vendored
@ -4,8 +4,8 @@
|
|||||||
HTML5 display definitions
|
HTML5 display definitions
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Corrects `block` display not defined in IE 6/7/8/9 and Firefox 3.
|
* Correct `block` display not defined in IE 6/7/8/9 and Firefox 3.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
article,
|
article,
|
||||||
@ -22,8 +22,8 @@ summary {
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Corrects `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
|
* Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
audio,
|
audio,
|
||||||
@ -34,8 +34,8 @@ video {
|
|||||||
*zoom: 1;
|
*zoom: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Prevents modern browsers from displaying `audio` without controls.
|
* Prevent modern browsers from displaying `audio` without controls.
|
||||||
* Remove excess height in iOS 5 devices.
|
* Remove excess height in iOS 5 devices.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -44,9 +44,8 @@ audio:not([controls]) {
|
|||||||
height: 0;
|
height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Addresses styling for `hidden` attribute not present in IE 7/8/9, Firefox 3,
|
* Address styling not present in IE 7/8/9, Firefox 3, and Safari 4.
|
||||||
* and Safari 4.
|
|
||||||
* Known issue: no IE 6 support.
|
* Known issue: no IE 6 support.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -58,10 +57,10 @@ audio:not([controls]) {
|
|||||||
Base
|
Base
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* 1. Corrects text resizing oddly in IE 6/7 when body `font-size` is set using
|
* 1. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
|
||||||
* `em` units.
|
* `em` units.
|
||||||
* 2. Prevents iOS text size adjust after orientation change, without disabling
|
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||||
* user zoom.
|
* user zoom.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -71,8 +70,8 @@ html {
|
|||||||
-ms-text-size-adjust: 100%; /* 2 */
|
-ms-text-size-adjust: 100%; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Addresses `font-family` inconsistency between `textarea` and other form
|
* Address `font-family` inconsistency between `textarea` and other form
|
||||||
* elements.
|
* elements.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -84,8 +83,8 @@ textarea {
|
|||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Addresses margins handled incorrectly in IE 6/7.
|
* Address margins handled incorrectly in IE 6/7.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@ -96,16 +95,16 @@ body {
|
|||||||
Links
|
Links
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Addresses `outline` inconsistency between Chrome and other browsers.
|
* Address `outline` inconsistency between Chrome and other browsers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
a:focus {
|
a:focus {
|
||||||
outline: thin dotted;
|
outline: thin dotted;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Improves readability when focused and also mouse hovered in all browsers.
|
* Improve readability when focused and also mouse hovered in all browsers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
a:active,
|
a:active,
|
||||||
@ -117,9 +116,9 @@ a:hover {
|
|||||||
Typography
|
Typography
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Addresses font sizes and margins set differently in IE 6/7.
|
* Address font sizes and margins set differently in IE 6/7.
|
||||||
* Addresses font sizes within `section` and `article` in Firefox 4+, Safari 5,
|
* Address font sizes within `section` and `article` in Firefox 4+, Safari 5,
|
||||||
* and Chrome.
|
* and Chrome.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -153,16 +152,16 @@ h6 {
|
|||||||
margin: 2.33em 0;
|
margin: 2.33em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Addresses styling not present in IE 7/8/9, Safari 5, and Chrome.
|
* Address styling not present in IE 7/8/9, Safari 5, and Chrome.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
abbr[title] {
|
abbr[title] {
|
||||||
border-bottom: 1px dotted;
|
border-bottom: 1px dotted;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Addresses style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome.
|
* Address style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
b,
|
b,
|
||||||
@ -174,16 +173,16 @@ blockquote {
|
|||||||
margin: 1em 40px;
|
margin: 1em 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Addresses styling not present in Safari 5 and Chrome.
|
* Address styling not present in Safari 5 and Chrome.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
dfn {
|
dfn {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Addresses styling not present in IE 6/7/8/9.
|
* Address styling not present in IE 6/7/8/9.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
mark {
|
mark {
|
||||||
@ -191,8 +190,8 @@ mark {
|
|||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Addresses margins set differently in IE 6/7.
|
* Address margins set differently in IE 6/7.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
p,
|
p,
|
||||||
@ -200,8 +199,8 @@ pre {
|
|||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Corrects font family set oddly in IE 6, Safari 4/5, and Chrome.
|
* Correct font family set oddly in IE 6, Safari 4/5, and Chrome.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
code,
|
code,
|
||||||
@ -213,8 +212,8 @@ samp {
|
|||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Improves readability of pre-formatted text in all browsers.
|
* Improve readability of pre-formatted text in all browsers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
@ -223,16 +222,16 @@ pre {
|
|||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Addresses CSS quotes not supported in IE 6/7.
|
* Address CSS quotes not supported in IE 6/7.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
q {
|
q {
|
||||||
quotes: none;
|
quotes: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Addresses `quotes` property not supported in Safari 4.
|
* Address `quotes` property not supported in Safari 4.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
q:before,
|
q:before,
|
||||||
@ -241,16 +240,16 @@ q:after {
|
|||||||
content: none;
|
content: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Addresses inconsistent and variable font size in all browsers.
|
* Address inconsistent and variable font size in all browsers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
small {
|
small {
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Prevents `sub` and `sup` affecting `line-height` in all browsers.
|
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
sub,
|
sub,
|
||||||
@ -273,8 +272,8 @@ sub {
|
|||||||
Lists
|
Lists
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Addresses margins set differently in IE 6/7.
|
* Address margins set differently in IE 6/7.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
dl,
|
dl,
|
||||||
@ -288,8 +287,8 @@ dd {
|
|||||||
margin: 0 0 0 40px;
|
margin: 0 0 0 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Addresses paddings set differently in IE 6/7.
|
* Address paddings set differently in IE 6/7.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
menu,
|
menu,
|
||||||
@ -298,8 +297,8 @@ ul {
|
|||||||
padding: 0 0 0 40px;
|
padding: 0 0 0 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Corrects list images handled incorrectly in IE 7.
|
* Correct list images handled incorrectly in IE 7.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
nav ul,
|
nav ul,
|
||||||
@ -312,9 +311,9 @@ nav ol {
|
|||||||
Embedded content
|
Embedded content
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* 1. Removes border when inside `a` element in IE 6/7/8/9 and Firefox 3.
|
* 1. Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3.
|
||||||
* 2. Improves image quality when scaled in IE 7.
|
* 2. Improve image quality when scaled in IE 7.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
img {
|
img {
|
||||||
@ -322,8 +321,8 @@ img {
|
|||||||
-ms-interpolation-mode: bicubic; /* 2 */
|
-ms-interpolation-mode: bicubic; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Corrects overflow displayed oddly in IE 9.
|
* Correct overflow displayed oddly in IE 9.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
svg:not(:root) {
|
svg:not(:root) {
|
||||||
@ -334,8 +333,8 @@ svg:not(:root) {
|
|||||||
Figures
|
Figures
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Addresses margin not present in IE 6/7/8/9, Safari 5, and Opera 11.
|
* Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
figure {
|
figure {
|
||||||
@ -346,15 +345,15 @@ figure {
|
|||||||
Forms
|
Forms
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Corrects margin displayed oddly in IE 6/7.
|
* Correct margin displayed oddly in IE 6/7.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
form {
|
form {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Define consistent border, margin, and padding.
|
* Define consistent border, margin, and padding.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -364,10 +363,10 @@ fieldset {
|
|||||||
padding: 0.35em 0.625em 0.75em;
|
padding: 0.35em 0.625em 0.75em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* 1. Corrects color not being inherited in IE 6/7/8/9.
|
* 1. Correct color not being inherited in IE 6/7/8/9.
|
||||||
* 2. Corrects text not wrapping in Firefox 3.
|
* 2. Correct text not wrapping in Firefox 3.
|
||||||
* 3. Corrects alignment displayed oddly in IE 6/7.
|
* 3. Correct alignment displayed oddly in IE 6/7.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
legend {
|
legend {
|
||||||
@ -377,11 +376,11 @@ legend {
|
|||||||
*margin-left: -7px; /* 3 */
|
*margin-left: -7px; /* 3 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* 1. Corrects font size not being inherited in all browsers.
|
* 1. Correct font size not being inherited in all browsers.
|
||||||
* 2. Addresses margins set differently in IE 6/7, Firefox 3+, Safari 5,
|
* 2. Address margins set differently in IE 6/7, Firefox 3+, Safari 5,
|
||||||
* and Chrome.
|
* and Chrome.
|
||||||
* 3. Improves appearance and consistency in all browsers.
|
* 3. Improve appearance and consistency in all browsers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
button,
|
button,
|
||||||
@ -394,8 +393,8 @@ textarea {
|
|||||||
*vertical-align: middle; /* 3 */
|
*vertical-align: middle; /* 3 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Addresses Firefox 3+ setting `line-height` on `input` using `!important` in
|
* Address Firefox 3+ setting `line-height` on `input` using `!important` in
|
||||||
* the UA stylesheet.
|
* the UA stylesheet.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -404,13 +403,13 @@ input {
|
|||||||
line-height: normal;
|
line-height: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* 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. Corrects inability to style clickable `input` types in iOS.
|
* 2. Correct inability to style clickable `input` types in iOS.
|
||||||
* 3. Improves usability and consistency of cursor style between image-type
|
* 3. Improve usability and consistency of cursor style between image-type
|
||||||
* `input` and others.
|
* `input` and others.
|
||||||
* 4. Removes inner spacing in IE 7 without affecting normal text inputs.
|
* 4. Remove inner spacing in IE 7 without affecting normal text inputs.
|
||||||
* Known issue: inner spacing remains in IE 6.
|
* Known issue: inner spacing remains in IE 6.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -423,7 +422,7 @@ input[type="submit"] {
|
|||||||
*overflow: visible; /* 4 */
|
*overflow: visible; /* 4 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Re-set default cursor for disabled elements.
|
* Re-set default cursor for disabled elements.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -432,10 +431,10 @@ input[disabled] {
|
|||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* 1. Addresses box sizing set to content-box in IE 8/9.
|
* 1. Address box sizing set to content-box in IE 8/9.
|
||||||
* 2. Removes excess padding in IE 8/9.
|
* 2. Remove excess padding in IE 8/9.
|
||||||
* 3. Removes excess padding in IE 7.
|
* 3. Remove excess padding in IE 7.
|
||||||
* Known issue: excess padding remains in IE 6.
|
* Known issue: excess padding remains in IE 6.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -447,9 +446,9 @@ input[type="radio"] {
|
|||||||
*width: 13px; /* 3 */
|
*width: 13px; /* 3 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* 1. Addresses `appearance` set to `searchfield` in Safari 5 and Chrome.
|
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
|
||||||
* 2. Addresses `box-sizing` set to `border-box` in Safari 5 and Chrome
|
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
|
||||||
* (include `-moz` to future-proof).
|
* (include `-moz` to future-proof).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -460,8 +459,8 @@ input[type="search"] {
|
|||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Removes inner padding and search cancel button in Safari 5 and Chrome
|
* Remove inner padding and search cancel button in Safari 5 and Chrome
|
||||||
* on OS X.
|
* on OS X.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -470,8 +469,8 @@ input[type="search"]::-webkit-search-decoration {
|
|||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Removes inner padding and border in Firefox 3+.
|
* Remove inner padding and border in Firefox 3+.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
button::-moz-focus-inner,
|
button::-moz-focus-inner,
|
||||||
@ -480,9 +479,9 @@ input::-moz-focus-inner {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* 1. Removes default vertical scrollbar in IE 6/7/8/9.
|
* 1. Remove default vertical scrollbar in IE 6/7/8/9.
|
||||||
* 2. Improves readability and alignment in all browsers.
|
* 2. Improve readability and alignment in all browsers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
@ -494,7 +493,7 @@ textarea {
|
|||||||
Tables
|
Tables
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Remove most spacing between table cells.
|
* Remove most spacing between table cells.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user