Less.js 发布了 3.0 正式版,该版本改进内容包括:
- Fix
calc()
function to not do math operations on compile - Rename Directive -> AtRule & Rule -> Declaration
- Cross-platform
@plugin
loading! (Node & Browser) - Numerous changes / improvements to plugin architecture
- Simplified API calls in plugins (
less.atrule()
vsnew less.tree.AtRule()
) - Property accessors (
$width
to refer towidth: 300px
value) - Inline JavaScript disabled by default for security reasons (use
@plugin
) - Improvements in Less error reporting
- Added feature: returning
null
/false
from Less functions will remove that line - Simple
boolean()
andif()
functions added - Bug fixes
- Removal of unnecessary nodes from API (like IE’s
alpha()
)
Less CSS 是一个使用广泛的 CSS 预处理器,通过简单的语法和变量对 CSS 进行扩展,可减少很多 CSS 的代码量。
LESS 将 CSS 赋予了动态语言的特性,如 变量, 继承, 运算, 函数. LESS 既可以在 客户端 上运行 (支持IE 6+, Webkit, Firefox),也可一在服务端运行 (借助 Node.js).zh
转自 http://www.oschina.net/news/93325/less-js-3-0