A cleaned up combination of Eric Meyer's Reset CSS 2.0 and Nicolas Gallagher's normalize.css with some optional flavor. The Sass Version.
Sass Version of css-reset-and-normalize (stylus original).
A cleaned up combination of Eric Meyer’s
Reset CSS 2.0
and Nicolas Gallagher’s
normalize.css
with some optional flavor.
Packages can be installed via npm or bower:
npm install css-reset-and-normalize-sass
bower install css-reset-and-normalize-sass
Sources are available in scss or generated css
including minified versions.
<link…>
or the minified or unminified css version:@import
css/reset-and-normalize.min.css
css/reset-and-normalize.css
Or with some additional flavor:
css/flavored-reset-and-normalize.min.css
css/flavored-reset-and-normalize.css
Or @import
the stylus versions:
scss/reset-and-normalize.scss
scss/flavored-reset-and-normalize.scss
hgroup
from all selectors as it is not included in the HTML5main
to basic resetmain
and summary
to HTML5 display-role reset selectorh1
: font-size
, margin
sub, sup
: vertical-align
figure
: margin
code, kbd, pre, samp
: font-size
fieldset
: border
, margin
, padding
table
: border-collapse
, border-spacing
td, th
: padding
box-sizing
(autoprefixer handles that)font-style: italic
for i, em
, resetted by basic reset@viewport
box-sizing:border-box
for everythingabbr
role="button"
touch-action
CSS propertyI personally prefer normalizing over resetting in general.
But when it comes to producing detailed custom styles for all elements, i find
myself overwriting and resetting most rules, that were previously normalized.
That’s why I ended up with a combination of both: reset and normalize – with
some optional flavor…