mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
do not divide by 100 when doing maths and keeping the %. Fixes #1069
This commit is contained in:
@@ -54,6 +54,9 @@
|
||||
rounded-two: 10.67;
|
||||
roundedpx: 3px;
|
||||
roundedpx-three: 3.333px;
|
||||
rounded-percentage: 10%;
|
||||
ceil: 11px;
|
||||
floor: 12px;
|
||||
percentage: 20%;
|
||||
color: #ff0011;
|
||||
tint: #898989;
|
||||
|
||||
@@ -60,6 +60,9 @@
|
||||
rounded-two: round(@r/3, 2);
|
||||
roundedpx: round(10px / 3);
|
||||
roundedpx-three: round(10px / 3, 3);
|
||||
rounded-percentage: round(10.2%);
|
||||
ceil: ceil(10.1px);
|
||||
floor: floor(12.9px);
|
||||
percentage: percentage(10px / 50);
|
||||
color: color("#ff0011");
|
||||
tint: tint(#777777, 13);
|
||||
|
||||
Reference in New Issue
Block a user