Skip to content

Instantly share code, notes, and snippets.

@yatil
Created May 12, 2012 14:06
Show Gist options
  • Save yatil/2666691 to your computer and use it in GitHub Desktop.
Save yatil/2666691 to your computer and use it in GitHub Desktop.
Forcing the desktop layout to IE<9
@mixin respond-to($media) {
@if $media == small {
@media only screen and (max-width: 599px) { @content; }
}
@else if $media == medium {
@media only screen and (min-width: 600px) { @content; }
.oldie & { @content; }
}
@else if $media == large {
@media only screen and (min-width: 800px) { @content; }
.oldie & { @content; }
}
@else if $media == larger {
@media only screen and (min-width: 1050px) { @content; }
.oldie & { @content; }
}
@else if $media == evenlarger {
@media only screen and (min-width: 1250px) { @content; }
}
@else if $media == huge {
@media only screen and (min-width: 1400px) { @content; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment