]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Flexbox grid updates (#20829)
authorMark Otto <markd.otto@gmail.com>
Mon, 3 Oct 2016 04:10:06 +0000 (21:10 -0700)
committerGitHub <noreply@github.com>
Mon, 3 Oct 2016 04:10:06 +0000 (21:10 -0700)
* Fixes #20775 without adding extra width and an important flag

* Since we're now getting the extend, we don't need the extra position relative

* rerrange

* getting min-height from the extend already

scss/mixins/_grid-framework.scss

index 0e3852e24bf5f027f639d37bce8cf2c68efd23ef..35ccd9221ed8bab6c126e9513c937b21f4e9e6d6 100644 (file)
   @each $breakpoint in map-keys($breakpoints) {
     $breakpoint-counter: ($breakpoint-counter + 1);
 
+    // Allow columns to stretch full width below their breakpoints
+    .col-#{$breakpoint} {
+      @extend %grid-column;
+    }
+
     @for $i from 1 through $columns {
       .col-#{$breakpoint}-#{$i} {
         @extend %grid-column;
       // Provide basic `.col-{bp}` classes for equal-width flexbox columns
       @if $enable-flex {
         .col-#{$breakpoint} {
-          position: relative;
           flex-basis: 0;
           flex-grow: 1;
           max-width: 100%;
-          min-height: 1px;
         }
       }