Reputation: 150
I use sass in my project. And have a problem:
The scss file is one lvl lower in directory that resulting css file. Because of that my compiler compile url(#CSSLocator)
as url(../#CSSLocator)
. I need to use that url
function as location to filter (svg filter in this same file).
Do you know how to tell SASS compiler to treat this path directly as it is, not change it?
EDIT:
My directory structure is
content/main.scss
content/styles/main.css
and filter: url('#GradientMap');
after compiling generate url("../#GradientMap");
, probably because of the dir structure.
Upvotes: 0
Views: 1710
Reputation: 150
I haven't figured it out how to do this. I just hardcoded inline style in my html insted of fighting with Sass.
<img src="urlToPic" style="filter: url('#GradientMap');">
Upvotes: 0
Reputation: 11
You should use the same direct path of the css file, Sass is just a compiler of css.
Upvotes: 0