Skip to content

Instantly share code, notes, and snippets.

@nickawalsh
Last active October 8, 2015 05:28
Embed
What would you like to do?
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