Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set number precision in sass code #72

Closed
adambom opened this issue May 1, 2011 · 1 comment
Closed

Set number precision in sass code #72

adambom opened this issue May 1, 2011 · 1 comment

Comments

@adambom
Copy link

adambom commented May 1, 2011

It would be nice if you were able to set the precision of numbers directly within your sass. Currently, I believe you have to edit the configuration files, which is less than optimal. e.g.

$num-precision: 6 // sets sass math operations to return values to 6 decimal places

This would come in handy in situations when you need more than three decimals for a shared project and you don't want your collaborators to have to edit their configurations.

@nex3
Copy link
Contributor

nex3 commented Aug 10, 2011

I strongly dislike the idea of magic variables that affect internal configuration. In addition to the general distastefulness of having certain variables marked for special behavior, it's not at all clear what would happen if this variable were set in a local context, used as a parameter, etc.

A much cleaner solution for sharing configuration is to check in some sort of config.rb file that's included with the --require flag, or using Compass's built-in configuration support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants