Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markd.otto@gmail.com>2016-11-26 23:13:15 +0300
committerGitHub <noreply@github.com>2016-11-26 23:13:15 +0300
commitec5e7e5e5acdc56240eef0690881728a046da46e (patch)
treefba1f99c157c139d1543b095f6567bf2cd649235 /scss/_grid.scss
parentc7b8451cdcd4930ba58af27a51d4247d1114a59b (diff)
Add .no-gutters option to remove gutters from rows (#21211)
Fixes #19107.
Diffstat (limited to 'scss/_grid.scss')
-rw-r--r--scss/_grid.scss12
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