2

我从 Bootswatch 下载了一个不错的主题,但我想更改一些颜色。所以我得到了bootswatch.lessvariables.less并使用WinLess编译了一个合并文件。

当我这样做时,我收到以下错误:

undefined #gradient > .vertical-three-colors

我在 github 上阅读了一个问题,表明应该包括:bootstrap.import.less

但我在引导发行版中找不到这个。

希望你能帮忙。

4

2 回答 2

1

就我而言,我遇到了同样的问题_bootswatch.scss

之后yo angular只需bootstrap-sass替换 main.scss 中的所有文本:

@import "bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_gradients.scss";
@import "bootstrap.css";
@import "_variables.scss";
@import "_bootswatch.scss";

于 2015-03-10T23:28:46.233 回答
0

该问题与缺少 Gradient Mixins 有关。简单的解决方法是下载最新的bootstrap源代码并导入

@import "path\bootstrap-3.3.7\bootstrap-3.3.7\less\mixins\gradients.less";

于 2016-12-27T18:44:29.943 回答