]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fixes #7744: update grid mixin to use latest grid styles
authorMark Otto <otto@github.com>
Tue, 30 Apr 2013 20:03:10 +0000 (13:03 -0700)
committerMark Otto <otto@github.com>
Tue, 30 Apr 2013 20:03:10 +0000 (13:03 -0700)
less/mixins.less

index eb8775975beb91ce5073871a12de27861041c19c..2323d1203192f0e55f573bace2c011a1269244ac 100644 (file)
 }
 // Generate the columns
 .make-column(@columns) {
-  @media (min-width: @grid-float-breakpoint) {
-    // Calculate width based on number of columns available
-    width: percentage((@columns / @grid-columns));
-  }
+  position: relative;
+  // Float and set width: 100%; for easy stacking on mobile devices
+  float: left;
+  width: 100%;
   // Prevent columns from collapsing when empty
   min-height: 1px;
   // Inner gutter via padding
   padding-left:  (@grid-gutter-width / 2);
   padding-right: (@grid-gutter-width / 2);
+
+  // Calculate width based on number of columns available
+  @media (min-width: @grid-float-breakpoint) {
+    width: percentage((@columns / @grid-columns));
+  }
 }
 // Generate the column offsets
 .make-column-offset(@columns) {
     right: percentage((@columns / @grid-columns));
   }
 }
-// Small, mobile-first columns
-.make-small-column(@columns) {
-  position: relative;
-  float: left;
-  // Prevent columns from collapsing when empty
-  min-height: 1px;
-  // Set inner padding as gutters instead of margin
-  padding-left:  (@grid-gutter-width / 2);
-  padding-right: (@grid-gutter-width / 2);
-}
+