Skip to content

Instantly share code, notes, and snippets.

@teolopez
Created December 16, 2013 01:26
Show Gist options
  • Save teolopez/7981016 to your computer and use it in GitHub Desktop.
Save teolopez/7981016 to your computer and use it in GitHub Desktop.
compass config
# Require any additional compass plugins here.
add_import_path "bower_components/foundation/scss"
require 'fileutils'
on_stylesheet_saved do |file|
if File.exists?(file) && File.basename(file) == "style.css"
puts "Moving: #{file}"
FileUtils.mv(file, File.dirname(file) + "/../" + File.basename(file))
end
end
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "scss"
images_dir = "img"
javascripts_dir = "js"
fonts_dir = "fonts"
# 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 = :expanded
environment = :development
# 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
# 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 sass scss && rm -rf sass && mv scss sass
preferred_syntax = :scss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment