Commit Graph

782 Commits

Author SHA1 Message Date
Luke Page
5d54af2039 import interpolation finished. refactored the import phase to occur only within the import visitor - so that the import eval env can be passed between imports. 2013-03-01 13:40:54 +00:00
Luke Page
14cee5d04f first test and fixes for simple implementation 2013-03-01 13:40:53 +00:00
Luke Page
9280b53291 make import visitor stack up frame scopes 2013-03-01 13:40:51 +00:00
Luke Page
57b41f0ea0 make import use shared relative path function 2013-03-01 13:40:50 +00:00
Luke Page
290d7a055c organise the import node a bit better. eval the node before fetching 2013-03-01 13:40:49 +00:00
Luke Page
e63c8c5868 Move importing into visitor 2013-03-01 13:40:03 +00:00
Luke Page
39f669e83c Add import visitor 2013-03-01 13:40:01 +00:00
Luke Page
c56db94b7d Add modified (self altering) visitor pattern and class 2013-03-01 13:40:00 +00:00
Luke Page
9b256f2340 whitespace 2013-02-28 20:17:52 +00:00
Luke Page
494c5f2681 extend options, algin with decided syntax 2013-02-28 17:07:45 +00:00
Ben Loveridge
a7c9a853e9 patch for issue 163 2013-02-26 20:27:35 +00:00
Luke Page
28b8967205 Use original node so that original seperator is used instead of the native one. Fixes unit tests on windows. 2013-02-26 19:02:38 +00:00
Daniel Stockman
feed74f3bd Fallback url() value for data-uri function should be quoted. 2013-02-26 18:55:39 +00:00
Daniel Stockman
51387047da Wrap data-uri warnings in an env.silent check, silencing test set. 2013-02-26 18:55:38 +00:00
Daniel Stockman
b9bc6e73a0 Pass silent and verbose flags to evalEnv. 2013-02-26 18:55:37 +00:00
Daniel Stockman
08175320f8 Functions use evalEnv, not parseEnv. (move ieCompat env flag) 2013-02-26 18:55:36 +00:00
Daniel Stockman
e4fe935ea1 Prevent data-uri function from embedding files larger than 32KB.
Although IE8 does support data-uris, it only does so with a limit of 32KB. It's a silly limitation, but a source of potential bugs. When the limit is exceeded, the data-uri() function will simply return a normal url() value with a relative path to the asset.

One may pass --no-ie-compat to lessc to avoid this safeguard.
2013-02-26 18:55:35 +00:00
Luke Page
241c830e10 Support reading other arguments as default parameters. Fixes #43 2013-02-17 22:25:38 +00:00
Luke Page
e7cbc4c190 Fix data-uri relative url to be relative in the same way as normal url's 2013-02-17 12:44:31 +00:00
Luke Page
f68337e450 change data-uri to look at the file relative to the root or current less file. Fixes #1186 2013-02-16 22:11:01 +00:00
Luke Page
21cc34b608 Fix #791 - avoid engineering syntax in dimensions 2013-02-16 20:45:34 +00:00
Luke Page
d01d2e9bfb do not pollute the parent scope after mixin call if variable is defined 2013-02-16 15:15:38 +00:00
Luke Page
156911aa11 make root slash non greedy 2013-02-16 14:54:13 +00:00
cahnory
8ef5043b78 Update lib/less/browser.js
Add support to "file:///" url which could be useful using "--disable-web-security" without a web server.
2013-02-16 14:48:44 +00:00
Luke Page
d70769bfb7 variables in media queries in import statements 2013-02-16 14:44:58 +00:00
Luke Page
ab3ddf413d Fix rhino merge error. Fixes #1184 2013-02-16 10:02:50 +00:00
Luke Page
178696d141 Allow any casing for functions. Fixes #1168 2013-02-15 22:15:08 +00:00
Luke Page
0396a59eb6 Fix small mistake - allow null options 2013-02-15 21:49:19 +00:00
Luke Page
914eb404d7 Fix import errors in browser mode. Fixes #1117 and fixes #1118 2013-02-10 12:47:25 +00:00
Luke Page
681725f0d2 Once applying the rootpath, null it so it will not be applied again 2013-02-09 12:40:08 +00:00
Luke Page
88f3f02213 Correct some error inconsistancies. Add browser testing of errors - import missing error fails because of #1117 2013-02-05 22:38:43 +00:00
Luke Page
d9d959fd21 Ensure error thrown uses 'type' not 'name' 2013-02-03 11:55:34 +00:00
Luke Page
c2880a9baa double brackets does not leave brackets behind, to align with the most common scenarios 2013-02-02 23:57:31 +00:00
Luke Page
6cd6fb2585 Do not allow space seperated values inside parens. Fixes #952 2013-02-02 23:53:38 +00:00
Luke Page
a490bc12bf Fix comments test 2013-02-02 16:53:03 +00:00
Luke Page
e21bf1d7a1 Legacy maths mode supports old special cases for font property and media queries 2013-02-02 15:49:43 +00:00
Luke Page
d395adc55b remove shorthand 2013-02-02 15:39:59 +00:00
Luke Page
2ffdefa248 Preserve whitespace in operations 2013-02-02 15:30:19 +00:00
Luke Page
c27922890d Add tests for strict unit errors 2013-01-31 07:06:59 +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
Daniel Stockman
5325a2e4b4 Provide fallback 'mime' object that covers 80% case of data-uri usage. 2013-01-23 19:23:51 +00:00
Luke Page
e45ec8a31e refactoring - add a env type to better organise its properties 2013-01-23 19:07:29 +00:00