967 Commits

Author SHA1 Message Date
Luke Page
a9775a34da (dist) build 1.3.3 v1.3.3 2012-12-30 09:35:49 +00:00
Luke Page
531ae27d14 Update changelog for 1.3.3 2012-12-30 08:44:45 +00:00
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
4f475456d5 fix parser bug with mixin call being interpretted as selector. Fixes #1091 2012-12-29 22:58:02 +00:00
Luke Page
d30e0e1a33 (dist) build 1.3.2 v1.3.2 2012-12-28 22:30:10 +00:00
Luke Page
8069e707db fix typo on import 2012-12-28 22:30:09 +00:00
Luke Page
1ca6d8795f Update changelog for 1.3.2 2012-12-28 22:17:41 +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
5b3851720a browser support for rootpath and relative urls, with test 2012-12-28 20:32:26 +00:00
Luke Page
75a92bdc44 Add tests for static urls 2012-12-28 16:40:06 +00:00
Luke Page
eb5c9fbf5d Relative url's option for node lessc 2012-12-28 15:25:15 +00:00
Luke Page
addf87a75f Fix browser tests by moving url re-writing tests to urls.less. Also fix browser rootpath. 2012-12-28 12:38:49 +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
37729e17af Added missing newline at end of file 2012-12-27 20:43:55 +00:00
Salim Bensiali
7396e3438e Added documentation for the -rp, --rootpath option. 2012-12-27 20:41:51 +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
b0d4135eee Fix comment chunking. Fixes #1082 2012-12-22 18:36:09 +00:00
Luke Page
d0512b1ce2 Make import-once fix, but for the browser 2012-12-22 18:10:49 +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
eb7242da30 Test that import paths load from the current directory first 2012-12-22 07:53:41 +00:00
Luke Page
40cfe5adf2 Update CONTRIBUTING.md
add developing information
2012-12-21 16:26:21 +00:00
Luke Page
aab2be61cb unbundle css min. Add optional dependency on ycssmin. Correct some things in the package.json. Add a .npmignore. Fixes #1080 2012-12-20 23:16:54 +00:00
Hakan Bilgin
26c450d344 Function "modifyVars" added
The function "modifyVars" the option to modify variables in the
less-file without reloading less-file, including potential
import-files declared with "@import".
2012-12-16 09:36:44 +00:00
Damien Whitten
90882cd070 parser.imports passing errors
parser.imports stored any errors in .error, but only returned an error to the callback on that last import in the queue.

This commit makes it return the stored error (that.error).

issue #463
2012-12-16 09:15:33 +00:00
Luke Page
8325548b7f bad error message trying to assign @@var. Fixes #1077 2012-12-16 08:57:16 +00:00
Luke Page
c35b6d733e Add browser specific url tests 2012-12-16 08:45:52 +00:00
Luke Page
6554117643 Add initial browser test suite using phantomjs for headless testing and jasmine 2012-12-16 08:45:51 +00:00
Luke Page
ee4c0c8660 Update CONTRIBUTING.md 2012-12-14 09:53:15 +00:00
Luke Page
aa9c55fca1 Create CONTRIBUTING.md 2012-12-14 01:52:10 -08:00
Daniel Stockman
a62e8f6c00 Log output file written when verbose.
This helps CI builds keep a record of exactly what happened, among other things.
2012-12-12 23:00:16 +00:00
Daniel Stockman
092f81d452 Back-compat for existsSync in directory check
fs.existsSync was added in 0.6, and path.existsSync was added in 0.4.2:

http://nodejs.org/docs/v0.4.2/api/path.html#path.existsSync
2012-12-12 23:00:15 +00:00
Daniel Stockman
f4105114f0 lessc: Defend against missing output directories
If an output specifies a destination inside a directory that doesn't exist, it blows up unceremoniously. Let's avoid that.

Also, uses modern fs.writeFileSync instead of manual open/write/closeSync.
2012-12-12 23:00:14 +00:00
Luke Page
be2c938944 allow less files to have query paramaters. Fixes #788 2012-12-12 22:54:33 +00:00
Luke Page
e69acbdc51 basic comments parsing in mixin arguments. comments need more work and a general solution though. fixes #1071 2012-12-11 21:38:39 +00:00
Luke Page
033abfd8be do not divide by 100 when doing maths and keeping the %. Fixes #1069 2012-12-11 21:38:38 +00:00
Rok Garbas
abb6b999c6 less element (sheet) might not be located in head 2012-12-11 04:38:33 +01:00
Toby Cole
d47668f4a2 Updating parser to allow dimensions starting '+'
According to http://www.w3.org/TR/CSS2/syndata.html#numbers,
numbers may start with a '+'.
Also updates the test suite to include at least one dimension
starting with '+'
2012-12-09 16:24:18 +00:00
Luke Page
2602833d38 Allow escaped charcaters in less filename url. Fixes #982 2012-12-09 16:11:08 +00:00
Luke Page
2d73502955 Fix tests and report error at index -1 so it is a valid index 2012-12-09 15:42:14 +00:00
Nick Kaijaks
f49694fc8f Report error for under-matched as well as overmatched braces 2012-12-08 16:37:54 +00:00
Luke Page
e3268e12b2 detect parse errors, even with an import. fixes #1053 2012-12-08 13:38:22 +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
952960c934 20% of a colour is not 0.20 but 51. fixes #454. Fix from @unknownbrackets 2012-11-29 16:27:55 +00:00
Luke Page
8a6c5e9e4e Add support for @namespace and namespace combinators. Fixes #408 2012-11-28 06:56:50 +00:00
Luke Page
3dcf057fdb Refix tests to work on unix and windows 2012-11-28 05:58:08 +00:00