Skip to content

kalisjoshua/anygrid.less

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

AnyGrid.less

Borrowing heavily from the 960 grid system I wanted something similar but with some responsive-ness to it, along with some flexibility of overall width and possible changes to the gutters.

Checkout the Many Grids demo

Easily define a grid system for your site; to define the standard 12 column 960px grid system, use:

@import "anygrid";

@max_width          : 960px;

.container_12 { #anygrid > #system(12, @max_width); }
#anygrid > #responsive();

To add media query responsive-ness to the grid elements define a few variables for widths and call the responsive namespace.

@import "anygrid";

@max_width          : 960px;
@max_less           : @max_width - 1;
@iPhone_portrait    : 300px;
@iPhone_landscape   : 480px;
@iPad_portrait      : 740px;

.container_12 { #anygrid > #system(12, @max_width); }
#anygrid > #responsive();

About

CSS grids, heavily inspired by 960.gs, written in LESS to add some flexibility in overall width and gutter size. Responsive(ness) is based on only one breakpoint.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published