Add bold font-weight to <b> and <strong>. Add font-size to <pre> <code> <kbd> <samp> (was missing). Introduce more links to further reading.

This commit is contained in:
necolas 2011-05-14 11:01:47 +01:00
parent 9652da94c7
commit f28538a363

77
normalize.css vendored
View File

@ -47,7 +47,7 @@ html {
/*
* Remove margin from <body> element
*/
*/
body {
margin: 0;
@ -79,7 +79,7 @@ a:hover {
* 2. Allow high quality bicubic image resampling for <img> element
* 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 {
border: 0; /* 1 */
@ -89,16 +89,26 @@ img {
/*
* Add bottom border to <abbr> element
* Fixes styling not present in IE6/7/8/9 C10 S5
*/
*/
abbr[title] {
border-bottom: 1px dotted;
}
/*
* Add bold font weight to <b> and <strong> elements
* Fixes style set to 'bolder' in FF3/4 S4/5 C10
*/
b,
strong {
font-weight: bold;
}
/*
* Add italic font style to <dfn> element
* Fixes styling not present in C10 S5
*/
*/
dfn {
font-style: italic;
@ -107,7 +117,7 @@ dfn {
/*
* Add yellow background and black text to <mark> element
* Fixes styling not present in IE6/7/8/9
*/
*/
mark {
background-color: #FF0;
@ -116,27 +126,26 @@ mark {
/*
* Redeclare monospace font family to <pre> <code> <kbd> <samp> elements
* 1.
* Fixes font family set oddly in C10 S5
* 2.
* Fixes monospace font family set oddly in IE6
* 3.
* Fixes monospace line-height overflow in iOS
*/
* en.wikipedia.org/wiki/User:Davidgothberg/Test59
* 1. Fixes font family set oddly in C10 S5
* 2. Fixes monospace font family set oddly in IE6
* 3. Fixes monospace line-height overflow in iOS
*/
pre,
code,
kbd,
samp {
font-family: monospace, sans-serif; /* 1 */
_font-family: 'Courier New', monospace, sans-serif;/* 2 */
_font-family: 'Courier New', monospace, sans-serif; /* 2 */
font-size: 1em;
vertical-align: top; /* 3 */
}
/*
* Allow line wrapping for <pre> element
* Improves readability of pre-formatted text in all browsers
*/
*/
pre {
white-space: pre;
@ -146,11 +155,9 @@ pre {
/*
* Remove quotes from <q> element
* 1.
* Addresses CSS quotes not supported in IE6/7
* 2.
* Addresses quote attributes not supported in S4
*/
* 1. Addresses CSS quotes not supported in IE6/7
* 2. Addresses quote attributes not supported in S4
*/
/* 1 */
@ -167,15 +174,20 @@ q:after {
}
/*
* Define alignment for <small> <sub> <sup> elements
* Fixes alignment within multi-line text displayed oddly in all browsers
*/
* Define font-size and alignment for <small> element
*/
small {
font-size: 75%;
line-height: 1;
}
/*
* Position subscript and superscript content without affecting line-height
* Fixes alignment within multi-line text displayed oddly in all browsers
* - http://gist.github.com/413930
*/
sub,
sup {
font-size: 75%;
@ -195,7 +207,7 @@ sub {
/*
* Define alignment for <legend> element
* Fixes alignment displayed oddly in IE6/7
*/
*/
legend {
*margin-left: -7px;
@ -204,8 +216,7 @@ legend {
/*
* Remove margin from form elements
* Fixes margin displayed oddly in C10 S5
*
*/
*/
button,
input,
@ -218,8 +229,9 @@ textarea {
* Define inner-spacing for button elements
* Targeting all inputs is harmless to non-button elements
* 1. Fixes spacing displayed oddly in IE6/7
* 2. Fixes border and padding displayed oddly in FF3/4
*/
* 2. Fixes inner padding and border displayed in FF3/4
* www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
*/
/* 1 */
@ -237,13 +249,10 @@ input::-moz-focus-inner {
}
/*
* 1.
* Disable default vertical scrollbar for <textarea> element
* 1. Disable default vertical scrollbar for <textarea> element
* Fixes scrollbar displayed oddly in IE6/7/8/9
* 2.
* Align <textarea> with top when inline
* Improves readability and fixes FF3/4's different positioning for baseline
*/
* 2. Improves readability and aligment in all browsers
*/
textarea {
overflow: auto; /* 1 */
@ -254,7 +263,7 @@ textarea {
/*
* Define box sizing for <input> <select> <textarea> element
* Addresses box sizing not supported in IE6/7
*/
*/
input[type='button'],
input[type='checkbox'],