I'm going crazy trying to figure this out. I'm using compass on a Wordpress project, and I have the compass configure.rb file saved in my Wordpress theme root. Here is my configure.rb file:
add_import_path "bower_components/foundation/scss"
http_path = ""
http_images_dir = "images"
css_dir = "css"
sass_dir = "scss"
images_dir = "images"
javascripts_dir = "js"
relative_assets = true
output_style = :expanded
environment = :development
line_comments = false
color_output = false
The directory structure is as follows:
theme_folder
|
|-css
|-images
|-js
|-scss
The configure.rb file is in the theme folder which is serving as the project root. When I compile the folowing scss with compass:
@import "compass/utilities/sprites";
@import "../images/*.png";
@include all-images-sprites;
@import "compass/utilities/sprites";
@import "../images/*.png";
@include all-images-sprites;
#site-title h1 a {
@extend .images-logo;
display: block;
width: 250px;
height: 0;
overflow: hidden;
padding-top: 73px;
}
I get the following css:
.images-sprite, .images-logo, #site-title h1 a {
background: url('../images/../images-s4b3b787fa3.png') no-repeat;
}
As you can see, the image url is really messed up. Any idea why this is happening? Thank you!