diff options
author | JohnAlbin <virtually.johnalbin@gmail.com> | 2016-10-24 10:39:07 +0300 |
---|---|---|
committer | JohnAlbin <virtually.johnalbin@gmail.com> | 2016-10-24 10:39:07 +0300 |
commit | 069d522c4b109c7c614c3f66a3a8ad47cb67c4b2 (patch) | |
tree | 3a743be7d8a60d17dad8273c0c612040af7cb452 /README.md | |
parent | b341a18906ace8d5140d904da90e8edfb27dab28 (diff) |
Update docs to talk about import paths. Fixes #58
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -64,13 +64,15 @@ __Approach 1:__ Download and use normalize-scss as a starting point for your own __Approach 2:__ Install and include normalize-scss untouched and then build upon it, overriding the defaults later in your Sass when necessary. Just import normalize-scss like any normal Sass module by: 1. Set variables to override the default normalize-scss variables. - 2. Import with `@import "normalize";` - 3. Output the CSS rules with `@include normalize();` + 2. (Optionally) add an additional `[path to]/normalize-scss/sass` import path for your Sass compiler, e.g. [node-sass' `includePaths`](https://github.com/sass/node-sass#includepaths) option or [Ruby Sass' `--load-path`](http://sass-lang.com/documentation/file.SASS_REFERENCE.html#import) option. + 3. Import with `@import "normalize";` or with `@import "[path to]/normalize-scss/sass/normalize";` (if you skipped step 2.) + 4. Output the CSS rules with `@include normalize();` Alternatively, you can import normalize-scss immediately into your main Sass file without needing to use the `normalize()` mixin by: 1. (Optionally) set variables to override the default normalize-scss variables. - 2. Import with `@import "normalize/import-now";` + 2. (Optionally) add an additional `[path to]/normalize-scss/sass` import path for your Sass compiler, e.g. [node-sass' `includePaths`](https://github.com/sass/node-sass#includepaths) option or [Ruby Sass' `--load-path`](http://sass-lang.com/documentation/file.SASS_REFERENCE.html#import) option. + 3. Import with `@import "normalize/import-now";` or with `@import "[path to]/normalize-scss/sass/normalize/import-now";` (if you skipped step 2.) Note: if you use [wiredep](https://github.com/taptapship/wiredep), normalize-scss's bower.json points at the normalize/import-now Sass partial. If you don't wish to immediately output the CSS, you will need to override the Sass partial that wiredep grabs from normalize-scss. |