From 82457603b65b177e70793eebbcf5a9c23873a770 Mon Sep 17 00:00:00 2001 From: Jacob Rask Date: Sun, 19 Feb 2012 21:49:17 +0100 Subject: Separate span12 and container classes If you have less than 12 columns, container is too wide. Instead generate container width using the @gridColumns variable. Also remove duplicate container width property. --- less/mixins.less | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'less') diff --git a/less/mixins.less b/less/mixins.less index 3cf1a3704..bf0c58f32 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -142,7 +142,6 @@ // Site container // ------------------------- .container-fixed() { - width: @gridRowWidth; margin-left: auto; margin-right: auto; .clearfix(); @@ -185,8 +184,8 @@ .span9 { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 9); } .span10 { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 10); } .span11 { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 11); } - .span12, - .container { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 12); } + .span12 { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 12); } + .container { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, @gridColumns); } // Offset column options .offset1 { #gridSystem > .offset(@gridColumnWidth, @gridGutterWidth, 1); } .offset2 { #gridSystem > .offset(@gridColumnWidth, @gridGutterWidth, 2); } -- cgit v1.2.3