Ruben February 2016

LESS, compile issues

I'm using Visual Studio 2012 and Web Essential 2012 and Less generates the css not as, as expected

//style.less

 .selector{
     max-height: calc(100vh - 200px)
 }

In the style.css it's generates something like this

//style.css
.selector{
      max-height: calc(-100vh);
}

Any ideas?

Answers


Luca Detomi February 2016

You have to use "escape" function as suggested in this answer to a similar question.

.selector{
     max-height: calc(100vh ~"-" 200px);
}

Post Status

Asked in February 2016
Viewed 3,870 times
Voted 10
Answered 1 times

Search




Leave an answer