Skip to content

jasongilmour/responsive-layout-mixin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Responsive Layout Mixin

A simple responsive SCSS layout mixin, being used on jasongilmour.co.uk

Usage

The mixin comes set up as a fluid 16 column grid with 2 breakpoints, so on large screens, a 16 column layout is used, on medium screens an 8 column grid is used and on small screens a 1 column grid is used.

The number of columns on the largest screen is defined by the $columns variable, the medium size uses half this number and the smallest screens always use a 1 column layout. The breakpoints can also be changed in the variables file.

Use the .span-* class to define how many columns an element should span on large screens.

The .push-* class adds a left margin equal to the given number of columns on large screens.

The .pull-* class adds a negative left margin equal to the given number of columns on large screens.

The .post-* class adds a right margin equal to the given number of columns on large screens.

The .post-pull-* class adds a negative right margin equal to the given number of columns on large screens.

About

A simple responsive SCSS layout mixin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages