Sha256: dc2a19a7fda034752e5f0518acc297daac8d3ba9bc2cb5985d44aef51e67ae39

Contents?: true

Size: 1.07 KB

Versions: 39

Compression:

Stored size: 1.07 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 {
    @include govuk-media-query($from: tablet) {
      margin-bottom: govuk-spacing(1);
    }
  }

  %govuk-list a {
    &:link {
      color: $govuk-link-colour;
    }

    &:visited {
      color: $govuk-link-visited-colour;
    }

    &:hover {
      color: $govuk-link-hover-colour;
    }

    &:active {
      color: $govuk-link-active-colour;
    }
  }

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

  %govuk-list--bullet {
    padding-left: govuk-spacing(4);

    list-style-type: disc;
  }

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

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

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

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
govuk_publishing_components-11.0.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-10.2.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-10.1.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-10.0.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.28.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.27.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.26.1 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.26.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.25.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.24.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.23.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.22.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.21.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.20.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.19.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.18.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.17.1 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.17 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.16.1 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.16.0 node_modules/govuk-frontend/core/_lists.scss