mercredi 6 novembre 2019

How to write url path for a .svg picture in css file on ruby on rails

I have a background-image with a svg file but it doesn't work at all, here is my css file :

&[data-icon=hourglass]::before {
    background-image: url("../../icons/hourglass.svg");
}

Do you know how to fix it ?

Aucun commentaire:

Enregistrer un commentaire