Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@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 2 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.