【发布时间】:2017-10-06 02:57:24
【问题描述】:
我在_custom.scss 文件中使用了变量$btn-secondary-color,但该变量在Bootstrap 4 Beta 上不存在。好像已经换成这个了:
// _variables.scss
$theme-colors: (
primary: $blue,
secondary: $gray-600,
success: $green,
info: $cyan,
warning: $yellow,
danger: $red,
light: $gray-100,
dark: $gray-800
) !default;
// _buttons.scss
@each $color, $value in $theme-colors {
.btn-#{$color} {
@include button-variant($value, $value);
}
}
那么如何修复我的代码并引用_custom.scss 中按钮的辅助颜色?
【问题讨论】:
-
为了将来参考,这是进行更改的拉取请求:github.com/twbs/bootstrap/pull/22836
标签: twitter-bootstrap sass twitter-bootstrap-4