Skip to content

joelkrause/grid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grid

it's a 12-column grid system based on, you guessed it, css grid.

features

  • 12 column grid based on css grid
  • responsive
  • offsets
  • display properties
  • customisable through scss variables
  • includes 5 breakpoints (with the ability to customise/add what ever you like!)

how to use

import grid.scss into your project

example

<div class="grid">
    <div class="col-12 col-md-6 col-lg-8 offset-md-3 offset-lg-2">
        <h1>Column Example</h1>
    </div>
</div>
<div class="d-none d-md-block d-lg-flex">
    Hidden on mobile, display block on tablet, display flex on tablet landscape
</div>

classes

.grid is the wrapper element for the grid structure

.col-bp-width is the column element, e.g .col-lg-6

but... why?

i love bootstrap, but it's too much. all i need in a project is a solid grid structure, with the occasional hide/show div depending on the breakpoint. i hacked bootstrap so much that i nearly damn created a whole new version, so i figured i'd just build my own #devlife

Releases

No releases published

Packages

No packages published