P
P
posters2019-07-26 09:12:38
Sass
posters, 2019-07-26 09:12:38

What's wrong with admixture?

@mixin debug($background, $outline){
    height: 100vh;
    position: fixed;
    width: 100%;
    
    > div{
        height: inherit;
        @include container();
        
        > div{
            height: inherit;
            @include row-flex();
            
            > div{
                @include col();
                @include size(1);
                height: inherit;
                outline: $outline;
                background: $background;
            }
        }
    }
}

@include debug (rgba (0, 0, 0, 0.5), 1px solid red);

As a result, I get an error:
Error: Properties are only allowed within rules, directives, mixin includes, or other properties.
Indicates:
>> height: 100vh;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aleksandr, 2019-07-26
@posters

@include must be used inside rules

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question