Sha256: 8cc16969630294b64ede7af7e6f9d8b1b8ac6124c11eeee11f51df758dba9698

Contents?: true

Size: 1.19 KB

Versions: 209

Compression:

Stored size: 1.19 KB

Contents

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

@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--bullet {
    @extend %govuk-list--bullet;
  }

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

Version data entries

209 entries across 209 versions & 3 rubygems

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