1
0
Fork 0
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.
Find a file
2011-12-24 17:59:48 +00:00
lib You can't use bootstrap-sass without sass-rails, so you need to require it (gemspec dependency are not automatically required). When used from an engine, this ended up in weird races conditions when sass-rails wasn't present in main_app's Gemfile (which requires it by default). 2011-10-12 18:43:01 +03:00
vendor/assets fix for IE-filter not supporting named colours 2011-12-10 16:42:11 +00:00
.gitignore Extracted Bootstrap from QA 2011-09-06 20:08:31 +01:00
bootstrap-sass.gemspec Bump version to 1.4.3 2011-12-24 17:59:48 +00:00
LICENSE Extracted Bootstrap from QA 2011-09-06 20:08:31 +01:00
README.md Bump version to 1.4.3 2011-12-24 17:59:48 +00:00

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.3'

CSS

In your SCSS file of choice:

@import "bootstrap"; /* Use this to get all of Bootstrap's @mixins and $variables */

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";

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.