50 Commits

Author SHA1 Message Date
Natalie Weizenbaum
657972cc41 Update my name. 2016-05-05 14:17:07 -07:00
Matthew Dean
bcc8ced8b0 Merge pull request #2754 from Synchro/master
Update contrast function and tests, fixes #2743
2016-03-15 09:52:40 -07:00
Luke Page
29f8ae22cc upgrade jshint and fix new errors 2016-01-30 08:29:47 +00:00
Synchro
6dd409aba3 Update contrast function and tests 2015-12-07 13:50:35 +01:00
jurcovicovam
e8efa6e033 Percentage should work the same way as other math functions (round, floor,
etc) and throw error on NaN. #2553
2015-07-20 14:31:53 +02:00
seven-phases-max
13ef5b7422 proper non-primitive value replacement for % and replace functions 2015-03-31 19:35:22 +04:00
Luke Page
a6dca8872a Merge pull request #2504 from bassjobsen/relative
optional relative amounts for color functions, see#975
2015-03-20 08:22:44 +00:00
Bass Jobsen
622a521b11 optional relative amounts for color functions, see#975 2015-03-15 00:12:47 +01:00
rjgotten
94d3f469d4 merge from upstream 2015-03-05 16:12:56 +01:00
rjgotten
d119e01807 Scoped @import (plugin) functions loading
- Limited @import (plugin) support to add/addMultiple of functions
- Altered @import (plugin) loading to support browser
- Support proper closure scoping of @import (plugin) loaded functions
2015-03-05 15:55:37 +01:00
Luke Page
7d86a5e72d Temp. fix for comment nodes in functions. Fixes #2475 2015-02-26 18:22:39 +00:00
Bass Jobsen
121bdd8365 allow a list of colors as argument for the svg-gradient function 2015-02-11 20:35:28 +01:00
Luke Page
97d039f267 extract and length now skip over comment nodes. Fixes #2431 2015-02-04 17:28:48 +00:00
Luke Page
604c911441 style cop 2 - indentation 2015-01-30 20:41:25 +00:00
Luke Page
1494e25ef0 More style cop.. 2015-01-30 18:28:02 +00:00
Luke Page
d206167c84 enforce spaces between operators for consistency 2015-01-27 22:24:12 +00:00
Luke Page
dc703deaf0 laxbreak 2015-01-27 22:02:05 +00:00
Luke Page
08a7f9ebeb more whitespace rules 2015-01-27 21:38:13 +00:00
Luke Page
31c3d04980 jscs style checking. Fixed whitespace issues. 2015-01-26 23:34:35 +00:00
Luke Page
b09f30e079 support variables passed to data-uri 2015-01-26 20:17:27 +00:00
Luke Page
8ed6a9748e Merge pull request #2392 from Justineo/isruleset
add support for `isruleset`
2015-01-15 07:23:15 +01:00
Justineo
297ac17dda add support for isruleset 2015-01-15 12:12:39 +08:00
shaun
023dd62c88 Make copy of options before each test set.
Some operations modify the options object, which could influence the next
test set.
Modified the test labels in the output to include the
folder (to distinguish between the normal and BOM tests).
Modified warning message from data-uri file-not-found to include the
filename.
2015-01-14 08:26:39 -08:00
seven-phases-max
112bfec4e5 fixes svg-gradient function broken by prev. color object changes 2015-01-11 22:13:12 +04:00
seven-phases-max
f0d7b6a9fa allow colour keywords to serve as variable names (for @@) 2015-01-11 04:45:30 +04:00
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