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-9.15.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.14.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.13.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.12.2 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.12.1 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.12.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.11.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.10.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.9.1 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.9.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.8.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.7.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.6.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.5.3 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.5.2 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.5.1 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.5.0 node_modules/govuk-frontend/core/_lists.scss
govuk_publishing_components-9.4.0 node_modules/govuk-frontend/core/_lists.scss
govuk_fe_assets-0.1.0.pre.alpha node_modules/govuk-frontend/core/_lists.scss