Skip to content

Commit

Permalink
Move sass and less to their own directories to make importing easier
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonmoeller committed Jun 3, 2018
1 parent 678cf0c commit f7ce7ce
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 20 deletions.
2 changes: 1 addition & 1 deletion reset.less → less/reset.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* http://meyerweb.com/eric/tools/css/reset/
v3.0 | 20180413
v4.0 | 20180602
License: none (public domain)
*/

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reset-css",
"version": "3.0.0",
"version": "4.0.0",
"description": "An unmodified copy of Eric Meyer's CSS reset.",
"homepage": "http://meyerweb.com/eric/tools/css/reset/",
"author": "Eric Meyer",
Expand All @@ -10,7 +10,7 @@
"main": "reset.css",
"files": [
"reset.css",
"reset.less",
"_reset.scss"
"sass",
"less"
]
}
26 changes: 12 additions & 14 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ An [unmodified\*](#changelog) copy of Eric Meyer's [CSS reset](https://meyerweb.
With curl:

```command
$ curl -O "https://unpkg.com/[email protected]/reset.css"
$ curl -O "https://unpkg.com/[email protected]/reset.css"
$ curl -O "https://unpkg.com/[email protected]/sass/_reset.sass"
$ curl -O "https://unpkg.com/[email protected]/less/reset.less"
```

With [NPM](http://npmjs.com):
Expand All @@ -33,41 +35,37 @@ $ bower install reset-css
HTML:

```html
<link rel="stylesheet" href="/assets/reset-css/reset.css" />
<link rel="stylesheet" href="/path/to/reset-css/reset.css" />
```

CSS:

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

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

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

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

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

Sass:
Via Sass:

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

Less:
Via Less:

```less
@import '/assets/reset-css/reset';

// or

@import (inline) '/assets/reset-css/reset.css';
@import '/path/to/reset-css/less/reset';
```

## \*Changelog
Expand Down
2 changes: 1 addition & 1 deletion reset.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* http://meyerweb.com/eric/tools/css/reset/
v3.0 | 20180413
v4.0 | 20180602
License: none (public domain)
*/

Expand Down
2 changes: 1 addition & 1 deletion _reset.scss → sass/_reset.sass
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* http://meyerweb.com/eric/tools/css/reset/
v3.0 | 20180413
v4.0 | 20180602
License: none (public domain)
*/

Expand Down

0 comments on commit f7ce7ce

Please sign in to comment.