Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Hi res image mixin
div {
@include image-2x("logo.png", "logo2x.png");
@mixin image-2x($image1, $image2) {
background-image: url($image);
@media (…) {
background-image: url($image2);
background-size: image-width($image1) image-height($image1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.