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
I like to create CSS background-image or mask-image sprites by using a vertical layout and setting the width and height to the icon to 1em, which allows me to avoid percentage calculations and values for background-position or mask-position and instead set them to something like mask-position: 0 -1em;, which I find much simpler. SASS example:
In order to do this with the Mustache templates, I'm looking for a way to have access to the index of the shape, which would allow me to do something like the following in the template:
I like to create CSS
background-image
ormask-image
sprites by using a vertical layout and setting the width and height to the icon to1em
, which allows me to avoid percentage calculations and values forbackground-position
ormask-position
and instead set them to something likemask-position: 0 -1em;
, which I find much simpler. SASS example:In order to do this with the Mustache templates, I'm looking for a way to have access to the index of the shape, which would allow me to do something like the following in the template:
Love svg-sprite, BTW! Thank you for making and maintaining it.
The text was updated successfully, but these errors were encountered: