Created
December 5, 2012 13:02
-
-
Save ffdead/4215342 to your computer and use it in GitHub Desktop.
How to use if-resolution SASS mixin
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
footer { | |
// only include 1x size image for 'non-retina' screens | |
@include if-max-resolution(1.49) { | |
background-image: url('img/[email protected]'); | |
} | |
// only include 2x size image for 'retina' screens | |
@include if-min-resolution(1.5) { | |
background-image: url('img/[email protected]'); | |
background-size: 10.5625rem 1.5625rem; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment