How to use sass --precision?

余生长醉 提交于 2019-12-22 08:39:03

问题


I am trying to use sass + compass to make a fluid grid and I need my %'s to have at least 8 digits when compute them out but right now sass + compass is rounding my decimals to 3-digits. I found that if use --precision you can tell sass to round to how ever many digits you want, my issue is that i can seem to figure out how to get --precision to work from the terminal on my project. Please help


回答1:


According to this answer, configuring @precision in SASS's numbers.rb will achieve this result. It appears that --precision is nonfunctional.




回答2:


sass --precision 6 input.scss output.css

Reference: https://stackoverflow.com/a/10369785



来源:https://stackoverflow.com/questions/10374438/how-to-use-sass-precision

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!