Answer the question
In order to leave comments, you need to log in
Is it correct to write sass in this way?
Is it worth the cost of the cascade in this way? When compiling sass compiles into 1 style.min.css file
.callback{
padding: 20px 0;
&__header{
font-size: em(22);
line-height: 30px;
font-weight: 600;
text-align: center;
}
&__subheader{
font-size: 18px;
font-weight: 400;
line-height: 40px;
color: $grey_color;
text-align: center;
}
&-form{
float: none;
margin: 0 auto;
&__name{
width: 100%;
}
}
}
Answer the question
In order to leave comments, you need to log in
Yes. Almost.
You have two blocks here (BEM blocks)
.callback {}
.callback-form{}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question