gpt4 book ai didi

css - 从 SCSS 到 LESS 的字体堆栈?

转载 作者:行者123 更新时间:2023-11-28 17:09:09 25 4
gpt4 key购买 nike

我如何从 SCSS 中用 LESS 编写这段代码?它给出的错误是“选择器匹配未知元素字体堆栈”。

$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;

最佳答案

没错,正如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;

关于css - 从 SCSS 到 LESS 的字体堆栈?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47335770/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com