NetguruBootstrapper

This gem bootstraps Bootstrap for Rails apps.

Installation

Add this line to your application's Gemfile:

gem 'netguru_bootstrapper'

And then execute:

$ bundle

Please note that this gem is designed to work with Bootstrap for Sass gem, so you should add:

gem 'bootstrap-sass'

to your application's Gemfile as well.

Usage

$ rails g netguru_bootstrapper:bootstrap

Files organization

Tree structure

Important files

settings/bootstrap-components.scss

This file is a copy of bootstrap.scss file from bootstrap-sass gem. You can comment out components that you're not going to use.

settings/bootstrap-variables.scss

Copy of bootstrap/variables.scss. To override variable simply uncomment line and remove !default flag.

For example:

// $font-size-base: 14px !default;

Becomes:

$font-size-base: 16px;

settings/bootstrap-overrides.scss

Similar to Boostrap Components - all overrides are commented out by default. After uncommenting an override you need to add proper file to settings/bootstrap-overrides directory.

Contributing

  1. Fork it ( https://github.com/netguru/netguru_bootstrapper/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request