0.4.1 • Published 4 years ago
postcss-grid-fluid v0.4.1
postcss-grid-fluid
francoisromain.github.io/postcss-grid-fluid
A PostCSS plugin to create fluid grids.
Installation
Install the npm package:
npm install postcss postcss-grid-fluid --save-dev
Require the PostCSS plugin:
postcss([require('postcss-grid-fluid')]);
See PostCSS docs to setup with Gulp, Grunt, Webpack, npm scripts…
Configuration (optional)
Option 1: In javascript
{
width: 1, /* width/total of one blob integer if there is a _total_ or a float smaller than 1. */
gutter: 0, /* width of the gutter */
display: 'flex' /* 'float' or 'flex' */
}
Option 2: in css
@gf {
width: 1; /* width/total of one blob */
gutter: 0; /* width of the gutter */
display: flex; /* float or flex */
}
If no configuration, the default value.
Usage
Rows
gf: row ([gutter])
- gutter (optional, default = 0): width of the gutter in
px
orrem
.
Rows are intended to contain a blob. They have a negative right margin.
Blobs
gf: blob [width](/[total]) ([gutter]) ([display])
- width: width of the blob. Could be an integer if there is a total or a float smaller than 1.
- total (optional, default = 1): divider of the container width.
- gutter (optional, default = 0): width of the gutter in
px
orrem
. - display (optional, default =
flex
):float
orflex
.
0.4.1
4 years ago
0.4.0
4 years ago
0.3.4
6 years ago
0.3.3
7 years ago
0.3.2
7 years ago
0.3.1
7 years ago
0.3.0
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.19
8 years ago
0.1.18
8 years ago
0.1.17
8 years ago
0.1.16
8 years ago
0.1.15
8 years ago
0.1.14
9 years ago
0.1.12
9 years ago
0.1.11
9 years ago
0.1.10
9 years ago
0.1.9
9 years ago
0.1.8
9 years ago
0.1.7
9 years ago
0.1.6
9 years ago
0.1.5
9 years ago
0.1.4
9 years ago
0.1.3
9 years ago
0.1.2
9 years ago
0.1.1
9 years ago
0.1.0
9 years ago