Commit Graph

94 Commits

Author SHA1 Message Date
hokaccha
e793e81e92 Add Sass like extend 2013-01-05 15:29:32 +00:00
Luke Page
ebea51873e 1.4.0 version 2013-01-05 15:29:29 +00:00
Luke Page
a9775a34da (dist) build 1.3.3 2012-12-30 09:35:49 +00:00
Luke Page
d30e0e1a33 (dist) build 1.3.2 2012-12-28 22:30:10 +00:00
Luke Page
eb5c9fbf5d Relative url's option for node lessc 2012-12-28 15:25:15 +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
22a4a0c874 tidy code up, change to callback errors instead of system exit 2012-12-22 19:38:24 +00:00
mar
34a5184af0 support for @import linking to .less files over HTTP 2012-12-22 19:03:41 +00:00
Luke Page
8cfe7acdae make import-once use the full path, not the possibly relative path to determine if an import has already been included 2012-12-22 10:21:28 +00:00
Luke Page
b9061ac621 Look in the current directory last when looking for imports. Fixes #1083 2012-12-22 08:27:56 +00:00
Luke Page
dddda0b0d3 Add support for unicode descriptors. Fixes #1107 2012-11-05 20:30:49 +00:00
Ville Immonen
d225950f27 Added an option to import files synchronously. 2012-10-28 14:55:39 +00:00
Luke Page
5325291f36 Update version number on index 2012-10-23 17:05:47 +01:00
Luke Page
abf87255f7 Only output stack if it is not a less error 2012-10-21 15:27:06 +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
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
Paulo Gaspar
66bbb9a44a Fix for issue 592. Additional removal of TODOs and Rhino support by
@agatronic.
2012-08-11 16:40:59 +01:00
Matt
3be05a1c7b Remove trailing ANSI escape sequences in no-color mode
Added a 'reset' code to the stylize function and changed the previously
hard-coded ANSI escape sequence string to a function call.
2012-08-05 11:57:35 +01:00
skoni
be675c6566 Move error formatting to a seperate function 2012-08-05 11:26:12 +01:00
Andrew Stone
221e850b89 add support for ratios in media queries 2012-07-28 18:14:48 +01:00
Alexis Sellier
3fb212d9c3 (dist) 1.3 2012-03-10 20:29:10 +01:00
Marcel Jackwerth
53b67e79fe moved @media code to own file 2012-02-16 20:56:21 +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
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
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
031006daf3 (meta) todo paths.unshift fix 2012-01-19 21:14:11 +01:00
Alexis Sellier
469f56843d (dist) 1.2.1 2012-01-15 17:18:40 +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
6d4516e6fc improve errors from imported files 2012-01-09 20:39:24 +01:00
Alexis Sellier
1078c8b3d2 (dist) version bump 1.2.0 2012-01-05 21:33:02 +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
ff3d7c61ff properly support @media and @import features 2011-12-17 17:41:54 +01:00
Alexis Sellier
96689e4f37 fix error output on unexpected errors 2011-12-16 19:06:24 +01:00
Alexis Sellier
3e31cc17f0 fix error reporting when index == 0 2011-12-16 17:40:56 +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
867014c4b9 (dist) version bump 2011-12-10 14:19:45 +01:00
Alexis Sellier
b44d2dc9fe merge named-colors patch 2011-12-10 13:41:20 +01:00
Alexis Sellier
920034233b Merge pull request #458 from fat/assignment-entities
Assignment entities
2011-11-24 16:14:39 -08:00
Alexis Sellier
85a681de2f require 'util' instead of 'sys' 2011-11-14 11:50:56 +01:00
Jacob Thornton
56fc8fe510 clean up + add test 2011-11-13 00:21:03 -08:00
Alexis Sellier
7401f5aed3 Merge pull request #445 from jlaire/patch-1
fix undefined reference
2011-11-12 05:09:26 -08:00
Alexis Sellier
c290c48b3f node 0.5.x compatibility 2011-11-12 13:13:36 +01:00
Johannes Laire
0e6046e00d initialize 'options' before using it 2011-11-04 02:30:12 +02:00
Alexis Sellier
198f7c9d96 fix additional paths not being loaded 2011-10-18 15:31:46 -07:00
cloudhead
041f119b13 add '--no-color' option 2011-08-22 08:20:05 -04:00
revolunet
63c028b9bf implement named color conversion 2011-07-08 00:55:59 +02:00