All Projects → fliptheweb → postcss-flow-root

fliptheweb / postcss-flow-root

Licence: other
Clearfix fallback for `display: flow-root`

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to postcss-flow-root

atomic-bulldog-grid
🏢 CSS (SCSS) Grid based on CSS grid layout with @supports fallback to flexbox
Stars: ✭ 94 (+623.08%)
Mutual labels:  fallback
react-native-image-fallback
Image loader component with fallbacks for React Native apps
Stars: ✭ 33 (+153.85%)
Mutual labels:  fallback
uglify
PHP wrapper to execute uglify-js/clean-css node package or fallback to PHP alternatives
Stars: ✭ 16 (+23.08%)
Mutual labels:  fallback
postcss-clearfix
PostCSS plugin that adds a 'fix' argument to the 'clear' property
Stars: ✭ 47 (+261.54%)
Mutual labels:  clearfix

Fallback for display: flow-root

Use display: flow-root without a mess today, just add fallback by that simple plugin. Article about flow-root..

Transform that

.selector {
  display: flow-root;
}

to

.selector {
  display: flow-root;
  column-count: 1;
}

Installation

yarn add --dev postcss-flow-root

or

npm install --save-dev postcss-flow-root

Usage

Add postcss-flow-root to your plugins list, for example in webpack:

postcss: function () {
  return [
    require('postcss-flow-root')(options)
  ];
}

Be careful: use plugin before autoprefixer.

Options

You can choose fallback for emulate flow-root. There is a sandbox with all methods by @SelenIT.

{
  fallback: 'column-count' (default) | 'clearfix' | 'overflow'
}
  • column-count - create block formatting context for element, browser support (IE10+);
  • clearfix - add clearfix by pseudo-element;
  • overflow - use overflow: hidden fallback.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].