aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-01-06 01:00:22 -0800
committerMark Otto <[email protected]>2016-01-06 01:00:22 -0800
commit3dd08d60ebbecd19b3b17c29a5103c9430694b9a (patch)
tree0bde5b6e3a8bbc21dd71856f998a62f09f9703ef
parent9262760a67fd2fdb5bb9c3ea85885cb62cb1a9da (diff)
parentddb652b8d54ea5c66682e8ce48909109e1b71198 (diff)
downloadbootstrap-3dd08d60ebbecd19b3b17c29a5103c9430694b9a.tar.xz
bootstrap-3dd08d60ebbecd19b3b17c29a5103c9430694b9a.zip
Merge pull request #18695 from bassjobsen/patch-30
.container, .container-fluid should be conditional upon $enable-grid-…
-rw-r--r--scss/_grid.scss17
1 files changed, 9 insertions, 8 deletions
diff --git a/scss/_grid.scss b/scss/_grid.scss
index a71f3aaf2..d846f098c 100644
--- a/scss/_grid.scss
+++ b/scss/_grid.scss
@@ -2,23 +2,24 @@
//
// Set the container width, and override it for fixed navbars in media queries.
-.container {
- @include make-container();
- @include make-container-max-widths();
-
+@if $enable-grid-classes {
+ .container {
+ @include make-container();
+ @include make-container-max-widths();
+ }
}
-
// Fluid container
//
// Utilizes the mixin meant for fixed width containers, but without any defined
// width for fluid, full width layouts.
-.container-fluid {
- @include make-container();
+@if $enable-grid-classes {
+ .container-fluid {
+ @include make-container();
+ }
}
-
// Row
//
// Rows contain and clear the floats of your columns.