Comparing version 0.12.1 to 0.12.2
{ | ||
"name": "rework", | ||
"version": "0.12.1", | ||
"version": "0.12.2", | ||
"description": "CSS manipulations built on CSSOM", | ||
@@ -5,0 +5,0 @@ "keywords": ["css", "manipulation", "preprocess", "transform"], |
0.12.2 / 2013-02-12 | ||
================== | ||
* add prefix visiting for @media | ||
* add column props (fixes #26) | ||
0.12.1 / 2013-02-08 | ||
@@ -3,0 +9,0 @@ ================== |
/** | ||
* Prefix `prop`. | ||
* | ||
* | ||
* .button { | ||
* border-radius: 5px; | ||
* } | ||
* | ||
* | ||
* yields: | ||
* | ||
* | ||
* .button { | ||
@@ -16,3 +16,3 @@ * -webkit-border-radius: 5px; | ||
* } | ||
* | ||
* | ||
*/ | ||
@@ -25,6 +25,7 @@ | ||
return function(style, rework){ | ||
return function visit(style, rework){ | ||
vendors = vendors || rework.prefixes; | ||
style.rules.forEach(function(rule){ | ||
if (rule.rules) return visit(rule, rework); | ||
if (rule.keyframes) return prefixKeyframes(props, vendors, rule); | ||
@@ -76,2 +77,2 @@ if (rule.declarations) prefix(props, vendors, rule.declarations); | ||
} | ||
} | ||
} |
@@ -22,5 +22,6 @@ | ||
return function(style){ | ||
return function vars(style){ | ||
// map variables | ||
style.rules.forEach(function(rule){ | ||
if (rule.rules) vars(rule); | ||
if (!rule.declarations) return; | ||
@@ -27,0 +28,0 @@ rule.declarations.forEach(function(decl, i){ |
{ | ||
"name": "rework", | ||
"version": "0.12.1", | ||
"version": "0.12.2", | ||
"description": "CSS manipulations built on CSSOM", | ||
@@ -5,0 +5,0 @@ "keywords": ["css", "manipulation", "preprocess", "transform"], |
Sorry, the diff of this file is not supported yet
42922
929