Last active
December 11, 2015 21:48
-
-
Save juandazapata/4664930 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.logo | |
+at2x(logo-mams, 74px, 84px) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=at2x($image_name, $w: auto, $h: auto, $extention: '.png') | |
background-image: image-url($image_name + $extention) | |
$x2img : $image_name + '@2x' + $extention | |
@media all and (-webkit-min-device-pixel-ratio : 1.5) | |
background-image: image-url($x2img) | |
background-size: $w $h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.logo { | |
background-image: url('/images/logo-mams.png'); | |
} | |
@media all and (-webkit-min-device-pixel-ratio: 1.5) { | |
.logo { | |
background-image: url('/images/[email protected]'); | |
background-size: 74px 84px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment