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
Felix Gnass
a59801f50d
Test for escaped paths
2012-11-28 05:49:11 +00:00
Felix Gnass
811eb1915c
Make sass-debug-info compatible with DevTools
...
In order to make the debug info compatible with
Chrome's built-in experimental Sass support:
1) The filename must be a file:// URL
2) The path must be escaped rather than quoted
2012-11-28 05:49:10 +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
eabd8ac1ca
add unit function. Fixes #307
2012-11-27 08:21:21 +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
Ville Immonen
d225950f27
Added an option to import files synchronously.
2012-10-28 14:55:39 +00:00
Jakob Stoeck
d5099742d4
only cache imported files when not in development mode, fixes #346 , fixes #47
2012-10-28 14:30:41 +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
f271800353
Support multiple semi-colons like css. Fixes #606
2012-10-25 14:53:47 +01:00
Luke Page
1175ddc01c
Fixi important on mixin calls when mixin has rulesets or comments
2012-10-25 11:52:07 +01:00
unknown
f7959b7190
call less.watch() in non dev mode FIXED
2012-10-25 07:56:11 +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
31ce31295c
Fix #186 - allow selectors to contain other selectors
2012-10-24 14:50:44 +01:00
Luke Page
461b3704fc
Add semi-colons to error function
2012-10-23 17:23:51 +01:00
Luke Page
776a5d87e5
add more scope tests - test what the current behaviour is
2012-10-23 17:22:43 +01:00
Luke Page
5325291f36
Update version number on index
2012-10-23 17:05:47 +01:00
Luke Page
e1485dd706
Fix #990 - error message incorrect
2012-10-21 16:16:51 +01:00
Luke Page
7334bcc34d
Add tests for hsv and hsva
2012-10-21 15:38:29 +01:00
Mehran Kholdi
610fe7b464
Fixed a typo in HSV implementation
2012-10-21 15:31:12 +01:00
Mehran Kholdi
e1dc5a18d1
Cleaned up parts of functions.js
...
making the code more lint-friendly
2012-10-21 15:31:11 +01:00
Mehran Kholdi
695af3d597
Added HSV and HSVA helpers
2012-10-21 15:31:10 +01:00
Luke Page
abf87255f7
Only output stack if it is not a less error
2012-10-21 15:27:06 +01:00
Luke Page
0ab748371c
basic support in definition, clean up and tests
2012-10-21 15:20:24 +01:00
Luke Page
587d6c2338
Add support for ';' as a delimiter
2012-10-21 15:20:24 +01:00