diff --git a/docs/layout/grid.md b/docs/layout/grid.md
index 26ff36c410..5d37880c0f 100644
--- a/docs/layout/grid.md
+++ b/docs/layout/grid.md
@@ -64,11 +64,11 @@ See how aspects of the Bootstrap grid system work across multiple devices with a
|
Extra small
- <544px
+ <576px
|
Small
- ≥544px
+ ≥576px
|
Medium
@@ -93,9 +93,9 @@ See how aspects of the Bootstrap grid system work across multiple devices with a
|
Container width |
None (auto) |
- 576px |
+ 540px |
720px |
- 940px |
+ 960px |
1140px |
@@ -112,7 +112,7 @@ See how aspects of the Bootstrap grid system work across multiple devices with a
Gutter width |
- 1.875rem / 30px (15px on each side of a column) |
+ 30px (15px on each side of a column) |
Nestable |
@@ -154,7 +154,7 @@ $grid-breakpoints: (
// Extra small screen / phone
xs: 0,
// Small screen / phone
- sm: 544px,
+ sm: 576px,
// Medium screen / tablet
md: 768px,
// Large screen / desktop
@@ -164,9 +164,9 @@ $grid-breakpoints: (
);
$container-max-widths: (
- sm: 576px,
+ sm: 540px,
md: 720px,
- lg: 940px,
+ lg: 960px,
xl: 1140px
);
{% endhighlight %}
@@ -512,7 +512,7 @@ $grid-breakpoints: (
$container-max-widths: (
sm: 420px,
md: 720px,
- lg: 940px
+ lg: 960px
);
{% endhighlight %}
diff --git a/scss/_variables.scss b/scss/_variables.scss
index 52bd0eb817..c7de511f6b 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -125,7 +125,7 @@ $link-hover-decoration: underline !default;
$grid-breakpoints: (
xs: 0,
- sm: 544px,
+ sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px
@@ -138,9 +138,9 @@ $grid-breakpoints: (
// Define the maximum width of `.container` for different screen sizes.
$container-max-widths: (
- sm: 576px,
+ sm: 540px,
md: 720px,
- lg: 940px,
+ lg: 960px,
xl: 1140px
) !default;
@include _assert-ascending($container-max-widths, "$container-max-widths");
diff --git a/scss/mixins/_grid.scss b/scss/mixins/_grid.scss
index b381ba900e..88cbd249a0 100644
--- a/scss/mixins/_grid.scss
+++ b/scss/mixins/_grid.scss
@@ -17,7 +17,8 @@
@mixin make-container-max-widths($max-widths: $container-max-widths, $breakpoints: $grid-breakpoints) {
@each $breakpoint, $container-max-width in $max-widths {
@include media-breakpoint-up($breakpoint, $breakpoints) {
- max-width: $container-max-width;
+ width: $container-max-width;
+ max-width: 100%;
}
}
}