Last active
October 7, 2015 06:48
-
-
Save alainmeier/3122743 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
@media only screen and (min--moz-device-pixel-ratio: 1.5), /* Gecko */ | |
only screen and (-o-min-device-pixel-ratio: 3/2), /* Opera */ | |
only screen and (-webkit-min-device-pixel-ratio: 1.5), /* Webkit */ | |
only screen and (min-device-pixel-ratio: 1.5), /* Webkit */ | |
only screen and (min-resolution: 144dpi) /* W3 */ | |
{ | |
.button-icon { | |
background-image: url("path/to/image/[email protected]"); | |
background-size: 16px 16px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please pull from https://gist.github.com/3995490
I added media queries for other browsers to support image replacement. (I tested with IE9 and Firefox 18)
http://codepo8.github.com/prefix-the-web/