1.0.9 • Published 11 months ago

os2display-grid-generator v1.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

Grid-generator

This is a grid generator for os2display.

createGrid

Input is columns and rows, from which it creates and returns a string for grid area templates css property.

createGrid(2, 2);

Return:

'a b'
'c d'

and

createGrid(3, 4);

Return:

'a b c d'
'e f g h'
'i j k l'

createGridArea

Input is an array defining which columns the grid area should span.

output is a string for the grid-area css property.

createGridArea(["a", "d"]);

Return:

"a / a / d / d"

Testing

With jest

yarn test

Linting

check-coding-standards
apply-coding-standards
1.0.9

11 months ago

1.0.8

2 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago