@posters

Что не так с примесью?

@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);


В итоге получаю ошибку:
Error: Properties are only allowed within rules, directives, mixin includes, or other properties.
Указывает:
>> height: 100vh;
  • Вопрос задан
  • 45 просмотров
Решения вопроса 1
@Sashjkeee
f-e
@include нужно применять внутри правил
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы