2011-09-06 15:08:31 -04:00
# Bootstrap for Rails
2011-09-06 18:38:04 -04:00
`bootstrap-sass` is an SASS-powered version of [Twitter's Bootstrap ](http://github.com/twitter/bootstrap ), ready to drop right into your asset-pipeline powered Rails applications.
2011-09-06 15:08:31 -04:00
Enjoy.
## Usage
In your gemfile:
2011-09-19 18:02:29 -04:00
gem 'bootstrap-sass', '1.3.0'
2011-09-06 15:08:31 -04:00
2011-09-19 18:02:29 -04:00
### CSS
In your CSS file of choice:
2011-09-06 15:08:31 -04:00
2011-10-12 02:59:11 -04:00
@import "bootstrap"; /* Use this to get all of Bootstrap's @mixins and $variables */
2011-09-06 19:25:14 -04:00
or
2011-09-06 15:08:31 -04:00
/*
2011-09-06 19:25:14 -04:00
*= require bootstrap // This doesn't (at the moment) preserve loaded @mixins ,
* //so I wouldn't use this. Stil, its an alternative.
2011-09-06 15:08:31 -04:00
*/
2011-09-19 18:02:29 -04:00
### Javascript
In your Javascript manifest:
// Loads all Bootstrap javascripts
//= require bootstrap
// Alternatively
//= require bootstrap-scrollspy
//= require bootstrap-modal
//= require bootstrap-dropdown
2011-09-06 15:08:31 -04:00
Simples.