Created
March 11, 2014 01:14
-
-
Save hail2u/9477708 to your computer and use it in GitHub Desktop.
!global
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.test { | |
color: green; } | |
.test-global { | |
color: blue; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$foo: red; | |
.test { | |
$foo: green; | |
color: $foo; | |
} | |
.test-global { | |
$foo: blue !global; | |
color: $foo; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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