L
L
lavezzi12015-12-25 14:25:40
Sass
lavezzi1, 2015-12-25 14:25:40

Variables not working in calc?

I came across this miracle:

$one    : 1170px;
$two   : 500px;
$three : calc($one - $two);

At the output, I get such an expression, that is, the variables are not converted to numbers. There are no errors in the console.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2015-12-25
@lavezzi1

calc(#{$one} - #{$two});
https://github.com/sass/sass/issues/818

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question