peteboere / css-crush

CSS preprocessor.
http://the-echoplex.net/csscrush
MIT License
537 stars 51 forks source link

Proposal : operations #4

Closed ganlhi closed 13 years ago

ganlhi commented 13 years ago

It would be great to be able to do some math into properties, like LESS does. Either directly inside properties :

property: (var(base_value) * 2);

Or through some sort of "functions", like mixins :

.func_fontsize (@mult: 1em) { font-size: @mult; line-height: (1.8em / @mult); margin: (1.8em / @mult) 0; }

h1 { .rounded-corners (2.4em); }

By the way, CSS Crush is already a great tool !

peteboere commented 13 years ago

Math functions are now implemented