JSPM

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

Box off content

Package Exports

  • @avalanche/object-island

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/object-island) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@avalanche/object-island

Box off content.

Install

npm install @avalanche/object-island --save-dev

Basic usage

This package requires that node-sass (or one of the grunt, gulp, etc. equivalents) in combination with the node-sass-magic-importer custom importer is used.

// Import the main file.
@import '~@avalanche/object-island';

// Import just the mixin file.
@import '~@avalanche/object-island/scss/mixins';

// Import just the classes you need.
@import '{ .o-island } from ~@avalanche/object-island';

// Not a fan of the "o-" prefix?
@import '{ .o-island as .island } from ~@avalanche/object-island';

Demo

Default spacing size

<div class="o-island">
  Boxed off content.
</div>

X-large spacing size

<div class="o-island o-island--xl">
  XL boxed off content.
</div>

Mixins

@import '~@avalanche/object-island/scss/mixins';

// Usage.
.island {
  @include o-island();
}

About

Author

Markus Oberlehner
Twitter: https://twitter.com/MaOberlehner
PayPal.me: https://paypal.me/maoberlehner

License

MIT