Skip to content

Instantly share code, notes, and snippets.

@kosmala007
Created February 23, 2020 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kosmala007/53e651f5acf7e1929023358d7afbb4d7 to your computer and use it in GitHub Desktop.
Save kosmala007/53e651f5acf7e1929023358d7afbb4d7 to your computer and use it in GitHub Desktop.
Bootstrap 4 additional gutter settings 20px, 10px, 0px
// 20px gutters between collumns
.row.gutter-20 {
margin-right: -10px;
margin-left: -10px;
.row.gutter-20>.col,
.row.gutter-20>[class*="col-"] {
padding-right: 10px;
padding-left: 10px;
}
}
// 10px gutters between collumns
.row.gutter-10 {
margin-right: -5px;
margin-left: -5px;
>.col,
>[class*="col-"] {
padding-right: 5px;
padding-left: 5px;
}
}
// No gutters
.row.no-gutter {
margin-right: 0px;
margin-left: 0px;
>.col,
>[class*="col-"] {
padding-right: 0px;
padding-left: 0px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment