Commit Graph

25 Commits

Author SHA1 Message Date
Luke Page
11fd6b17dc Default svgs to not be base64 encoded. encodeUri the svg-gradient function (and never base64 encode it). Fixes #2250 2015-01-03 14:59:51 +00:00
Luke Page
f0780394fb Fix data-uri to count characters not the size of the file. 2015-01-01 19:06:05 +00:00
Luke Page
26fe1c4861 Merge pull request #2337 from bassjobsen/patch-1
Better output for the warning when file size exceeds
2015-01-01 19:54:41 +01:00
Luke Page
6b88f31ed5 Merge branch 'hotfix/isunit-empty' of https://github.com/chromice/less.js
Conflicts:
	lib/less/functions/types.js
2015-01-01 17:56:36 +00:00
Luke Page
4704583540 Support empty as a valid argument for isunit. Fixes #2324 2015-01-01 17:49:12 +00:00
Luke Page
e334d69be4 Fix inconsistancy with encoding base64 with data-uri - wasn't calling right function 2015-01-01 17:09:25 +00:00
Luke Page
3f6abd18fe also fix data-uri when in a sub-directory and a mixin with relative paths 2015-01-01 16:50:40 +00:00
Luke Page
99da1f21a3 revert original fix for #2360 and fix #2360 by constructing the URL using a Quoted type instead of an anonymous one, since the url is quoted. 2015-01-01 16:41:02 +00:00
Bass Jobsen
0dfb2416d1 Better output for the warning when file size exceeds
As far as i understand does the logger.warn() function not accept such string neither has Less a built-in string format  function?
2014-12-15 12:02:22 +01:00
Anton Muraviev
ab8deae516 Handle the missing second argument to isunit() with an appropriate error message. 2014-12-07 12:45:50 +00:00
Anton Muraviev
56b739c153 Fix isunit() not able to check if dimension is unitless, i.e. unit is empty. 2014-12-04 22:47:22 +00:00
Luke Page
06dd4ace45 Fix the data uri function - was not using the current directory and not working if no mime type is given 2014-11-28 17:40:12 +00:00
Luke Page
4b1a200686 IE8/IE9 support 2014-11-02 13:50:04 +00:00
Luke Page
9d535c0470 Whitespace - undo unusual new() syntax 2014-10-19 16:57:22 +01:00
Luke Page
845ec72131 improve error reporting 2014-10-19 16:48:04 +01:00
Luke Page
8d431179e5 Add logger 2014-10-05 20:36:23 +01:00
Luke Page
dedf0eee38 rename env to context to avoid confusion with environment 2014-10-05 18:50:34 +01:00
Luke Page
7a6b1e278b Pull out the file manager aspect of the environment so new file managers can be added dynamically 2014-10-04 17:46:30 +01:00
Luke Page
fb6c879cc4 remove env from all environment calls except the ones that actually need it 2014-09-21 16:46:44 +01:00
Luke Page
e357dae7bc allow lessc to load plugins. rename visitor directory to visitors to match others. Fix indexes in URL 2014-09-09 21:20:04 +01:00
Luke Page
1a78cd5901 Remove unnecessary text from require statements 2014-09-08 00:57:50 +01:00
Luke Page
ca72b4d92f Clean up dependency injection so environment is injected at the top level 2014-08-26 22:26:27 +01:00
Luke Page
fe5e2bf7cb remove dependency injection from functions files apart from when needed for environment 2014-08-24 18:33:03 +01:00
Luke Page
16746e9b1e untangle the mess of dependencies and remove all circular dependencies. Remove un-necessary dependency injection. 2014-08-24 17:55:46 +01:00
Luke Page
d7e7ddba44 move functions into its own folder and give it a set interface 2014-08-16 13:17:35 +01:00