Answer the question
In order to leave comments, you need to log in
How to convert from native variables?
border-radius: calc(var(--icon-size) / 2) / var(--icon-size);
how to convert from native variables?
trying
$size = 36px;
border-radius: calc(($size/2) / $size);
galp
does not compile errors either
Answer the question
In order to leave comments, you need to log in
$size: 36px;
border-radius: calc(#{($size/2) / $size});
$size: 36px;
$result: ($size/2) / $size;
border-radius: calc(#{$result});
$size: 36px;
border-radius: calc((#{$size}/2) / #{$size});
$size: 36px;
border-radius: (($size/2) / $size);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question