Sha256: d832e16be5791c29f66dc1e2b8f7fe7363c8ea2a2b5ee5b8bfc4282c83984c41

Contents?: true

Size: 1.07 KB

Versions: 25

Compression:

Stored size: 1.07 KB

Contents

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

    display: block;

    margin-bottom: govuk-spacing(1);
  }

  // Modifiers that make labels look more like their equivalent headings

  .govuk-label--xl {
    @include govuk-font($size: 48, $weight: bold);
    margin-bottom: govuk-spacing(3);
  }

  .govuk-label--l {
    @include govuk-font($size: 36, $weight: bold);
    margin-bottom: govuk-spacing(3);
  }

  .govuk-label--m {
    @include govuk-font($size: 24, $weight: bold);
    margin-bottom: govuk-spacing(2);
  }

  .govuk-label--s {
    @include govuk-font($size: 19, $weight: bold);
  }

  // When the label is nested inside a heading, override the heading so that it
  // does not have a margin. Effectively we want to be able to treat the heading
  // as if it is not there.
  //
  // This breaks BEM conventions because it exists as a parent of the 'block',
  // so we can't really consider an element.
  .govuk-label-wrapper {
    margin: 0;
  }
}

/*# sourceMappingURL=_index.scss.map */

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
govuk_publishing_components-39.2.5 node_modules/govuk-frontend/govuk/components/label/_index.scss
govuk_publishing_components-39.2.4 node_modules/govuk-frontend/govuk/components/label/_index.scss
govuk_publishing_components-39.2.3 node_modules/govuk-frontend/govuk/components/label/_index.scss
govuk_publishing_components-39.2.2 node_modules/govuk-frontend/govuk/components/label/_index.scss
govuk_publishing_components-39.2.1 node_modules/govuk-frontend/govuk/components/label/_index.scss
govuk_publishing_components-39.2.0 node_modules/govuk-frontend/govuk/components/label/_index.scss
govuk_publishing_components-39.1.0 node_modules/govuk-frontend/govuk/components/label/_index.scss
govuk_publishing_components-39.0.0 node_modules/govuk-frontend/govuk/components/label/_index.scss
govuk_publishing_components-38.4.2 node_modules/govuk-frontend/govuk/components/label/_index.scss
govuk_publishing_components-38.1.1 node_modules/govuk-frontend/govuk/components/label/_index.scss
govuk_publishing_components-38.1.0 node_modules/govuk-frontend/govuk/components/label/_index.scss
govuk_publishing_components-38.0.1 node_modules/govuk-frontend/govuk/components/label/_index.scss
govuk_publishing_components-38.0.0 node_modules/govuk-frontend/govuk/components/label/_index.scss
govuk_publishing_components-37.10.0 node_modules/govuk-frontend/govuk/components/label/_index.scss
govuk_publishing_components-37.9.1 node_modules/govuk-frontend/govuk/components/label/_index.scss
govuk_publishing_components-37.9.0 node_modules/govuk-frontend/govuk/components/label/_index.scss
govuk_publishing_components-37.8.1 node_modules/govuk-frontend/govuk/components/label/_index.scss
govuk_publishing_components-37.8.0 node_modules/govuk-frontend/govuk/components/label/_index.scss
govuk_publishing_components-37.7.1 node_modules/govuk-frontend/govuk/components/label/_index.scss
govuk_publishing_components-37.7.0 node_modules/govuk-frontend/govuk/components/label/_index.scss