aboutsummaryrefslogtreecommitdiff
path: root/scss/_grid.scss
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2015-08-23 22:13:58 -0700
committerMark Otto <[email protected]>2015-08-23 22:13:58 -0700
commit7633d4c603d916bb2174dd5a6d4063449088caef (patch)
treeec468281ab3bf8708f012cda07f5453eead39c65 /scss/_grid.scss
parent4b63173a41ccb52f5db399557fac89aadf150826 (diff)
downloadbootstrap-7633d4c603d916bb2174dd5a6d4063449088caef.tar.xz
bootstrap-7633d4c603d916bb2174dd5a6d4063449088caef.zip
Make predefined grid classes conditional
- Add explicit -grid-classes variable and set to true by default - Wrap .row and .col generation in the boolean var
Diffstat (limited to 'scss/_grid.scss')
-rw-r--r--scss/_grid.scss12
1 files changed, 8 insertions, 4 deletions
diff --git a/scss/_grid.scss b/scss/_grid.scss
index b71d5b03d..c0988f732 100644
--- a/scss/_grid.scss
+++ b/scss/_grid.scss
@@ -28,8 +28,10 @@
//
// Rows contain and clear the floats of your columns.
-.row {
- @include make-row();
+@if $enable-grid-classes {
+ .row {
+ @include make-row();
+ }
}
@@ -37,14 +39,16 @@
//
// Common styles for small and large grid columns
-@include make-grid-columns();
+@if $enable-grid-classes {
+ @include make-grid-columns();
+}
// Flex variation
//
// Custom styles for additional flex alignment options.
-@if $enable-flex {
+@if $enable-flex and $enable-grid-classes {
// Flex column reordering