Commit Graph

251 Commits

Author SHA1 Message Date
Luke Page
63821cdbe6 Fix all the parent combinator issues 2012-07-30 21:41:34 +01:00
Paul Mohr
f4518cc997 Added -khtml support for @keyframes 2012-07-29 17:00:17 +01:00
Evan Torrie
8284ce5fe0 Added CSS3 specific relative length units
See http://dev.w3.org/csswg/css3-values/#relative-length-units
2012-07-29 16:47:12 +01:00
Andrew Stone
221e850b89 add support for ratios in media queries 2012-07-28 18:14:48 +01:00
Dustin Cass
cb8856fe6f Adjust all regexes in parser.js to use similar style for character classes 2012-07-26 16:28:10 -07:00
Dustin Cass
4821735ba2 Adjust attribute selector regex to allow for numbers and underscores in attribute names (fixes #863, fixes #876). 2012-07-26 15:47:53 -07:00
Sasha Sklar
b235734a11 Merge pull request #753 from clarkni5/master
Adding "dpi" as a valid dimensions for media queries
2012-05-15 07:44:37 -07:00
comfuture
94f70f7121 fixed issue #795 2012-05-06 11:13:30 +09:00
James Foster
1857b7c5aa Implement named parameters 2012-04-30 03:30:02 +01:00
Nicholas Clark
6333fddaa2 Adding "dpi" to the list of valid dimensions. 2012-04-05 16:59:33 -04:00
cloudhead
8891564917 import-once functionality 2012-03-21 18:03:04 +01:00
Alexis Sellier
67ed7dfcb3 variable selectors must be paranthesized 2012-03-10 20:25:10 +01:00
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