Skip to content

Commit

Permalink
Mention Sass precision Bootstrap fix
Browse files Browse the repository at this point in the history
If your buttons line-height is 1.42857 instead of 1.428571429, this is because the precision is set to 5 instead of 10.

Digging into bootstrap-sass code, it looks like it [should be automatically fixed](https://github.com/twbs/bootstrap-sass/blob/master/lib/bootstrap-sass.rb#L56) but did not work in my configuration at least.
  • Loading branch information
thbar committed Oct 25, 2014
1 parent 2bf3571 commit 427402f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,10 @@ Require `jekyll-assets/bootstrap` to enable, e.g.:

``` ruby
require "jekyll-assets"

# bootstrap requires minimum precision of 10, see https://github.com/twbs/bootstrap-sass/issues/409
::Sass::Script::Number.precision = [10, ::Sass::Script::Number.precision].max

require "jekyll-assets/bootstrap"
```

Expand Down

0 comments on commit 427402f

Please sign in to comment.