compass-mixins icon indicating copy to clipboard operation
compass-mixins copied to clipboard

No mixin named background

Open wzup opened this issue 8 years ago • 1 comments

Error:

Module build failed:
undefined
                ^
      No mixin named background

And I've checked, there is indeed no background mixin in compass-mixins plugin. How can it be?

This is all the plugin offers:

@import "css3/background-clip";
@import "css3/background-origin";
@import "css3/background-size";
_grid-background.scss

And this is the mixin http://compass-style.org/reference/compass/css3/images/#mixin-background

If any, I use your package in Webpack workflow. It is Webpack that throws the error.

wzup avatar Mar 14 '16 11:03 wzup

Well, actually you have. But why it doesn't work?

Here it is, in this folder: \compass-mixins\lib\compass\css3\_images.scss

This is how I use the mixin. Why loader cannot find it?

    .material-icon-custom {
        @include background(linear-gradient(white, #cccccc, #aaaaaa));
        @include background-clip(text);
        -webkit-text-fill-color: transparent;
    }

wzup avatar Mar 14 '16 12:03 wzup