Sha256: 029187d3b7d8d5574b1fce8e9390170fb4afba1720c6059f32cd3abe2442eccc

Contents?: true

Size: 1.71 KB

Versions: 21

Compression:

Stored size: 1.71 KB

Contents

@include govuk-exports("govuk/component/fieldset") {
  .govuk-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    @include govuk-clearfix;
  }

  // Fix for Firefox < 53
  // https://bugzilla.mozilla.org/show_bug.cgi?id=504622
  // stylelint-disable selector-type-no-unknown -- Ignore unknown 'x:-moz-any-link'
  @supports not (caret-color: auto) {
    .govuk-fieldset,
    x:-moz-any-link {
      display: table-cell;
    }
  }
  // stylelint-enable selector-type-no-unknown

  .govuk-fieldset__legend {
    @include govuk-font($size: 19);
    @include govuk-text-colour;

    // Fix legend text wrapping in Edge and IE
    // 1. IE9-11 & Edge 12-13
    // 2. IE8-11
    box-sizing: border-box; // 1
    display: table; // 2
    max-width: 100%; // 1
    margin-bottom: govuk-spacing(2);
    padding: 0;

    white-space: normal; // 1
  }

  // Modifiers that make legends look more like their equivalent headings
  .govuk-fieldset__legend--xl,
  .govuk-fieldset__legend--l,
  .govuk-fieldset__legend--m {
    @include govuk-typography-weight-bold;
    margin-bottom: govuk-spacing(3);
  }

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

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

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

  .govuk-fieldset__legend--s {
    @include govuk-typography-weight-bold;
  }

  // When the legend contains an H1, we want the H1 to inherit all styles from
  // the legend. Effectively we want to be able to treat the heading as if it is
  // not there.
  .govuk-fieldset__heading {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
  }
}

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

Version data entries

21 entries across 19 versions & 3 rubygems

Version Path
govuk_publishing_components-42.1.0 node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss
govuk_publishing_components-42.0.0 node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss
govuk_publishing_components-41.1.2 node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss
govuk_publishing_components-41.1.1 node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss
govuk_publishing_components-41.1.0 node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss
govuk_publishing_components-41.0.0 node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss
govuk_publishing_components-40.1.0 node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss
katalyst-govuk-formbuilder-1.10.2 node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss
govuk_publishing_components-40.0.0 node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss
katalyst-govuk-formbuilder-1.10.1 node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss
katalyst-govuk-formbuilder-1.10.0 node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss
katalyst-govuk-formbuilder-1.9.4 node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss
defra_ruby_template-5.4.1 vendor/assets/stylesheets/components/fieldset/_index.scss
defra_ruby_template-5.4.1 node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss
defra_ruby_template-5.4.0 vendor/assets/stylesheets/components/fieldset/_index.scss
defra_ruby_template-5.4.0 node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss
katalyst-govuk-formbuilder-1.9.3 node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss
katalyst-govuk-formbuilder-1.9.1 vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/fieldset/_index.scss
katalyst-govuk-formbuilder-1.9.0 vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/fieldset/_index.scss
katalyst-govuk-formbuilder-1.8.1 vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/fieldset/_index.scss