Skip to content

Instantly share code, notes, and snippets.

@scottkellum
Created September 14, 2014 14:22
Show Gist options
  • Save scottkellum/cd539a1adcba238d511e to your computer and use it in GitHub Desktop.
Save scottkellum/cd539a1adcba238d511e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.3)
// Compass (v1.0.1)
// ----
$MS-scope-exists: feature-exists(global-variable-shadowing) == true;
$ms-context: null;
@mixin msr() {
@if $MS-scope-exists {
$ms-context: 'foo' !global;
} @else {
$ms-context: 'foo';
}
@content;
@if $MS-scope-exists {
$ms-context: null !global;
} @else {
$ms-context: null;
}
}
div {
@include msr() {
foo: $ms-context;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment