Commit Graph

1500 Commits

Author SHA1 Message Date
Joshua Spence
ce56c0d185 Fixes #1619 2013-11-16 14:10:06 +11: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
Luke Page
8f4ef412d5 Merge pull request #1655 from chipx86/custom-vars
Support specifying custom variables when calling lessc and less.js.
2013-11-15 11:36:15 -08:00
Oliver Becker
913d7c6d29 adjusted modules order for rhino (same as for browser) 2013-11-15 16:16:54 +01:00
Oliver Becker
eff7341d98 added base 64 encoding for rhino, fixes urls.less test case 2013-11-15 16:15:30 +01: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
Luke Page
ff611f729c Merge pull request #1628 from tomfuertes/patch-1
update bower.json main script
2013-11-13 23:50:36 -08: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
465dd99074 added colored output, added gradle property 'test' to execute a specific test only (use for example: -Ptest=urls) 2013-11-09 17:20:29 +01:00
Oliver Becker
4aa040a356 renamed path implementation in less for rhino to _path 2013-11-08 18:53:03 +01: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
Tom Fuertes
618712c6cd update bower.json main script
for bump 1.4.2 -> 1.5.0
2013-11-01 10:36:44 -05:00
seven-phases-max
a1c97f3147 a few minor selector match fixes: updated tests. 2013-10-29 22:25:36 +04: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
Oliver Becker
929bb44fa7 fixed test for initRhinoTest function 2013-10-27 17:02:02 +01:00
Oliver Becker
45ef13eb63 added gradle wrapper scripts 2013-10-27 15:27:59 +01:00
Oliver Becker
f8b671ddf7 renamed task cleanupTest to clean 2013-10-27 15:19:28 +01:00
Oliver Becker
1435c84608 removed Makefile (again), fixed grunt rhino build 2013-10-27 15:17:36 +01:00
Oliver Becker
6367b96a2a fixed some jshint errors 2013-10-27 15:15:46 +01:00
Oliver Becker
5baa4445bc normalize quotes to apostrophes in error messages from javascript evaluation (unify node/rhino error message) 2013-10-27 15:14:04 +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
Oliver Becker
2b73725b44 added gradle based test suite, reviewed rhino integration 2013-10-27 12:46:10 +01:00
Luke Page
0213579de4 1.5.0 release v1.5.0 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
969cee1e11 Fix bad json - extra , 2013-10-15 18:14:08 +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
1a184d5790 Update changelog 2013-10-04 07:04:37 +01:00
Luke Page
b0d73ecf67 Merge branch 'master' of https://github.com/seven-phases-max/less.js 2013-10-04 07:01:27 +01:00
Luke Page
454e979d6c Merge pull request #1572 from robocoder/patch-2
util.error is deprecated
2013-10-03 22:56:44 -07:00
Luke Page
f1f13e166e Merge branch 'master' of https://github.com/cloudhead/less.js 2013-10-04 06:55:29 +01:00
Luke Page
b0477fca22 import multiple has a cascade effect. fixes #1497 2013-10-04 06:54:58 +01:00
seven-phases-max
278ca96d4e Merge branch 'next' 2013-10-03 10:06:20 +04: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
Anthon Pang
fe0eaa8225 util.error is deprecated 2013-09-29 15:15:48 -04:00
Mohammad Samman
abe09a2851 proposed solution to #1568: percentage as attribute 2013-09-28 17:51:04 -07:00
Luke Page
9d3a80ccfd Merge pull request #1558 from danielfeelfine/master
Bower package: purge unnecessary files
2013-09-22 02:07:28 -07:00
Luke Page
5f20c4aeaa support @host. Fixes #1560 2013-09-22 10:03:50 +01:00
Daniel Feel Fine
73b074364f purge unnecessary files 2013-09-19 11:45:00 -03: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