mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-29 21:52:22 +01:00
Make form grid gutter width configurable (#27766)
This commit is contained in:
parent
b16127fc10
commit
8fb6e84fa0
@ -190,13 +190,13 @@ textarea.form-control {
|
|||||||
.form-row {
|
.form-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
margin-right: -5px;
|
margin-right: -$form-grid-gutter-width / 2;
|
||||||
margin-left: -5px;
|
margin-left: -$form-grid-gutter-width / 2;
|
||||||
|
|
||||||
> .col,
|
> .col,
|
||||||
> [class*="col-"] {
|
> [class*="col-"] {
|
||||||
padding-right: 5px;
|
padding-right: $form-grid-gutter-width / 2;
|
||||||
padding-left: 5px;
|
padding-left: $form-grid-gutter-width / 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -506,6 +506,7 @@ $form-check-input-margin-x: .25rem !default;
|
|||||||
$form-check-inline-margin-x: .75rem !default;
|
$form-check-inline-margin-x: .75rem !default;
|
||||||
$form-check-inline-input-margin-x: .3125rem !default;
|
$form-check-inline-input-margin-x: .3125rem !default;
|
||||||
|
|
||||||
|
$form-grid-gutter-width: 10px !default;
|
||||||
$form-group-margin-bottom: 1rem !default;
|
$form-group-margin-bottom: 1rem !default;
|
||||||
|
|
||||||
$input-group-addon-color: $input-color !default;
|
$input-group-addon-color: $input-color !default;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user