These are chat archives for LearnBoost/stylus

3rd
Aug 2016
Darius Tall
@kingdaro
Aug 03 2016 23:18

Anyone know why this doesn't work?

grid-calc ($cell-span, $cell-length) {
  $length = $cell-span * $cell-length
  $extra = ($cell-span - 1) * $grid-spacing
  return 'calc(%s + %s)' % ($length $extra)
}

It gives me "cannot perform $cell-span * $cell-length"

Darius Tall
@kingdaro
Aug 03 2016 23:26
Oh dammit, it was because I put a space between grid-calc and the arguments. sigh