Sha256: dbf04d49b59c188f2349aab2ab1b42787ac4e920d4f7b9abe24a1d0d9ee3722e

Contents?: true

Size: 975 Bytes

Versions: 73

Compression:

Stored size: 975 Bytes

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: 14);

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

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

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

    td small {
      font-size: 1em;
    }
  }
}

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
govuk_publishing_components-27.16.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-27.15.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-27.14.2 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-27.14.1 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-27.14.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-27.13.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-27.12.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-27.11.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-27.10.5 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-27.10.4 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-27.10.3 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-27.10.2 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-27.10.1 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-27.10.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-27.9.2 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-27.9.1 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-27.9.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-27.8.2 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-27.8.1 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss
govuk_publishing_components-27.8.0 app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss