less.js: @media print triggers extend missing?

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

I had this mistake “extend ’ .clearfix’ has no matches”

less v 2.5.0 on windows/mac

.clearfix() {
  &:before,
  &:after {
    content: " "; // 1
    display: table; // 2
  }
  &:after {
    clear: both;
  }
}

.holder {
  width: 32px;
  &:extend(.clearfix);
}

But after some time in bootstrap less (file utilities.less) I found this

.clearfix { .clearfix(); }

Now it works