21 Commits

Author SHA1 Message Date
robotis
cb291c5e80 Fix for issue 31. hsl(a) processing on floats. 2014-02-18 12:00:07 +00:00
Sascha Peilicke
4d63ecfe25 Fix all PEP-8 / flake8 code issues
Drop testscope because it's empty.
2014-02-02 17:35:38 +01:00
Sascha Peilicke
74bee8c411 Output rgba(x,y,z,0) exactly as lessc
Currently a hack.
2014-01-21 15:03:06 +01:00
Sascha Peilicke
93bdaac50f Use greyscale rather than grayscale.
The latter doesn't exist (anymore).
2014-01-21 15:03:06 +01:00
Sascha Peilicke
27f10f25d3 Allow float degrees / percentages in color functions 2014-01-21 15:03:06 +01:00
Sascha Peilicke
106c9972d4 Add argb() function
Used by bootstrap3. Quote from the lesscss.org documentation:

Creates a hex representation of a color in #AARRGGBB format (NOT
Android development.
2014-01-21 15:03:05 +01:00
Sascha Peilicke
b2e13d0470 Proper rgba() function alpha output
The alpha value can either be a number in the range 0-1 or a percentage
(0-100%). Alpha values greater than 1 are simply dropped. Compare with
the rgba() function definition at http://lesscss.org/#reference.
2013-12-20 11:15:42 +01:00
Sascha Peilicke
3a31d25c07 Clamp rgb(R, G, B, A) to rgb(R, G, B)
This is what upstream lessc does.
2013-12-20 11:15:42 +01:00
Sascha Peilicke
57517bd017 Use operator module everywhere
Much cleaner than using getattr().

Fixes issue #13
2013-08-12 14:49:04 +02:00
Sascha Peilicke
e6512edb98 Add utility away_from_zero_round and use it for LESS round()
Also _ophsl should use it when running unter Py3k (instead of
convergent_round).
2013-08-08 18:26:23 +02:00
Sascha Peilicke
8da243d2b8 Use convergent_round everywhere except for round() LESS function.
The LESS function round uses away-from-zero rounding.
2013-08-08 18:25:23 +02:00
Sascha Peilicke
d668b9dafe Some Python-3 compatibility fixes 2013-07-19 11:59:01 +02:00
Sascha Peilicke
c0a265e146 Fix PEP-8 issues (with autopep8 -a) 2013-07-19 11:22:12 +02:00
robotis
3b594f7217 Better support for python2.x + python3.x 2012-07-19 09:31:18 +00:00
Patrick
0ff5b977ec fix an other utf-8 letter 2012-07-18 17:28:04 -04:00
Patrick
0660c17cd0 trying to fix python2 and utf-8 issues 2012-07-18 17:26:06 -04:00
robotis
c4e9d5a11e Allow color words in color functions 2012-06-25 08:38:12 +00:00
jtm
ba4fe2ea62 Documentation 2012-03-30 16:12:24 +00:00
jtm
1fab881863 checkpoint colors 2012-03-11 14:47:58 +00:00
jtm
f7cdd98643 checkpoint colors 2012-03-10 16:27:14 +00:00
robotis
f4ba41cc1d initial commit 2012-01-28 14:52:09 +00:00