Skip to content

Instantly share code, notes, and snippets.

@chriseppstein
Created February 3, 2012 20:08
Show Gist options
  • Save chriseppstein/1732137 to your computer and use it in GitHub Desktop.
Save chriseppstein/1732137 to your computer and use it in GitHub Desktop.
// This file's output is customized for ie6 consumption.
// Serve it using conditional comments or something.
$legacy-support-for-ie6: true;
@import main_stylesheet;
// This stylesheet writes code for all browsers using @if to targe specific browsers.
$legacy-support-for-ie6: false !default;
@import "compass";
.something {
// normal styles
@if not $legacy-support-for-ie6 {
// Stuff IE6 should not see
}
@if $legacy-support-for-ie6 {
// IE6 specific stuff
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment