From 427402fda737c934fa01541123c6c4b1dfb45a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibaut=20Barr=C3=A8re?= Date: Sat, 25 Oct 2014 11:02:45 +0200 Subject: [PATCH] Mention Sass precision Bootstrap fix 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. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 8f3fe312..d08d59f4 100644 --- a/README.md +++ b/README.md @@ -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" ```