diff options
| author | Jacob Rask <[email protected]> | 2012-02-19 21:49:17 +0100 |
|---|---|---|
| committer | Jacob Rask <[email protected]> | 2012-02-19 21:49:17 +0100 |
| commit | 82457603b65b177e70793eebbcf5a9c23873a770 (patch) | |
| tree | 10c5f01f071fe2420a96a27f20a3ef68fcb9bb0d | |
| parent | ac6e667ad9ae57c5caa977fd6593a2299887737a (diff) | |
| download | bootstrap-82457603b65b177e70793eebbcf5a9c23873a770.tar.xz bootstrap-82457603b65b177e70793eebbcf5a9c23873a770.zip | |
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.
| -rw-r--r-- | docs/assets/bootstrap.zip | bin | 53408 -> 53417 bytes | |||
| -rw-r--r-- | docs/assets/css/bootstrap-responsive.css | 10 | ||||
| -rw-r--r-- | docs/assets/css/bootstrap.css | 6 | ||||
| -rw-r--r-- | less/mixins.less | 5 |
4 files changed, 14 insertions, 7 deletions
diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip Binary files differindex df4dc7ff2..d1b9b51e0 100644 --- a/docs/assets/bootstrap.zip +++ b/docs/assets/bootstrap.zip diff --git a/docs/assets/css/bootstrap-responsive.css b/docs/assets/css/bootstrap-responsive.css index 906485e6d..9dd71c62d 100644 --- a/docs/assets/css/bootstrap-responsive.css +++ b/docs/assets/css/bootstrap-responsive.css @@ -161,7 +161,10 @@ .span11 { width: 662px; } - .span12, .container { + .span12 { + width: 724px; + } + .container { width: 724px; } .offset1 { @@ -447,7 +450,10 @@ .span11 { width: 1070px; } - .span12, .container { + .span12 { + width: 1170px; + } + .container { width: 1170px; } .offset1 { diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 71ab7a9d4..ba403461b 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -168,7 +168,10 @@ a:hover { .span11 { width: 860px; } -.span12, .container { +.span12 { + width: 940px; +} +.container { width: 940px; } .offset1 { @@ -259,7 +262,6 @@ a:hover { width: 99.99999998999999%; } .container { - width: 940px; margin-left: auto; margin-right: auto; *zoom: 1; 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); } |
