Luke Page
a490bc12bf
Fix comments test
2013-02-02 16:53:03 +00:00
Luke Page
2ffdefa248
Preserve whitespace in operations
2013-02-02 15:30:19 +00:00
Luke Page
3ef22f16f9
Add strictUnits option, add tests for legacy behaviour
2013-01-30 20:31:26 +00:00
Luke Page
988d378922
add evalEnv class and strictMaths option
2013-01-25 20:05:37 +00:00
Luke Page
531195c92d
take maths further
2013-01-24 22:27:17 +00:00
Luke Page
3b5ecf5421
Fix merge issues and a code review comment. revert unit change that outputs px*px as it is not valid css
2013-01-23 21:43:39 +00:00
Dustin Cass
e6ea7b42ab
Fix CSS output for compression
2013-01-23 20:41:12 +00:00
Dustin Cass
abaf4c6b68
Arithmetic within mixin calls must be in nested parentheses; Added tests for mixins
2013-01-23 20:41:11 +00:00
Dustin Cass
241b9d23a4
Remove spaces around slashes in final CSS output and update tests to reflect that; Added a couple shorthand tests
2013-01-23 20:37:49 +00:00
Dustin Cass
bf1823f109
Removed Shorthand and Ratio parsers; Fixed some issues with paren depth state; Adjusted tests to pass on new output
2013-01-23 20:37:48 +00:00
Dustin Cass
4545b01939
Division only when inside parentheses
2013-01-23 20:32:17 +00:00
Luke Page
e45ec8a31e
refactoring - add a env type to better organise its properties
2013-01-23 19:07:29 +00:00
Luke Page
703aa928fc
Add tests for compression. remove fullhex function - make colors not compress when used in strings.
2013-01-06 10:33:31 +00:00
Spocke
432f89aaf4
Fixed issue where the compress value wouldn't get passed around correctly.
2013-01-05 16:36:17 +00:00
Luke Page
4c2d01a316
make env available to functions. Fix the path for the data-uri function in the browser. Fixes #997
2013-01-05 15:29:45 +00:00
Luke Page
97d0b0205b
Rudimentary support for extend in selectors
2013-01-05 15:29:38 +00:00
Luke Page
c1efcf4e57
Change extend format to :extend(.class); - part 1 - support for stand-alone &:extend(.class);
2013-01-05 15:29:37 +00:00
Jordan Harband
d9f929a063
- Change the default behavior of "@import" to only import once.
...
- Add @import-multiple if for some insane reason you want multiple imports.
- Continue to support @import-once for backwards compatibility.
- Fixes #212 .
2013-01-05 15:29:36 +00:00
Luke Page
ecc9b0606b
Fix merge errors/problems and change format to ++
2013-01-05 15:29:35 +00:00
hokaccha
e793e81e92
Add Sass like extend
2013-01-05 15:29:32 +00:00
Marcel Jackwerth
61e7bd6fb1
loosened restriction on css units (who knows what W3C will think up next)
2013-01-05 15:29:32 +00:00
Luke Page
2f5b0a6a0a
Remove deprecated string interpolation
2013-01-05 15:29:30 +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
5b3851720a
browser support for rootpath and relative urls, with test
2012-12-28 20:32:26 +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
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
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
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
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
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
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
8a6c5e9e4e
Add support for @namespace and namespace combinators. Fixes #408
2012-11-28 06:56:50 +00:00
Luke Page
dddda0b0d3
Add support for unicode descriptors. Fixes #1107
2012-11-05 20:30:49 +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
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
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
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
Charles Lowell
fc8393d555
alternative to throwing an object literal.
...
create a real exception and extend it with the
custom properties that less needs to satisfy its
error generator. An alternative to the solution
proposed in cloudhead/less.js#963
2012-10-21 15:15:45 +01:00
Simone Deponti
ebc41e5c4b
Fixed nested media bug.
2012-10-07 12:16:08 +01:00
Simone Deponti
126667d4a0
Removed the passing around of an env.filename that is wrong when doing imports.
2012-10-07 12:16:06 +01:00
Simone Deponti
fd7a829079
getLocation() seems to return lines starting at 0, therefore we have to add 1.
...
This fixes the off-by-one bug,
and is consistent with what is done at line 238 in 'parser.js'.
2012-10-07 12:16:06 +01:00