just-the-grid

Just a handy flex grid to build any layout you want.

Usage no npm install needed!

<script type="module">
  import justTheGrid from 'https://cdn.skypack.dev/just-the-grid';
</script>

README

Just The Grid

Just a handy flex grid to build any layout you want.

About

The grid is build using the flex css property, which makes it easy to create any layout you want. If you are familiar with the Bootstrap Grid, you will find many similarities, if you are a novice - it will take only some minutes to understand, how it works.

Installation

There are several options, how you can install the grid:

Npm

npm i just-the-grid --save

GitHub

GitHub

Documentation

Here is the list of classes:

Containers

.container

.container-fluid

Rows

.row

Direction

.direction-..-row (default behaviour | sm and up)

.direction-..-row-reverse

.direction-..-column

.direction-..-column-reverse

Main Axis Alignment

.align-..-start (default behaviour | sm and up)

.align-..-center

.align-..-end

.align-..-around

.align-..-between

Cross Axis Alignment

.align-..-stretch (default behaviour | sm and up)

.align-..-baseline

.align-..-top

.align-..-middle

.align-..-bottom

Columns

.col-(xs | sm | md | lg)-(1 - 12)

Offsets

.offset-(xs | sm | md | lg)-(0 - 12)

Ordering

.order-..-first

.order-..-last

Visibility

.hidden-..

.hidden-(xs | sm | md)-up

License

MIT