Total Pageviews

Saturday, 14 June 2014

bourbon

Install for Rails 3.1+

In your Gemfile:
gem 'bourbon'
Then run:
$ bundle install
Restart your server. Then rename application.css to application.css.scss:
mv app/assets/stylesheets/application.css app/assets/stylesheets/application.css.scss
Delete the sprocket directive in application.css.scss:
*= require_tree .
Import Bourbon at the beginning of application.css.scss. All additional stylesheets must be imported below Bourbon:
@import "bourbon";
@import "home";
@import "users";

Install for a Non-Rails App

Installation
Install the gem
$ gem install bourbon
Install Bourbon into your project's stylesheets directory by generating the bourbon folder:
$ bourbon install
The generated folder will contain all the mixins and other necessary Bourbon files. It is recommended not to add or modify the Bourbon files so that you can update Bourbon easily.

Sass Watch
Run a standard sass --watch from the command line:
$ sass --watch stylesheets/sass:stylesheets
Lastly, import the mixins at the beginning of your stylesheet(s):
@import 'bourbon/bourbon';
Other Commands
See the complete list of Command Line Tools.
$ bourbon help
$ bourbon update
 
from http://bourbon.io/