New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@avalanche/object-grid

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@avalanche/object-grid

Fluid width, responsive grid system

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

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@avalanche/object-grid

Fluid width, responsive grid system.

Install

npm install @avalanche/object-grid --save

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-grid';

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

Demo

<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>

Gutter

Activate horizontal / vertical gutter modifier classes via the $o-grid-horizontal-gutter / $o-grid-vertical-gutter map variables.

$o-grid-horizontal-gutter: (l);
$o-grid-vertical-gutter: (l);
<div class="o-grid o-grid--horizontal-gutter-l o-grid--vertical-gutter-l">
  <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>

Gutter breakpoints

To activate gutter breakpoint modifier classes, use the $o-grid-horizontal-gutter-breakpoints / $o-grid-vertical-gutter-breakpoints map variables.

$o-grid-horizontal-gutter-breakpoints: (
  l: (m),
);
$o-grid-vertical-gutter-breakpoints: (
  l: (m),
);
<div class="o-grid o-grid--horizontal-gutter-l@m o-grid--vertical-gutter-l@m">
  <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>

Mixins

@import '~@avalanche/object-grid/scss/mixin';

// Usage.
.grid {
  @include o-grid();
  @include o-grid-horizontal-gutter(1em, '.grid__item');
  @include o-grid-vertical-gutter(1em, '.grid__item');
}

.grid__item {
  @include o-grid-item();
}

About

Author

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

License

MIT

Keywords

FAQs

Package last updated on 25 Nov 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