postcss-nested
Advanced tools
Comparing version 5.0.3 to 5.0.4
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
## 5.0.4 | ||
* Fixed nested `&` at the tail (by Raphael Luba). | ||
* Fixed docs (by Samuel Charpentier). | ||
## 5.0.3 | ||
@@ -5,0 +9,0 @@ * Fixed compability with Autoprefixer by adding `@-webkit-keyframes` support. |
@@ -135,3 +135,3 @@ let parser = require('postcss-selector-parser') | ||
postcssPlugin: 'postcss-nested', | ||
RuleExit (rule, { Rule }) { | ||
Rule (rule, { Rule }) { | ||
let unwrapped = false | ||
@@ -156,4 +156,2 @@ let after = rule | ||
} else if (child.type === 'atrule') { | ||
copyDeclarations = false | ||
if (declarations.length) { | ||
@@ -177,2 +175,3 @@ after = pickDeclarations(rule.selector, declarations, after, Rule) | ||
} else if (bubble[child.name]) { | ||
copyDeclarations = true | ||
unwrapped = true | ||
@@ -184,2 +183,3 @@ atruleChilds(rule, child, true) | ||
} else if (unwrap[child.name]) { | ||
copyDeclarations = true | ||
unwrapped = true | ||
@@ -190,2 +190,4 @@ atruleChilds(rule, child, false) | ||
after = child | ||
} else if (copyDeclarations) { | ||
declarations.push(child) | ||
} | ||
@@ -192,0 +194,0 @@ } else if (child.type === 'decl' && copyDeclarations) { |
{ | ||
"name": "postcss-nested", | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"description": "PostCSS plugin to unwrap nested rules like how Sass does it", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -30,3 +30,2 @@ # PostCSS Nested | ||
--font: 16px | ||
} | ||
} | ||
@@ -96,3 +95,3 @@ } | ||
**Step 2:** Check you project for existed PostCSS config: `postcss.config.js` | ||
**Step 2:** Check your project for existing PostCSS config: `postcss.config.js` | ||
in the project root, `"postcss"` section in `package.json` | ||
@@ -99,0 +98,0 @@ or `postcss` in bundle config. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13552
210
196