mojotech / sass2stylus

Kewl
http://sass2stylus.com/
79 stars 18 forks source link

Proper convertion of negated variables #75

Closed kizu closed 10 years ago

kizu commented 10 years ago

Negated variables like -$foo do not work currently in Stylus, so this code in Sass

$foo: 10px

.bar
  margin: -$foo

right now converts to

$foo = 10px
.bar
  margin: -$foo

which wouldn't yield to proper CSS.

To fix it, we should convert such negated variables to multiplication on -1, so -$foo should convert to -1*$foo.

samccone commented 10 years ago

thanks @kizu Shall resolve this one