从SCSS到LESS的字体堆栈?

时间:2017-11-16 17:27:41

标签: css sass less

我如何在SCES中用LESS编写此代码?它给出的错误是" Selector匹配未知元素字体堆栈"。

$font-stack: 'Raleway', 'Helvetica Neue', Verdana, Arial, sans-serif;
$font-stack-body: 'Open Sans', Trebuchet, Tahoma, sans-serif;

$color-primary: #ff7200;
$color-primary-light: #f90;
$color-primary-dark: #e51;
$color-secondary: #005790;
$color-secondary-light: #0072bc;
$color-secondary-dark: #00384a;

1 个答案:

答案 0 :(得分:1)

正如Alien先生所说,你应该这样做

@font-stack: 'Raleway', 'Helvetica Neue', Verdana, Arial, sans-serif;
@font-stack-body: 'Open Sans', Trebuchet, Tahoma, sans-serif;

@color-primary: #ff7200;
@color-primary-light: #f90;
@color-primary-dark: #e51;
@color-secondary: #005790;
@color-secondary-light: #0072bc;
@color-secondary-dark: #00384a;