matype / stylefmt

stylefmt is a tool that automatically formats stylesheets.
Other
2.1k stars 89 forks source link

Math operator fixes #69

Closed kristerkari closed 8 years ago

kristerkari commented 8 years ago

With this input:

$height: em(240/2);
$easing: cubic-bezier(.35, 0, .765, -0.120);

div {
  margin-top: -($height/2);
}

CSSfmt output before:

$height: em(240 / 2);
$easing: cubic-bezier(.35, 0, .765, - 0.120);

div {
  margin-top: - ($height/2);
}

and after fixes:

$height: em(240/2);
$easing: cubic-bezier(.35, 0, .765, -0.120);

div {
  margin-top: -($height / 2);
}
matype commented 8 years ago

@kristerkari Thank you for your contribution! Please fix this PR and #66 to merge :)

kristerkari commented 8 years ago

@morishitter done!

matype commented 8 years ago

@kristerkari Nice work!