Is there any way to pass value to a $variable through @function or @debug I am using multiple Calc methods when it combines in mixins calc() inside calc() don't work. For example
Html
<div class="misc"></div>
SCSS
@function cont-full() {
@return calc(100vw - 32px);
}
$container-width: cont-full();
.misc {
width: $container-width;
}
When I inspect result in window it pints result like this
.misc {
width: calc(100vw - 32px);
}
But what I want is calculated value for example 1520px in browser like below
.misc {
width: 1520px;
}
Please guide Thanks.
Try something like below.
Create scss function
Using the function
It generates below css
Hope this will help you. Good luck!