EDIT: The first addressed thread has the answer to my problem! I'm returning a String
instead a Number
from a mixin and so Sass can't handle the value!
I'm using Sass 3.2.12 (Media Mark)
for my project (I'm running Intellij IDEA 12.1
on a Windows 7 Professional
machine) and I've got some troubles working with rem units...
If I want to do something like this:
$my-font-size: 2.1875rem;
a {
font-size: $my-font-size * 1.2;
}
I get the following error:
error design/main.scss (Line 81 of design/_components.scss: Undefined operation: "1.2 times 2.1875rem".)
Also, if I try to add two rem units, like this:
$common-margin: 1.234rem;
.another-class {
position: absolute;
top: $common-margin + 0.3rem;
}
the preprocesser doesn't give me an error, but the produced output reads as follows:
.another-class {
position: absolute;
top: 1234rem0.3rem; //<-- what's this!?
}
Am I missing something here?