【发布时间】:2020-06-26 15:57:50
【问题描述】:
我正在尝试为我的自定义版本的 Bootstrap 更改一些变量。现在我有 Bootstrap SCSS 文件和我自己的变量文件。我的文件如下所示:
@import "/path/to/bootstrap";
$blue: #42a5f5;
$indigo: #5c6bc0;
more styles here…
但是,当我运行 sass /path/to/custom.scss /path/to/output.css 时,它仍然会输出默认的 Bootstrap 文件,如下所示:
:root {
--blue: #007bff;
--indigo: #6610f2;
more styles here…
为什么会这样?
【问题讨论】:
标签: css twitter-bootstrap command-line sass bootstrap-4