Sha256: fb0ed338ed6c44526e533417c5c93db34a116fb9af72f2c8a51f3bd090a27c85

Contents?: true

Size: 1.15 KB

Versions: 74

Compression:

Stored size: 1.15 KB

Contents

@include govuk-exports("govuk/component/table") {
  .govuk-table {
    @include govuk-font($size: 19);
    @include govuk-text-colour;
    width: 100%;
    @include govuk-responsive-margin(6, "bottom");

    border-spacing: 0;
    border-collapse: collapse;
  }

  .govuk-table__header {
    @include govuk-typography-weight-bold;
  }

  .govuk-table__header,
  .govuk-table__cell {
    padding: govuk-spacing(2) govuk-spacing(4) govuk-spacing(2) 0;
    border-bottom: 1px solid $govuk-border-colour;
    text-align: left;
    vertical-align: top;
    // GOV.UK Elements sets the font-size and line-height for all headers and cells
    // in tables.
    @include govuk-compatibility(govuk_elements) {
      font-size: inherit;
      line-height: inherit;
    }
  }

  .govuk-table__cell--numeric {
    @include govuk-font($size: false, $tabular: true);
  }

  .govuk-table__header--numeric,
  .govuk-table__cell--numeric {
    text-align: right;
  }

  .govuk-table__header:last-child,
  .govuk-table__cell:last-child {
    padding-right: 0;
  }

  .govuk-table__caption {
    @include govuk-typography-weight-bold;

    display: table-caption;
    text-align: left;
  }
}

Version data entries

74 entries across 74 versions & 2 rubygems

Version Path
govuk_publishing_components-23.15.0 node_modules/govuk-frontend/govuk/components/table/_index.scss
govuk_publishing_components-23.14.0 node_modules/govuk-frontend/govuk/components/table/_index.scss
govuk_publishing_components-23.13.1 node_modules/govuk-frontend/govuk/components/table/_index.scss
govuk_publishing_components-23.13.0 node_modules/govuk-frontend/govuk/components/table/_index.scss
govuk_publishing_components-23.12.3 node_modules/govuk-frontend/govuk/components/table/_index.scss
govuk_publishing_components-23.12.2 node_modules/govuk-frontend/govuk/components/table/_index.scss
govuk_publishing_components-23.12.1 node_modules/govuk-frontend/govuk/components/table/_index.scss
govuk_publishing_components-23.12.0 node_modules/govuk-frontend/govuk/components/table/_index.scss
govuk_publishing_components-23.11.1 node_modules/govuk-frontend/govuk/components/table/_index.scss
govuk_publishing_components-23.11.0 node_modules/govuk-frontend/govuk/components/table/_index.scss
dxw_govuk_frontend_rails-3.10.2 vendor/assets/stylesheets/components/table/_index.scss
dxw_govuk_frontend_rails-3.9.1 vendor/assets/stylesheets/components/table/_index.scss
dxw_govuk_frontend_rails-3.8.0 vendor/assets/stylesheets/components/table/_index.scss
govuk_publishing_components-23.10.2 node_modules/govuk-frontend/govuk/components/table/_index.scss
govuk_publishing_components-23.10.1 node_modules/govuk-frontend/govuk/components/table/_index.scss
govuk_publishing_components-23.10.0 node_modules/govuk-frontend/govuk/components/table/_index.scss
govuk_publishing_components-23.9.2 node_modules/govuk-frontend/govuk/components/table/_index.scss
govuk_publishing_components-23.9.1 node_modules/govuk-frontend/govuk/components/table/_index.scss
govuk_publishing_components-23.9.0 node_modules/govuk-frontend/govuk/components/table/_index.scss
govuk_publishing_components-23.8.0 node_modules/govuk-frontend/govuk/components/table/_index.scss