Closed jgwhitley1017 closed 7 years ago
There seems to be an issue using variables with Calc. For Example, in the below code, you would expect height to be calc(100% - 92px), but it renders as calc(8%).
@sample-height: 92px; div.foo { height: calc(100% - @sample-height) }
Yes, this is a known problem with less.
Possible workaround:
div { height: ~"calc(100% - "@sample-height~")"; }
There seems to be an issue using variables with Calc. For Example, in the below code, you would expect height to be calc(100% - 92px), but it renders as calc(8%).