reduce-css-calc
Advanced tools
Comparing version
@@ -0,1 +1,6 @@ | ||
# 1.2.2 - 2016-04-19 | ||
- Fixed: Don't reduce expression containing CSS variables. | ||
([#9](https://github.com/MoOx/reduce-css-calc/pull/9)) | ||
# 1.2.1 - 2016-02-22 | ||
@@ -2,0 +7,0 @@ |
@@ -54,4 +54,5 @@ /** | ||
// If multiple units let the expression be (i.e. browser calc()) | ||
if (units.length > 1) { | ||
// If the expression contains multiple units or CSS variables, | ||
// then let the expression be (i.e. browser calc()) | ||
if (units.length > 1 || expression.indexOf("var(") > -1) { | ||
return functionIdentifier + "(" + expression + ")" | ||
@@ -58,0 +59,0 @@ } |
{ | ||
"name": "reduce-css-calc", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Reduce CSS calc() function to the maximum", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
8472
2.77%127
0.79%