Answer the question
In order to leave comments, you need to log in
Why does @import change image paths?
There is a vendor.scss file in it, lightbox.css is connected via @import .
@import "../../bower_components/lightbox2/dist/css/lightbox.css";
content: url(../images/close.png) url(../images/loading.gif) url(../images/prev.png) url(../images/next.png);
url(../../bower_components/lightbox2/dist/images/next.png)
Answer the question
In order to leave comments, you need to log in
The documentation says that CSS files are not imported. Instead, the directives are inserted into the final CSS @import
as is.
How to decide? Do not import CSS. For example, you can rename/copy lightbox.css
to _lightbox.scss
, put next to vendor.scss
and import the @import "lightbox";
.
In general, lightbox.css is very small. You can also change it manually. And what paths should be set. For example, using variables
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question