Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Mazovetskiy <glex.spb@gmail.com>2014-12-17 17:41:34 +0300
committerGleb Mazovetskiy <glex.spb@gmail.com>2014-12-17 17:41:34 +0300
commit19651584e8a669ffe4e72a715275bdcf1acbe7f1 (patch)
treecba5e26be242db325880e394c6fa4789e8cdc7c1
parent409ad551d920a75e785d4585b839a71bfca0cdc8 (diff)
doc: compass install -r #229
-rw-r--r--README.md24
-rw-r--r--templates/project/styles.sass3
2 files changed, 17 insertions, 10 deletions
diff --git a/README.md b/README.md
index 4e7ebf3..7c716c6 100644
--- a/README.md
+++ b/README.md
@@ -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"