Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@avalanche/object-container
Advanced tools
Basic container class to limit the max-width of the layout and add some padding
Basic container class to limit the max-width of the layout and add some padding.
npm install @avalanche/object-container --save-dev
// Import the main file.
@import 'node_modules/@avalanche/object-container/scss/index.scss';
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/object-container';
// Import just the classes you need.
@import '{ .o-container, .o-container--s } from ~@avalanche/object-container';
// Not a fan of the "o-" prefix?
@import '{ .o-container as .container } from ~@avalanche/object-container';
<div class="o-container">
<h2>Lorem Ipsum</h2>
<p>Contained content.</p>
</div>
Modify the container max widths via the $o-container-max-widths
map variable.
$o-container-max-widths: (
s: 32rem,
m: 64rem,
l: 96rem
);
<div class="o-container o-container--l">
<h2>Lorem Ipsum</h2>
<p>Contained content.</p>
</div>
@import 'node_modules/@avalanche/object-container/scss/mixins';
// Usage.
.container {
@include o-container(64rem, 1rem);
}
/// Container max widths.
/// @type Map
$o-container-max-widths: (
s: 32rem,
m: 64rem,
l: 96rem,
) !default;
/// Default container size.
/// @type String
$o-container-max-width-default: m !default;
/// Horizontal spacing.
/// @type String
$o-container-spacing-horizontal: m !default;
/// Horizontal centering.
/// @type Boolean
$o-container-center-horizontal: true !default;
Markus Oberlehner
Website: https://markus.oberlehner.net
Twitter: https://twitter.com/MaOberlehner
PayPal.me: https://paypal.me/maoberlehner
MIT
FAQs
Basic container class to limit the max-width of the layout and add some padding
The npm package @avalanche/object-container receives a total of 12 weekly downloads. As such, @avalanche/object-container popularity was classified as not popular.
We found that @avalanche/object-container demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.