Skip to content

Instantly share code, notes, and snippets.

@wheresrhys
Created March 26, 2014 10:18
Show Gist options
  • Select an option

  • Save wheresrhys/9780298 to your computer and use it in GitHub Desktop.

Select an option

Save wheresrhys/9780298 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
@mixin featureFlag ($flag) {
@at-root {
.#{$flag} & {
@content;
}
}
}
.parent {
width: 10px;
@include featureFlag(ie7) {
height: 3px;
@include featureFlag(hoverable) {
.thing {
color: red;
}
}
}
}
.parent {
width: 10px;
}
.ie7 .parent {
height: 3px;
}
.hoverable .ie7 .parent .thing {
color: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment