Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Ubuntu中编译更少的Twitter引导文件_Ubuntu_Twitter Bootstrap_Less - Fatal编程技术网

在Ubuntu中编译更少的Twitter引导文件

在Ubuntu中编译更少的Twitter引导文件,ubuntu,twitter-bootstrap,less,Ubuntu,Twitter Bootstrap,Less,我下载了twitter引导程序 我试图编译更少的文件,但它给了我一个名称错误 lessc wells.less test.css 错误 NameError: .border-radius is undefined in /var/www/2.6.0/assets/less/wells.less:13:2 12 border: 1px solid darken(@wellBackground, 7%); 13 .border-radius(@baseBorderRadius); 14

我下载了twitter引导程序

我试图编译更少的文件,但它给了我一个名称错误

lessc wells.less test.css

错误

NameError: .border-radius is undefined in /var/www/2.6.0/assets/less/wells.less:13:2
12   border: 1px solid darken(@wellBackground, 7%);
13   .border-radius(@baseBorderRadius);
14   .box-shadow(inset 0 1px 1px rgba(0,0,0,.05));

我不知道
lessc
命令在v2.3.1中是否仍然有效,但是您应该编译
bootstrap.less
文件。该文件将编译Bootstrap中包含的所有文件(响应较少的文件除外)。此文件的内容是:

@import "variables"
@import "scaffolding"
...
@import "hero-unit.less";
比如:

lessc ./bootstrap.less > bootstrap.css
应该可以,但我不能向您保证,因为我测试的上一个版本是2.1


无论如何,这里有一些使用makefile编译代码的说明,或者简单地使用
less.js来避免编译。当我将bootstrap.less编译为bootstrap.css时,您可以在的自述文件中看到说明和。bootstrap.css中写着:lessc:enoint,打开“/var/www/2.6.0/assets/bootstrap.less”