Commit Graph

872 Commits

Author SHA1 Message Date
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
Simone Deponti
84908b0038 Updated .gitignore (for emacs) 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
Will
5eca0142c9 Check XHR return type appropriately
Asynchronous file XHRs need to listen for onreadystatechange.
2012-10-07 12:09:47 +01:00
Will
6bdd800bb6 Allow configuration of asynchronous XHR
Set less.async and/or less.fileAsync to true before including less.js to
force asynchronous XHR requests to be used.  fileAsync is introduced
as a separate setting to maintain existing semantics, as previously changing
less.async to true would only affect http protocol XHRs.
2012-10-07 12:09:47 +01:00
Synchro
f8bee84fdf Implement tint and shade functions 2012-09-23 17:16:23 +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
819d6b0ce6 Support for escaped characters in attributes and unit tests moved into css-escapes 2012-09-23 17:06:21 +01:00
Thomas Grainger
2ee4a47c93 add namespaced element selector test case from angular.js 2012-09-10 16:20:40 +01:00
Luke Page
55d6e5a0ba Allow multiline javascript expressions, fixes #885 2012-09-09 10:35:27 +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
3031517c13 Review comments from @cloudhead - alter chunker to not chunk @{X} and
simplify process and depreciated != deprecated
2012-09-09 10:27:22 +01:00
Luke Page
7f466c1bfe New selector interpolation 2012-09-02 11:47:41 +01:00
Luke Page
f6917c8fa6 At least catch no browser storage rather than balking 2012-09-01 17:12:32 +01:00
Luke Page
5f99bd22e9 Fix error messages in the browser for imported files with duplicate names (different directory) and links. Fixes #932 2012-09-01 16:45:46 +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
f171f725a4 Fix broken test, we should continue the discussion on fixing this in #331 rather than break the tests 2012-09-01 14:58:20 +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
Luke Page
fc2809c969 Add tests for #618 2012-08-30 20:26:08 +01:00
Sergey Yuferev
86520e53e8 added fraction support to round function 2012-08-30 20:22:08 +01:00
Anders Hellerup Madsen
d81ba3bb38 add support for utf-8, fixes #396 (this time less messy commit) 2012-08-30 20:08:48 +01:00
Luke Page
96ef26a9ff Revert commit mistake 2012-08-24 06:45:28 +01:00
Luke Page
bd8679b4c6 Fix error unit tests to run on any computer 2012-08-21 07:20:23 +01:00
Luke Page
85ddc9f4e7 Add parent selector to user variable 2012-08-19 12:02:58 +01:00
Rubens Mariuzzo
0a5245b2c3 8 more blending modes added: multiply, screen, overlay, hardlight, difference, exclusion, average & negation. 2012-08-19 10:25:34 +01:00
Rubens Mariuzzo
6e97b8f694 Soft light blending mode added. 2012-08-19 10:25:16 +01:00
Luke Page
6696368eb3 Remove UTF8 BOM - fixes #650 2012-08-19 09:36:06 +01:00
Luke Page
e94b5b616a Fix other whitespace issue brought up in #406 2012-08-19 08:30:41 +01:00
Luke Page
5ed4b189ac Add whitespace tests for previous commit - newline in selectors 2012-08-19 08:13:48 +01:00
revolunet
9e8330a256 fix #31 and #406
Conflicts:

	lib/less/parser.js
2012-08-19 08:09:24 +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
Lucas Green
e812e16656 Added: red() green() and blue() functions, with tests. 2012-08-18 16:50:20 +01:00
Desmond Brand
56f11e9666 Fix #423 by preserving order of link/style elements
Appending generated css to the head element is confusing because it
changes the order of style declarations. If there are regular css link
or style elements after the less link element, less declarations with
equal specificity will override css declarations that come later in the
document.

This change preserves the original order by inserting the generated css
immediately after the less link element.
2012-08-18 11:29:35 +01:00
Luke Page
8de8492d35 Fix mixin calls being recognised as mixin definitions when arguments contain spaces and interpolated strings. Fixes #901 2012-08-16 20:24:55 +01:00
Luke Page
2d8ede3436 remove process.exit calls as they do not guarentee a flushed stdout 2012-08-15 21:14:06 +01:00
Matt
fb21a897f6 Add some content to lessc help
Added some details to lessc and extracted a printUsage method.

Fixes #817
2012-08-15 18:53:35 +01:00
Matt
5132c71a5b Fix error output and extract a helper object for lessc related methods
- Fixed a bug, which prevents colors from being set in error messages.
- Created a helper object for lessc methods and moved the stylize function
  into it. Changed test/less-test.js and lib/less/index.js to use new methods.
- Removed duplicate definitions of the stylize function.
2012-08-15 18:53:35 +01:00
Luke Page
b65d420353 Fix typo in rhino. Fixes #896 2012-08-15 18:50:48 +01:00
Sindre Sorhus
3925c73305 Convert CHANGELOG to Markdown
+ add release dates
2012-08-15 18:40:38 +01:00
Marcus Bointon
bb0886fcc9 Add contrast function following the same format as sass. Added tests.
Added luma calculation.
2012-08-12 20:38:03 +01:00
Luke Page
7fc6275ba8 Move Amd module definition. Fixes #777 2012-08-12 20:04:58 +01:00
Luke Page
e0fc8986cb Add test for #826 2012-08-12 19:44:06 +01:00
Colin
5f9cf904e7 Only set media type when one is present
Defaulting to media="screen" causes the
browser to ignore inline @media print
and other queries.

Fixes #612
2012-08-12 19:18:03 +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
861b63ce08 close the file written to in lessc. Fixes #570 2012-08-12 17:39:20 +01:00