Skip to content

Instantly share code, notes, and snippets.

@yatil
Created October 27, 2011 11:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save yatil/1319330 to your computer and use it in GitHub Desktop.
Save yatil/1319330 to your computer and use it in GitHub Desktop.
My standard config.rb for compass
# 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
@yellowled
Copy link

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.

@yatil
Copy link
Author

yatil commented Nov 18, 2011

Thanks, just added it at the bottom of the file. Overwriting the constant was just a stop-gap solution. Thanks for the heads-up!

@yellowled
Copy link

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