griddybox
v1.2.0
Published
CSS framework that uses CSS Grid with fallback to Flexbox grid
Downloads
2
Maintainers
Readme
Griddybox
Simple 12-column grid based on CSS Grid with IE11+ support that uses power of SCSS Mixins. It gives you more clean HTML than if using other grids.
Installation
- via npm
$ npm i griddybox --save
- download zip archive from GitHub
Import into your project
Import it into your project via importing from:
- node_modules
@import 'griddybox/src/scss/import-now';
- directly from your SCSS styles source folder
For example:
@import 'griddybox/import-now'
Usage
Griddybox allows you to use grid-flex-fallbacked grid or only flexbox grid
Usage for all types of grid:
Container -- similar to Bootstrap 4 grid layout
@include container;
Usage for grid-flex-fallbacked grid
Row
@include row;
Columns
@include col($columns)
where $columns can be any number from 1 to 12 like in Bootstrap or any other grids
Flexbox-only grid
Row
@include row-f
Columns
@include col-f($columns)
where $columns can be any number from 1 to 12 like in Bootstrap or any other grids
Fluid columns
@include col-f-auto