Sha256: cecfa430dc2f38768b4f76330fefd42a94bd0b0684b97291c064d4502ded0529

Contents?: true

Size: 1.58 KB

Versions: 151

Compression:

Stored size: 1.58 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 {
    margin-top: -(govuk-spacing(1));
  }
}

Version data entries

151 entries across 148 versions & 4 rubygems

Version Path
defra_ruby_template-3.15.1 vendor/assets/stylesheets/components/hint/_index.scss
defra_ruby_template-3.15.1 node_modules/govuk-frontend/govuk/components/hint/_index.scss
defra_ruby_template-3.15.0 vendor/assets/stylesheets/components/hint/_index.scss
defra_ruby_template-3.15.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-28.5.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-28.4.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-28.3.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-28.2.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-28.1.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-28.0.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-27.20.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-27.19.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-27.18.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_tech_docs-3.0.1 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-27.17.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-27.16.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-27.15.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-27.14.2 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-27.14.1 node_modules/govuk-frontend/govuk/components/hint/_index.scss
govuk_publishing_components-27.14.0 node_modules/govuk-frontend/govuk/components/hint/_index.scss