in an scss file aks-file-name.scss I am using below code to put css property on some component in react
$header-height-value: 70px;
.body {
box-sizing: border-box;
height: calc(100% - $header-height-value);
}
It gives an error in the dev tools cs invalid property in line height: calc(100% - $header-height-value);
and property not applied to the element. If I use the below code it perfectly works
.body {
box-sizing: border-box;
height: calc(100% - 70px);
}
how to fix this and make it work in a first way because putting random 70px in the code is not a good idea for the future.