Skip to content

Instantly share code, notes, and snippets.

@pascalduez
Created October 28, 2013 14:12
Show Gist options
  • Save pascalduez/7197433 to your computer and use it in GitHub Desktop.
Save pascalduez/7197433 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
// @see https://github.com/Team-Sass/toolkit/issues/43
@mixin enhance-with($feature) {
.#{$feature} & {
@content;
}
}
%silent {
@include enhance-with('svg') {
content: "svg";
}
}
.parent {
.child {
@extend %silent;
}
}
.svg .parent .child, .parent .svg .child {
content: "svg";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment