Sha256: 058afab5c6f592300bf06b7d84b4a72f5ee804e54f4debd74c4613db89ae3807

Contents?: true

Size: 1.37 KB

Versions: 63

Compression:

Stored size: 1.37 KB

Contents

@import "govuk/components/checkboxes/checkboxes";

.govuk-checkboxes--nested {
  margin-left: -(govuk-spacing(4) + 2px); // 22px
  box-sizing: border-box;
  border-left-style: solid;
  border-left-width: 4px;
  border-color: govuk-colour("mid-grey", $legacy: "grey-2");
  margin-top: govuk-spacing(2);
  margin-bottom: govuk-spacing(2);
  padding: govuk-spacing(2) govuk-spacing(4);

  &.gem-c-checkboxes__list {
    padding-left: govuk-spacing(4);
  }
}

.govuk-checkboxes__conditional {
  margin-top: govuk-spacing(2);
  margin-left: -(govuk-spacing(4) + 2px); // 22px
}

.gem-c-checkboxes__list {
  padding-left: govuk-spacing(0);
  margin: 0;
}

.gem-c-checkboxes__divider {
  @include govuk-font($size: 19);
  @include govuk-text-colour;
  list-style-type: none;
  margin-bottom: govuk-spacing(2);
  text-align: center;
  width: 40px;
}

.gem-c-checkboxes {
  // this is complex but needed to override the govuk-frontend styles in
  // https://github.com/alphagov/govuk-frontend/blob/b8058640b9602ecb6e1f66f887553190cbae7b46/src/components/hint/_hint.scss#L16
  // our elements are wrapped in list items that already provide a margin-bottom
  .govuk-label:not(.govuk-label--m):not(.govuk-label--l):not(.govuk-label--xl) + .govuk-hint {
    margin-bottom: 0;
  }

  .gem-c-checkboxes__legend--hidden {
    @include govuk-visually-hidden;
  }
}

.gem-c-checkboxes__heading-text {
  margin: 0;
}

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
govuk_publishing_components-34.12.0 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
govuk_publishing_components-34.11.0 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
govuk_publishing_components-34.10.1 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
govuk_publishing_components-34.10.0 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
govuk_publishing_components-34.9.1 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
govuk_publishing_components-34.9.0 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
govuk_publishing_components-34.8.1 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
govuk_publishing_components-34.8.0 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
govuk_publishing_components-34.7.1 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
govuk_publishing_components-34.7.0 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
govuk_publishing_components-34.6.0 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
govuk_publishing_components-34.5.1 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
govuk_publishing_components-34.5.0 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
govuk_publishing_components-34.4.2 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
govuk_publishing_components-34.4.1 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
govuk_publishing_components-34.4.0 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
govuk_publishing_components-34.3.0 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
govuk_publishing_components-34.2.0 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
govuk_publishing_components-34.1.3 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss
govuk_publishing_components-34.1.2 app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss