postcss-clearfix
PostCSS plugin that adds `fix` and `fix-legacy` attributes to the `clear` property, for self-clearing of children.
Last updated 9 years ago by seaneking .
MIT · Repository · Bugs · Original npm
$ cnpm install postcss-clearfix 
SYNC missed versions from official npm registry.

PostCSS Clearfix

NPM version Build Status Dependency Status

PostCSS plugin that adds a fix attribute to the clear property, for self-clearing of children. The outputted clearfix works in IE8+.

Part of Rucksack - CSS Superpowers.

Input

.cleared {
  clear: fix;
}

Output

.cleared:after{
  content: '';
  display: block;
  clear: both;
}

Usage

postcss([ require('postcss-clearfix') ])

See PostCSS docs for examples for your environment.

Options

Property Type Default Description
display String 'block' Set the display property outputted in the ::after clearfix (eg: use 'table' to prevent collapsed margins on cleared items)

MIT © Sean King

Current Tags

  • 2.0.1                                ...           latest (8 years ago)

2 Versions

  • 1.0.0                                ...           9 years ago
  • 2.0.1                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org