1.0.1 • Published 5 years ago

lmbgrid v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░▓▓▓▓▓▓░░░▓▓▓▓▓▓░░░▓▓▓▓▓▓░░▓▓▓▓▓▓░░░░░░░░░░░░░░░░
░░░░░░░░░░░░▓▓░░░░░░░░▓▓░░░░▓▓░░░░▓▓░░░░▓▓░░░░▓▓░░░░░░░░░░░░░░
░░░░░░░░░░░░▓▓░░▓▓▓▓░░▓▓▓▓▓▓░░░░░░▓▓░░░░▓▓░░░░▓▓░░░░░░░░░░░░░░
░░░░░░░░░░░░▓▓░░░░▓▓░░▓▓░░░░▓▓░░░░▓▓░░░░▓▓░░░░▓▓░░░░░░░░░░░░░░
░░░░░░░░░░░░░░▓▓▓▓▓▓░░▓▓░░░░▓▓░░▓▓▓▓▓▓░░▓▓▓▓▓▓░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

Grid is a collection of mixins and variables to create your own css layout framework quickly. It relies on calc() and advanced CSS selectors.


Setup

  1. Clone the repo or npm install lmbgrid
  2. Include the _grid.scss file in your Sass

Usage

.grid-container-element {
  $grid-children: '.grid-column-element' !global;
  @include grid-container();
  @include grid(1, 2, 4, 5);
}
.grid-column-element {
  ...
}

The above styles will result in a .grid-container-element which has 4 columns and the layout will be something like this:

| 1 |  2  |    4    |     5     |

Or you can also just do one-off columns like this:

.grid-column-element {
  @include grid-col(6);
}

Variables

$grid-gutters 10px

Sets the width of the gutters between the columns.

$grid-columns 12

Sets the number of columns to run the column/gutter calculations against.

$grid-children div

Sets the element that will be used when running the grid() mixin.

Demo

You can see it in action here.

1.0.1

5 years ago

1.0.0

5 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago