diff options
author | Mark Otto <markd.otto@gmail.com> | 2016-11-26 23:13:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-26 23:13:15 +0300 |
commit | ec5e7e5e5acdc56240eef0690881728a046da46e (patch) | |
tree | fba1f99c157c139d1543b095f6567bf2cd649235 /scss/_grid.scss | |
parent | c7b8451cdcd4930ba58af27a51d4247d1114a59b (diff) |
Add .no-gutters option to remove gutters from rows (#21211)
Fixes #19107.
Diffstat (limited to 'scss/_grid.scss')
-rw-r--r-- | scss/_grid.scss | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scss/_grid.scss b/scss/_grid.scss index 24cf74dda8..9235ace056 100644 --- a/scss/_grid.scss +++ b/scss/_grid.scss @@ -28,6 +28,18 @@ .row { @include make-row(); } + + // Remove the negative margin from default .row, then the horizontal padding + // from all immediate children columns (to prevent runaway style inheritance). + .no-gutters { + margin-right: 0; + margin-left: 0; + + > [class*="col-"] { + padding-right: 0; + padding-left: 0; + } + } } // Columns |