Skip to content

Instantly share code, notes, and snippets.

@ImBobby
Created November 28, 2013 08:59
Show Gist options
  • Save ImBobby/7689032 to your computer and use it in GitHub Desktop.
Save ImBobby/7689032 to your computer and use it in GitHub Desktop.
$tablet: "...";
$tablet-landscape: "...";
$desktop: "...";
body {
// style for mobile (STYLE A)
@media #{$tablet} {
//style for tablet (STYLE B)
}
@media #{$tablet-landscape} {
//style for tablet landscape (STYLE C)
}
@media #{$desktop} {
//style for desktop (STYLE C)
}
}
//since tablet-landscape and desktop share same style, is it possible to do this?
body {
//style
@media #{$tablet-landscape},
@media #{$desktop} {
//style for both tablet-landscape and desktop
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment