calc
/* .stylus */
.test1
$offset = 5px
$mult = 3
height calc(1em + $offset * $mult)
.test1 {
height: calc(1em + $offset * $mult);
}
sprintf- %
/* .stylus */
.test2
$offset = 5px
$mult = 3
height 'calc(1em + %s * %s)' % ($offset $mult)
.test2 {
height: calc(1em + 5px * 3);
}
calc2() calc()
/* .stylus */
calc2($expr...)
'calc(%s)' % $expr
.test3
$offset = 5px
$mult = 3
height calc2(1em + $offset * $mult)
.test3 {
height: calc(16em);
}
. , , sprintf
/* .stylus */
calc2($expr...)
'calc(%s)' % $expr
.test4
$offset = 5px
$mult = 3
height calc2(1em \+ $offset \* $mult)
.test4 {
height: calc(1em + 5px * 3);
}
, calc2() mixin calc(),
/* .stylus */
calc($expr...)
'calc(%s)' % $expr
.test5
$offset = 5px
$mult = 3
height calc(1em \+ $offset \* $mult)
.test5 {
height: calc(1em + 5px * 3);
}
, calc() case (, Case() CASE())
/* .stylus */
.test6
$offset = 5px
$mult = 3
height Calc(1em \+ $offset \* $mult)
.test6 {
height: Calc(1em + 5px * 3);
}