9
触笔如何处理变量范围?触控笔中的变量范围
-
是否所有变量的全局?
$foo = red // is $foo global?
2-类似于commonJS module,是否有任何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?
}
-
希望了解这方面有任何澄清或文档...
谢谢
与2的一个问题/ https://github.com/LearnBoost/stylus/issues/526 – abernier 2012-03-06 20:27:11