Remove hr and separate some margin normalizations

Recommend that people supporting IE6/7 do not use the `hr` element
at all. It requires far more work than just normalizing margins.
IE6/7 do not collapse margins set on `hr` with margins of pre- or
proceeding elements.

Separate the margin normalizations for `p` and `pre` from that for
`h3`. Despite sharing the same margin value, headings are
qualitatively different from these other elements. Both in terms
of customisation and debugging using browser tools, it is cleaner
to keep the margins of heading separate.
This commit is contained in:
Nicolas Gallagher 2012-02-07 10:22:40 +00:00
parent f1a096a498
commit cb176831b9

40
normalize.css vendored
View File

@ -1,4 +1,4 @@
/*! normalize.css 2012-02-07T05:02 UTC - http://github.com/necolas/normalize.css */
/*! normalize.css 2012-02-07T10:31 UTC - http://github.com/necolas/normalize.css */
/* =============================================================================
HTML5 display definitions
@ -68,7 +68,7 @@ html {
-ms-text-size-adjust: 100%; /* 2 */
}
/*
/*
* Addresses font-family inconsistency between 'textarea' and other form elements.
*/
@ -133,11 +133,6 @@ h2 {
h3 {
font-size: 1.17em;
}
h3,
p,
pre {
margin: 1em 0;
}
@ -168,23 +163,15 @@ abbr[title] {
* Addresses style set to 'bolder' in FF3+, S4/5, Chrome
*/
b,
strong {
font-weight: bold;
b,
strong {
font-weight: bold;
}
blockquote {
margin: 1em 40px;
}
/*
* Addresses styling not present in IE6/7
*/
hr {
margin: 0.5em auto;
}
/*
* Addresses styling not present in S5, Chrome
*/
@ -202,6 +189,15 @@ mark {
color: #000;
}
/*
* Addresses margins set differently in IE6/7
*/
p,
pre {
margin: 1em 0;
}
/*
* Corrects font family set oddly in IE6, S4/5, Chrome
* en.wikipedia.org/wiki/User:Davidgothberg/Test59
@ -327,7 +323,7 @@ img {
}
/*
* Corrects overflow displayed oddly in IE9
* Corrects overflow displayed oddly in IE9
*/
svg:not(:root) {
@ -416,8 +412,8 @@ input {
*/
button,
input[type="button"],
input[type="reset"],
input[type="button"],
input[type="reset"],
input[type="submit"] {
cursor: pointer; /* 1 */
-webkit-appearance: button; /* 2 */
@ -495,7 +491,7 @@ textarea {
Tables
========================================================================== */
/*
/*
* Remove most spacing between table cells
*/