1.0.13 • Published 7 years ago

mavi-grid v1.0.13

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

Mavi-grid

A simple SASS customizable grid, that enables you to modify the media queries breakpoints, gutter and small gutter and the number of columns

Install

Compile the grid.scss file and export it in a css file like "grid.css" then include it in your html:

<!doctype html>
<html lang="en">
<head>
   <link rel="stylesheet" href="grid.css">
</head>
<body>
    <div class="container">
        <div class="row">
            <div class="small-12 medium-4 large-6 x-large-6">
                <p>Hello world</p>
            </div>
        </div>
        
        <div class="row">
            <div class="container-fluid">
                <p>Container fluid (column without width and float)</p>
            </div>
        </div>
        
        <div class="row">
            <div class="medium-offset-left-2 medium-5">
                <p>A 5 wide column moved two columns from left to right</p>
            </div>
        </div>
    </div>
</body>
</html>

###You can modify all vars

These are the default values:

//Global Variables
$colNumber   : 12 !default;
$gutter      : 30 !default;
$gutterSmall : 30 !default;
$maxWidth    : 1200 !default;

//Breakpoints
$breakPoints: 4;
$small :  767  !default; // 0, 767
$medium:  768  !default; // 768, 991
$large :  992  !default; // 992, 1200
$xlarge:  1200 !default; // 1201 , X

You can put your own configuration if you copy these variables and put them above your import of the "grid.scss" file. In the next example we are saying to the grid to have a gutter of 20 when you are in the small breakpoint:

$gutterSmall : 20;
@import "node_modules/mavi-grid/grid";

Utils

  • Hidden Breakpoint Classes : hidden-{breakpoint}
  • Pull Classes (floats): pull-right / pull-left
  • Offset Breakpoint Classes: medium-offset-right-2 / medium-offset-left-2

Prerequisites

Ruby
Sass

Support

All browsers
IE <= 8

Nothing more ;)

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago