diff --git a/themes/bs_bootstrap/sass/components/partials/_webform.scss b/themes/bs_bootstrap/sass/components/partials/_webform.scss index a8d998e..abfc65e 100644 --- a/themes/bs_bootstrap/sass/components/partials/_webform.scss +++ b/themes/bs_bootstrap/sass/components/partials/_webform.scss @@ -25,15 +25,13 @@ fieldset { margin-bottom: 0; } - // For the last child in a fieldset we do need to reset bottom margin becase + // For the last child in a fieldset we do need to reset bottom margin because // fieldset is disabling vertical margin collapsing. - .webform-flexbox { - &:last-child { - .webform-flex--container { - .form-group { - margin-bottom: 0; - } - } - } + .webform-flexbox:last-child { + // We will apply negative margin to webform-flexbox because it's very hard + // to control form-groups margin in this context - we would need to reset + // only the last one for small screens but that creates problem for bigger + // screens. + margin-bottom: -$form-group-margin-bottom; } }