diff options
Diffstat (limited to 'scss')
-rw-r--r-- | scss/_forms.scss | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/scss/_forms.scss b/scss/_forms.scss index 1d8a547d3d..0bc66587e9 100644 --- a/scss/_forms.scss +++ b/scss/_forms.scss @@ -181,16 +181,18 @@ textarea.form-control { // // Special replacement for our grid system's `.row` for tighter form layouts. -.form-row { - display: flex; - flex-wrap: wrap; - margin-right: -$form-grid-gutter-width / 2; - margin-left: -$form-grid-gutter-width / 2; - - > .col, - > [class*="col-"] { - padding-right: $form-grid-gutter-width / 2; - padding-left: $form-grid-gutter-width / 2; +@if $enable-grid-classes { + .form-row { + display: flex; + flex-wrap: wrap; + margin-right: -$form-grid-gutter-width / 2; + margin-left: -$form-grid-gutter-width / 2; + + > .col, + > [class*="col-"] { + padding-right: $form-grid-gutter-width / 2; + padding-left: $form-grid-gutter-width / 2; + } } } |