mirror of
https://github.com/h5bp/html5-boilerplate.git
synced 2026-01-10 07:08:02 -05:00
Move base font-family and color declaration to html.
Applying these shared styles to `html` ensures that people can set their own overrides on `html` later in the CSS. If the starting styles were on `body`, then setting them on `html` later in the CSS would not have the intended effect.
This commit is contained in:
@@ -32,9 +32,9 @@ audio:not([controls]) { display: none; }
|
||||
|
||||
html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
|
||||
|
||||
body { margin: 0; font-size: 1em; line-height: 1.4; }
|
||||
html, button, input, select, textarea { font-family: sans-serif; color: #222; }
|
||||
|
||||
body, button, input, select, textarea { font-family: sans-serif; color: #222; }
|
||||
body { margin: 0; font-size: 1em; line-height: 1.4; }
|
||||
|
||||
/*
|
||||
* Remove text-shadow in selection highlight: h5bp.com/i
|
||||
@@ -200,6 +200,7 @@ input:invalid, textarea:invalid { background-color: #f0dddd; }
|
||||
table { border-collapse: collapse; border-spacing: 0; }
|
||||
td { vertical-align: top; }
|
||||
|
||||
|
||||
/* =============================================================================
|
||||
Chrome Frame Prompt
|
||||
========================================================================== */
|
||||
|
||||
Reference in New Issue
Block a user