Skip to content

Commit

Permalink
fix order of rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Riim committed May 8, 2017
1 parent 7f995da commit 62f5f3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ function processRule(rule, bubble) {
child.selectors = selectors(rule, child);
after = pickComment(child.prev(), after);
after.after(child);
after = child;
} else if ( child.type === 'atrule' ) {
if ( bubble.indexOf(child.name) !== -1 ) {
unwrapped = true;
atruleChilds(rule, child);
after = pickComment(child.prev(), after);
after.after(child);
after = child;
}
}
});
Expand Down

0 comments on commit 62f5f3a

Please sign in to comment.