# Require any additional compass plugins here.

# Set this to the root of your project when deployed:
http_path = "./"
css_dir = "css"
sass_dir = "scss"
images_dir = "images"
javascripts_dir = "js"

generated_images_dir = 'images/._sprite'
http_generated_images_dir = "images/._sprite"


output_style = :compressed
environment = :development


# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
# preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass css/scss scss && rm -rf sass && mv scss sass
preferred_syntax = :scss

require 'fileutils'
on_stylesheet_saved do |file|
  if File.exists?(file) && File.basename(file) == "style.css"
    puts "     copy css/style.css -> ../style.css"
    FileUtils.cp(file, File.dirname(file) + "/../" + File.basename(file))
  end
end
