aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2017-05-26 20:20:19 -0700
committerMark Otto <[email protected]>2017-05-26 20:20:19 -0700
commitf8c150fbe037259f6f97b7f4dfdb9b51bd68713f (patch)
tree0ae6d662c716d7243cd20cc932ab4df32f302566
parent4282d892f37e6b44f31c5f6bc0fa693f147c6e59 (diff)
parent7e1497ddb8570a300cb2ba1a84cc37b278aeab20 (diff)
downloadbootstrap-f8c150fbe037259f6f97b7f4dfdb9b51bd68713f.tar.xz
bootstrap-f8c150fbe037259f6f97b7f4dfdb9b51bd68713f.zip
Merge branch 'v4-dev' of https://github.com/twbs/bootstrap into v4-dev
-rw-r--r--scss/mixins/_grid.scss6
1 files changed, 5 insertions, 1 deletions
diff --git a/scss/mixins/_grid.scss b/scss/mixins/_grid.scss
index 87920e284..b6d980577 100644
--- a/scss/mixins/_grid.scss
+++ b/scss/mixins/_grid.scss
@@ -67,7 +67,11 @@
}
@mixin make-col($size, $columns: $grid-columns) {
- width: percentage($size / $columns);
+ flex: 0 0 percentage($size / $columns);
+ // Add a `max-width` to ensure content within each column does not blow out
+ // the width of the column. Applies to IE10+ and Firefox. Chrome and Safari
+ // do not appear to require this.
+ max-width: percentage($size / $columns);
}
@mixin make-col-offset($size, $columns: $grid-columns) {