Sha256: d26ce43cd762c39270ca21496c46a095382d4b60535f1e29180cab57fce46721

Contents?: true

Size: 1.06 KB

Versions: 64

Compression:

Stored size: 1.06 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,
  .govuk-label--l,
  .govuk-label--m {
    @include govuk-typography-weight-bold;
    margin-bottom: govuk-spacing(3);
  }

  .govuk-label--xl {
    @include govuk-font-size($size: 48);
  }

  .govuk-label--l {
    @include govuk-font-size($size: 36);
  }

  .govuk-label--m {
    @include govuk-font-size($size: 24);
  }

  .govuk-label--s {
    @include govuk-typography-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

64 entries across 62 versions & 4 rubygems

Version Path
govuk_publishing_components-45.7.0 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss
govuk_publishing_components-45.6.1 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss
govuk_publishing_components-45.6.0 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss
govuk_publishing_components-45.5.0 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss
govuk_publishing_components-45.4.1 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss
govuk_publishing_components-45.4.0 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss
govuk_publishing_components-45.3.0 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss
govuk_tech_docs-4.1.1 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss
govuk_publishing_components-45.2.0 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss
govuk_publishing_components-45.1.0 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss
govuk_publishing_components-45.0.0 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss
katalyst-govuk-formbuilder-1.13.0 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss
govuk_publishing_components-44.11.0 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss
govuk_publishing_components-44.10.0 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss
govuk_publishing_components-44.9.1 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss
govuk_publishing_components-44.9.0 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss
govuk_publishing_components-44.8.0 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss
govuk_publishing_components-44.7.1 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss
govuk_publishing_components-44.7.0 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss
govuk_tech_docs-4.1.0 node_modules/govuk-frontend/dist/govuk/components/label/_index.scss