无点与少CSS语言是否具有完全相同的语法? [英] Is dotless the same exact syntax as the less css language?

查看:78
本文介绍了无点与少CSS语言是否具有完全相同的语法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.less库称自己为ruby LESS库的端口.我是否可以排除它们都是相同的LESS文件格式的编译器,还是期望更少的代码有所不同?问另一种方式,我是将自己锁定在无点库中还是可以在较少的文件上使用无点和较少的javascript库?

GitHub页面或通过邮件列表

提出问题

The .less library calls itself a port of ruby LESS library. Can I take away from that that they both are compilers for the same LESS file format or do they expect subtly different less code? Asked another way, am I locking myself in to the dotless library or can use dotless and the less javascript lib on the less files?

解决方案

Dotlesscss is a straight (almost 1:1 port) of the JavaScript project less.js (a JavaScript implementation of LessCSS by Cloudhead the original author of LessCss for Ruby)

In 99% of the cases the same code that runs on dotlesscss will run on less.js and vice versa. If something works on less.js and doesn't on dotlesscss we consider that a bug and try to fix it if possible.

There are very subtle differences though as it is very hard to keep three different projects 100% synced up.

For one that would be different function names. Examples would be the color manipulation functions that we implemented before the LessCss project, as we named these after their SASS equivalents..

But in general: the language though is 100% compatible.

You are not limiting yourself to one language. You should be able to move between different implementations fairly easily.

Also dotless runs on Mono so you are not locked to a specific OS either.

If you encounter any problems feel free to raise an Issue on our GitHub Page or through the Mailing List

这篇关于无点与少CSS语言是否具有完全相同的语法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