139 Commits

Author SHA1 Message Date
jurcovicovam
0f8bd724f8 Fragment handling in data-uri function 1959
The change removes #fragment from filePath before readig the file and adds
it back to the end of the generated uri.
2014-08-03 13:20:02 +02:00
seven-phases-max
91fdb3940f don't round values returned by colour query functions. 2014-06-19 22:43:28 +04:00
seven-phases-max
7a1c534e1b Fixes e(""). 2014-05-17 21:29:10 +04:00
Luke Page
501b7fa9a6 use graceful fs for file actions 2014-05-11 07:44:33 +01:00
Luke Page
6214b0f93c add comment, make + clearer by changing to Number constructor 2014-05-06 06:27:55 +01:00
seven-phases-max
46c12ef664 reworked internal decimal rounding function. 2014-04-04 07:38:03 +04:00
Luke Page
17a92e3f9b Merge pull request #1890 from roelvanduijnhoven/feature/luma-definition
Let `luma` follow spec
2014-02-27 19:53:41 +00:00
Roel van Duijnhoven
e7389a0e7a Introduce luminance function.
The behaviour of this function is identical to luma prior to LESS 1.7.
2014-02-27 08:45:24 +01:00
Luke Page
beb52739c0 allow % to be passed to the unit function. Fixes #1550 and fixes #1571 2014-02-23 17:09:33 +00:00
seven-phases-max
768a5cbc84 minor % func improvement: preserve quote char and escaped flag, updated tests. 2014-02-18 18:56:46 +04:00
seven-phases-max
d3c0b204c7 minor replace func improvement: preserve quote char and escaped flag. 2014-02-18 15:22:14 +04:00
Luke Page
6117a33f50 Merge pull request #1855 from jakebellacera/adding_replace_function
Adding replace function
2014-02-17 22:32:27 +00:00
Luke Page
9749d20c3d Fix tests, fix a bug in comparing values 2014-02-11 21:09:06 +00:00
Luke Page
dff83f8d97 Merge branch 'master' of https://github.com/deviprsd21/less.js 2014-02-11 20:38:12 +00:00
Jake Bellacera
98f48bcb78 Replacing replace's options to flags 2014-02-06 23:41:18 -08:00
Jake Bellacera
089bf1b78a Adding replace function
* renamed gsub function to replace
* reordered replace's function arguments to be much more readable
* added support for replacement (Regexp) options
2014-02-06 23:29:14 -08:00
Jake Bellacera
fda1774ddb Merge upstream into adding_gsub_function 2014-02-06 17:29:42 -08:00
Luke Page
8580ff8c10 Merge pull request #1814 from seven-phases-max/numeric-precision
Rounding of output numbers.
2014-01-21 04:27:59 -08:00
seven-phases-max
52ba472bb7 Added rounding of output numbers (hardcoded to max. 8 digits in this commit). 2014-01-18 09:58:14 +04:00
deviprsd21
8ccadb8593 Removal of zero, unitonly changed to obtain 2014-01-15 18:28:34 +05:30
deviprsd21
7bbf7cef97 max/min Bugfix
max(0, 1cm)// 0 ... 0 assumed unit "m". on comparison 0.01m was less than 0
2014-01-15 17:46:17 +05:30
meri
85197ee577 Merge branch 'master' of https://github.com/less/less.js into rhino
Conflicts:
	.gitattributes
	README.md
	test/index.js
