Commit Graph

1086 Commits

Author SHA1 Message Date
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
Luke Page
626b004263 add comment explaining new function check 2014-01-03 07:14:47 +00:00
Matthew Dean
e7f9b96e95 Fix for use of reserved word
Fixes issue #1772
2014-01-02 15:07:36 -08:00
Matthew Dean
13aba08ed8 Fixes "function" test against regular expressions
In some browser engines (especially older versions of Webkit), this
test fails when the argument is a RegExp.

See:
http://stackoverflow.com/questions/5054352/why-use-typeof-for-identifyin
g-a-function

Fix tested and works with Adobe AIR.
2014-01-02 15:04:02 -08:00
Luke Page
58af9f9763 release 1.6.0 2014-01-01 17:29:39 +00: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
lesswtf
216facd033 If result of evaluated javascript is a number return it as Dimension. 2013-12-30 05:11:24 +03:00
seven-phases-max
34f54cf645 improved error message for undefined variable in js eval statement, more clean fix. 2013-12-27 17:51:54 +04:00
seven-phases-max
4d7a2bcd84 improved error message for undefined variable in js eval statement. 2013-12-27 17:42:37 +04:00
Luke Page
479827b02f add banner option. Fixes #1735 2013-12-22 16:17:52 +00:00
Luke Page
fdf666fe22 Merge branch 'master' of https://github.com/cloudhead/less.js 2013-12-22 15:48:29 +00:00
Luke Page
327a4bdc79 Merge branch 'patch-2' of https://github.com/oyejorge/less.js 2013-12-22 15:43:53 +00:00
Luke Page
b334c31d21 Merge pull request #1758 from seven-phases-max/master
Removed redundant code from tree.Selector.match()
2013-12-22 07:39:11 -08:00
seven-phases-max
4cdd4a6b73 Removed redundant code from tree.Selector.match() 2013-12-22 19:19:50 +04:00
seven-phases-max
bbc15a413b default function: added error when used with css-guards. updated tests. 2013-12-22 18:54:39 +04: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
cc385886e0 use new parser options in the browser 2013-12-21 22:31:51 +00:00
Luke Page
cb9dc7445a fix typo. fixes #1753 2013-12-21 22:11:30 +00:00
Luke Page
8440773f8a change to use format consistent with the browser and for sourcemaps to take additional variables into account 2013-12-21 11:14:35 +00:00
Luke Page
9fccf9643f Merge branch 'parse-add-variables' of https://github.com/joscha/less.js
Conflicts:
	lib/less/parser.js
	test/less-test.js
2013-12-20 16:41:27 +00:00
Luke Page
5196277b35 Merge pull request #1624 from seven-phases-max/mixins-with-interpolated-selectors
Experimental support for mixins with interpolated selectors
2013-12-19 22:49:59 -08:00
seven-phases-max
ee4e23e15c fixed merging of interleaved properties 2013-12-19 15:03:07 +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
Luke Page
d90678e466 Merge branch 'property-name-interp' of https://github.com/seven-phases-max/less.js 2013-12-19 06:32:49 +00:00
Luke Page
00c52ed4fc Merge branch 'master' of https://github.com/cloudhead/less.js 2013-12-18 21:38:29 +00:00
Luke Page
07841b3860 Fix issue with unqouted urls in mixins having their context evaluated twice. Fix sourcemap test output 2013-12-18 19:42:32 +00:00
Josh Schmidt
d8d40c1d87 fix whitespace 2013-12-17 22:44:57 -07:00
Josh Schmidt
6ff68041de Set object id and initiate parent_ids array 2013-12-17 22:44:18 -07:00
Josh Schmidt
0c50dfb76d Use parent ids instead of recursive calls to inInheritanceChain() 2013-12-17 22:42:04 -07:00
seven-phases-max
ebdadaedac Experimental support for "property name interpolation", part-2. 2013-12-18 07:10:00 +04:00
Luke Page
7a5e4327d5 Merge pull request #1733 from Synchro/master
Remove alpha from contrast calc
2013-12-17 16:13:53 -08:00
Luke Page
818109beca Fix issue with urls in mixins 2013-12-17 23:42:08 +00:00
Luke Page
381fb98fdf normalize the base path as well as the filename for sourcemaps. Fixes #1736 2013-12-17 23:06:51 +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
seven-phases-max
6d3414d217 Initial implementation of mixin guard default function (aka "mutually exclusive guards") 2013-12-17 06:32:35 +04:00
seven-phases-max
2ad97c96c7 interpolated mixins, fixed: possible false match if variable contains , 2013-12-17 05:41:09 +04:00
seven-phases-max
002d6db966 Experimental support for mixins with interpolated selectors. 2013-12-17 05:41:08 +04:00
Luke Page
3818727bf7 jshint: boss 2013-12-16 23:23:34 +00:00
Luke Page
4f7c06c9c8 jshint: eval option 2013-12-14 20:01:09 +00:00
Luke Page
ff8285fbc6 some code review changes and test for the new extra/missing parens check 2013-12-14 17:59:59 +00:00
Luke Page
5a59c4bd32 fix tests 2013-12-14 13:57:07 +00:00
Joscha Feth
723cdb501e This adds an additional vars parameter to the parse method. It allows a user to inject variables into a less string before compiling. 2013-12-08 22:50:54 +01:00
Luke Page
5367b8b6be Merge branch 'perf-tune' of https://github.com/fredburger/less.js
Conflicts:
	lib/less/to-css-visitor.js
2013-12-08 17:25:58 +00:00
Luke Page
27524402a3 Merge branch 'master' of https://github.com/cloudhead/less.js 2013-12-08 14:02:19 +00:00
Luke Page
3b1c1a5f16 Merge pull request #1704 from seven-phases-max/color-blending-with-transparency
Color blending functions with transparency.
2013-12-08 06:01:06 -08:00
Luke Page
bdab12151a Merge branch 'color-ops-fixes' of https://github.com/seven-phases-max/less.js
Conflicts:
	test/less/errors/color-operation-error.txt
2013-12-08 11:11:18 +00:00
Luke Page
c5c56e6eb9 move return false to the right place. Fixes #1720 2013-12-08 10:56:41 +00:00