1.5.0 • Published 7 months ago

gridline v1.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

npm GitHub package version NPM Downloads

Install

yarn add gridline

Import

CSS

@import "gridline/dist";

SCSS

@import "gridline/src";

Usage

<div class="gridline">
  <div>
    ...
  </div>
  ...
</div>

Settings

Container

HTML classRequires a childDescription
.gridlineWill create a container that will occupy the full width of the layout.
.gridline--centerCreates a container aligned to the center of the layout.
.gridline--leftCreates a container, the left edge of which will be stretched to the left edge of the layout.
.gridline--rightCreates a container, the right edge of which will be stretched to the right edge of the layout.
.gridline--scrollingrequiredWill create a container that, when overflowing with content horizontally, will receive a horizontal scroll.
.gridline--collapseLines up the grid in a single column.

CSS styling

VariableTargetDefaultUnitDescription
--width.gridline100%pxWidth of the layout.
--padding.gridline20pxpx, vwSets indents between columns.
--gap.gridline20pxpx, vwSets indents between columns. 0px to turn off gap.
--columnchild1integer or decimalSets column width.
--offsetchild0integer or decimalSets the column offset to the right.

Continue to the edge

Scrolling

License

1.5.0

7 months ago

1.4.0

8 months ago

1.3.0

8 months ago

1.2.0

8 months ago

1.1.4

8 months ago

1.1.2

8 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.0.0

8 months ago

0.0.1-alpha.2

8 months ago

0.0.1-alpha.1

8 months ago