diff options
author | Gleb Mazovetskiy <glex.spb@gmail.com> | 2014-12-17 17:41:34 +0300 |
---|---|---|
committer | Gleb Mazovetskiy <glex.spb@gmail.com> | 2014-12-17 17:41:34 +0300 |
commit | 19651584e8a669ffe4e72a715275bdcf1acbe7f1 (patch) | |
tree | cba5e26be242db325880e394c6fa4789e8cdc7c1 | |
parent | 409ad551d920a75e785d4585b839a71bfca0cdc8 (diff) |
doc: compass install -r #229
-rw-r--r-- | README.md | 24 | ||||
-rw-r--r-- | templates/project/styles.sass | 3 |
2 files changed, 17 insertions, 10 deletions
@@ -96,21 +96,25 @@ bootstrap-sass is no longer compatible with Rails 3. The latest version of boots ### b. Compass without Rails -Install the gem -```sh -gem install bootstrap-sass +Install the gem: + +```console +$ gem install bootstrap-sass ``` If you have an existing Compass project: -```ruby -# config.rb: -require 'bootstrap-sass' -``` +1. Require `bootstrap-sass` in `config.rb`: -```console -$ bundle exec compass install bootstrap -``` + ```ruby + require 'bootstrap-sass' + ``` + +2. Install Bootstrap with: + + ```console + $ bundle exec compass install bootstrap -r bootstrap-sass + ``` If you are creating a new Compass project, you can generate it with bootstrap-sass support: diff --git a/templates/project/styles.sass b/templates/project/styles.sass index 96dc280..fb4a2e9 100644 --- a/templates/project/styles.sass +++ b/templates/project/styles.sass @@ -1,3 +1,6 @@ +// Import Bootstrap Compass integration @import "bootstrap-compass" +// Import custom Bootstrap variables @import "bootstrap-variables" +// Import Bootstrap for Sass @import "bootstrap" |