diff options
author | Gleb Mazovetskiy <glex.spb@gmail.com> | 2017-01-08 01:44:22 +0300 |
---|---|---|
committer | Gleb Mazovetskiy <glex.spb@gmail.com> | 2017-01-08 01:44:22 +0300 |
commit | 79c3fc026cbc1428e783135ec4ecfb7d71889497 (patch) | |
tree | 1833ec79753678a4b576c60de05468f1baf260b6 /README.md | |
parent | 26a742889f415d1f6b7205929ba10543fae639a9 (diff) |
Readme: link to the variables [ci skip]v4.0.0.alpha6
See #43
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -27,10 +27,12 @@ Ensure that `sprockets-rails` is at least v2.3.2. Import Bootstrap styles in `app/assets/stylesheets/application.scss`: ```scss -// Custom bootstrap variables must be set or imported before bootstrap itself. +// Custom bootstrap variables must be set or imported *before* bootstrap. @import "bootstrap"; ``` +The available variables can be found [here][bootstrap-variables.scss]. + Make sure the file has `.scss` extension (or `.sass` for Sass syntax). If you have just generated a new Rails app, it may come with a `.css` file instead. If this file exists, it will be served instead of Sass, so rename it: @@ -61,7 +63,7 @@ If you use them, add tether to the Gemfile: ```ruby source 'https://rails-assets.org' do - gem 'rails-assets-tether', '>= 1.1.0' + gem 'rails-assets-tether', '>= 1.3.3' end ``` @@ -139,5 +141,6 @@ In the application Sass file, replace `@import 'bootstrap'` with: ``` [bootstrap-home]: http://v4-alpha.getbootstrap.com/ +[bootstrap-variables.scss]: https://github.com/twbs/bootstrap-rubygem/blob/master/templates/project/_bootstrap-variables.scss [autoprefixer]: https://github.com/ai/autoprefixer [tether]: http://github.hubspot.com/tether/ |