How to customize Thelia template with less?

僤鯓⒐⒋嵵緔 提交于 2019-12-13 01:53:44

问题


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

Does anybody know the easier way to modify the default theme?


回答1:


First, @screen-desktop is defined in assets/less/bootstrap/variables.less :

@screen-md:                  992px;
@screen-desktop:             @screen-md;

Next, you should recompile assets\less\style.css only, not every LESS files individually. Configure your IDE according to this.

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.



来源:https://stackoverflow.com/questions/25312741/how-to-customize-thelia-template-with-less

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!