SASS,@ import并将其抽象化

时间:2014-12-30 13:37:06

标签: sass

有没有办法@import一个文件并让它包含抽象的所有classe?

让我举一个例子来解释:

@import "bootstrap"; //Do something magic to make all classes abstract
.my-bem__custom{
  @extend .btn
}

它应该以这种方式输出一个css文件:

//Not any bootstrap stuff here
.my-bem__custom {
  display: inline-block;
  margin-bottom: 0;
  font-weight: normal;
  text-align: center;
  vertical-align: middle;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none;
  border: 1px solid transparent;
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  border-radius: 4px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

1 个答案:

答案 0 :(得分:0)

没有。萨斯没有那样的东西。如果是这样,它将在文档中引用。