I'm working in this code:
.vertical-align (@numoflines) {
@first: (55 - (@numoflines * 5)) / 100;
@result: percentage(@first);
top: @result;
-webkit-transform: translateY(@result * -1);
-ms-transform: translateY(@result * -1);
transform: translateY(@result * -1);
position: relative;
}
.back {
.vertical-align(1);
text-align: center;
transform: rotateY(180deg);
}
It compiles ok but when I inspect the code in Chrome it says that the @result
is not a number (NaN%).
P.S: If a try this code in http://lesstester.com/ it works fine so i'm a bit messed up