postcss-automath-latest
Advanced tools
Comparing version 1.1.0 to 1.1.1
## 1.0.0 | ||
- Support less@3.9.0+ | ||
## 1.1.0 | ||
- Don't resolve font which contains '/'. | ||
- Don't resolve font which contains '/'. | ||
## 1.1.1 | ||
- fix bug: Don't resolve '/' in background. |
{ | ||
"name": "postcss-automath-latest", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Automatically evaluate mathematical expressions in your CSS source files, like in SASS or LESS. No special function calls needed as with `postcss-mathjs`.", | ||
@@ -5,0 +5,0 @@ "main": "postcss-automath.js", |
@@ -43,4 +43,7 @@ /** | ||
nodeProp = 'value'; | ||
if (node.prop.match(/font/) && node[nodeProp].match(/\//)) { // exclude font: 5px/10px | ||
return; | ||
if (node.prop.match(/font|background/)) { // exclude font、background props match 1px/2px | ||
// exclude / in url(...) | ||
if (node[nodeProp].replace(/url\(.*?\)/, '').match(/\//)) { | ||
return; | ||
} | ||
} | ||
@@ -47,0 +50,0 @@ } |
12979
11
132