Skip to content
This repository has been archived by the owner on Mar 18, 2019. It is now read-only.

Commit

Permalink
Add PostCSS Nesting
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathantneal authored and MoOx committed Dec 28, 2015
1 parent 9a1020a commit b31f167
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -44,6 +44,7 @@
"postcss-font-variant": "^2.0.0",
"postcss-initial": "^1.3.1",
"postcss-media-minmax": "^2.1.0",
"postcss-nesting": "^2.0.5",
"postcss-pseudo-class-any-link": "^1.0.0",
"postcss-pseudoelements": "^3.0.0",
"postcss-selector-matches": "^2.0.0",
Expand Down
7 changes: 7 additions & 0 deletions src/__tests__/fixtures/features/nesting.css
@@ -0,0 +1,7 @@
.foo {
color: red;

@nest & .bar {
color: white;
}
}
6 changes: 6 additions & 0 deletions src/__tests__/fixtures/features/nesting.expected.css
@@ -0,0 +1,6 @@
.foo {
color: red
}
.foo .bar {
color: white
}
3 changes: 3 additions & 0 deletions src/features.js
Expand Up @@ -6,6 +6,9 @@ export default {
calc(options) {
return require("postcss-calc")(options)
},
nesting(options) {
return require("postcss-nesting")(options)
},
customMedia(options) {
return require("postcss-custom-media")(options)
},
Expand Down

0 comments on commit b31f167

Please sign in to comment.