Sha256: 2d11301256b4b744938725ded9991525191aee004552dea69fe3e994a63cc098

Contents?: true

Size: 623 Bytes

Versions: 11

Compression:

Stored size: 623 Bytes

Contents

@import "../settings/all";
@import "../tools/all";
@import "../helpers/all";

@include govuk-exports("govuk/objects/form-group") {

  .govuk-form-group {
    @include govuk-responsive-margin(6, "bottom");

    .govuk-form-group:last-of-type {
      margin-bottom: 0; // Remove margin from last item in nested groups
    }
  }

  .govuk-form-group--error {
    padding-left: govuk-spacing(3);
    border-left: $govuk-border-width-form-group-error solid $govuk-error-colour;

    .govuk-form-group {
      // Reset error styles in nested form groups that might have error class
      padding: 0;
      border: 0;
    }
  }
}

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
govuk_publishing_components-16.10.1 node_modules/govuk-frontend/objects/_form-group.scss
govuk_publishing_components-16.10.0 node_modules/govuk-frontend/objects/_form-group.scss
govuk_publishing_components-16.9.2 node_modules/govuk-frontend/objects/_form-group.scss
govuk_publishing_components-16.9.1 node_modules/govuk-frontend/objects/_form-group.scss
dxw_govuk_frontend_rails-2.9.0.pre.alpha.1 vendor/assets/stylesheets/objects/_form-group.scss
govuk_publishing_components-16.9.0 node_modules/govuk-frontend/objects/_form-group.scss
govuk_publishing_components-16.8.0 node_modules/govuk-frontend/objects/_form-group.scss
govuk_publishing_components-16.7.0 node_modules/govuk-frontend/objects/_form-group.scss
govuk_publishing_components-16.6.0 node_modules/govuk-frontend/objects/_form-group.scss
govuk_publishing_components-16.5.0 node_modules/govuk-frontend/objects/_form-group.scss
govuk_publishing_components-16.4.0 node_modules/govuk-frontend/objects/_form-group.scss