Created
October 27, 2011 11:38
-
-
Save yatil/1319330 to your computer and use it in GitHub Desktop.
My standard config.rb for compass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Require any additional compass plugins here. | |
# Set this to the root of your project when deployed: | |
http_path = "/" | |
css_dir = "css" | |
sass_dir = "sass" | |
images_dir = "img" | |
javascripts_dir = "js" | |
# You can select your preferred output style | |
# here (can be overridden via the command line): | |
# output_style = :expanded or :nested or :compact or :compressed | |
output_style = :nested | |
# To enable relative paths to assets via | |
# compass helper functions. Uncomment: | |
# relative_assets = true | |
# To disable debugging comments that display the | |
# original location of your selectors. Uncomment: | |
# line_comments = false | |
# Comment this out to default to SCSS: | |
# preferred_syntax = :sass | |
Sass::Script::Number.precision = 8 |
Thanks, just added it at the bottom of the file. Overwriting the constant was just a stop-gap solution. Thanks for the heads-up!
I think it's actually safe to remove the old (now second to last) line.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that starting with SASS 3.1.8, Sass::Script::Number::PRECISION is deprecated (as in "doesn't work anymore").
Instead, use Sass::Script::Number.precision = x, x being an integer defining the number digits. This defaults to 3, so to replicate your example code, it would need to be set to 8.