1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 17:11:48 +02:00

flip things around again, no more base class, try out some new stuff to keep responsive flex grid working

This commit is contained in:
Mark Otto
2016-02-06 10:51:59 -08:00
parent 94999c98cf
commit 414997baa8
15 changed files with 216 additions and 187 deletions

View File

@@ -9,14 +9,22 @@
$breakpoint-counter: ($breakpoint-counter + 1);
@include media-breakpoint-up($breakpoint, $breakpoints) {
// Work around cross-media @extend (https://github.com/sass/sass/issues/1050)
%grid-column-float-#{$breakpoint} {
float: left;
// %grid-column-float-#{$breakpoint} {
// float: left;
// }
@if $enable-flex {
.col-#{$breakpoint} {
@include make-col($gutter);
flex-basis: 0;
flex-grow: 1;
max-width: 100%;
}
}
@for $i from 1 through $columns {
.col-#{$breakpoint}-#{$i} {
@if not $enable-flex {
@extend %grid-column-float-#{$breakpoint};
}
// @if not $enable-flex {
// @extend %grid-column-float-#{$breakpoint};
// }
@include make-col-span($i, $columns);
}
}