Neutered Puppy Masquerade

    clearfix

    1.0.0 • Public • Published

    clearfix mixin for less

    Clearfix mixin for less. Contain your floats without extra markup.

    This package is intended to be used with the less npm-import plugin:

    @import "npm://clearfix/.";
     
    .stuff {
        .clearfix();
     
        > .left {
            float: left;
            width: 50%;
        }
        > .right {
            float: right;
            width: 50%;
        }
    }

    This package contains the following mixin (copied from bootstrap):

    .clearfix() {
        &:before,
        &:after {
            content: " ";
            display: table;
        }
        &:after {
            clear: both;
        }
    }
     

    Install

    npm i clearfix

    DownloadsWeekly Downloads

    49

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • joris-van-der-wel