Bootstrap 3.2反馈状态未编译

时间:2014-10-18 05:30:22

标签: twitter-bootstrap twitter-bootstrap-3

我正在使用Grunt和最新的NodeJS for windows来从getbootstrap.com编译bootstrap 3.2.0。我注意到的一件事在编译时没有错误但没有反馈状态css类被添加/编译到css文件。有什么帮助吗?

1 个答案:

答案 0 :(得分:0)

好的找到了答案。 http://getbootstrap.com提供的form.less在变量中有错误。

原始代码:

.has-success {
  @include form-control-validation($state-success-text, $state-success-text, $state-success-bg);
}
.has-warning {
  @include form-control-validation($state-warning-text, $state-warning-text, $state-warning-bg);
}
.has-error {
  @include form-control-validation($state-danger-text, $state-danger-text, $state-danger-bg);
}

<强>修正

.has-success {
  @include form-control-validation($state-success-text, $state-success-border, $state-success-bg);
}
.has-warning {
  @include form-control-validation($state-warning-text, $state-warning-border, $state-warning-bg);
}
.has-error {
  @include form-control-validation($state-danger-text, $state-danger-border, $state-danger-bg);
}

var $ state-warning-text 作为参数缺失 $ state-warning-border 两次传递。