Commit Graph

850 Commits

Author SHA1 Message Date
Luke Page
fc2809c969 Add tests for #618 2012-08-30 20:26:08 +01:00
Sergey Yuferev
86520e53e8 added fraction support to round function 2012-08-30 20:22:08 +01:00
Anders Hellerup Madsen
d81ba3bb38 add support for utf-8, fixes #396 (this time less messy commit) 2012-08-30 20:08:48 +01:00
Luke Page
96ef26a9ff Revert commit mistake 2012-08-24 06:45:28 +01:00
Luke Page
bd8679b4c6 Fix error unit tests to run on any computer 2012-08-21 07:20:23 +01:00
Luke Page
85ddc9f4e7 Add parent selector to user variable 2012-08-19 12:02:58 +01:00
Rubens Mariuzzo
0a5245b2c3 8 more blending modes added: multiply, screen, overlay, hardlight, difference, exclusion, average & negation. 2012-08-19 10:25:34 +01:00
Rubens Mariuzzo
6e97b8f694 Soft light blending mode added. 2012-08-19 10:25:16 +01:00
Luke Page
6696368eb3 Remove UTF8 BOM - fixes #650 2012-08-19 09:36:06 +01:00
Luke Page
e94b5b616a Fix other whitespace issue brought up in #406 2012-08-19 08:30:41 +01:00
Luke Page
5ed4b189ac Add whitespace tests for previous commit - newline in selectors 2012-08-19 08:13:48 +01:00
revolunet
9e8330a256 fix #31 and #406
Conflicts:

	lib/less/parser.js
2012-08-19 08:09:24 +01:00
Colin Snover
2c75e4f332 Don't try to use variable values that do not exist on the browser. Fixes #190. 2012-08-18 17:35:22 +01:00
Lucas Green
e812e16656 Added: red() green() and blue() functions, with tests. 2012-08-18 16:50:20 +01:00
Desmond Brand
56f11e9666 Fix #423 by preserving order of link/style elements
Appending generated css to the head element is confusing because it
changes the order of style declarations. If there are regular css link
or style elements after the less link element, less declarations with
equal specificity will override css declarations that come later in the
document.

This change preserves the original order by inserting the generated css
immediately after the less link element.
2012-08-18 11:29:35 +01:00
Luke Page
8de8492d35 Fix mixin calls being recognised as mixin definitions when arguments contain spaces and interpolated strings. Fixes #901 2012-08-16 20:24:55 +01:00
Luke Page
2d8ede3436 remove process.exit calls as they do not guarentee a flushed stdout 2012-08-15 21:14:06 +01:00
Matt
fb21a897f6 Add some content to lessc help
Added some details to lessc and extracted a printUsage method.

Fixes #817
2012-08-15 18:53:35 +01:00
Matt
5132c71a5b Fix error output and extract a helper object for lessc related methods
- Fixed a bug, which prevents colors from being set in error messages.
- Created a helper object for lessc methods and moved the stylize function
  into it. Changed test/less-test.js and lib/less/index.js to use new methods.
- Removed duplicate definitions of the stylize function.
2012-08-15 18:53:35 +01:00
Luke Page
b65d420353 Fix typo in rhino. Fixes #896 2012-08-15 18:50:48 +01:00
Sindre Sorhus
3925c73305 Convert CHANGELOG to Markdown
+ add release dates
2012-08-15 18:40:38 +01:00
Marcus Bointon
bb0886fcc9 Add contrast function following the same format as sass. Added tests.
Added luma calculation.
2012-08-12 20:38:03 +01:00
Luke Page
7fc6275ba8 Move Amd module definition. Fixes #777 2012-08-12 20:04:58 +01:00
Luke Page
e0fc8986cb Add test for #826 2012-08-12 19:44:06 +01:00
Colin
5f9cf904e7 Only set media type when one is present
Defaulting to media="screen" causes the
browser to ignore inline @media print
and other queries.

Fixes #612
2012-08-12 19:18:03 +01:00
Luke Page
473b320c68 Fix bug in media bubbling. Fixes #762 2012-08-12 19:09:54 +01:00
Luke Page
836e805245 eval directives. Fixes #699 2012-08-12 18:03:41 +01:00
Luke Page
861b63ce08 close the file written to in lessc. Fixes #570 2012-08-12 17:39:20 +01:00
Luke Page
3e052e5580 Add more error tests from #244 2012-08-12 13:35:55 +01:00
Luke Page
713cbd2002 support error tests in windows 2012-08-12 13:35:13 +01:00
Luke Page
42b83ef523 Make the test runner accept a argument to restrict the tests running (for debugging). Make the test runner pass the filename so it behaves like lessc - this fixed one of the tests. Also corrected the tests to run given the new format of the message 2012-08-11 22:28:57 +01:00
Luke Page
8c6d14bcf2 Fix previous test. Fix error on invalid import. Fixes #761 2012-08-11 20:35:29 +01:00
Kristoffer Walker
26876bdbbf propagate deep errors up callback chain
On branch deep-error-reporting

	modified:   lib/less/parser.js
2012-08-11 19:44:08 +01:00
Paulo Gaspar
66bbb9a44a Fix for issue 592. Additional removal of TODOs and Rhino support by
@agatronic.
2012-08-11 16:40:59 +01:00
Luke Page
22b3ee939d More tests for errors 2012-08-11 16:04:32 +01:00
Luke Page
b809e8eeb2 Fix #861 and introduce tests for errors 2012-08-11 12:00:28 +01:00
Marcus Bointon
be8a23923b Merge pull request #889 from Harrison/master
Add dppx and dpcm units to parser dimensions
2012-08-10 08:09:29 -07:00
Philip Harrison
0a65df5412 Derp, set vmin before vm 2012-08-10 15:47:01 +01:00
Philip Harrison
0a4e855002 Merge upstream 2012-08-10 15:40:42 +01:00
Marcus Bointon
24fbbc18e0 Merge pull request #890 from Harrison/vmin-unit-dimension
Add vmin unit to parser dimensions
2012-08-10 07:31:54 -07:00
Philip Harrison
6cc1458c32 Add vmin unit to parser dimensions
Spec http://www.w3.org/TR/css3-values/#vmin-unit
2012-08-10 15:24:00 +01:00
Philip Harrison
4c4e2bfdcd Add dppx and dpcm units to parser dimensions
dppx is currently supported by Firefox > 16.
This can be used to target retina setups:
@media (min-resolution: 2dppx) {}

http://www.w3.org/TR/css3-values/#resolution
2012-08-10 15:04:58 +01:00
Luke Page
be74f9a837 Fix regression on shorthand. Fixes #887 2012-08-10 07:35:40 +01:00
Luke Page
b96e307bd5 Support for support/viewport/page directives. Fixes #847 and fixes #366 2012-08-08 22:55:36 +01:00
Luke Page
5d49ca000e Eval assignments by copying. Fixes #534 2012-08-06 22:02:32 +01:00
Luke Page
a702b282e6 Allow comparing colors and strings. Fix a bug whereby sometimes a mixin-call or import would disappear. This makes the import test fail consistently instead of once out of 8 times depending on async order I think. 2012-08-05 22:47:05 +01:00
Alex Ganose
d22bcdc828 Removed toLowerCase function call so the function name remains the same
when used with a mixin and add test for rotateX
2012-08-05 17:14:43 +01:00
DocLabyrinth
e6e41fac6f Changed parser to avoid all alpha() calls being parsed as IE style functions and added relevant tests. Fixes #669
Conflicts:

	test/css/colors.css
	test/less/colors.less
2012-08-05 12:23:16 +01:00
Matt
3be05a1c7b Remove trailing ANSI escape sequences in no-color mode
Added a 'reset' code to the stylize function and changed the previously
hard-coded ANSI escape sequence string to a function call.
2012-08-05 11:57:35 +01:00
Marcel Jackwerth
0d9de3a5b1 ignore node_modules 2012-08-05 11:44:10 +01:00