1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-23 09:41:11 +00:00

Make generating form row styles dependent on $enable-grid-classes (#28870)

This commit is contained in:
Shohei Yoshida 2019-06-06 00:15:27 +09:00 committed by XhmikosR
parent 8437be2f33
commit 1c510ddaec

View File

@ -181,7 +181,8 @@ textarea.form-control {
//
// Special replacement for our grid system's `.row` for tighter form layouts.
.form-row {
@if $enable-grid-classes {
.form-row {
display: flex;
flex-wrap: wrap;
margin-right: -$form-grid-gutter-width / 2;
@ -192,6 +193,7 @@ textarea.form-control {
padding-right: $form-grid-gutter-width / 2;
padding-left: $form-grid-gutter-width / 2;
}
}
}