Sha256: 6a447f0efd97eec656d2e660ec0df755ec9c1f46655bbe37f5ee9e9352159bce

Contents?: true

Size: 1.62 KB

Versions: 14

Compression:

Stored size: 1.62 KB

Contents

@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);
  }

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

  // This adjustment will not work when the legend is outside the <h1>, however
  // it is unlikely that the default or govuk-fieldset__legend--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-fieldset__legend:not(.govuk-fieldset__legend--m):not(.govuk-fieldset__legend--l):not(.govuk-fieldset__legend--xl) + .govuk-hint {
    margin-bottom: govuk-spacing(2);
  }

  // Reduces visual spacing of legend when there is a hint

  .govuk-fieldset__legend + .govuk-hint,
  .govuk-fieldset__legend + .govuk-hint {
    margin-top: -(govuk-spacing(1));
  }
}

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
govuk_publishing_components-21.60.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-21.59.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-21.58.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss
dxw_govuk_frontend_rails-3.7.0 vendor/assets/stylesheets/components/hint/_index.scss
govuk_publishing_components-21.57.1 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-21.57.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-21.56.2 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-21.56.1 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-21.56.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-21.55.4 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-21.55.3 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-21.55.2 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-21.55.1 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-21.55.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss