1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
@if $enable-grid-classes { @each $breakpoint, $container-max-width in $container-max-widths { .container-max-#{$breakpoint} { @extend .container; } @include media-breakpoint-up($breakpoint, $grid-breakpoints) { .container-max-#{$breakpoint} { @if($container-max-width != 0) { max-width: $container-max-width; } @else { max-width: 100%; } } } } } |
wstawiać po includowaniu bootstrapowskiego pliku z containerami;