aboutsummaryrefslogtreecommitdiff
path: root/scss/_grid.scss
diff options
context:
space:
mode:
authorAlexandr Kondrashov <[email protected]>2015-09-11 16:43:00 +0300
committerAlexandr Kondrashov <[email protected]>2015-09-11 16:43:00 +0300
commitc9725926b2f30bed4e37f57c20ef8ffeb2fd233b (patch)
tree2964ad7556549dd3e0712bdfdbc5fc4ae7a9b45f /scss/_grid.scss
parent353e0a49a97c24d89f6cdb95014419d4137dee6e (diff)
parentb811f8cf9628dbcbfe994f71588c5a0c921a092d (diff)
downloadbootstrap-c9725926b2f30bed4e37f57c20ef8ffeb2fd233b.tar.xz
bootstrap-c9725926b2f30bed4e37f57c20ef8ffeb2fd233b.zip
Merge remote-tracking branch 'twbs/v4-dev' into patch-1
Conflicts: scss/_custom-forms.scss scss/_variables.scss
Diffstat (limited to 'scss/_grid.scss')
-rw-r--r--scss/_grid.scss19
1 files changed, 9 insertions, 10 deletions
diff --git a/scss/_grid.scss b/scss/_grid.scss
index b71d5b03d..2f58dc1ea 100644
--- a/scss/_grid.scss
+++ b/scss/_grid.scss
@@ -4,13 +4,8 @@
.container {
@include make-container();
+ @include make-container-max-widths();
- // For each breakpoint, define the maximum width of the container in a media query
- @each $breakpoint, $container-max-width in $container-max-widths {
- @include media-breakpoint-up($breakpoint) {
- max-width: $container-max-width;
- }
- }
}
@@ -28,8 +23,10 @@
//
// Rows contain and clear the floats of your columns.
-.row {
- @include make-row();
+@if $enable-grid-classes {
+ .row {
+ @include make-row();
+ }
}
@@ -37,14 +34,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