cloudhead
335d153d04
treat Directive like a Ruleset
2010-05-23 12:50:20 -04:00
cloudhead
f01976bb03
removed unnecessary code in Ruleset#toCSS
2010-05-22 20:57:10 -04:00
cloudhead
f35d035e51
support CSS3 @media more fully
2010-05-22 18:24:37 -04:00
cloudhead
5286c48220
removed trailing comma, which breaks minification
2010-05-17 23:28:23 -04:00
cloudhead
bfe0acb01b
don't cache return values. %() plays nice with strings
2010-05-13 20:15:59 -04:00
cloudhead
f5f0919349
Refactored some of the evaluation mechanisms
...
- Don't call `eval` from `toCSS`
- Every node responds to `eval`
2010-05-07 23:21:16 -04:00
cloudhead
3def6cf5bf
Evaluate arguments before passing them to mixin.
...
Closes #23
2010-05-07 00:41:09 -07:00
cloudhead
f7a6046fc8
rename variables() to variable()
2010-05-07 00:40:21 -07:00
cloudhead
50e76c3912
evaluate Values of length > 1 properly
2010-05-06 09:46:36 -07:00
cloudhead
59bd32bb12
be more flexible, pattern matching
2010-05-04 20:37:06 -04:00
cloudhead
a4d4d55693
Evaluate function calls properly.
...
- `fun(f())` is now possible
- Anonymous can take normal strings
- Tests for `%()`
2010-04-30 14:07:05 -04:00
cloudhead
d56feee6f0
Support for pattern-matching on mixin calls.
2010-04-25 00:09:40 -04:00
cloudhead
3047f7603e
use a hash to store variables, fixes variable redifinition bug
2010-04-23 17:52:36 -04:00
cloudhead
fee1e305f0
fixed bug with passing variables to functions
2010-04-23 13:49:55 -04:00
cloudhead
15f0589f6c
Added a couple colour functions
...
saturate, desaturate, lighten, darken, greyscale.
2010-04-23 13:36:50 -04:00
cloudhead
904d997730
the e() LESS function
...
used to escape strings in values.
Added Anonymous node to handle things like this.
2010-04-22 19:42:02 -04:00
cloudhead
63923283fc
refactored mixin.definition.eval
2010-04-22 13:47:01 -04:00
cloudhead
6f8fa2d858
Fixed mixin calls not working from dynamic mixins
...
Dynamic mixins aren't treated enough like Rulesets.
There is some code duplication which needs to be cleaned up,
ideally they should share a prototype.
2010-04-22 13:34:49 -04:00
cloudhead
25dbfb177a
Fix dynamic mixins with nested rules
...
Dynamic mixins with more than one level of nesting wouldn't work.
This is now fixed. Also refactored mixin.definition.eval a little.
2010-04-22 13:07:41 -04:00
cloudhead
5d5024e70e
@import with .css files no longer precompiles. This gives us some extra
...
flexibility.
2010-03-30 15:32:38 -04:00
cloudhead
b844de97e3
merge
2010-03-27 02:27:59 -04:00
cloudhead
0267de4fac
removed lib/ext, moved lib/less.js to /index.js, moved Array/find to tree.find
2010-03-27 02:26:55 -04:00
cloudhead
fc616b4aa4
Doc for Call, Comments, Operation..
2010-03-23 18:33:17 -04:00
cloudhead
374702c926
putting the operate function in operation.js, to facilitate access from browser code
2010-03-23 01:19:12 -04:00
cloudhead
d0b6573017
refactored the import mechanism, added some doc
2010-03-22 20:59:49 -04:00
cloudhead
4ad707ea8e
asynchronous import functionality! All tests passing.
2010-03-21 19:18:47 -04:00
cloudhead
9a583ca6ca
no need to pass starting values to toCSS() anymore
2010-03-19 20:14:35 -04:00
cloudhead
26d12af25a
fix to undefined mixin error message
2010-03-19 19:46:37 -04:00
cloudhead
d91bc37904
operations.less now passes
2010-03-19 18:47:17 -04:00
cloudhead
a31f71d364
import.js init
2010-03-18 18:44:03 -04:00
cloudhead
fe732e843c
refactor of module system. Things work properly now, and it's all much cleaner.
2010-03-13 03:34:48 -05:00
cloudhead
be11ab6b89
some eval functions for good measure
2010-03-11 15:36:50 -05:00
cloudhead
553aaecf6a
font property parsing, mainly the 'small/12px' part.
2010-03-11 15:34:57 -05:00
cloudhead
9c0fb7174e
Cache Selector/toCSS()
2010-03-09 23:58:05 -05:00
cloudhead
77b2a36059
Cache mixin lookups for a nice speed boost.
2010-03-09 23:56:49 -05:00
cloudhead
acd46cf7c6
refactoring of prototypes
2010-03-07 23:38:10 -05:00
cloudhead
07837a83a7
refactored variable lookup
2010-03-07 23:33:26 -05:00
cloudhead
6228f4a6d2
cache ruleset lookup
2010-03-07 23:11:20 -05:00
cloudhead
a68a2fc6bf
cache variable lookup for a 20% speedup
2010-03-07 23:02:16 -05:00
cloudhead
be893c5993
support for nested rulesets inside dynamic mixins, with lexical scoping
2010-03-07 20:20:50 -05:00
cloudhead
d8838a01d0
eval() for Ruleset
2010-03-07 18:50:58 -05:00
cloudhead
7666c71b80
if something other than a Value was passed to the Rule constructor, wrap it in a Value
2010-03-07 18:50:31 -05:00
cloudhead
23775bda9b
implemented dynamic mixins
2010-03-07 18:49:54 -05:00
cloudhead
57013ebdf9
comments.js init
2010-03-06 17:54:11 -05:00
cloudhead
2b0853de81
comments, wooh!
2010-03-06 17:53:55 -05:00
cloudhead
808bd55a95
let us just assume that a rule which contains subrules is a ruleset
2010-03-06 17:34:08 -05:00
cloudhead
d08c1fe559
basic directive css output
2010-03-05 19:23:39 -05:00
cloudhead
f0f425de33
move node/ -> tree/
2010-03-05 19:19:14 -05:00