Include normalize.css functionality in your Rails app using SASS/SCSS.
Install for Rails 4.0+
In your Gemfile
, add sass-rails
(if you don't have it already) and normality
:
gem 'sass-rails'
gem 'normality'
Then run:
bundle install
Restart your server.
To start using Normality in your SCSS stylesheets, rename application.css
to application.css.scss
:
mv app/assets/stylesheets/application.css app/assets/stylesheets/application.css.scss
Delete the Sprocket directives in application.css.scss
:
/*
*= require_self
*= require_tree .
*/
And finally import Normality (and your own stylesheets) in application.css.scss
using @import
:
@import "normalize";
@import "home";
@import "users";
Meta
- Code:
git clone git://github.com/unindented/normality.git
- Home: https://github.com/unindented/normality/
Contributors
- Daniel Perez Alvarez (unindented@gmail.com)
License
Copyright (c) 2013 Daniel Perez Alvarez (unindented.org). This is free software, and may be redistributed under the terms specified in the LICENSE file.