Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@juiceboxes/juice-grid

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@juiceboxes/juice-grid

A lightweight, simple, grid system using CSS Grid OR flexbox

  • 0.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

http://img.badgesize.io/juiceboxes/juice-grid/juice-grid.min.css.svg

Juiceboxes/juice-grid

A lightweight, simple, grid system using CSS Grid OR flexbox

This is not a complete grid, but, like other juicebox repos, is a lightweight product used for rapid prototyping.

Installing

npm install @juiceboxes/juice-grid

Imports

Regular CSS: @import 'node_modules/@juiceboxes/juice-grid/juice-grid.css'

Minified CSS: @import 'node_modules/@juiceboxes/juice-grid/juice-grid.min.css'

SCSS with Variable declarations: @import 'node_modules/@juiceboxes/juice-grid/juice-grid.scss'

Useage

You have two different grid formats to use, both of which span 12 columns

1. Grid, uses CSS Grid for formatting and specified content widths

Basic
<div class="grid">
    <div class="row">
        <div class="col-4">4 Columns</div>
        <div class="col-8">8 Columns</div>
    </div>
</div>
With Gutters

Before your import of the .scss file, declare your $grid-gutter variable. Otherwise, the default is 15px.

<div class="grid with-gutters">
    .
    .
    .
</div>
Offsetting Columns
<div class="grid">
    <div class="row">
        <div class="col-4 push-8">4 Column span starting at column 9 (spans col 9, 10 ,11 ,12)</div>
    </div>
</div>

2. Flex Grid, uses flexbox for formatting and no specified content widths

Basic
<div class="grid-flex">
    <div class="row">
        <div class="col">6</div>
        <div class="col">6</div>
    </div>
    <div class="row">
        <div class="col">4</div>
        <div class="col">4</div>
        <div class="col">4</div>
    </div>
</div>
With Gutters

Before your import of the .scss file, declare your $grid-gutter variable. Otherwise, the default is 15px.

<div class="grid-flex with-gutters">
    .
    .
    .
</div>

Development

npm run start will build and watch the index.pug and src/juice-grid.scss files

Keywords

FAQs

Package last updated on 10 Jul 2018

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