Chris Eppstein
6d5d56d14a
automatic coercion from unitless numbers
2008-09-24 00:43:45 -07:00
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
Nathan Weizenbaum
eafdc2db7e
Merge branch 'stable'
...
Relatively major changes to warning-avoiding to get it working with master.
The warning-avoiding in stable is based on http://pastie.org/262917.txt?key=18ufvnurbhubd7io3em5q ,
while the warning-avoiding in master is based on http://pastie.org/262888.txt?key=tmdvzn8bf9gm2hqht4fllq .
2008-08-29 19:08:28 -07:00
Mislav Marohnić
429314d2b0
avoid some warnings thrown by the Ruby interpreter
2008-08-29 18:50:32 -07:00
Nathan Weizenbaum
473fd84d3b
Add @for.
2008-08-10 14:21:56 -04:00
Nathan Weizenbaum
f93f3fdca3
Add support for == and ~= in SassScript.
2008-08-10 14:21:52 -04:00
Nathan Weizenbaum
2cfe2c11cb
Have SassScript handle unary operators in a saner, more flexible way.
2008-06-15 01:15:59 -07:00
Nathan Weizenbaum
1de7e1e983
Add support for Sass functions.
2008-06-05 15:06:48 -07:00
Nathan Weizenbaum
c5d2bb774e
Make sure all Sass errors have trailing periods.
2008-04-19 10:16:10 -07:00
Nathan Weizenbaum
84fdde13a5
Get rid of trailing whitespace.
2008-04-07 23:09:17 -07:00
nex3
03c644e5a6
Added lots of :nodocs: and
...
git-svn-id: svn://hamptoncatlin.com/haml/trunk@384 7063305b-7217-0410-af8c-cdc13e5119b9
2007-03-01 05:52:47 +00:00
nex3
87e5f9b392
Sass numbers have units attached.
...
git-svn-id: svn://hamptoncatlin.com/haml/trunk@361 7063305b-7217-0410-af8c-cdc13e5119b9
2007-02-10 06:38:50 +00:00
nex3
8895413d4e
Modulo, making constant script pretty much complete.
...
git-svn-id: svn://hamptoncatlin.com/haml/trunk@264 7063305b-7217-0410-af8c-cdc13e5119b9
2006-12-24 23:53:38 +00:00
nex3
f2f6081875
Constant division, subtraction, bugfixes.
...
git-svn-id: svn://hamptoncatlin.com/haml/trunk@262 7063305b-7217-0410-af8c-cdc13e5119b9
2006-12-24 23:43:24 +00:00
nex3
c232d19f15
Constant multiplication.
...
git-svn-id: svn://hamptoncatlin.com/haml/trunk@261 7063305b-7217-0410-af8c-cdc13e5119b9
2006-12-24 23:05:07 +00:00
nex3
67397758bd
Plus operation defined for all constants.
...
git-svn-id: svn://hamptoncatlin.com/haml/trunk@259 7063305b-7217-0410-af8c-cdc13e5119b9
2006-12-24 00:23:28 +00:00
nex3
99ee33a7bd
More operator/constant structure changes, plus operator defined for numbers.
...
git-svn-id: svn://hamptoncatlin.com/haml/trunk@257 7063305b-7217-0410-af8c-cdc13e5119b9
2006-12-23 22:57:31 +00:00
nex3
8116d203e8
Framework for Constant operations.
...
git-svn-id: svn://hamptoncatlin.com/haml/trunk@255 7063305b-7217-0410-af8c-cdc13e5119b9
2006-12-23 22:32:05 +00:00
nex3
e794493bc8
Number literal.
...
git-svn-id: svn://hamptoncatlin.com/haml/trunk@251 7063305b-7217-0410-af8c-cdc13e5119b9
2006-12-23 21:23:27 +00:00