postcss-automath-latest
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "postcss-automath-latest", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Automatically evaluate mathematical expressions in your CSS source files, like in SASS or LESS. No special function calls needed as with `postcss-mathjs`.", | ||
@@ -11,3 +11,3 @@ "main": "postcss-automath.js", | ||
"type": "git", | ||
"url": "git+ssh://git@github.com/EverledgerIO/postcss-automath.git" | ||
"url": "git+ssh://git@github.com:shaoyudong/postcss-automath.git" | ||
}, | ||
@@ -19,3 +19,3 @@ "keywords": [ | ||
], | ||
"author": "Everledger.io", | ||
"author": "shaoyudong", | ||
"license": "MIT", | ||
@@ -25,3 +25,3 @@ "bugs": { | ||
}, | ||
"homepage": "https://github.com/EverledgerIO/postcss-automath#readme", | ||
"homepage": "https://github.com/shaoyudong/postcss-automath#readme", | ||
"dependencies": { | ||
@@ -28,0 +28,0 @@ "less": "^3.9.0", |
@@ -43,2 +43,5 @@ /** | ||
nodeProp = 'value'; | ||
if (node.prop.match(/font/) && node[nodeProp].match(/\//)) { // exclude font: 5px/10px | ||
return; | ||
} | ||
} | ||
@@ -45,0 +48,0 @@ else if (node.type === 'atrule' && node.name === 'media') { |
@@ -5,2 +5,4 @@ const postcss = require('postcss'); | ||
margin-top: 4px + 2 * 3px; | ||
font: normal 36rpx/100rpx Arial, "Mrcrosoft Yahei"; | ||
font: normal 0.36rpx*100rpx Arial, "Mrcrosoft Yahei"; | ||
} | ||
@@ -11,2 +13,4 @@ `; | ||
margin-top: 10px; | ||
font: normal 36rpx/100rpx Arial, "Mrcrosoft Yahei"; | ||
font: normal 36rpx Arial, "Mrcrosoft Yahei"; | ||
} | ||
@@ -13,0 +17,0 @@ ` |
11426
9
89