SASS SCSS: Return the actual RESULT in pixel of the calculation between vh and px

24 Views Asked by At

I wondering if is possibile for a SASS function to return the actual result of a calculation between differnt types of mesure such as vh and pixels.

@function scren_height() {
  $size: calc(100vh - 1px + 1px);
  @return $size;
}

The return of this function is calc(100vh - 1px + 1px); and not a pixel mesure or 100vh only.

0

There are 0 best solutions below