Skip to content

Instantly share code, notes, and snippets.

@nickawalsh
Last active October 8, 2015 05:28
Show Gist options
  • Save nickawalsh/3284541 to your computer and use it in GitHub Desktop.
Save nickawalsh/3284541 to your computer and use it in GitHub Desktop.
Serve IE Responsive Desktop Version
=respond-to($value, $query: min-width, $ie: false)
@media ($query: $value)
@content
@if $ie
.ie &
@content
// Sample Usage
.l-sidebar
width: 100%
+respond-to(40em, $ie: true)
width: 50%
<!doctype html>
<!--[if lte IE 8]><html lang="en" class="ie"><![endif]-->
<!--[if gt IE 8]><!-->
<html lang="en">
<!--<![endif]-->
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment