postcss-size
Advanced tools
Comparing version
@@ -5,3 +5,3 @@ var postcss = require('postcss'); | ||
return function (css) { | ||
css.eachDecl('size', function (decl) { | ||
css.walkDecls('size', function (decl) { | ||
var sizes = postcss.list.space(decl.value); | ||
@@ -13,5 +13,5 @@ if ( sizes.length === 1 ) sizes[1] = sizes[0]; | ||
decl.removeSelf(); | ||
decl.remove(); | ||
}); | ||
}; | ||
}); |
{ | ||
"name": "postcss-size", | ||
"version": "0.2.0", | ||
"description": "PostCSS plugin for size shortcut", | ||
"keywords": ["postcss", "css", "postcss-plugin", "size", "width", "height"], | ||
"author": "Andrey Sitnik <andrey@sitnik.ru>", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/postcss/postcss-size.git" | ||
}, | ||
"dependencies": { | ||
"postcss": "^4.1.8" | ||
}, | ||
"devDependencies": { | ||
"gulp-eslint": "0.11.1", | ||
"gulp-mocha": "2.0.1", | ||
"mocha": "2.2.4", | ||
"chai": "2.3.0", | ||
"gulp": "3.8.11" | ||
}, | ||
"scripts": { | ||
"test": "gulp" | ||
} | ||
"name": "postcss-size", | ||
"version": "1.0.0", | ||
"description": "PostCSS plugin for size shortcut", | ||
"keywords": [ | ||
"postcss", | ||
"css", | ||
"postcss-plugin", | ||
"size", | ||
"width", | ||
"height" | ||
], | ||
"author": "Andrey Sitnik <andrey@sitnik.ru>", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/postcss/postcss-size.git" | ||
}, | ||
"dependencies": { | ||
"postcss": "^5.0.2" | ||
}, | ||
"devDependencies": { | ||
"gulp-eslint": "1.0.0", | ||
"gulp-mocha": "2.1.3", | ||
"mocha": "2.2.5", | ||
"chai": "3.2.0", | ||
"gulp": "3.9.0" | ||
}, | ||
"scripts": { | ||
"test": "gulp" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
8011
117.1%1
-50%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
Updated