2014-01-14 22:48:46 +01:00
deviprsd21
82ab17c082 Consistency fixes 2014-01-13 18:20:43 +05:30
deviprsd21
7fc12014f2 Error handlers for min/max functions 2014-01-12 10:47:55 +05:30
deviprsd21
b77b02091a Improved min/max function, 2 new Built in function
max(0, 1em, 2, 4px) //returns max(2, 4px) on the basis of first enter basis, as 2 gets em unit. Now em and px are incompatible till latest version of LESS.
2014-01-11 17:53:57 +05:30
deviprsd21
0f2926b4d8 Update functions.js
max(0, 1em, 2, 4px) //returns max(2, 4px) on the basis of first enter basis, as 2 gets em unit. Now em and px are incompatible till latest version of LESS.
2014-01-11 17:52:25 +05:30
deviprsd21
bf2a49a12e Improved min/max function, 2 new Built in function
max(0, 1em, 2, 4px) //returns 4px on the basis of first enter basis. Previous calculation would result in max(2, 1em, 4px). Here, 2 and 1em is compared, 2 is returned. then 2 and 4px is compared. Resulting in 4px. max(0, 1em, 1, 4px) //max(1em, 4px)
2014-01-11 17:43:24 +05:30
Luke Page
6dfb00751c Fix for in without hasOwnProperty 2014-01-10 20:09:36 +00:00
deviprsd21
08e613709e Improved min/max function, 2 new Built in function 2014-01-10 22:48:37 +05:30
meri
d438b9c52d Close #1777
Data-uri function used single quote ' around generated url, but did not
encoded it in generated string. Switched it to " which is encoded.
2014-01-05 12:27:05 +01:00
Matthew Dean
e7f9b96e95 Fix for use of reserved word
Fixes issue #1772
2014-01-02 15:07:36 -08:00
Luke Page
4dd5a4b8e8 Merge pull request #1737 from seven-phases-max/clamped-rgba-output
Clamped rgba format color output
2014-01-01 05:05:59 -08:00
seven-phases-max
bdfff94920 * functions.js: (minor) reworking to clean-up initialization of "externally" defined functions (math, blending, default).
* `default` function "front-end" reworked for a bit higher-level control from its "back-end" code (e.g. tree.mixin.eval).
2013-12-22 18:27:51 +04:00
seven-phases-max
302143255d clamped rgba format color output. 2013-12-22 10:02:49 +04:00
Luke Page
b2b1451902 Merge branch 'mutually-exclusive-guards' of https://github.com/seven-phases-max/less.js 2013-12-19 06:33:38 +00:00
Synchro
21e1e91b4b Remove alpha from contrast calc, see #1724 2013-12-17 09:17:00 +01:00
seven-phases-max
f168d187e1 mixin guard default: default moved to functions.js + other minor improvements 2013-12-17 06:32:36 +04:00
Luke Page
3818727bf7 jshint: boss 2013-12-16 23:23:34 +00:00
meri
cef6fbd285 Merge branch 'rhino' of https://github.com/obecker/less.js into rhino
Conflicts:
	build/build.yml
2013-12-11 11:05:48 +01:00
seven-phases-max
1f57576d90 color-blending-with-transparency: changed func dispatch method from closure to bind() 2013-12-07 18:51:07 +04:00
seven-phases-max
f835b1701c color-blending-with-transparency: removed debug log statement mistakenly left out 2013-12-03 04:58:07 +04:00
seven-phases-max
28e5295dae color-blending-with-transparency: fixed negative result alpha handling (though allowing out-of-range alpha inputs is subject for further discussions/decision) 2013-12-02 01:54:59 +04:00
seven-phases-max
61ff14b63c color-blending-with-transparency: initial implementation 2013-11-30 00:15:13 +04:00
Synchro
167e802875 Tests and fix for #1689 2013-11-29 01:24:25 +01:00
Oliver Becker
eff7341d98 added base 64 encoding for rhino, fixes urls.less test case 2013-11-15 16:15:30 +01:00
Oliver Becker
b02d35891e refactored rhino require() for provided (node) modules 2013-11-12 21:58:29 +01:00
Oliver Becker
4210cfd2d1 started data-uri implementation, added basic console formatting support 2013-11-11 22:15:42 +01:00
Oliver Becker
0b4ecbaea0 merged upstream/master 2013-10-27 13:02:09 +01:00
Oliver Becker
716101256e added gradle based test suite, reviewed rhino integration 2013-10-27 12:47:59 +01:00
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