diff options
| author | Mark Otto <[email protected]> | 2016-11-26 12:13:15 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-11-26 12:13:15 -0800 |
| commit | ec5e7e5e5acdc56240eef0690881728a046da46e (patch) | |
| tree | fba1f99c157c139d1543b095f6567bf2cd649235 /scss | |
| parent | c7b8451cdcd4930ba58af27a51d4247d1114a59b (diff) | |
| download | bootstrap-ec5e7e5e5acdc56240eef0690881728a046da46e.tar.xz bootstrap-ec5e7e5e5acdc56240eef0690881728a046da46e.zip | |
Add .no-gutters option to remove gutters from rows (#21211)
Fixes #19107.
Diffstat (limited to '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 24cf74dda..9235ace05 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 |
