问题描述
我是 less 和 scss 的新手。我正在像这样在 header.less 中导入 _variables.scss:
@import "../scss/variables";
我收到以下错误:
NameError: variable @transition-speed is undefined in header.less on line 12,column 29:
11 .navbar {
12 .transition(margin-left @transition-speed @transition-fn);
13 margin-bottom: 0;
_variables.scss 文件如下所示:
$transition-speed: 0.3s !default;
header.less 文件如下所示:
..........some other styling ...............
.navbar {
.transition(margin-left @transition-speed @transition-fn);
margin-bottom: 0;
..........some other styling ...............
}
我正在使用 xampp。
有人可以帮我吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)