Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hagenburger/907402 to your computer and use it in GitHub Desktop.
Save hagenburger/907402 to your computer and use it in GitHub Desktop.
Would be nice, if this would be possible
$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