![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@avalanche/object-grid
Advanced tools
Fluid width, responsive grid system.
npm install @avalanche/object-grid --save-dev
// Import the main file.
@import 'node_modules/@avalanche/object-grid/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-grid';
// Import just the classes you need.
@import '{ .o-grid } from ~@avalanche/object-grid';
// Not a fan of the "o-" prefix?
@import '{ .o-grid as .grid, > .o-grid__item as > .grid__item } from ~@avalanche/object-grid';
<div class="o-grid">
<div class="o-grid__item">
<div>Grid item 1</div>
</div>
<div class="o-grid__item">
<div>Grid item 2</div>
</div>
<div class="o-grid__item">
<div>Grid item 3</div>
</div>
<div class="o-grid__item">
<div>Grid item 4</div>
</div>
</div>
<div class="o-grid o-grid--xl">
<div class="o-grid__item">
<div>Grid item 1</div>
</div>
<div class="o-grid__item">
<div>Grid item 2</div>
</div>
<div class="o-grid__item">
<div>Grid item 3</div>
</div>
<div class="o-grid__item">
<div>Grid item 4</div>
</div>
</div>
<div class="o-grid o-grid--xl-vertical">
<div class="o-grid__item">
<div>Grid item 1</div>
</div>
<div class="o-grid__item">
<div>Grid item 2</div>
</div>
<div class="o-grid__item">
<div>Grid item 3</div>
</div>
<div class="o-grid__item">
<div>Grid item 4</div>
</div>
</div>
To compensate for the vertical spacing of the grid items, the base grid block element (.o-grid
) uses a negative value for margin top. If the grid is the first element inside a wrapping element, this can lead to an odd behavior where the negative margin is carried over by the wrapping element. You need to clear the negative margin by adding a clearfix to the wrapping element. See the following CodePen for an example of the problem and how to solve it: http://codepen.io/maoberlehner/pen/BpJVGO.
@import 'node_modules/@avalanche/object-grid/scss/mixins';
// Usage.
.grid {
@include o-grid();
}
.grid__item {
@include o-grid-item();
}
/// Default horizontal gutter.
/// @type String
$o-grid-gutter-horizontal-default: m !default;
/// Default vertical gutter.
/// @type String
$o-grid-gutter-vertical-default: m !default;
Markus Oberlehner
Website: https://markus.oberlehner.net
Twitter: https://twitter.com/MaOberlehner
PayPal.me: https://paypal.me/maoberlehner
MIT
FAQs
Fluid width, responsive grid system
The npm package @avalanche/object-grid receives a total of 33 weekly downloads. As such, @avalanche/object-grid popularity was classified as not popular.
We found that @avalanche/object-grid 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.