Commit Graph

43 Commits

Author SHA1 Message Date
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
Luke Page
d5bb30b4db Support angle unit conversion. add trig functions. don't compress angle unit. add mod and abs. Fixes #858 and fixes #240 2013-01-06 13:01:10 +00:00
Luke Page
aa9c47b5da move data-uri tests to url.less so they are not run in the browser. add browser tests. make function return url() in the browser 2013-01-05 15:29:45 +00:00
Jay Adkisson
2394c0065e guess the mimetype, and properly encode non-base64 uris 2013-01-05 15:29:44 +00:00
Jay Adkisson
24e41081ef add a data-uri function
as described in a comment on #775
2013-01-05 15:29:42 +00:00
Salehen Rahman
d56e0a476d Added the square root function. 2013-01-05 15:29:41 +00:00
Luke Page
ba99755f6b if contrast first argument does not match, pass it through. Fixes #1090 2012-12-30 08:36:00 +00:00
Luke Page
033abfd8be do not divide by 100 when doing maths and keeping the %. Fixes #1069 2012-12-11 21:38:38 +00:00
Luke Page
eabd8ac1ca add unit function. Fixes #307 2012-11-27 08:21:21 +00:00
Luke Page
7334bcc34d Add tests for hsv and hsva 2012-10-21 15:38:29 +01:00
Synchro
f8bee84fdf Implement tint and shade functions 2012-09-23 17:16:23 +01:00
Dustin Cass
8019439eb4 Pass env with toCSS in function call evaluation; Add tests; Fixes #957 2012-09-23 17:09:52 +01:00
Luke Page
fc2809c969 Add tests for #618 2012-08-30 20:26:08 +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
Lucas Green
e812e16656 Added: red() green() and blue() functions, with tests. 2012-08-18 16:50:20 +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
Denys Mishunov
372569f726 If weight is not passed to mix() assume it's 50 2012-07-29 16:36:33 +01:00
cloudhead
cb78933423 remove duplicate rules automatically 2012-03-27 16:59:49 +02:00
Alexis Sellier
b43d442d55 add more is-* functions 2012-01-03 19:01:47 +01:00
Alexis Sellier
5ec708c3f4 type-checking stylesheet functions
is-string, is-keyword, is-color, is-number
2012-01-03 18:45:31 +01:00
Alexis Sellier
eadc0d8704 color() function parses color string 2011-12-18 17:29:40 +01:00
hokaccha
b00aee79d6 Add function percentage 2011-12-15 11:15:38 +09:00
Daniel Bergey
d7cdc17cde Fix for #198, with regexen, and urlencoding if the token is uppercase. 2011-05-04 06:17:03 +08:00
Bart Schuller
202bcab8d2 Added new round(n) function.
Rationale: Using unrounded computed widths leads to pixel errors.
2011-02-14 23:47:41 +01:00
cloudhead
c8edfe8995 fix some issues with alpha getting lost 2010-06-19 14:35:37 -04:00
cloudhead
345b8716d8 (new) Additions & improvements to color functions.
- Added spin() to change hue.
- Fixed darken/lighten to be additive.
- Added color extraction functions.
2010-06-15 20:13:19 -04:00
cloudhead
bfe0acb01b don't cache return values. %() plays nice with strings 2010-05-13 20:15:59 -04:00
cloudhead
a4d4d55693 Evaluate function calls properly.
- `fun(f())` is now possible
- Anonymous can take normal strings
- Tests for `%()`
2010-04-30 14:07:05 -04:00
cloudhead
fee1e305f0 fixed bug with passing variables to functions 2010-04-23 13:49:55 -04:00
cloudhead
15f0589f6c Added a couple colour functions
saturate, desaturate, lighten, darken, greyscale.
2010-04-23 13:36:50 -04:00
cloudhead
904d997730 the e() LESS function
used to escape strings in values.
Added Anonymous node to handle things like this.
2010-04-22 19:42:02 -04:00
cloudhead
456463368d function.less now passes 2010-03-05 14:56:47 -05:00
cloudhead
70e6523db4 test files, from less.rb 2010-02-23 18:02:00 -05:00