Skip to content

Instantly share code, notes, and snippets.

@hail2u
Created March 11, 2014 01:14
Show Gist options
  • Save hail2u/9477708 to your computer and use it in GitHub Desktop.
Save hail2u/9477708 to your computer and use it in GitHub Desktop.
!global
.test {
color: green; }
.test-global {
color: blue; }
$foo: red;
.test {
$foo: green;
color: $foo;
}
.test-global {
$foo: blue !global;
color: $foo;
}
$ scss global.scss global.css
DEPRECATION WARNING on line 4 of test.scss:
Assigning to global variable "$foo" by default is deprecated.
In future versions of Sass, this will create a new local variable.
If you want to assign to the global variable, use "$foo: green !global" instead.
Note that this will be incompatible with Sass 3.2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment