Created
May 15, 2013 17:35
-
-
Save raykao/5585770 to your computer and use it in GitHub Desktop.
Retina CSS Examples
This file contains 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
#stripe{ | |
height:5px; | |
background:url('/static/img/stripe.gif') repeat-y center top; | |
-webkit-background-size:1000px 1px; | |
-moz-background-size:1000px 1px; | |
background-size:1000px 1px; | |
} | |
@media screen and (-webkit-device-pixel-ratio:2.0){ | |
#stripe{ | |
background-image:url('../img/stripe@2x.gif'); | |
} | |
.no-svg #workflow-animation, .no-js #workflow-animation{ | |
background:transparent url("../img/workflow-animation@2x.jpg") no-repeat left top; | |
} | |
} | |
@media screen and (-moz-device-pixel-ratio:2.0){ | |
#stripe{ | |
background-image:url('../img/stripe@2x.gif'); | |
} | |
.no-svg #workflow-animation, .no-js #workflow-animation{ | |
background:transparent url("../img/workflow-animation@2x.jpg") no-repeat left top; | |
} | |
} | |
@media screen and (device-pixel-ratio:2.0){ | |
#stripe{ | |
background-image:url('../img/stripe@2x.gif'); | |
} | |
.no-svg #workflow-animation, .no-js #workflow-animation{ | |
background:transparent url("../img/workflow-animation@2x.jpg") no-repeat left top; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment