This gem bootstraps Bootstrap for web apps.
Run:
gem install netguru_bootstrapper
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. If you're not using Rails, add Bootstrap from different source that fits your application needs.
$ netguru_bootstrapper install
path
- set root directory path (app/assets/stylesheets
by default)bootstrap-path
- set Bootstrap GEM/package path (bootstrap
by default)
$ netguru_bootstrapper install --path "root/directory/path" --bootstrap-path "bootstrap"
If you're not using Rails you'll probably need to edit this line. You can learn more about this at Bootstrap for Sass wiki page.
├── application.scss
├── components
│ └── _your-custom-components-go-here.scss
├── views
│ └── _your-view-based-styles-go-here.scss
├── framework
│ ├── _components.scss
│ ├── _overrides.scss
│ ├── _variables.scss
│ └── overrides
│ └── _framework-overrides-go-here.scss
├── settings
│ ├── _z-index-variables.scss
│ ├── _breakpoint-variables.scss
│ └── _variables.scss
└── utilities
├── _functions.scss
├── _mixins.scss
├── _shared.scss
└── _typography.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.
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;
Similar to Boostrap Components - all overrides are commented out by default. After uncommenting an override you need to add proper file to framework/overrides
directory.
You can find changelog here.
- Fork it ( https://github.com/netguru/netguru_bootstrapper/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request