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

Why does the LESS mixin set background-size? #263

Open
maenu opened this issue Oct 24, 2016 · 0 comments
Open

Why does the LESS mixin set background-size? #263

maenu opened this issue Oct 24, 2016 · 0 comments

Comments

@maenu
Copy link

maenu commented Oct 24, 2016

I wanted to use the LESS mixin to avoid writing media queries for high resolution images. When I just .retina('img.png'); and use background-size: cover; on the same element, but through another selector, which unfortunately has a lower priority, I need to resort to background-size: cover !important; to overwrite the background-size: auto auto; default of the mixin. Why is background-size set anyway, aren't @extras enough?

Edit I see that background-size is required as setting background resets the size. But how should I cope with my problem description?

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

1 participant