Commit Graph

1046 Commits

Author SHA1 Message Date
seven-phases-max
ebdadaedac Experimental support for "property name interpolation", part-2. 2013-12-18 07:10:00 +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
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
Luke Page
1692e2f639 Merge branch 'master' of https://github.com/cloudhead/less.js 2013-12-08 10:52:16 +00:00
Luke Page
5c41f72fa9 add clean css options parameter and option. fixes #1721 2013-12-08 10:52:06 +00: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
ba5c8189cd Fixed line/column numbers in math expr/ops error messages. Updated tests. 2013-12-05 10:56:20 +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
seven-phases-max
4b113be27e improved alpha channel handling for math ops, removed 'can't substract or divide a color from a number' constraint 2013-11-24 04:46:27 +04:00
Luke Page
3b242daacd allow plugins 2013-11-17 23:07:01 +00:00
Luke Page
f4e1faf7e7 1.5.1 release 2013-11-17 17:08:58 +00:00
Luke Page
ef4c2b75a9 correct the sourcemap url option 2013-11-17 16:38:35 +00:00
Luke Page
355cd7488e rename the sourcemappingurl to sourcemapurl, add to bin/lessc and adjust to not normalize 2013-11-17 16:26:47 +00:00
Kevin Attfield
855eca1d93 added sourceMappingURL option 2013-11-17 15:57:38 +00:00
Luke Page
526ca32f80 revert to env.syncImport 2013-11-17 15:42:41 +00:00
Luke Page
f946ee951e Merge branch 'avoidStatSync' of https://github.com/papandreou/less.js 2013-11-17 15:37:58 +00:00
Luke Page
0e57dca6b9 add options to disable clean css options that interfere with less operation. upgrade clean css 2013-11-16 17:41:46 +00:00
Luke Page
8c6b6d0115 Merge branch 'selector-match-fixes' of https://github.com/seven-phases-max/less.js 2013-11-16 16:29:18 +00:00
Luke Page
7869d46f20 Merge pull request #1643 from matthewp/location-port
Check location.port for truthiness
2013-11-15 11:37:20 -08:00
Christian Hammond
daec7dff1c Support specifying custom variables when calling lessc and less.js.
Both lessc and less.js can now be provided with global variables that
all .less files will have immediate access to. This can be used to
provide, for example, a base path for an @import, signed URLs offering
temporary access to an image on S3, or anything else.

lessc has two new parameters, --global-var and --modify-var. Both take
a value of the form "varname=value". --global-var declares variables
immediately before the content of the .less files, and --modify-var
declares them after.

--global-var is used when rules, imports, or other variables will depend
on the provided variable.

--modify-var is used to override a variable declared within the .less
file.

less.js's equivalent for global variables is less.globalVars. This can
be set before loading less.js. There is no new requivalent to
--modify-var, as less.modifyVars can be used for that purpose.
2013-11-14 02:58:34 -08:00
Matthew Phillips
de92480b8c Check location.port for truthiness
According to the w3 spec for Window:

http://www.w3.org/TR/Window/#location

`location.port` might be null. This PR checks that it is truthy before checking for the port's length.

One place where location.port is null is within [jsdom](https://github.com/tmpvar/jsdom), so if you run less within Node, within jsdom, it throws an exception in this code.
2013-11-07 10:59:25 -05:00
Andreas Lind Petersen
095300f73b Avoid fs.statSync unless env.syncImports is specified. 2013-11-04 21:46:37 +01:00
fredburger
56c3338d7d Minor fixes. #1615 2013-10-30 11:12:09 +01:00
fredburger
52dc714927 New input chunker in parser.js. #1615 2013-10-30 08:12:44 +01:00
fredburger
1a33bc69f8 Misc. perf optimizations. #1615 2013-10-30 08:09:17 +01:00
fredburger
c9ae0dbd4f Optimize visitor.visitArray() for perf. #1615 2013-10-30 00:06:09 +01:00
fredburger
e5ae8a2500 Add visitor.js array-based function cache for faster lookups. perf / #1615 2013-10-30 00:01:57 +01:00
seven-phases-max
194f2c5213 a few minor selector match fixes... 2013-10-29 18:48:10 +04:00
seven-phases-max
05ef5cd0ac fixed mixin call matching for multi-selector parent... 2013-10-29 08:04:38 +04:00
Luke Page
0213579de4 1.5.0 release 2013-10-21 12:32:57 +01:00
Luke Page
9a7351d27f fix spacing issue with extends and fix tests 2013-10-20 11:28:47 +01:00
Luke Page
145406b539 do not re-import the re-entry file. Fixes #1484 2013-10-17 18:04:56 +01:00
Luke Page
d8d936862d Fix error message when putting guards on a single selector 2013-10-17 17:51:25 +01:00
Luke Page
7a978cd28f make the inline option more obvious. fixes #1603 2013-10-17 17:50:48 +01:00
Luke Page
97bd40b84a support nested selectors in extends. part fixes #1580 2013-10-15 22:32:20 +01:00
Luke Page
33210805cd Fix duplicate selectors sometimes generated in extends. Fixes #1591. Fixes #1581 2013-10-15 20:19:11 +01:00
Luke Page
8b68ecd98e Fix missing parameter to Quoted - Fixes #1562 2013-10-15 18:13:27 +01:00
Luke Page
70e5761d90 1.5.0 beta 4 release - last one I hope 2013-10-04 07:11:10 +01:00
Luke Page
dc367f61dc Merge pull request #1570 from MSamman/Percent_As_Attribute
proposed solution to #1568: percentage as attribute
2013-10-03 23:07:26 -07:00
Luke Page
b0d73ecf67 Merge branch 'master' of https://github.com/seven-phases-max/less.js 2013-10-04 07:01:27 +01:00