Sha256: 05268c73292f92c466bede24d045fa8557f1d894f6f747942c216087c1c4bf6f

Contents?: true

Size: 1.53 KB

Versions: 194

Compression:

Stored size: 1.53 KB

Contents

@if not mixin-exists("govuk-exports") {
  @warn "Importing items from the core layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
}

@import "../base";

@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

194 entries across 191 versions & 4 rubygems

Version Path
defra_ruby_template-3.15.1 vendor/assets/stylesheets/core/_lists.scss
defra_ruby_template-3.15.1 node_modules/govuk-frontend/govuk/core/_lists.scss
defra_ruby_template-3.15.0 vendor/assets/stylesheets/core/_lists.scss
defra_ruby_template-3.15.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-28.5.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-28.4.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-28.3.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-28.2.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-28.1.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-28.0.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-27.20.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-27.19.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-27.18.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_tech_docs-3.0.1 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-27.17.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-27.16.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-27.15.0 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-27.14.2 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-27.14.1 node_modules/govuk-frontend/govuk/core/_lists.scss
govuk_publishing_components-27.14.0 node_modules/govuk-frontend/govuk/core/_lists.scss