红联Linux门户
Linux帮助

Less CSS 2.1.0发布,CSS预处理器

发布时间:2014-11-24 09:12:21来源:红联作者:empast
Less CSS 2.1.0 发布了,改进内容包括:

Fixed isSync option, it was using sync file operations but promises are guaranteed to call back async. We now support promises as a feature rather than the 1st class way of doing things.

Browser code is now synchronous again, like in v1, meaning it blocks the site until less is compiled

Some fixes for variable imports which affected filemanagers when synchronous

Fixed lessc makefile dependencies option

output now reports back a imports field with an array of imported files

relative path test for drive names (so windows only) is now case insensitive

Fix for IE7 - use getChar instead of indexing array

variables using !important now output !important, which bubbles up to affect the rule

livereload cache buster is now treated specially

upgrade dependencies

Less CSS 是一个使用广泛的 CSS 预处理器,通过简单的语法和变量对 CSS 进行扩展,可减少很多 CSS 的代码量。

LESS 将 CSS 赋予了动态语言的特性,如 变量, 继承, 运算, 函数. LESS 既可以在 客户端 上运行 (支持IE 6+, Webkit, Firefox),也可一在服务端运行 (借助 Node.js).

软件详情:https://github.com/less/less.js

来自:开源中国社区
文章评论

共有 0 条评论