mirror of
https://github.com/twbs/bootstrap-sass.git
synced 2022-11-09 12:27:02 -05:00
Official Sass port of Bootstrap 2 and 3.
![]() Adds '!default' to variables so we can override them, as done in the compass port of bootstrap. No need for generators or anything, just set the variables you want to override before importing bootstrap with '@import bootstrap'. |
||
---|---|---|
lib | ||
vendor/assets | ||
.gitignore | ||
bootstrap-sass.gemspec | ||
LICENSE | ||
README.md |
Bootstrap for Rails
bootstrap-sass
is an SASS-powered version of Twitter's Bootstrap, ready to drop right into your asset-pipeline powered Rails applications.
Enjoy.
Usage
In your gemfile:
gem 'bootstrap-sass', '1.4.0'
CSS
In your SCSS file of choice:
@import "bootstrap"; /* Use this to get all of Bootstrap's @mixins and $variables */
Javascript
In your Javascript manifest:
// Loads all Bootstrap javascripts
//= require bootstrap
// Alternatively, you can load individual modules
//= require bootstrap-scrollspy
//= require bootstrap-modal
//= require bootstrap-dropdown
Simples.
Versioning
We try to stick to Bootstrap versioning wherever possible. The major and minor version numbers will always represent the Twitter Bootstrap version, but no guarantees are made for the tiny version number, since waiting for Bootstrap to update so I can push out a fix sucks.
Branches
Master will usually represent the latest release of bootstrap-sass
. Other branches contain experimental code, or are a relatively close mirror of other Bootstrap branches.