cloudhead
b5d74f8e38
fix compound variable substitutions
2010-07-08 00:22:01 +02:00
cloudhead
45b97a6054
big refactoring of ruleset.js, move eval code to eval()
2010-07-07 13:53:09 +02:00
cloudhead
f30aa915c7
don't re-eval ruleset
2010-07-07 12:20:59 +02:00
cloudhead
bf0198a029
remove evalRules, use eval
2010-07-07 12:19:15 +02:00
cloudhead
e2b1a8af91
(minor) refactoring
2010-07-07 11:59:09 +02:00
cloudhead
752bf96e53
fix mixin definitions inside other mixin definitions
2010-07-07 11:58:55 +02:00
cloudhead
2afcdd7860
fix error messages with no index
2010-07-07 11:58:26 +02:00
cloudhead
c020db0240
(doc) comments
2010-07-06 16:51:57 +02:00
cloudhead
4bb4c97357
make mixins behave like closures
2010-07-06 16:48:05 +02:00
cloudhead
8a4a9a471a
support variables in url()
2010-07-04 10:45:55 +02:00
cloudhead
075523e96d
fix '!important' in certain scenarios
2010-06-27 16:40:12 -04:00
cloudhead
b6bd8566d5
fix alpha() with numbers
2010-06-20 22:18:04 -04:00
cloudhead
fa286eb507
fix @import not working. Better error message for empty response
2010-06-20 01:33:03 -04:00
cloudhead
2aa945c98c
fix some issues with alpha getting lost
2010-06-19 14:35:37 -04:00
cloudhead
c53309c682
critical fix for browser
2010-06-19 14:03:52 -04:00
cloudhead
f272611137
fixed hsla => rgba conversion
2010-06-19 13:42:33 -04:00
cloudhead
e73176e532
refactor inheritance in mixin.js
2010-06-19 02:05:09 -04:00
cloudhead
8a0a0346c3
removed constructor names
2010-06-19 01:51:26 -04:00
cloudhead
fc35e55456
improve error reporting, provide a one line call-stack
2010-06-18 20:12:03 -04:00
cloudhead
de301d599f
don't break when a node doesn't have an eval() function
2010-06-16 18:58:32 -04:00
cloudhead
7a80774960
fix comments in mixins.
2010-06-16 02:13:59 -04:00
cloudhead
98b8d31368
put Value in value.js
2010-06-15 18:46:09 -04:00
cloudhead
7a2ce13712
better cross-environment handling. stub out require() in browser.
2010-06-15 18:44:59 -04:00
cloudhead
4bb64a2753
(new) css compression support
2010-06-11 21:45:51 -04:00
cloudhead
85d50c84da
Better error messages, wrap browser.js.
2010-06-07 15:47:41 -04:00
cloudhead
8ab4d0aac0
treat Directive like a Ruleset
2010-05-23 12:50:20 -04:00
cloudhead
0075217391
removed unnecessary code in Ruleset#toCSS
2010-05-22 20:57:10 -04:00
cloudhead
697136961e
support CSS3 @media more fully
2010-05-22 18:24:37 -04:00
cloudhead
9e9c988f79
removed trailing comma, which breaks minification
2010-05-17 23:28:23 -04:00
cloudhead
a3f252b727
don't cache return values. %() plays nice with strings
2010-05-13 20:15:59 -04:00
cloudhead
b38f5325c9
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
8ed7d8c9b8
Evaluate arguments before passing them to mixin.
...
Closes #23
2010-05-07 00:41:09 -07:00
cloudhead
8ef8bfed8c
rename variables() to variable()
2010-05-07 00:40:21 -07:00
cloudhead
3c89d3b9bd
evaluate Values of length > 1 properly
2010-05-06 09:46:36 -07:00
cloudhead
7155f44f43
be more flexible, pattern matching
2010-05-04 20:37:06 -04:00
cloudhead
1d9b95f9e6
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
8c762b9e26
Support for pattern-matching on mixin calls.
2010-04-25 00:09:40 -04:00
cloudhead
1c52d6ac4d
use a hash to store variables, fixes variable redifinition bug
2010-04-23 17:52:36 -04:00
cloudhead
1e6cbbf61d
fixed bug with passing variables to functions
2010-04-23 13:49:55 -04:00
cloudhead
6778f51fc3
Added a couple colour functions
...
saturate, desaturate, lighten, darken, greyscale.
2010-04-23 13:36:50 -04:00
cloudhead
7be2b22cfb
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
1b5452652a
refactored mixin.definition.eval
2010-04-22 13:47:01 -04:00
cloudhead
444401dc3c
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
23640fe116
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
9a34a05555
@import with .css files no longer precompiles. This gives us some extra
...
flexibility.
2010-03-30 15:32:38 -04:00
cloudhead
400427e47a
merge
2010-03-27 02:27:59 -04:00
cloudhead
24bba952c7
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
41d701de1d
Doc for Call, Comments, Operation..
2010-03-23 18:33:17 -04:00
cloudhead
aad5ff6385
putting the operate function in operation.js, to facilitate access from browser code
2010-03-23 01:19:12 -04:00
cloudhead
259a4ad451
refactored the import mechanism, added some doc
2010-03-22 20:59:49 -04:00