如何自定义Thelia模板与少? [英] How to customize Thelia template with less?
问题描述
我将项目导入到WebStorm 8中,但是当我尝试将vales更改为.less文件时,WebStorm给我这个错误:
I imported the project into WebStorm 8 but when I try to change vales into .less files WebStorm give me this error:
/usr/local/bin/lessc --no-color import.less
NameError: variable @screen-desktop is undefined in
/Users/iulianrusu/Sites/thelia/templates/frontOffice/default/assets/less/thelia/variables.less
on line 11, column 37: 10 // Grid system 11 @grid-float-breakpoint:
@screen-desktop; 12 Process finished with exit code 2
有没有人知道更容易的方法来修改默认主题? p>
Does anybody know the easier way to modify the default theme?
推荐答案
首先, @ screen-desktop
定义在assets / less / bootstrap /variables.less:
First, @screen-desktop
is defined in assets/less/bootstrap/variables.less :
@screen-md: 992px;
@screen-desktop: @screen-md;
接下来,您应该只重新编译assets\less\style.css,而不是每个LESS文件。根据此设置配置IDE。
Next, you should recompile assets\less\style.css only, not every LESS files individually. Configure your IDE according to this.
快速自定义默认模板的最简单方法是在assets / themes / default / less文件中,控制颜色和样式主题。
The easiest way to quickly customize the default template is in the assets/themes/default/less files, which controls colors and styles of the theme.
这篇关于如何自定义Thelia模板与少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!