Commit Graph

544 Commits

Author SHA1 Message Date
Pavel Shut
f42de9bacd Added transparent: rgba(0,0,0,0) as a named color 2012-05-04 17:03:24 +03:00
James Foster
1bb3dc1f26 Fix trailing space when parent selector is the last part of the selector.
'''
.foo {
  .bar & {
    &:hover {
      color: orange;
    }
  }
}
'''

now outputs

'''
.bar .foo:hover {
  color: orange;
}
'''
2012-04-30 03:30:14 +01:00
James Foster
1857b7c5aa Implement named parameters 2012-04-30 03:30:02 +01:00
cloudhead
cb78933423 remove duplicate rules automatically 2012-03-27 16:59:49 +02:00
cloudhead
8891564917 import-once functionality 2012-03-21 18:03:04 +01:00
Alexis Sellier
3fb212d9c3 (dist) 1.3 2012-03-10 20:29:10 +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
1ba622dd8d fixed a bug when using @media with mixins 2012-02-17 11:57:31 +01:00
Marcel Jackwerth
081c26dc9a adjusted indent-whitespace to 4 spaces 2012-02-17 01:42:22 +01:00
Marcel Jackwerth
936ab7d52e Added automatic merging of media-query conditions 2012-02-17 01:39:03 +01:00
Marcel Jackwerth
80e8b42e9a remove @media code from tree.Directive 2012-02-17 01:19:46 +01:00
Marcel Jackwerth
53b67e79fe moved @media code to own file 2012-02-16 20:56:21 +01:00
Marcel Jackwerth
378ddef61f fixed double-space 2012-02-15 17:17:48 +01:00
Marcel Jackwerth
288248dc5a added @media bubbling (similar to SASS) 2012-02-14 20:10:25 +01:00
Alexis Sellier
83426e424d (dist) version 1.2.2 2012-02-11 18:17:09 +01:00
Alexis Sellier
8864ac652c Merge pull request #601 from adrianlang/patch-1
Make parse error handler more robust
2012-02-01 11:54:59 -08: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
f69de479d4 Merge pull request #604 from treshugart/master
Fixes #602
2012-02-01 11:52:01 -08:00
Alexis Sellier
0f1527c12d (ws) 2012-02-01 19:55:26 +01:00
Alexis Sellier
8e186400e0 add hook for import error 2012-02-01 19:55:15 +01:00
Trey Shugart
acf65e0f5d Fixes #602 2012-01-31 13:50:26 +11:00
Adrian Lang
a8802fc8ac Make parse error handler more robust
This is necessary to get useful error messages in cases where root has not been constructed successfully.
2012-01-29 13:04:43 +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
c56ab0ad4a Merge branch 'master' of github.com:cloudhead/less.js 2012-01-23 11:37:12 +01:00
Alexis Sellier
5c52f4579c Merge pull request #585 from fat/newline-selectors
newline all selectors whose combined length is greater than 25 chars
2012-01-23 01:52:49 -08:00
Jacob Thornton
75419077d7 always newline selector lists 2012-01-20 19:56:18 -08:00
Alexis Sellier
bb5f038615 fix url() imports 2012-01-21 02:30:56 +01:00
Alexis Sellier
031006daf3 (meta) todo paths.unshift fix 2012-01-19 21:14:11 +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
e8ac71c5b0 (minor) add missing semi-colon 2012-01-15 17:23:20 +01:00
Alexis Sellier
469f56843d (dist) 1.2.1 2012-01-15 17:18:40 +01:00
Alexis Sellier
b9dbfc08a4 fix imports on browser 2012-01-15 17:15:17 +01:00
Alexis Sellier
b5dd30f4d4 fix imports on browser 2012-01-15 16:44:03 +01:00
Alexis Sellier
9c344ba5a1 improve error reporting on browser 2012-01-15 16:39:51 +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