Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
feat(Build): Combine & sort media queries
Browse files Browse the repository at this point in the history
This allows for a better theme authoring experience as responsive overrides can be nested within a selector.
  • Loading branch information
alex-ketch committed Feb 18, 2020
1 parent d4dca22 commit 16ed2b6
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .postcssrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
"postcss-custom-selectors": {
"importFrom": "src/selectors.css"
},
"postcss-custom-media": true,
"postcss-custom-properties": {
"preserve": true
},
"postcss-nested": true,
"autoprefixer": true,
"postcss-extend": true
"postcss-extend": true,
"postcss-combine-media-query": true,
"postcss-sort-media-queries": true,
}
}
78 changes: 78 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,16 @@
"normalize.css": "8.0.1",
"parcel-bundler": "1.12.4",
"parcel-plugin-url-loader": "git+https://github.com/stencila/parcel-plugin-url-loader.git",
"postcss-combine-media-query": "^1.0.0",
"postcss-custom-media": "^7.0.8",
"postcss-custom-properties": "9.0.2",
"postcss-custom-selectors": "5.1.2",
"postcss-extend": "1.0.5",
"postcss-import": "12.0.1",
"postcss-import-url": "4.0.0",
"postcss-mixins": "6.2.3",
"postcss-nested": "4.2.1",
"postcss-sort-media-queries": "^1.1.20",
"postcss-url": "8.0.0",
"prismjs": "1.19.0",
"stylelint": "13.0.0",
Expand Down

0 comments on commit 16ed2b6

Please sign in to comment.