Answer the question
In order to leave comments, you need to log in
How to make data-uri mixin in LESS?
Hello.
Can you suggest or poke your nose at the link how to make mixin in LESS to generate data-uri svg:
background-image: data-uri('image/svg+xml;charset=UTF-8', 'image.svg')
Answer the question
In order to leave comments, you need to log in
.svg(@img) {
background-image: data-uri('image/svg+xml;charset=UTF-8', @img)
}
.test {
.svg("file.svg")
}
.test {
background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20baseProfile%3D%22full...");
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question