]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
.container, .container-fluid should be conditional upon $enable-grid-classes 18695/head
authorBass Jobsen <bass@w3masters.nl>
Sat, 26 Dec 2015 23:14:01 +0000 (00:14 +0100)
committerBass Jobsen <bass@w3masters.nl>
Sat, 26 Dec 2015 23:14:01 +0000 (00:14 +0100)
see: https://github.com/twbs/bootstrap/issues/17586

scss/_grid.scss

index a71f3aaf24a031c3b6f8b560203358c38969fb2a..d846f098c4dac614f6f18c7f67b9e7d6b4fe73dc 100644 (file)
@@ -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.