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

[Feature Request] Generate CSS based on % #223

Open
smlbiobot opened this issue Feb 23, 2018 · 3 comments
Open

[Feature Request] Generate CSS based on % #223

smlbiobot opened this issue Feb 23, 2018 · 3 comments

Comments

@smlbiobot
Copy link

First of all — great library. It’s a god-send.

What I would like to know is if you would consider adding background position based on percentage so that it will work with responsive layouts. An example of this implementation can be seen here: http://responsive-css.spritegen.com/

If there is already an option for this, please let me know as I can’t find it in docs.

Thanks!

@scumah
Copy link

scumah commented Apr 23, 2018

Take a look at this doc, it may help: http://glue.readthedocs.io/en/latest/ratios.html

@smlbiobot
Copy link
Author

@scumah the link you posted above is for static retina generation. I need something that is responsive. As far as I know, the only way that it would work is to use percentage-based CSS. I have looked into the docs above already and that doesn’t work for me for as long as the CSS generated is based on pixels and not percentages.

@scumah
Copy link

scumah commented Apr 23, 2018

Ah, sry then, I misread 😓

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