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

Commit

Permalink
Added support for clear:fix in PostCSS chain
Browse files Browse the repository at this point in the history
  • Loading branch information
swernerx committed Mar 10, 2017
1 parent 463b05a commit 79abd52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
"postcss-assets": "^4.1.0",
"postcss-at-warn": "^1.0.0",
"postcss-calc": "^5.3.1",
"postcss-clearfix": "^1.0.0",
"postcss-color-function": "^3.0.0",
"postcss-color-hex-alpha": "^2.0.0",
"postcss-custom-media": "^5.0.1",
Expand Down
5 changes: 5 additions & 0 deletions src/webpack/PostCSSConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import pseudoelements from "postcss-pseudoelements"
import autoprefixer from "autoprefixer"
import reporter from "postcss-reporter"
import hexrgba from "postcss-hexrgba"
import clearfix from "postcss-clearfix"
import unicodeChars from "postcss-unicode-characters"
import systemFont from "postcss-font-family-system-ui"
import zindex from "postcss-zindex"
Expand Down Expand Up @@ -108,6 +109,10 @@ export default function PostCSSConfig(variables = {})
// https://github.com/seaneking/postcss-hexrgba
hexrgba,

// Adds fix and fix-legacy attributes to the clear property, for self-clearing of children.
// https://github.com/seaneking/postcss-clearfix
clearfix,

// Transform W3C CSS color function to more compatible CSS
// https://github.com/postcss/postcss-color-function
colorFunction,
Expand Down

0 comments on commit 79abd52

Please sign in to comment.