Created
April 7, 2011 09:18
-
-
Save hagenburger/907402 to your computer and use it in GitHub Desktop.
Would be nice, if this would be possible
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
$mobile-max-width: 767px; | |
$mobile: only screen and (max-width: $mobile-max-width); | |
$mobile-wide: only screen and (min-width: 480px) and (max-width: $mobile-max-width); | |
$retina: (min-device-pixel-ratio: 2); | |
@media $mobile { | |
#some-rules { | |
background: red; | |
} | |
} | |
#something { | |
width: 100px; | |
@media $mobile { | |
width: 50px; | |
} | |
@media $mobile-width { | |
width: 80px; | |
} | |
@media $mobile and $retina { | |
background: url("high-resolution.png"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment