Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS compass sprite with wordpress wrong path Re: compass sprite with wordpress wrong path

#123440
skshah
Member

Your are awsome. Thanks :) a very very very thanks. The below code was moving the style.css from its css directory to one step back. I removed the code and change the css_dir to ‘.’ ITS FIXED . Thank you again.. :)
I set it up by myself. i found a post on css-tricks.

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

But Would you mind telling me how to mark it as solved. :(