Skip to content

raheemazeezabiodun/float-based-grid-layout-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Responsive Float Based Grid Layout system

A simple responsive based layout system built with float property and SASS

Breakpoints

  • phone - 600px
  • Tablet-Portrait - 900px
  • Tablet-Landscape - 1200px
  • Big Desktop - 1800px+

Example

Screenshot01

Retrieve code

  • $ git clone https://github.com/raheemazeezabiodun/float-based-grid-layout-system.git
  • $ cd float-based-grid-layout-system
  • yarn install

Usage

If you are writing SASS(SCSS), copy the sass folder to your project If you prefer to use CSS, generate the css file by compiling sass using the following command

  • yarn run compile:sass

To use this float based grid system,

wrap the column in a row container

<div class="row">

Then call any of the column class e.g <div class="col-1-of-4">

<div class="row">
    <div class="col-1-of-2">Col 1 of 2</div>
    <div class="col-1-of-4">Col 1 of 4</div>
    <div class="col-2-of-4">Col 2 of 4</div>
</div>

Classes

  • <div class="col-1-of-2"></div>
  • <div class="col-1-of-3"></div>
  • <div class="col-1-of-4"></div>
  • <div class="col-2-of-3"></div>
  • <div class="col-2-of-4"></div>
  • <div class="col-3-of-4"></div>

TODO

Do you want to contribute to this project? A quick way to do that is to use the function in abstracts/_functions.scss in layouts/_grid.scss

About

A Float based grid layout system built with SASS(SCSS)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages