Commit Graph

83 Commits

Author SHA1 Message Date
Synchro
6dd409aba3 Update contrast function and tests 2015-12-07 13:50:35 +01:00
jurcovicovam
30fe1cb9e2 Keep shorthand color form the same way as named colors are kept. #2481 2015-07-19 14:54:41 +02:00
seven-phases-max
13ef5b7422 proper non-primitive value replacement for % and replace functions 2015-03-31 19:35:22 +04:00
Bass Jobsen
622a521b11 optional relative amounts for color functions, see#975 2015-03-15 00:12:47 +01:00
Luke Page
7d86a5e72d Temp. fix for comment nodes in functions. Fixes #2475 2015-02-26 18:22:39 +00:00
Luke Page
97d039f267 extract and length now skip over comment nodes. Fixes #2431 2015-02-04 17:28:48 +00:00
Justineo
297ac17dda add support for isruleset 2015-01-15 12:12:39 +08:00
Luke Page
4704583540 Support empty as a valid argument for isunit. Fixes #2324 2015-01-01 17:49:12 +00:00
seven-phases-max
ccd49bb619 improve keyword and anonymous input for replace (and %) 2014-11-25 04:04:50 +04:00
Luke Page
f2bc59f63b Merge remote-tracking branch 'origin/master' into 2_0_0
Conflicts:
	CHANGELOG.md
	lib/less/index.js
	lib/less/parser/parser.js
	lib/less/tree/dimension.js
2014-09-05 23:31:42 +01:00
jurcovicovam
cbc8c78625 Added case insensitive units handling. Issue #2096 2014-09-05 10:05:13 +02:00
Luke Page
383027886c merge from master 2014-06-22 16:05:09 +01:00
seven-phases-max
91fdb3940f don't round values returned by colour query functions. 2014-06-19 22:43:28 +04:00
Luke Page
ee64392362 Merge branch 'master' into 2_0_0
Conflicts:
	lib/less/import-visitor.js
	lib/less/index.js
2014-02-27 21:12:49 +00: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
Roel van Duijnhoven
193ce01be9 Sync semantics of test variables and their output. 2014-02-27 08:35:52 +01:00
Luke Page
e8c78d9d40 Merge branch 'master' into 2_0_0
Conflicts:
	lib/less/browser.js
	lib/less/parser.js
2014-02-23 17:38:39 +00: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
Luke Page
f0d0ac965d Merge branch 'master' into 2_0_0
Conflicts:
	package.json
2014-02-22 15:31:32 +00:00
Roel van Duijnhoven
86fee0d185 Add test case were luminance is not equal to luma. 2014-02-21 08:51:19 +01:00
Roel van Duijnhoven
4952b66b3c Let tests reflect output of new luma function. 2014-02-21 08:49:34 +01:00
seven-phases-max
768a5cbc84 minor % func improvement: preserve quote char and escaped flag, updated tests. 2014-02-18 18:56:46 +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
8ddcf66a67 Merge branch 'color-string-variable' of https://github.com/seven-phases-max/less.js into 2_0_0 2014-02-13 22:43:53 +00:00
Luke Page
9749d20c3d Fix tests, fix a bug in comparing values 2014-02-11 21:09:06 +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
seven-phases-max
3322609de5 More consistent named colour variables. 2014-01-23 16:08:10 +04: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
seven-phases-max
61ff14b63c color-blending-with-transparency: initial implementation 2013-11-30 00:15:13 +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
Luke Page
862d7ed0ab support transparent as a color but do not alter existing output of transparent and rgba() 2013-09-14 12:10:57 +01:00
Jake Bellacera
170042fb02 Adding capture group test case 2013-08-23 16:26:39 -07:00
Jake Bellacera
d4e15e29f8 Adding gsub function 2013-08-23 16:04:21 -07:00
Kevin Gillette
54a5f74c09 min/max now always reduce compatible terms. 2013-07-05 06:51:56 +01:00
Kevin Gillette
6df4e48976 Added min and max builtins. 2013-07-05 06:51:55 +01:00
Luke Page
de27a6fd88 Add bypass for saturate(5%) filter function. Helps issue #1299 2013-07-05 06:51:05 +01:00
agatronic
572b45a94b Add isunit function. fixes #1298 2013-04-29 16:28:20 +01:00
Luke Page
ac3a92dd30 add clamping to hsl and hsla functions 2013-03-08 08:22:57 +00:00
Daniel Stockman
7116b3b1c5 Change tan function test value.
Apparently there is some disagreement on the tangent of 40 between browser and node. 42 is the answer.
2013-02-26 18:55:34 +00:00
Luke Page
178696d141 Allow any casing for functions. Fixes #1168 2013-02-15 22:15:08 +00:00
Marcus Bointon
26d35c98fe Merge pull request #1148 from Synchro/luma
Better implementation of luma
2013-01-23 01:30:26 -08:00
Synchro
8f1bc4badf Better implementation of luma 2013-01-23 09:30:15 +01:00
Synchro
4d5c404dd9 HSV support for #1143 2013-01-23 08:43:12 +01:00
Synchro
3b293be8e2 Fix contrast percentage handling, fixes #1144 2013-01-23 00:32:41 +01:00
Gustavo Henke
11aba0ea45 pow() function: more tests 2013-01-10 22:16:49 +00:00
Gustavo Henke
0ac95336f7 Added function pow() with tests 2013-01-10 22:16:49 +00:00
ScottRippey
454a761e9c Added a new function - extract for extracting padding values from a variable 2013-01-10 22:13:33 +00:00