Basic Arithmetic Support


Add support for basic arithmetic on variables and constants in CSS: addition, subtraction etc.,


TroyGoode wrote Dec 9, 2007 at 5:34 PM

The following question was just left on my blog:

"Do you support formulas ?

let's say that i want something like this ( very likely to happen )

.smallBorder { border : solid @borderPx Blue}
.biggerBorder { border : solid @borderPx+1 Blue}"

It sounds like arithmetic support might indeed be a needed feature.

This post (http://community.bartdesmet.net/blogs/bart/archive/2006/10/13/4536.aspx) has information on how to compile and evaluate dynamic expressions, which could be very useful.

wrote Oct 31, 2012 at 6:37 PM

wrote Feb 1, 2013 at 11:00 PM