Browse Source

Update to v0.0.3

pull/7/head v0.0.3
Dmitry Karpunin 9 years ago
parent
commit
95214818ff
  1. 8
      index.js
  2. 2
      package.json

8
index.js

@ -13,7 +13,7 @@ var pxRegex = /"[^"]+"|'[^']+'|url\([^\)]+\)|(\d*\.?\d+)px/ig;
var defaults = {
viewportWidth: 320,
viewportHeight: 568,
viewportHeight: 568, // not now used; TODO: need for different units and math for different properties
unitPrecision: 5,
viewportUnit: 'vw',
selectorBlackList: [],
@ -62,12 +62,6 @@ function toFixed(number, precision) {
return Math.round(wholeNumber / 10) * 10 / multiplier;
}
//function declarationExists(decls, prop, value) {
// return decls.some(function (decl) {
// return (decl.prop === prop && decl.value === value);
// });
//}
function blacklistedSelector(blacklist, selector) {
if (typeof selector !== 'string') return;
return blacklist.some(function (regex) {

2
package.json

@ -1,7 +1,7 @@
{
"name": "postcss-px-to-viewport",
"description": "A CSS post-processor that converts px to viewport units (vw, vh, vmin, vmax).",
"version": "0.0.2",
"version": "0.0.3",
"author": "Dmitry Karpunin <koderfunk@gmail.com>",
"license": "MIT",
"repository": {

Loading…
Cancel
Save