Commit Graph

239 Commits

Author SHA1 Message Date
Alexis Sellier
d955198c85 Merge branch 'master' of github.com:cloudhead/less.js 2012-03-04 22:15:37 +01:00
Alexis Sellier
93b23d2c24 support strings as selectors
example:

  @n: 1;
  ~".span@{n}" { ... }
2012-03-04 22:13:04 +01:00
Andrew Stone
6e57f91fd0 fix global variable leaks 2012-03-01 12:39:01 -05:00
Alexis Sellier
3e5a336f88 add ability to bind varargs 2012-02-28 19:23:39 +01:00
Alexis Sellier
229856d514 fix error message on wrong-arity call 2012-02-28 18:06:22 +01:00
Alexis Sellier
ac226c6b7f Variadic argument support
.mixin (...)   {} // matches any number of arguments
   .mixin ()      {} // matches exactly 0 arguments
   .mixin (@a: 1) {} // matches 0-1 arguments
2012-02-28 17:42:29 +01:00
Alexis Sellier
236f16b124 Allow '@import' directives in any selector
Add --strict-imports option to disable for perf
reasons.
2012-02-28 17:20:11 +01:00
Alexis Sellier
598b249101 Fix '@arguments' behaviour, Closes #632
`.mixin` & `.mixin()` had differing behaviours.
2012-02-28 17:06:45 +01:00
Alexis Sellier
5ccf1dafec Fix '::' selector output, Closes #663 2012-02-28 16:58:44 +01:00
Alexis Sellier
089ca34dc1 Merge branch 'patch-media-query-variable' of https://github.com/sirlantis/less.js
Conflicts:
	test/css/media.css
	test/less/media.less
2012-02-28 16:49:24 +01:00
Marcel Jackwerth
0086f1babb Declare e properly in mediaFeature 2012-02-27 12:09:27 +01:00
Marcel Jackwerth
9f9eeec297 media-query can now be a variable 2012-02-20 17:28:24 +01:00
Marcel Jackwerth
53b67e79fe moved @media code to own file 2012-02-16 20:56:21 +01:00
Alexis Sellier
222f5e6b8a Merge pull request #595 from hokaccha/fix_parser_error
Fix callback called two times
2012-02-01 11:54:00 -08:00
Alexis Sellier
8e186400e0 add hook for import error 2012-02-01 19:55:15 +01:00
Alexis Sellier
557177c76d use basename when fetching import file contents 2012-01-25 20:15:06 +01:00
hokaccha
e58238bd17 Fix callback called two times 2012-01-25 09:51:39 +09:00
Alexis Sellier
bb5f038615 fix url() imports 2012-01-21 02:30:56 +01:00
Alexis Sellier
72f7fa6077 fix 'missing }' error message 2012-01-16 14:59:00 +01:00
Alexis Sellier
e618119e03 parsing/compiling speedups 2012-01-16 14:56:07 +01:00
Alexis Sellier
aefd310514 fix Runtime error reports from imported files 2012-01-11 00:55:14 +01:00
Alexis Sellier
2cc1b018fe fix 'File not found' import error 2012-01-10 23:52:45 +01:00
Alexis Sellier
4cb962c5cd refactor rhino setup logic 2012-01-10 21:58:52 +01:00
Ken McHugh
e90fbdfd42 Additional update for when window is not defined 2012-01-10 20:34:32 +08:00
Ken McHugh
39f277f726 Fix to allow compilation with rhino while using asual lesscss engine 2012-01-10 20:22:34 +08:00
Alexis Sellier
dc1c6c4555 fix bug in string arguments to mixin call 2012-01-09 22:49:16 +01:00
Alexis Sellier
6d4516e6fc improve errors from imported files 2012-01-09 20:39:24 +01:00
Alexis Sellier
48db59ec82 remove '^=', support 'not' better 2012-01-07 01:34:31 +01:00
Alexis Sellier
aab66a4d10 support '!important' after mixin calls
ex: `.mixin(4) !important;`
2012-01-05 21:53:03 +01:00
Alexis Sellier
d8441445a5 change negation operators to be more cssy 2012-01-03 22:41:14 +01:00
Alexis Sellier
a40a9ee4db and/or for mixin guards 2012-01-03 22:27:54 +01:00
Alexis Sellier
7a71697965 improve condition parser, support true/false values 2011-12-30 00:43:46 +01:00
Alexis Sellier
1d67c5b382 improve error-reporting
- add a LessError class
- add an expect() function
- add an error() function
2011-12-30 00:42:29 +01:00
Alexis Sellier
40011da01b mixin-guards: support >= != =< operators 2011-12-29 23:39:59 +01:00
Alexis Sellier
bdf3763e4b change guard syntax to be more 'cssy' 2011-12-29 23:20:33 +01:00
Alexis Sellier
626d7f1523 additional support for mixin guards 2011-12-24 13:32:13 +01:00
Alexis Sellier
ff3d7c61ff properly support @media and @import features 2011-12-17 17:41:54 +01:00
Alexis Sellier
3506838620 support vanilla @keyframes 2011-12-16 17:42:45 +01:00
Alexis Sellier
d1cb4aab97 improvements to error messages 2011-12-15 23:42:22 +01:00
Alexis Sellier
321920a50d mixin guards
Allows functional-style guard expressions:

  .mixin (@a) ? @a > 0 {...}
2011-12-15 23:38:53 +01:00
Alexis Sellier
db72c646bb dynamic selectors
Allows things like:

  a:nth-child(@var) {}
2011-12-15 22:24:52 +01:00
Alexis Sellier
ff0dc06c54 Merge branch 'master' of github.com:cloudhead/less.js 2011-12-10 14:00:23 +01:00
Alexis Sellier
c47e5fa87d Merge pull request #506 from Harrison/master
Issue #393 Add support for "rem" dimensions
2011-12-10 05:00:09 -08:00
Alexis Sellier
bec6b223ae support -ms- vendor extension 2011-12-10 13:59:32 +01:00
Alexis Sellier
431b202d88 (minor) ws 2011-12-10 13:54:24 +01:00
Alexis Sellier
c2d61e75de Merge branch 'master' of https://github.com/Glench/less.js into yui 2011-12-10 13:52:07 +01:00
Alexis Sellier
d352284ba5 merge named-colors 2011-12-10 13:43:48 +01:00
Alexis Sellier
b44d2dc9fe merge named-colors patch 2011-12-10 13:41:20 +01:00
Glen Chiacchieri
164be53d0e Remove useless variable assignment. 2011-12-03 15:13:07 -05:00
Philip Harrison
6c3317ff0b Add rem dimension support 2011-12-03 17:58:25 +01:00