Answer the question
In order to leave comments, you need to log in
Why doesn't mixin work in scss?
Hello.
Help me to understand. There are 2 scss files in one file, I create a mixin, and in the second I want to include it. But, it throws an error.
This is how I specify the mixin:
[email protected]mixin button{
display: inline-block;
font-size: 14px;
font-weight: 600;
background: #54cff0;
color: #fff;
border-radius: 50px;
padding: 15px 30px;
margin-top: 20px;
text-transform: uppercase;
}
.form__button{
@include button; //пробовал button(); тоже не выходит
}
Answer the question
In order to leave comments, you need to log in
Do you read documentation at all? :))
@mixin button() {
display: inline-block;
font-size: 14px;
font-weight: 600;
background: #54cff0;
color: #fff;
border-radius: 50px;
padding: 15px 30px;
margin-top: 20px;
text-transform: uppercase;
}
By the fact that it's time to switch to Stylus =)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question