Sha256: b5f73ec87806160bcfd1fdf54bc5c63f8f2433b69c72404b36c0d1f3c9385d4e
Contents?: true
Size: 1.08 KB
Versions: 6
Compression:
Stored size: 1.08 KB
Contents
// Fixed grid system based on a merge of Blueprint and 960gs. $grid-gutter-width: 10px !default; $grid-width: 960px !default; $grid-columns: 24 !default; $grid-column-width: $grid-width / $grid-columns * 1 - $grid-gutter-width; @mixin container{ margin-left: auto; margin-right: auto; width: $grid-width; @include pie-clearfix; } @function span($n){ @return $grid-width / $grid-columns * $n - $grid-gutter-width; } @mixin column-base($gutter: $grid-gutter-width){ display: inline; float: left; margin-left: $gutter / 2; margin-right: $gutter / 2; } @mixin column($n, $last:false){ @include column-base($grid-gutter-width); @if $last{ margin-right:0; } width:span($n); } @mixin first{ margin-left:0; } @mixin last{ margin-right:0; } @mixin prefix($n, $cols: $grid-columns){ padding-left: $grid-width / $grid-columns * $n; } @mixin suffix($n, $cols: $grid-columns){ padding-right: $grid-width / $grid-columns * $n; } @mixin push($n){ position:relative; left: ($grid-width / $grid-columns * $n); } @mixin pull($n){ position:relative; left: -($grid-width / $grid-columns * $n); }
Version data entries
6 entries across 6 versions & 1 rubygems