Skip to content

Commit

Permalink
Merge pull request #3 from black-roland/master
Browse files Browse the repository at this point in the history
Fix font-face declaration #2
  • Loading branch information
davidgorges committed Oct 16, 2015
2 parents d44db14 + 1133bc9 commit 6961edc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ module.exports = function () {
// Fix nested rules
function addImportantToCssRules(rules) {
rules.forEach(function(r) {
// Ignore @font-face declarations
if (r.type === 'font-face') {
return false;
}
if (r.declarations) {
r.declarations.forEach(function(d) {
// Don't add important twice
Expand Down

0 comments on commit 6961edc

Please # to comment.