JohnAlbin / normalize-scss

This is the Sass version of Normalize.css, a collection of HTML element and attribute rulesets to normalize styles across all browsers.
https://github.com/JohnAlbin/normalize-scss#latest-versions
MIT License
1.44k stars 254 forks source link

How exactly would you use this if you installed the gem? #17

Closed filmost closed 10 years ago

fregan commented 10 years ago

Curious about this as well. I'm unclear as to how exactly this gem works in conjunction with Compass. I currently have normalize-scss 3.0.0.alpha.2 installed.

As an example, I have installed the gem. I have entered the following in to my config.rb file:

require 'normalize-scss'

This does not seem to do anything however. Tools is the sub folder i keep setup files in. I have since copied _normalize.scss into my compass folder and imported it in my global.scss file as such:

@import "tools/normalize";

Tools is the sub folder I keep setup files in.

Any direction here would be helpful as i am not understanding why this is even a gem or how to properly use the gem since the documentation just references copy and paste of a file or code.

abhikhatri commented 10 years ago

Yeah buddy, Exactly the same problem.

nakashu commented 10 years ago

If still anyone got problem with this: There are 3 things required when using gem (doesn't matter if system wide install or using bundler)

  1. install it obviously - from doc ("sudo gem install normalize-scss")
  2. add it to the config.rb or command line as fregan mentioned - require 'normalize-scss'
  3. import it inside withing your scss files - @import 'normalize'

The main problem you encoutered, would be different names for the require and import statements. Also the console should print out locations where it tried to find the file: so basic debuging

JohnAlbin commented 10 years ago

Thanks for providing good information, @nakashu! I've updated the README.md file to make it more explicit on how to integrate normalize-scss with your project.

For example, you can use the gem list --details normalize-scss command to show you where the normalize-scss files were installed by gem.

See https://github.com/JohnAlbin/normalize-scss#install