glue icon indicating copy to clipboard operation
glue copied to clipboard

[Feature Request] Generate CSS based on %

Open smlbiobot opened this issue 7 years ago • 3 comments

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!

smlbiobot avatar Feb 23 '18 09:02 smlbiobot

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

scumah avatar Apr 23 '18 10:04 scumah

@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.

smlbiobot avatar Apr 23 '18 15:04 smlbiobot

Ah, sry then, I misread 😓

scumah avatar Apr 23 '18 15:04 scumah