2.0.0 • Published 5 years ago

@sfem/grid v2.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

sfem.grid

Install

npm install -S @sfem/grid

or

yarn add @sfem/grid

css

Add the sfem-grid.css development or sfem-grid.min.css production to your html page.

<link rel="stylesheet" href="css/sfem-grid.min.css" type="text/css">

Using in scss

@import "~@sfem/grid/src/sfem-grid.scss"; // if node-sass-tilde-importer installed or relative path if not

// class names setting
$sfem-grid-name: 'grd'; // default: grid
$sfem-grid-box-name: 'bxs'; // default: grid__box

// Grid sets. We can generate grids with various nums of columns
$sfem-grid-columns: (10, 12); // default: (12)

// Grid padding
$sfem-grid-gap-base: 20; // default: 24
$sfem-grid-gaps: (2, 6, 9); // default: (0, 8, 16)

// Screen size breakpoints (default)
// after change this variable keys in class names will be changed
$sfem-grid-breakpoint: (
    xxs: 320px,
    xs: 640px,
    s: 768px,
    m: 1024px,
    l: 1280px,
    xl: 1440px,
    xxl: 1600px
) // default from @sfem/breakpoint;

Full documentation

2.0.0

5 years ago

1.1.0

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.9

6 years ago

0.5.8

6 years ago

0.5.7

6 years ago

0.5.6

6 years ago

0.5.5

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago