csswizardry/inuit.css — pull request #74 by WouterJ (2012-12-02 20:50:48+00:00)
Title: Improve floats in CSS (with Sass)

Floats are now rounded to 4 decimals, but Sass can be far more precisely. You can set the precision with the `--precision` option in Sass (it defaults to 4). To me, it looks more dev-friendly to let them choose which precision they want and if they don't know the precision it defaults to 4, which is the current standard in inuit.css.

This PR creates a `quotient` function. It returns which part of the 100 you want (`quotient(1, 2) returns `1 / 2 * 100 = 50`). I have replaced every 4 float to a division and most of them to the `quotient` function, to easy the work and make it more flexible. It helps the readability too :)

I have doubted about the function name. Sass recommends to prefix it with a vendor:

> It is recommended that you prefix your functions to avoid naming conflicts and so that readers of your stylesheets know they are not part of Sass or CSS.
> - [source](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#function_directives)

If I prefix it with `inuitcss`, the functionname would become very long, but I couldn't found a better vendor, so I removed the vendor completely. What are your thoughts on this?