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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user