Sha256: ec046e6f48c4c899d34666a4aed5749c50abcde047b8a55cd1d3c9bffec331b8

Contents?: true

Size: 1.2 KB

Versions: 29

Compression:

Stored size: 1.2 KB

Contents

// Govspeak tables
// https://components.publishing.service.gov.uk/component-guide/govspeak/tables
//
// Support:
// - alphagov/whitehall: ✔︎
// - alphagov/govspeak: ✔︎

.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
.gem-c-govspeak {
  table {
    border-collapse: collapse;
    border-spacing: 0;
    display: block;
    margin: govuk-spacing(6) 0;
    overflow-x: auto;
    width: 100%;
    @include govuk-font($size: 19);

    caption {
      text-align: left;
      margin-bottom: .5em;
    }

    th,
    td {
      vertical-align: top;
      padding: govuk-spacing(2) govuk-spacing(4) govuk-spacing(2) 0;
      border-bottom: 1px solid govuk-colour("mid-grey", $legacy: "grey-2");

      &:last-child {
        padding: govuk-spacing(2) 0 govuk-spacing(2) 0;
      }
    }

    th {
      @include govuk-font($size: 19, $weight: bold);
      text-align: left;
      color: $govuk-text-colour;
    }

    td small {
      font-size: 1em;
    }

    .cell-text-left {
      text-align: left;
    }

    .cell-text-center {
      text-align: center;
    }

    .cell-text-right {
      text-align: right;
    }
  }
}

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
govuk_publishing_components-35.10.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-35.9.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-35.8.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-35.7.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-35.6.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-35.5.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-35.4.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-35.3.5 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-35.3.4 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-35.3.3 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-35.3.2 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-35.3.1 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-35.3.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-35.2.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-35.1.1 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-35.1.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-35.0.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-34.14.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-34.13.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-34.12.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss