JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q24314F
  • License MIT

Contain floats

Package Exports

  • @avalanche/utility-clearfix

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@avalanche/utility-clearfix) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@avalanche/utility-clearfix

Contain floats.

Install

npm install @avalanche/utility-clearfix --save-dev

Basic usage

// Import the main file.
@import 'node_modules/@avalanche/utility-clearfix/scss/index.scss';

Usage with node-sass-magic-importer

Using node-sass (or a plugin for Grunt, gulp or webpack which is using node-sass) in combination with the node-sass-magic-importer custom importer, can make importing CSS dependencies from node_modules a much nicer experience.

// Import the main file.
@import '~@avalanche/utility-clearfix';

// Not a fan of the "u-" prefix?
@import '{ .u-clearfix as .clearfix } from ~@avalanche/utility-clearfix';

Demo

<div class="u-clearfix">
  <p style="float: left;">Float left</p>
  <p style="float: right;">Float right</p>
</div>

Mixins

@import 'node_modules/@avalanche/utility-clearfix/scss/mixins';

// Usage.
.clearfix {
  @include u-clearfix();
}

About

Author

Markus Oberlehner
Website: https://markus.oberlehner.net
Twitter: https://twitter.com/MaOberlehner
PayPal.me: https://paypal.me/maoberlehner

License

MIT