Sha256: 5777299909523da0ba61bc40efe7093868860c15a539addf9103d7ab098cee50

Contents?: true

Size: 1.61 KB

Versions: 108

Compression:

Stored size: 1.61 KB

Contents

@import "../../settings/all";
@import "../../tools/all";
@import "../../helpers/all";

@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
  @supports not (caret-color: auto) {
    .govuk-fieldset,
    x:-moz-any-link {
      display: table-cell;
    }
  }

  .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 {
    @include govuk-font($size: 48, $weight: bold);
    margin-bottom: govuk-spacing(3);
  }

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

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

  .govuk-fieldset__legend--s {
    @include govuk-font($size: 19, $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;
  }
}

Version data entries

108 entries across 108 versions & 3 rubygems

Version Path
govuk_tech_docs-2.2.2 node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss
govuk_tech_docs-2.2.1 node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss
govuk_tech_docs-2.2.0 node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss
govuk_tech_docs-2.1.1 node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss
govuk_tech_docs-2.1.0 node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss
govuk_tech_docs-2.0.13 node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss
dxw_govuk_frontend_rails-3.6.0 vendor/assets/stylesheets/components/fieldset/_fieldset.scss
dxw_govuk_frontend_rails-3.5.0 vendor/assets/stylesheets/components/fieldset/_fieldset.scss
govuk_publishing_components-21.54.0 node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss
govuk_publishing_components-21.53.0 node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss
govuk_publishing_components-21.52.1 node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss
govuk_publishing_components-21.52.0 node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss
govuk_publishing_components-21.51.0 node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss
govuk_publishing_components-21.50.1 node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss
govuk_publishing_components-21.50.0 node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss
govuk_publishing_components-21.49.0 node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss
govuk_publishing_components-21.48.0 node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss
govuk_publishing_components-21.47.0 node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss
govuk_publishing_components-21.46.0 node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss
govuk_publishing_components-21.45.0 node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss