2013-05-30 00:25:02 -07:00
# Bootstrap for Sass
2011-09-06 20:08:31 +01:00
2013-08-01 01:09:59 -04:00
`bootstrap-sass` is an Sass-powered version of [Bootstrap ](https://github.com/twbs/bootstrap ), ready to drop right into your Sass powered applications.
2012-05-11 14:38:25 +01:00
2013-05-30 00:25:02 -07:00
## Usage
2011-09-06 20:08:31 +01:00
2013-05-30 00:25:02 -07:00
### Rails
In your Gemfile:
```ruby
gem 'sass-rails', '~> 3.2.3'
2013-07-30 16:46:15 -07:00
gem 'bootstrap-sass', :git => 'git://github.com/thomas-mcdonald/bootstrap-sass.git', :branch => '3'
2013-05-30 00:25:02 -07:00
```
`bundle install` and restart your server to make the files available.
## Upstream Converter
2013-08-01 01:09:59 -04:00
Keeping bootstrap-sass in sync with upstream changes from Bootstrap is an error prone and time consuming manual process.
2013-05-30 00:25:02 -07:00
This branch is specifically concerned with automating that process as much as possible to allow a much faster release cycle.
2013-08-01 01:09:59 -04:00
Upstream changes to the Bootstrap project can now be pulled in using the `convert` rake task.
2013-05-30 00:25:02 -07:00
2013-08-01 01:09:59 -04:00
Here's an example run that would pull down the `3.0.0-wip` branch from the main twbs/bootstrap repo:
2013-05-30 00:25:02 -07:00
% bundle exec rake 'convert[3.0.0-wip]'
2013-08-01 01:09:59 -04:00
The latest converter script is located [here ](https://github.com/thomas-mcdonald/bootstrap-sass/blob/3/tasks/converter.rb ) and does the following:
2013-05-30 00:25:02 -07:00
2013-08-01 01:09:59 -04:00
* Converts upstream bootstrap LESS files to its matching SCSS file.
* Copies all upstream JavaScript into `vendor/assets/javascripts/bootstrap`
2013-05-30 00:25:02 -07:00
* Generates a javascript manifest at `vendor/assets/javascripts/bootstrap.js`
* Copies all upstream font files into `vendor/assets/fonts`
2013-08-01 01:09:59 -04:00
This LESS to SCSS conversion is pretty good, but not perfect. So manual fixes to the resulting SCSS will be necessary for now.
Please submit GitHub issues tagged with `conversion` to help track current shortcomings of the conversion process.
2013-05-30 00:25:02 -07:00
## Who
bootstrap-sass is a project by [Thomas McDonald ](https://twitter.com/#!/thomasmcdonald_ ), with support from [other awesome people ](https://github.com/thomas-mcdonald/bootstrap-sass/graphs/contributors ).