Skip to content

arpadHegedus/postcss-clear-fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A PostCSS plugin to add clearfix in one line.

Installation

npm install postcss-clear-fix

Example

div.container {
    clear: fix
}

will produce

div.container:after { 
    content: " "; 
    display: table; 
    clear: both
}

Usage

Using Gulp.

var gulp            = require('gulp'),
    postcss         = require('gulp-postcss'),
    clearfix        = require('postcss-clear-fix');

gulp.task('css', function() {
    gulp.src('path/to/dev/css').
        .pipe(postcss({
            // use it after nesting plugins
            clearfix
        }))
        .pipe(gulp.dest('path/to/build/css'));
});

// rest of the gulp file

About

A PostCSS plugin to add clearfix in one line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published