question
Use cacl() to dynamically calculate the height of an element, including an scss variable in the calculation. as follows:
height: calc(100% - $ws-header-height);
Found in the browser does not have the expected effect, the scss variable is not parsed. as follows:
solve
Interpolation statement using scss #{}
height: calc(100% - #{$ws-header-height});
It is parsed normally in the browser