スタイラスは変数スコープをどのように処理しますか?
-
1-すべての変数はグローバルですか?
$foo = red // is $foo global?
2- commonJSモジュールと同様に、exports
/require
同等のものはありますか?
$foo = @import 'foo'
body { color: $foo }
3-おそらくミックスインを使用してCSSブロックで宣言された変数はどうですか?
$foo = green
bar()
$foo = yellow // is it the same $foo ?
$baz = blue. // local or implied global?
ul {
background: $foo // green or yellow? red?
$foo = red
li {
$foo = pink
}
color: $foo // pink?
bar() // what about $foo now?
}
-
これに関する説明やドキュメントをいただければ幸いです...
ありがとうございました