1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-29 08:10:47 +02:00

Add .no-gutters option to remove gutters from rows (#21211)

Fixes #19107.
This commit is contained in:
Mark Otto
2016-11-26 12:13:15 -08:00
committed by GitHub
parent c7b8451cdc
commit ec5e7e5e5a
2 changed files with 42 additions and 1 deletions

View File

@@ -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