减少将mixins /变量传递给rest参数

时间:2017-02-02 09:52:46

标签: css less

我想从文本控件传递.centerChildren。我该怎么做?

.centerChildren() {
  display: flex;
  align-items: center;
}

.progressBar(@rest...) {
  .jp-progress {
    ...
    @{rest...} //Something like this
  }
}
.jp-text-controls {
  .progressBar(.centerChildren)
}

0 个答案:

没有答案