rework-walk

Recursively walk through all rules and keyframes

rework-walk

Recursively walk through all rules and keyframes

example

// prefix all selectors 
walk(style, function(rulenode) {
  if (!rule.selectors) return rule;
  rule.selectors = rule.selectors.map(function(selector) {
    return str + ' ' + selector;
  });
});
 

credits

rework-visit

license

MIT