Sha256: 30ab4ea2004c823ee26251e1d8722b0f2466a29c2823f943590576eaab8edd55

Contents?: true

Size: 892 Bytes

Versions: 18

Compression:

Stored size: 892 Bytes

Contents

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

@include govuk-exports("govuk/component/hint") {
  .govuk-hint {
    @include govuk-font($size: 19);

    display: block;

    margin-bottom: govuk-spacing(3);

    color: $govuk-secondary-text-colour;
  }

  // Reduces margin-bottom of hint when used after the default label (no class)
  // or govuk-label--s for better vertical alignment.

  // This adjustment will not work when the label is inside the <h1>, however
  // it is unlikely that the default or govuk-label--s class would be used in
  // this case.

  // This adjustment will not work in browsers that do not support :not()
  // Users with these browsers will see the default size margin (5px larger)

  .govuk-label:not(.govuk-label--m):not(.govuk-label--l):not(.govuk-label--xl) + .govuk-hint {
    margin-bottom: govuk-spacing(2);
  }
}

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
govuk_publishing_components-9.14.0 node_modules/govuk-frontend/components/hint/_hint.scss
govuk_publishing_components-9.13.0 node_modules/govuk-frontend/components/hint/_hint.scss
govuk_publishing_components-9.12.2 node_modules/govuk-frontend/components/hint/_hint.scss
govuk_publishing_components-9.12.1 node_modules/govuk-frontend/components/hint/_hint.scss
govuk_publishing_components-9.12.0 node_modules/govuk-frontend/components/hint/_hint.scss
govuk_publishing_components-9.11.0 node_modules/govuk-frontend/components/hint/_hint.scss
govuk_publishing_components-9.10.0 node_modules/govuk-frontend/components/hint/_hint.scss
govuk_publishing_components-9.9.1 node_modules/govuk-frontend/components/hint/_hint.scss
govuk_publishing_components-9.9.0 node_modules/govuk-frontend/components/hint/_hint.scss
govuk_publishing_components-9.8.0 node_modules/govuk-frontend/components/hint/_hint.scss
govuk_publishing_components-9.7.0 node_modules/govuk-frontend/components/hint/_hint.scss
govuk_publishing_components-9.6.0 node_modules/govuk-frontend/components/hint/_hint.scss
govuk_publishing_components-9.5.3 node_modules/govuk-frontend/components/hint/_hint.scss
govuk_publishing_components-9.5.2 node_modules/govuk-frontend/components/hint/_hint.scss
govuk_publishing_components-9.5.1 node_modules/govuk-frontend/components/hint/_hint.scss
govuk_publishing_components-9.5.0 node_modules/govuk-frontend/components/hint/_hint.scss
govuk_publishing_components-9.4.0 node_modules/govuk-frontend/components/hint/_hint.scss
govuk_fe_assets-0.1.0.pre.alpha node_modules/govuk-frontend/components/hint/_hint.scss