bootstrap-generators icon indicating copy to clipboard operation
bootstrap-generators copied to clipboard

SASS Precision

Open ttilberg opened this issue 9 years ago • 0 comments

Hello, I've been happily using this gem to get off the ground with Rails + Bootstrap.

I've come across an issue where a button is 1 pixel too small in height. I think I've traced it down to a SASS configuration thing related to SASS Number Precision.

image

https://github.com/twbs/bootstrap-sass#sass-number-precision

https://github.com/twbs/bootstrap-sass/issues/595

I'm not fluent enough with Rails to understand how/where to monkeypatch this configuration change. If it's something that the gem could be conscious of during the bootstrap:install task (or wherever it needs to end up?), I think it would be relevant for all of your users.

If this is a simple configuration one-liner somewhere in config/ I'd love to know. I tried adding

::Sass::Script::Number.precision = [8, ::Sass::Script::Number.precision].max

to config/application.rb randomly, but it didn't do the trick. Probably because it's not what I needed to do ;)

Any tips are appreciated.

ttilberg avatar Feb 10 '16 05:02 ttilberg