mirror of
https://github.com/necolas/normalize.css.git
synced 2024-12-25 15:14:19 +00:00
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:
parent
9652da94c7
commit
f28538a363
47
normalize.css
vendored
47
normalize.css
vendored
@ -95,6 +95,16 @@ 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
|
||||
@ -116,12 +126,10 @@ 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,
|
||||
@ -130,6 +138,7 @@ kbd,
|
||||
samp {
|
||||
font-family: monospace, sans-serif; /* 1 */
|
||||
_font-family: 'Courier New', monospace, sans-serif; /* 2 */
|
||||
font-size: 1em;
|
||||
vertical-align: top; /* 3 */
|
||||
}
|
||||
|
||||
@ -146,10 +155,8 @@ 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,8 +174,7 @@ 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 {
|
||||
@ -176,6 +182,12 @@ small {
|
||||
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%;
|
||||
@ -204,7 +216,6 @@ legend {
|
||||
/*
|
||||
* Remove margin from form elements
|
||||
* Fixes margin displayed oddly in C10 S5
|
||||
*
|
||||
*/
|
||||
|
||||
button,
|
||||
@ -218,7 +229,8 @@ 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,12 +249,9 @@ 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 {
|
||||
|
Loading…
Reference in New Issue
Block a user