kjbrum/juice

Option to @declude

adrianratajczak opened this issue · 1 comments

Hi, juice is almost perfect.

Option to declude prev included mixin/function using for ex. breakpoints would be really nice.

I mean to do sth like that:

.foo {
@include size(60px);
@include bp(medium) {
@declude size()}
}

And on medium screens .foo will be without size.

To do what you are asking, you would just do the following:

.foo {
  @include size(60px);
  @include bp(medium) {
    @include size(auto);
  }
}

Setting the width and height to auto will essentially remove the previously added values.