Using calc with a SCSS Variable
To use a variable in the CSS calc use SCSS Interpolation, example below.
$top-row-height: 3.5rem;
.quick-links {
padding: 0.5em;
height: calc(100% - #{$top-row-height});
}
~~
To use a variable in the CSS calc use SCSS Interpolation, example below.
$top-row-height: 3.5rem;
.quick-links {
padding: 0.5em;
height: calc(100% - #{$top-row-height});
}
~~