Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background-position porcentually? #23

Closed
davidpelayo opened this issue Oct 21, 2014 · 1 comment
Closed

Background-position porcentually? #23

davidpelayo opened this issue Oct 21, 2014 · 1 comment

Comments

@davidpelayo
Copy link

I'm wondering whether it would be nice to have a computed porcentual background-position instead of static pixeled one.

Why? Mainly because when you want to import the SVG as your main sprite and then resizing the div that will have the class pointing to the icon, you will probably want to resize the icon too. Meaning we need porcentual units in regard background positions to continue pointing to the icon once the container is getting bigger or smaller.

@jkphl
Copy link
Collaborator

jkphl commented Dec 29, 2014

Hi @davidpelayo,

I just published the next major release of grunt-svg-sprite. It's rewritten from scratch and now featuring relative background positioning for CSS sprites — could you please check this? I'll close the issue for now, but please feel free to re-open it in case you've still got problems.

Cheers & a happy new year,
Joschi

@jkphl jkphl closed this as completed Dec 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants