Skip to content

Instantly share code, notes, and snippets.

View patelprashant's full-sized avatar

Prashant patelprashant

  • Melbourne, Australia
View GitHub Profile
@patelprashant
patelprashant / sass_grid.scss
Created October 31, 2013 05:57
SASS - Grid generator
// Custom Grid System
$grid_width : 960px;
$grid_col : 12;
$grid_gut : 20px;
body { min-width: $grid_width; }
.container_#{$grid_col} { margin-left: auto; margin-right: auto; width: $grid_width;
@for $i from 1 through $grid_col {
.grid_#{$i} { display: inline; float: left; margin-left: $grid_gut / 2; margin-right: $grid_gut / 2; }
.push_#{$i}, .pull_#{$i} { position: relative; }
.grid_#{$i} { width: ( ($grid_width / $grid_col - $grid_gut) * $i ) + (($i - 1) * $grid_gut); }
@patelprashant
patelprashant / 0_reuse_code.js
Created October 28, 2013 05:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console