These are chat archives for LearnBoost/stylus

24th
Nov 2014
Matt Rossi
@mordecai174
Nov 24 2014 20:06
hey everyone, i am getting a weird error. i have a variable called spacing-block which is equal to 20px, and I am trying to set a margin to spacing-block * 2

Potentially unhandled rejection [4] Error: /Users/mrossimojo/Desktop/dev/m4/assets/css/work-index/_dribbble.styl:2:31
1| .dribbble-feed
2| margin-top: spacing-block * 2
------------------------------------^
3| .dribbble-work-item
4| background: mojo-green
5| color: #fff

cannot perform spacing-block * 2
at ".dribbble-feed" (/Users/mrossimojo/Desktop/dev/m4/assets/css/work-index/_dribbble.styl:8:16)
at ".work-index" (/Users/mrossimojo/Desktop/dev/m4/assets/css/work-index/index.styl:14:27)

kevin olson
@acidjazz
Nov 24 2014 23:06
try unit(spacing-block*2, px)
i always try to store numeric values by themselves