89 Commits

Author SHA1 Message Date
seven-phases-max
fd1182bd69 Added length function (#1542). Added scalar value handling for extract and length (#1576). 2013-10-03 10:04:23 +04:00
Luke Page
15e8897802 if ie compatability is off, do not warn at all about file sizes over IE's
limit. Fixes #1414
2013-09-18 18:07:34 +01:00
Luke Page
0465398ab6 throw an error when the unit function is passed bad input. Fixes #1426 2013-09-18 05:54:38 +01:00
Luke Page
793bb89a2a Test for invalid colors. Fixes #1458 2013-09-16 19:50:05 +01:00
Luke Page
9447421258 switch on latedef option and fix issues. Fixes #1521 2013-09-01 12:34:20 +01:00
Luke Page
e68f47fec5 Merge branch 'sourcemaps-wip' into 1.5.0-wip
Conflicts:
	bin/lessc
	lib/less/env.js
	lib/less/tree/color.js
	package.json
2013-07-31 22:21:44 +01:00
Luke Page
41f53f2fc2 correct radial gradient format to w3c spec 2013-07-30 12:07:15 +01:00
Luke Page
c68352dc17 Fix issue with svg-gradient breaking the opacity 2013-07-30 12:07:03 +01:00
Daniel Stockman
8eeaf87a79 JSHint lib/* and test runners. 2013-07-08 19:09:03 -07:00
Luke Page
cfe9ae7798 Add svg-gradient function. Fixes #1383 2013-07-05 06:51:58 +01:00
Kevin Gillette
3d46350a40 Cleanup. Now responds to env.compress 2013-07-05 06:51:57 +01:00
Kevin Gillette
54a5f74c09 min/max now always reduce compatible terms. 2013-07-05 06:51:56 +01:00
Kevin Gillette
6df4e48976 Added min and max builtins. 2013-07-05 06:51:55 +01:00
Luke Page
de27a6fd88 Add bypass for saturate(5%) filter function. Helps issue #1299 2013-07-05 06:51:05 +01:00
agatronic
572b45a94b Add isunit function. fixes #1298 2013-04-29 16:28:20 +01:00
Luke Page
ac3a92dd30 add clamping to hsl and hsla functions 2013-03-08 08:22:57 +00:00
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
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
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
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
Daniel Stockman
5325a2e4b4 Provide fallback 'mime' object that covers 80% case of data-uri usage. 2013-01-23 19:23:51 +00:00
Marcus Bointon
26d35c98fe Merge pull request #1148 from Synchro/luma
Better implementation of luma
2013-01-23 01:30:26 -08:00
Synchro
8f1bc4badf Better implementation of luma 2013-01-23 09:30:15 +01:00
Synchro
4d5c404dd9 HSV support for #1143 2013-01-23 08:43:12 +01:00
Synchro
3b293be8e2 Fix contrast percentage handling, fixes #1144 2013-01-23 00:32:41 +01:00
ScottRippey
80d9f387c0 Reversed the order of extract's parameters, to match the precedence set
by other functions. Fixes #1119
2013-01-12 12:55:09 +00:00
Gustavo Henke
0ac95336f7 Added function pow() with tests 2013-01-10 22:16:49 +00:00
ScottRippey
454a761e9c Added a new function - extract for extracting padding values from a variable 2013-01-10 22:13:33 +00:00
Luke Page
d5bb30b4db Support angle unit conversion. add trig functions. don't compress angle unit. add mod and abs. Fixes #858 and fixes #240 2013-01-06 13:01:10 +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
4e1e3ab957 Added fullhex function to disable compression of color values in MS filter: values. 2013-01-05 16:33:44 +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
aa9c47b5da move data-uri tests to url.less so they are not run in the browser. add browser tests. make function return url() in the browser 2013-01-05 15:29:45 +00:00
Jay Adkisson
2394c0065e guess the mimetype, and properly encode non-base64 uris 2013-01-05 15:29:44 +00:00
Jay Adkisson
5b241fd3a7 throw an error if data-uri is used in the browser
and move require('fs') into the function, so other things
still work in the browser.
2013-01-05 15:29:43 +00:00
Jay Adkisson
24e41081ef add a data-uri function
as described in a comment on #775
2013-01-05 15:29:42 +00:00
Salehen Rahman
d56e0a476d Added the square root function. 2013-01-05 15:29:41 +00:00
Luke Page
d26159e5c6 Correct unit merge 2013-01-05 15:29:40 +00:00
Marcel Jackwerth
c98495a100 Correct handling of units.
width: 1cm - 5mm
=> width: 0.5cm (instead of -4cm)

@ratio: 100px/50px
=> @ratio == 2 (instead of 2px)
2013-01-05 15:29:31 +00:00
Luke Page
ba99755f6b if contrast first argument does not match, pass it through. Fixes #1090 2012-12-30 08:36:00 +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
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
eabd8ac1ca add unit function. Fixes #307 2012-11-27 08:21:21 +00: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
Synchro
f8bee84fdf Implement tint and shade functions 2012-09-23 17:16:23 +01:00