Sha256: b94d4499a34b95a08c1e46679a6924e11805e1f7bf68e2070c0edde1910d3326

Contents?: true

Size: 1.33 KB

Versions: 149

Compression:

Stored size: 1.33 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;
  }
}

Version data entries

149 entries across 149 versions & 4 rubygems

Version Path
govuk_tech_docs-3.5.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_tech_docs-3.4.5 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-37.3.1 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-37.3.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-37.2.4 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-37.2.3 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-37.2.2 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-37.2.1 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-37.2.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-37.1.1 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-37.1.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-37.0.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-36.1.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-36.0.3 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-36.0.2 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-36.0.1 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-36.0.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-35.23.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-35.22.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-35.21.4 node_modules/govuk-frontend/govuk/core/_lists.scss