An open API service indexing awesome lists of open source software.

https://github.com/juiceboxes/juice-grid

Lightweight, simple, grid system using CSS Grid OR Flexbox
https://github.com/juiceboxes/juice-grid

css cssgrid flexbox flexbox-grid grid grid-layout grid-system sass scss

Last synced: 11 months ago
JSON representation

Lightweight, simple, grid system using CSS Grid OR Flexbox

Awesome Lists containing this project

README

          

![Grid Size](https://img.shields.io/github/size/juiceboxes/juice-grid/juice-grid.min.css.svg)
![Travis](https://img.shields.io/travis/juiceboxes/juice-grid.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
``` html



4 Columns

8 Columns



```

#### With Gutters

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

``` html


.
.
.

```

#### Offsetting Columns
``` html



4 Column span starting at column 9 (spans col 9, 10 ,11 ,12)



```

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

#### Basic
``` html



6

6



4

4

4



```

#### With Gutters

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

``` html


.
.
.

```

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