From a6d5f6743f41c0e62fa7e97dc7faa5d1a47f2456 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 3 May 2011 17:35:08 -0700 Subject: Changing up boostrap for better grid variable management and grid structuring --- less/bootstrap.less | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'less/bootstrap.less') diff --git a/less/bootstrap.less b/less/bootstrap.less index a261babf0..9e131a909 100644 --- a/less/bootstrap.less +++ b/less/bootstrap.less @@ -32,6 +32,12 @@ // Baseline grid @baseline: 20px; +// Griditude +@grid_columns: 16; +@grid_column_width: 40px; +@grid_gutter_width: 20px; +@site_width: (@grid_columns * @grid_column_width) + (@grid_gutter_width * (@grid_columns - 1)); + /* Mixins -------------------------------------------------- */ @@ -92,9 +98,10 @@ } // Grid System -@grid_columns: 16; -@grid_column_width: 40px; -@grid_gutter_width: 20px; +.container { + width: @site_width; + margin: 0 auto; +} .columns(@column_span: 1) { display: inline; float: left; @@ -104,6 +111,9 @@ margin-left: 0; } } +.offset(@column_offset: 1) { + margin-left: (@grid_column_width * @column_offset) + (@grid_gutter_width * (@column_offset - 1)) !important; +} // Border Radius .border-radius(@radius: 5px) { -- cgit v1.2.3