Closed ganlhi closed 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); }
.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 !
Math functions are now implemented
It would be great to be able to do some math into properties, like LESS does. Either directly inside properties :
Or through some sort of "functions", like mixins :
By the way, CSS Crush is already a great tool !