Commit Graph

73 Commits

Author SHA1 Message Date
cloudhead
cbb432edef fix syntax error with semi-colons in strings 2010-07-01 10:46:31 +02:00
cloudhead
13d6fbf63f proper chunkification of comments.
comments are preserved even with chunkified input now.
2010-07-01 01:31:48 +02:00
cloudhead
f817dcd2fe fix '!important' in certain scenarios 2010-06-27 16:40:12 -04:00
cloudhead
c8edfe8995 fix some issues with alpha getting lost 2010-06-19 14:35:37 -04:00
cloudhead
193fc96de1 fixed hsla => rgba conversion 2010-06-19 13:42:33 -04:00
cloudhead
a1e1f01338 fix comments in mixins. 2010-06-16 02:13:59 -04:00
cloudhead
345b8716d8 (new) Additions & improvements to color functions.
- Added spin() to change hue.
- Fixed darken/lighten to be additive.
- Added color extraction functions.
2010-06-15 20:13:19 -04:00
cloudhead
9f0734ed59 (test) mixin calls throw an error now, if no patterns match 2010-06-07 18:22:23 -04:00
cloudhead
9c390cbdf8 fix optimizations, and errors on multi-line comments 2010-06-01 21:21:59 -04:00
cloudhead
335d153d04 treat Directive like a Ruleset 2010-05-23 12:50:20 -04:00
cloudhead
604261c3f0 @media tests 2010-05-22 18:24:57 -04:00
cloudhead
bfe0acb01b don't cache return values. %() plays nice with strings 2010-05-13 20:15:59 -04:00
cloudhead
7d2fdbda58 test cases for recent fixes 2010-05-07 00:49:03 -07:00
cloudhead
31d0f6af3a tests for value.length > 1 bug 2010-05-07 00:40:39 -07:00
cloudhead
1b9d4e472d moved index.js to lib/less 2010-05-05 00:23:45 -04:00
cloudhead
d08ffaed62 whitespace 2010-05-04 20:37:14 -04:00
cloudhead
59bd32bb12 be more flexible, pattern matching 2010-05-04 20:37:06 -04:00
cloudhead
1dcb4e77cb make operations left-associative Closes #20 2010-05-03 14:25:12 -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
7a4e0ff77a fixed selector attributes not parsing with a '-' 2010-04-28 17:29:22 -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
7d27a181f8 Fixed HSL
HSL colors weren't working properly. The values weren't being normalized
to {0, 1}.
2010-04-23 13:35:36 -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
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
1e0cfe9ac1 Reorganized some of the parsing rule order
- Fix for "{" not parsing
- Use some backtracking when necessary,
  it's prettier than crazy lookaheads.
2010-04-21 10:12:29 -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
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
4ad707ea8e asynchronous import functionality! All tests passing. 2010-03-21 19:18:47 -04:00
cloudhead
2b4b0cbdf6 made parser reentrant for import support 2010-03-21 19:17:37 -04:00
cloudhead
9a583ca6ca no need to pass starting values to toCSS() anymore 2010-03-19 20:14:35 -04:00
cloudhead
d91bc37904 operations.less now passes 2010-03-19 18:47:17 -04:00
cloudhead
4ae9e31c40 parse() is now asynch, and uses a callback 2010-03-19 17:50:35 -04:00
cloudhead
47ab7a96f3 no more accessors.. they aren't very useful it turns out, with mixins 2010-03-18 14:50:50 -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
7e2217ba86 fixed and upgraded the css tests a little 2010-03-11 15:37:05 -05:00
cloudhead
c244c01dd2 add title to test output, skip directories 2010-03-07 23:42:19 -05:00
cloudhead
be893c5993 support for nested rulesets inside dynamic mixins, with lexical scoping 2010-03-07 20:20:50 -05:00
cloudhead
23775bda9b implemented dynamic mixins 2010-03-07 18:49:54 -05:00
cloudhead
2b0853de81 comments, wooh! 2010-03-06 17:53:55 -05:00
cloudhead
a13b64b5f6 get lazy-eval to pass 2010-03-05 20:42:32 -05:00
cloudhead
d44bff1da3 added some styling to the tests 2010-03-05 19:36:51 -05:00
cloudhead
2367be123e remove vows, seeing as Less isnt asynch, there really is not point. 2010-03-05 19:29:46 -05:00
cloudhead
39f0ab258c remove prod.less 2010-03-05 19:20:08 -05:00
cloudhead
463807d3b6 comment fix 2010-03-05 14:57:23 -05:00
cloudhead
456463368d function.less now passes 2010-03-05 14:56:47 -05:00
cloudhead
3638933aac fixed some more test files, css-3 passes now 2010-03-05 13:32:38 -05:00