Sha256: 2579301e73576a1529baf0a7efe2a0e71961e9c13fa313373246c1401ad78f70

Contents?: true

Size: 1.37 KB

Versions: 67

Compression:

Stored size: 1.37 KB

Contents

@include govuk-exports("govuk/core/lists") {
  %govuk-list {
    @include govuk-font($size: 19);
    @include govuk-text-colour;
    margin-top: 0;
    @include govuk-responsive-margin(4, "bottom");
    padding-left: 0;
    list-style-type: none;

    // Add a top margin for nested lists
    %govuk-list {
      margin-top: govuk-spacing(2);
    }
  }

  %govuk-list > li {
    // Lists without numbers or bullets should always have extra space between
    // list items. Lists with numbers or bullets only have this extra space on
    // tablet and above
    margin-bottom: govuk-spacing(1);
  }

  .govuk-list {
    @extend %govuk-list;
  }

  %govuk-list--bullet {
    padding-left: govuk-spacing(4);
    list-style-type: disc;
  }

  %govuk-list--number {
    padding-left: govuk-spacing(4);
    list-style-type: decimal;
  }

  %govuk-list--bullet > li,
  %govuk-list--number > li {
    margin-bottom: 0;

    @include govuk-media-query($from: tablet) {
      margin-bottom: govuk-spacing(1);
    }
  }

  %govuk-list--spaced > li {
    margin-bottom: govuk-spacing(2);

    @include govuk-media-query($from: tablet) {
      margin-bottom: govuk-spacing(3);
    }
  }

  .govuk-list--bullet {
    @extend %govuk-list--bullet;
  }

  .govuk-list--number {
    @extend %govuk-list--number;
  }

  .govuk-list--spaced {
    @extend %govuk-list--spaced;
  }
}

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

Version data entries

67 entries across 65 versions & 4 rubygems

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