Using Compass' image-url with relative_assets for stylesheets in subdirectories? -
so source tree looks this:
assets/ ├── css/ │ ├── master.css.scss │ └── admin/ │ └── admin_master.css.scss └── img/ └── background.jpg
i have compass alternative relative_assets
turned on , css_dir
, images_dir
options set correctly.
my problem is, when calling image-url("background.jpg")
either master.css.scss
or admin_master.css.scss
, returns "../img/background.jpg"
, of course of study right former, not latter (where mean "/assets/css/img/background.jpg"
).
is there way override relative paths on file-per-file basis, in order create work?
this looks config / setup issue me - have running fine on multiple projects , compass handles various depths of stylesheets ok (it adds ../ files 1 level deeper in tree).
try reviewing compass config.rb file , check css_dir (the folder compile css to, not 1 .scss files live) , project_path correct.
hope helps,
compass-sass
No comments:
Post a Comment