Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

postcss-clearfix

seaneking22.9kMIT2.0.1

PostCSS plugin that adds fix and fix-legacy attributes to the clear property, for self-clearing of children.

postcss, css, postcss-plugin, clearfix, clear

readme

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

changelog

Change Log

v2.0.0 (2017-07-18)

Full Changelog

Merged pull requests:

v1.0.0 (2016-03-09)

Full Changelog

Merged pull requests:

v0.3.0 (2016-02-29)

Full Changelog

Closed issues:

  • Optional stuff #9

Merged pull requests:

v0.2.1 (2016-02-16)

Full Changelog

Closed issues:

  • Problem with installation #8

Merged pull requests:

v0.2.0 (2015-08-20)

Full Changelog

v0.1.6 (2015-08-20)

Full Changelog

v0.1.5 (2015-08-20)

Full Changelog

Closed issues:

  • Move to PostCSS 5.0 #6
  • Move to PostCSS 5.0 #5

v0.1.4 (2015-08-20)

Full Changelog

Closed issues:

  • Clone instead of creating new nodes #7

v0.1.3 (2015-07-26)

Full Changelog

Closed issues:

  • Not only one selector #4
  • not fix and not legacy #3
  • warning #2

v0.1.2 (2015-07-22)

Full Changelog

v0.1.1 (2015-07-21)

Full Changelog

Merged pull requests:

v0.1.0 (2015-06-20)

* This Change Log was automatically generated by github_changelog_generator