You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
all included templates for generating the css / scss from your svg files are using the :before selector to set the background image / size and position styles.
if that is not a problem for you you can just "extend" the icon class in your css / html <div class="myclass svg-icon-youricon"></div> which will add the icon (styles) to the :before element of your .myclass
you can also write your own template that does not use :before.
@Ajeey
Could this be what you are looking to do? Just replace with insert_dir_here with the location where the sprite is located. I just used the following below.
Possible option for insert_dir_here: '../image/sprite/{{{sprite}}}
If I use
<i class="icon facebook"></i>
the svg is rendered.But say I want to add the svg as background in CSS.
The text was updated successfully, but these errors were encountered: