tarikhamilton / reset-css

An unmodified copy of Eric Meyer's CSS reset. PostCSS, Webpack, Sass, and Less friendly.

Home Page:http://npm.im/reset-css

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reset.css

An unmodified* copy of Eric Meyer's CSS reset.

Install

With curl:

$ curl -O "https://unpkg.com/reset-css@3.0.0/reset.css"

With NPM:

$ npm install --save reset-css

With Yarn:

$ yarn add reset-css

With Bower:

$ bower install reset-css

Usage in Plain HTML and CSS

Copy reset.css to a directory, ideally where your CSS is.

HTML:

<link rel="stylesheet" href="/your/directory/reset.css" />

CSS:

@import '/your/directory/reset.css';

Usage in Build Tools and Preprocessors

PostCSS and postcss-import:

@import 'reset-css';

webpack and css-loader:

import reset from 'reset-css';

Sass:

@import "./../path/to/node_modules/reset-css/reset.scss";

// or if using webpack

@import "~reset-css/reset.scss";

// or if you copied the reset.scss file to your project

@import '/your/directory/_reset';

Less:

@import "./../path/to/node_modules/reset-css/reset.scss";

// or if using webpack

@import "~reset-css/reset.scss";

// or if you copied the reset.scss file to your project

@import '/your/directory/_reset.scss';

// or you can do any of the above using the reset.css file with (inline):

@import (inline) '/your/directory/reset.css';

*Changelog

Two changes have been made from the 2011 version, both approved by Mr. Meyer:

  • Added main to list of HTML 5 elements (#7)
  • Added rule to fix hidden attribute on HTML 5 elements (#12)

Eric Meyer http://meyerweb.com/eric/tools/css/reset/

License: none (public domain)

About

An unmodified copy of Eric Meyer's CSS reset. PostCSS, Webpack, Sass, and Less friendly.

http://npm.im/reset-css

License:The Unlicense


Languages

Language:CSS 100.0%