Answer the question
In order to leave comments, you need to log in
Why does Magento2 Blank Theme deploy this code so much, and how can I make it output the correct css?
Greetings, I
ran into a problem from scratch:
there is such a code, registered in less, for example
@media (min-width: 860px) {
.product {
flex: 0 0 calc((100% / 3) - 20px);
}
}
@media (min-width: 860px) {
.product {
flex: 0 0 calc(13.33333333%);
}
}
Answer the question
In order to leave comments, you need to log in
You need to escape, do not calculate the data with less, but send it to css "as is", for this you use the ~"exp" syntax, that is, you need to write~"calc((100% / 3) - 20px)"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question