From 45c5b4e45c1d6479801dc205e13b350e334ebcd0 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 3 Jun 2013 21:51:35 -0700 Subject: [PATCH] restore .col-*-12 classes for now --- docs/assets/css/bootstrap.css | 14 +++++++++++++- less/grid.less | 7 ++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 36898557d0..8642bf95db 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -786,6 +786,7 @@ pre code { .col-9, .col-10, .col-11, +.col-12, .col-lg-1, .col-lg-2, .col-lg-3, @@ -796,7 +797,8 @@ pre code { .col-lg-8, .col-lg-9, .col-lg-10, -.col-lg-11 { +.col-lg-11, +.col-lg-12 { position: relative; float: left; width: 100%; @@ -849,6 +851,10 @@ pre code { width: 91.66666666666666%; } +.col-12 { + width: 100%; +} + @media (min-width: 768px) { .col-md-1 { width: 8.333333333333332%; @@ -883,6 +889,9 @@ pre code { .col-md-11 { width: 91.66666666666666%; } + .col-md-12 { + width: 100%; + } .col-offset-1 { margin-left: 8.333333333333332%; } @@ -1018,6 +1027,9 @@ pre code { .col-lg-11 { width: 91.66666666666666%; } + .col-lg-12 { + width: 100%; + } } @media screen and (min-width: 768px) { diff --git a/less/grid.less b/less/grid.less index d4320c4188..bb99dff7e1 100644 --- a/less/grid.less +++ b/less/grid.less @@ -25,6 +25,7 @@ .col-9, .col-10, .col-11, +.col-12, .col-lg-1, .col-lg-2, .col-lg-3, @@ -35,7 +36,8 @@ .col-lg-8, .col-lg-9, .col-lg-10, -.col-lg-11 { +.col-lg-11, +.col-lg-12 { position: relative; // Float and set width: 100%; for easy stacking on mobile devices float: left; @@ -61,6 +63,7 @@ .col-9 { width: percentage((9 / @grid-columns)); } .col-10 { width: percentage((10/ @grid-columns)); } .col-11 { width: percentage((11/ @grid-columns)); } +.col-12 { width: 100%; } // Medium columns (tablets and up) @media (min-width: @screen-tablet) { @@ -75,6 +78,7 @@ .col-md-9 { width: percentage((9 / @grid-columns)); } .col-md-10 { width: percentage((10/ @grid-columns)); } .col-md-11 { width: percentage((11/ @grid-columns)); } + .col-md-12 { width: 100%; } // Offsets .col-offset-1 { margin-left: percentage((1 / @grid-columns)); } @@ -128,6 +132,7 @@ .col-lg-9 { width: percentage((9 / @grid-columns)); } .col-lg-10 { width: percentage((10/ @grid-columns)); } .col-lg-11 { width: percentage((11/ @grid-columns)); } + .col-lg-12 { width: 100%; } } // Responsive: Tablets and up