haml--haml/lib/sass/constant
Chris Eppstein ae30d64cfb More intelligent handling of units across arithmetic operations.
Automatic unit conversions are performed if necessary and possible.

Other small changes:
  * Limit the number of emitted decimals to three.
  * Added a function for converting a unitless number to a percentage.

This means that you can do the following now:
a
  :font-size= percentage(14.0px / 12px)
  :line-height= 1em * 20.0px / 12px
  :padding= 1in + 36pt
  :margin= 1in + ((72pt * 2in) + (36pt * 1in)) / 2.54cm

and get this:
a { font-size: 1.167%; line-height: 1.667em; padding: 1.5in; margin: 3.5in; }
2008-09-22 00:08:22 -07:00
..
bool.rb Add a boolean datatype to SassScript. 2008-08-09 00:17:58 -04:00
color.rb More intelligent handling of units across arithmetic operations. 2008-09-22 00:08:22 -07:00
functions.rb More intelligent handling of units across arithmetic operations. 2008-09-22 00:08:22 -07:00
literal.rb Add @for. 2008-08-10 14:21:56 -04:00
nil.rb Add a boolean datatype to SassScript. 2008-08-09 00:17:58 -04:00
number.rb More intelligent handling of units across arithmetic operations. 2008-09-22 00:08:22 -07:00
operation.rb Add support for == and ~= in SassScript. 2008-08-10 14:21:52 -04:00
string.rb Define unary operators for minus and div as well. 2008-06-15 01:16:30 -07:00
unary_operation.rb Have SassScript handle unary operators in a saner, more flexible way. 2008-06-15 01:15:59 -07:00