Comparing version 0.9.1 to 0.9.2
{ | ||
"name": "rework", | ||
"version": "0.9.0", | ||
"version": "0.9.2", | ||
"description": "CSS manipulations built on CSSOM", | ||
@@ -5,0 +5,0 @@ "keywords": ["css", "manipulation", "preprocess", "transform"], |
0.9.2 / 2012-12-05 | ||
================== | ||
* revert broken @2x media query implementation | ||
0.9.1 / 2012-12-04 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -33,11 +33,6 @@ | ||
module.exports = function(vendors) { | ||
function prefix(value) { | ||
return '(' + vendors.map(function(vendor) { | ||
return vendor + value; | ||
}).join(' or ') + ')'; | ||
} | ||
return function(style, rework){ | ||
vendors = vendors || rework.prefixes; | ||
function visit(rules, style, media) { | ||
rules.forEach(function(rule){ | ||
if (rule.media) return visit(rule.rules, style, rule.media); | ||
style.rules.forEach(function(rule){ | ||
if (!rule.declarations) return; | ||
@@ -56,3 +51,3 @@ | ||
style.rules.push({ | ||
media: [media || 'all', prefix('min-device-pixel-ratio: 1.5')].join(' and '), | ||
media: 'all and (-webkit-min-device-pixel-ratio: 1.5)', | ||
rules: [ | ||
@@ -92,2 +87,2 @@ { | ||
&& ~decl.value.indexOf('url('); | ||
} | ||
} |
{ | ||
"name": "rework", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"description": "CSS manipulations built on CSSOM", | ||
@@ -5,0 +5,0 @@ "keywords": ["css", "manipulation", "preprocess", "transform"], |
36430
763