Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@avalanche/object-container

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@avalanche/object-container

Basic container class to limit the max-width of the layout and add some padding

  • 4.0.0-alpha.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
increased by7.69%
Maintainers
1
Weekly downloads
 
Created
Source

@avalanche/object-container

Basic container class to limit the max-width of the layout and add some padding.

  • [Documentation](https://avalanche.oberlehner.net/documentation/#object: container)

Install

npm install @avalanche/object-container --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-container';

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

Demo

<div class="o-container">
  <h2>Lorem Ipsum</h2>
  <p>Contained content.</p>
</div>

Sizes

Activate size modifier classes via the $o-container-sizes map variable.

$o-container-sizes: (
  m: 64rem,
  l: 96rem
);
<div class="o-container o-container--l">
  <h2>Lorem Ipsum</h2>
  <p>Contained content.</p>
</div>

Mixins

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

// Usage.
.container {
  @include o-container(64rem, 1rem);
}

About

Author

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

License

MIT

Keywords

FAQs

Package last updated on 08 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc