bootstrap-sass/README.md

46 строки
1.5 KiB
Markdown
Исходник Обычный вид История

# Bootstrap for Rails
`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.
Enjoy.
## Usage
In your gemfile:
2012-01-17 21:07:01 +04:00
gem 'bootstrap-sass', '~> 1.4.4'
2011-09-20 02:02:29 +04:00
### CSS
2011-11-04 18:44:56 +04:00
In your SCSS file of choice:
2011-10-12 10:59:11 +04:00
@import "bootstrap"; /* Use this to get all of Bootstrap's @mixins and $variables */
2011-09-07 03:25:14 +04:00
Want to configure a variable? Thanks to bernado, this is now awesome *and* easy! Just define the variables you want to change *before* importing Bootstrap. SASS will respect your existing definition and won't overwrite it with the Bootstrap defaults.
$gridColumns: 12;
$gridColumnWidth: 60px;
$gridGutterWidth: 20px;
@import "bootstrap";
2011-09-20 02:02:29 +04:00
### Javascript
In your Javascript manifest:
// Loads all Bootstrap javascripts
//= require bootstrap
2011-11-04 18:44:56 +04:00
// Alternatively, you can load individual modules
2011-09-20 02:02:29 +04:00
//= require bootstrap-scrollspy
//= require bootstrap-modal
//= require bootstrap-dropdown
Simples.
2011-10-18 03:01:28 +04:00
## 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.