Redefine what it means to be a grid.
- Powered by CSS Grid, the most powerful in CSS layout.
- Absolutely annihilate and exterminate tons of code from your markup.
- With Gridify.scss, there is no need for bloating classes like
.row
or.col-sm-8
.
- With Gridify.scss, there is no need for bloating classes like
- Run your own show with customizable grids.
- Why is it always 12 columns? Gridify lets you specify the number of columns you want in your grid.
- Make responsive design a breeze.
- Simply call the scss mixin from inside a media query and redefine what it means to be a grid.
There are two main ways the project could be used.
- add the mixins file from
scss/_gridify-mixins.scss
into your project. - Include the
gridify()
mixin to define a grid container with the desired number of columns, gap sizes, and rows. - Place grid items inside grid using CSS
grid-template-areas
orgrid-column
/grid-row
- Compile along with the rest of your scss.
- Profit from easy layouts!
- Copy the compiled
gridify-dist.css
file into your project - Use the pre-defined classes to define a grid container's properties.
- Place grid items inside using CSS properties
- Profit from easy layouts!
- Mixin to declare a grid container with adjustable columns, gap size, and rows.
- Mixins for testing CSS Grid Support and fallback code
An example codepen is available for trying out all the features.
- Some Knowledge of CSS Grid. Check a great resource here.
- Does not support Internet Explorer until Edge 16+ (caniuse).
Please feel free to contribute to the project with suggestions, issues, bug reports, as well as pull requests!
- Alex Tsirozidis, who wrote an article on ITNext which inspired this project.
- Draggable grid areas (Would require lots of JavaScript)
- Responsive grid classes.
- Classes for placing items in a grid.