d-gird
v1.0.3
Published
Responsive grid system.
Downloads
1
Readme
Installing
yarn add d-grid
or via npm
npm install d-gird
In Template
<link rel="stylesheet" href="node_modules/d-grid/d-grid.min.css">
ES-Module
import 'd-grid';
In Scss
@import "~d-grid";
Classes
.d-grid
Applying display: grid;
style.
.grid-gap-{n}
n
- gap size in range 1-12
Applying gap between rows and columns.
.row-gap-{n}
n
- gap size in range 1-12
Applying gap between rows only.
.col-gap-{n}
n
- gap size in range 1-12
Applying gap between columns only.
.fit-min-{n}
n
- column min-width in range 1-12
Expand columns to available space and apply column min-width.
.fill-min-{n}
n
- column min-width in range 1-12
Fill the row to maximum number of columns and apply column min-width.
Scss Variables
$gaps: 12
- max range of gap classes$fits: 12
- max range of auto-fit classes$fills: 12
- max range of auto-fill classes$minGap: 2px
- min gap size inpx
$maxGap: 190px
- max gap size inpx
$minWidth: 40px
- min column width inpx
$maxWidth: 1000px
- max column width inpx
Build
1. Install dependencies.
yarn install
2. Run build script.
yarn build
3. Check out dist
folder.
d-grid/
├── dist/
│ ├── d-grid.css
│ ├── d-grid.css.map
│ ├── d-grid.min.css