mirror of
https://github.com/twbs/bootstrap-sass.git
synced 2022-11-09 12:27:02 -05:00
Update Readme \#393
This commit is contained in:
parent
6fa811399d
commit
c3f74a5b38
1 changed files with 19 additions and 0 deletions
19
README.md
19
README.md
|
@ -67,6 +67,25 @@ You can also include optional bootstrap theme:
|
|||
@import "bootstrap/theme";
|
||||
```
|
||||
|
||||
For granular control over what is imported, instead of `@import "bootstrap"`, explicitly specify which modules and components should be included.
|
||||
|
||||
Copy `bootstrap.scss` from the gem into the project's vendor/ as `bootstrap-custom.scss`.
|
||||
|
||||
```bash
|
||||
cp $(bundle show bootstrap-sass)/vendor/assets/stylesheets/bootstrap/bootstrap.scss \
|
||||
vendor/assets/stylesheets/bootstrap-custom.scss
|
||||
```
|
||||
|
||||
Comment out the import statements you do not need from `bootstrap-custom.scss`.
|
||||
|
||||
Finally, in your `application.sass`:
|
||||
|
||||
```scss
|
||||
@import 'bootstrap-custom';
|
||||
```
|
||||
|
||||
NB: This file now needs to be manually kept up to date with structural changes from upstream.
|
||||
|
||||
### Javascript
|
||||
|
||||
We have a helper that includes all Bootstrap javascripts. If you use Rails (or Sprockets separately),
|
||||
|
|
Loading…
Add table
Reference in a new issue