mirror of
https://github.com/less/less.js.git
synced 2026-02-06 13:05:07 -05:00
Support angle unit conversion. add trig functions. don't compress angle unit. add mod and abs. Fixes #858 and fixes #240
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
#colours{color1:#fea;color2:#fea;color3:rgba(255,238,170,0.1);string:"#ffeeaa"}
|
||||
dimensions{val:.1px;val:0;val:4cm;val:.2;val:5}
|
||||
dimensions{val:.1px;val:0;val:4cm;val:.2;val:5;angles-must-have-unit:0deg}
|
||||
|
||||
@@ -59,6 +59,15 @@
|
||||
ceil: 11px;
|
||||
floor: 12px;
|
||||
sqrt: 5px;
|
||||
pi: 3.141592653589793;
|
||||
mod: 2m;
|
||||
abs: 4%;
|
||||
tan: 0.8390996311772799;
|
||||
sin: 0.17364817766693033;
|
||||
cos: 0.8438539587324921;
|
||||
atan: 0.1rad;
|
||||
atan: 34.00000000000001deg;
|
||||
atan: 45.00000000000001deg;
|
||||
percentage: 20%;
|
||||
color: #ff0011;
|
||||
tint: #898989;
|
||||
|
||||
Reference in New Issue
Block a user