A
A
Andrey Okhotnikov2018-12-27 15:27:42
css
Andrey Okhotnikov, 2018-12-27 15:27:42

How to fix Less compilation?

I'm working with Magento 2.2, the latest Less is installed, suddenly on some pages it stopped compiling Less to css, error

OperationError: Operation on an invalid type
in catalog.css on line 1181, column 3:

1180.grid[data-mode='grid'] .grid-item.big {
1181  -webkit-flex-basis: -webkit-calc(calc(100% / 5) * 2);
1182  -ms-flex-preferred-size: calc(calc(100% / 5) * 2);

What to do? How to fix?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sergski, 2018-12-27
@sergski

-webkit-flex-basis: calc( ~"100% / 5 * 2" );

H
HelpSophie, 2018-12-28
@HelpSophie

(100% / 5) * 2 = 40%
Why calc for this?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question