@avalanche/object-container
Basic container class to limit the max-width of the layout and add some padding.
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 '~@avalanche/object-container';
@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';
.container {
@include o-container(64rem, 1rem);
}
About
Author
Markus Oberlehner
Twitter: https://twitter.com/MaOberlehner
PayPal.me: https://paypal.me/maoberlehner
License
MIT