203 Commits

Author SHA1 Message Date
Luke Page
ba99755f6b if contrast first argument does not match, pass it through. Fixes #1090 2012-12-30 08:36:00 +00:00
Luke Page
8069e707db fix typo on import 2012-12-28 22:30:09 +00:00
Luke Page
3dc7ce3f92 Do not add .less if the file has an extension already or has url parameters. Also support ';' instead of '?'. Fixes #784 and fixes #204 2012-12-28 21:29:08 +00:00
Luke Page
9829f2409c When adding a path onto an unquoted url, escape characters that require it. Fixes #831 2012-12-28 21:04:28 +00:00
Luke Page
59258f5549 Fix server tests and an import bug when a media import is followed by further imports 2012-12-28 11:08:49 +00:00
Salim Bensiali
e59a93b5fd Relative URLs in LESS files should be relative to the file that defines them.
It is up to the parser and compiler to rewrite them when those files are
imported by another LESS file.

- Modified and added test cases for import and import-once rules
- Fixed difference between client side and server side handling of relative urls
- Added a -rootpath option to lessc to specify another base path for the url
  rewriting. By default, rootpath=''
2012-12-27 20:40:16 +00:00
Luke Page
650073e4f1 Scope fix - default parameters are evaluated in the mixin scope, not the
caller scope. Fixes #973.
2012-11-29 19:48:30 +00:00
Luke Page
60b2aa9a77 Fix multiple scoping issues with variables. Fixes #878 2012-11-29 18:40:45 +00:00
Luke Page
8a6c5e9e4e Add support for @namespace and namespace combinators. Fixes #408 2012-11-28 06:56:50 +00:00
Luke Page
37c3b099c3 interpolation includes unit, but not quote. Use unit function to get old functionality. Fixes #782 2012-11-28 05:42:54 +00:00
Luke Page
8fa2137aa3 support mixin calling when using & to stack classes. Fixes #1026 2012-11-27 20:42:33 +00:00
Luke Page
5dc7ff50f0 Fix argument matching. Fixes #1036 2012-11-27 13:14:04 +00:00
Luke Page
e5fd5abc60 Do not require default mixin. Fixes #926 2012-11-27 09:28:19 +00:00
Luke Page
58787596ec Mixin guards take units into account. Fixes #855 2012-11-27 08:36:31 +00:00
Luke Page
dddda0b0d3 Add support for unicode descriptors. Fixes #1107 2012-11-05 20:30:49 +00:00
Luke Page
8930ad3a44 Re-allow recursive mixins, just not recursive classes. Fixes #1012 2012-10-31 22:16:49 +00:00
Luke Page
6ec856097c self referencing variable gives a proper error (no stack overflow). Fixes #972 2012-10-29 20:22:05 +00:00
Luke Page
0601933239 Fix issue with media queries inside mixins. fixes #999 2012-10-29 19:57:19 +00:00
tscheinecker
1f19a043a5 only include the first @charset definition - subsequent ones will be
rendered as a comment + debugInfo when debugging is enabled.
2012-10-28 14:06:56 +00:00
Luke Page
1175ddc01c Fixi important on mixin calls when mixin has rulesets or comments 2012-10-25 11:52:07 +01:00
Luke Page
df20aae183 Fix error message when performing an operation on a keyword 2012-10-25 07:45:11 +01:00
Luke Page
f3a6761dc5 Look through all scopes for a mixin before giving up. Fixes #413 again 2012-10-24 20:41:32 +01:00
Luke Page
38d2c57016 Make less.js ignore nodes in its own path so infinite recursion does not happen. Fixes #413 2012-10-24 20:16:10 +01:00
Luke Page
e1485dd706 Fix #990 - error message incorrect 2012-10-21 16:16:51 +01:00
Luke Page
1990d8336f Fix problem with name arguments with arguments variable and if you've specified all the arguments 2012-10-21 15:20:23 +01:00
Simone Deponti
8abc60ef26 Minor fixes.
Fixed a bug that could appear with compression enabled,
and minor tabbing issues in tests.
2012-10-07 12:16:10 +01:00
Simone Deponti
ebc41e5c4b Fixed nested media bug. 2012-10-07 12:16:08 +01:00
Simone Deponti
1b0b84551f Wrapped ruleset debug info passing in condition. 2012-10-07 12:16:07 +01:00
Simone Deponti
bbdcc02c8b Fixed some tests.
* Import filenames are okay, line numbers are off by one in some cases
 * The nested media query still makes .tst show up as undefined
2012-10-07 12:16:04 +01:00
Simone Deponti
959e22f5ff Added media query support.
* env.dumpLineNumbers was being lost when doing "offline" compilation
   (within node.js)
 * Added documentation for the changed options
 * --line-numbers now takes a parameter
   (either "comments", "mediaquery" or "all")
 * The system can now again output mediaqueries for FireLESS
 * Moved comments tests in debug/comments, will duplicate
   for mediaquery and for "all"

Everything is still utterly broken though, tests still fail.
2012-10-07 12:16:03 +01:00
Luke Page
538097ec30 Unit tests for debug numbers 2012-10-07 12:16:02 +01:00
Vsevolod Vlasov
2165f29a6f New line is now only inserted between rulesets when not in compress mode. 2012-10-07 12:16:01 +01:00
Vsevolod Vlasov
ccfa7402a1 Added ruleset source line number dumping support for debugging purposes. 2012-10-07 12:16:01 +01:00
Dustin Cass
8019439eb4 Pass env with toCSS in function call evaluation; Add tests; Fixes #957 2012-09-23 17:09:52 +01:00
Luke Page
559231a4db Fix unquoted url's, remove special handling of data. Fixes #733 2012-09-09 10:30:55 +01:00
Luke Page
5b947fde7a Re-implement #598 - in browser mode add on path after evaluation. Fixes #598 and Fixes #294 2012-09-01 16:12:41 +01:00
Luke Page
f020aae779 Make less more protocol agnostic. Fixes #428 and Fixes #742 and Fixes #706 2012-09-01 15:37:15 +01:00
Luke Page
c68d33f94e tighten up two if statements to stop exception in browser mode. fixes #807 2012-09-01 14:44:22 +01:00
Colin Snover
2c75e4f332 Don't try to use variable values that do not exist on the browser. Fixes #190. 2012-08-18 17:35:22 +01:00
Luke Page
473b320c68 Fix bug in media bubbling. Fixes #762 2012-08-12 19:09:54 +01:00
Luke Page
836e805245 eval directives. Fixes #699 2012-08-12 18:03:41 +01:00
Luke Page
5d49ca000e Eval assignments by copying. Fixes #534 2012-08-06 22:02:32 +01:00
Luke Page
a702b282e6 Allow comparing colors and strings. Fix a bug whereby sometimes a mixin-call or import would disappear. This makes the import test fail consistently instead of once out of 8 times depending on async order I think. 2012-08-05 22:47:05 +01:00
Luke Page
63821cdbe6 Fix all the parent combinator issues 2012-07-30 21:41:34 +01:00
Andrew Stone
221e850b89 add support for ratios in media queries 2012-07-28 18:14:48 +01:00
comfuture
94f70f7121 fixed issue #795 2012-05-06 11:13:30 +09: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