Sha256: 5d6c5015ff80918cf39451faf7936ea40972ce34f24d7bfedd13c9b6db860f86

Contents?: true

Size: 1.5 KB

Versions: 68

Compression:

Stored size: 1.5 KB

Contents

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

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

  .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;
    // Hack to let legends or elements within legends have margins in webkit browsers
    overflow: hidden;

    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

68 entries across 68 versions & 2 rubygems

Version Path
govuk_publishing_components-16.12.0 node_modules/govuk-frontend/components/fieldset/_fieldset.scss
govuk_publishing_components-16.11.0 node_modules/govuk-frontend/components/fieldset/_fieldset.scss
dxw_govuk_frontend_rails-2.10.0 vendor/assets/stylesheets/components/fieldset/_fieldset.scss
dxw_govuk_frontend_rails-2.10.0.pre vendor/assets/stylesheets/components/fieldset/_fieldset.scss
govuk_publishing_components-16.10.1 node_modules/govuk-frontend/components/fieldset/_fieldset.scss
govuk_publishing_components-16.10.0 node_modules/govuk-frontend/components/fieldset/_fieldset.scss
govuk_publishing_components-16.9.2 node_modules/govuk-frontend/components/fieldset/_fieldset.scss
govuk_publishing_components-16.9.1 node_modules/govuk-frontend/components/fieldset/_fieldset.scss
dxw_govuk_frontend_rails-2.9.0.pre.alpha.1 vendor/assets/stylesheets/components/fieldset/_fieldset.scss
govuk_publishing_components-16.9.0 node_modules/govuk-frontend/components/fieldset/_fieldset.scss
govuk_publishing_components-16.8.0 node_modules/govuk-frontend/components/fieldset/_fieldset.scss
govuk_publishing_components-16.7.0 node_modules/govuk-frontend/components/fieldset/_fieldset.scss
govuk_publishing_components-16.6.0 node_modules/govuk-frontend/components/fieldset/_fieldset.scss
govuk_publishing_components-16.5.0 node_modules/govuk-frontend/components/fieldset/_fieldset.scss
govuk_publishing_components-16.4.0 node_modules/govuk-frontend/components/fieldset/_fieldset.scss
govuk_publishing_components-16.3.0 node_modules/govuk-frontend/components/fieldset/_fieldset.scss
govuk_publishing_components-16.2.0 node_modules/govuk-frontend/components/fieldset/_fieldset.scss
govuk_publishing_components-16.1.0 node_modules/govuk-frontend/components/fieldset/_fieldset.scss
govuk_publishing_components-16.0.0 node_modules/govuk-frontend/components/fieldset/_fieldset.scss
govuk_publishing_components-15.3.0 node_modules/govuk-frontend/components/fieldset/_fieldset.scss