Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shannonmoeller/reset-css

An unmodified* copy of Eric Meyer's CSS reset. PostCSS, webpack, Sass, and Less friendly.
https://github.com/shannonmoeller/reset-css

css less nodejs normalize postcss reset sass webpack

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# reset.css

An [unmodified\*](#changelog) copy of Eric Meyer's [CSS reset](https://meyerweb.com/eric/tools/css/reset/).

## Install

With curl:

```command
$ curl -LO "https://unpkg.com/reset-css/reset.css"
$ curl -LO "https://unpkg.com/reset-css/less/reset.less"
$ curl -LO "https://unpkg.com/reset-css/sass/_reset.scss"
```

With [NPM](http://npmjs.com):

```command
$ npm install reset-css
```

With [Yarn](https://yarnpkg.com):

```command
$ yarn add reset-css
```

With [Bower](http://bower.io):

```command
$ bower install reset-css
```

## Usage

HTML:

```html

```

CSS:

```css
@import '/path/to/reset-css/reset.css';
```

Via PostCSS and [postcss-import](https://github.com/postcss/postcss-import):

```css
@import 'reset-css';
```

Via webpack and [css-loader](https://github.com/webpack-contrib/css-loader):

```js
import 'reset-css';
```

Via Less:

```less
@import '/path/to/reset-css/less/reset';
```

Via Sass:

```scss
@import '/path/to/reset-css/sass/reset';
```

## \*Changelog

Three changes have been made from the 2011 version, all approved by [Mr. Meyer](https://github.com/meyerweb):

- Added `main` to list of HTML 5 elements [(#7)](https://github.com/shannonmoeller/reset-css/pull/7#issuecomment-233969617)
- Added rule to fix `hidden` attribute on HTML 5 elements [(#12)](https://github.com/shannonmoeller/reset-css/issues/12#issuecomment-372821712)
- Added `menu` to list of lists [(#17)](https://github.com/shannonmoeller/reset-css/pull/17#issuecomment-542340039)

----

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

License: none (public domain)