Sha256: 85cdfb76c8d54478d4cff8e4fa9b22181df0940a350aa475cce3e6679d6bc99a

Contents?: true

Size: 838 Bytes

Versions: 11

Compression:

Stored size: 838 Bytes

Contents

// Tables
// ==========================================================================

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;

  th,
  td {
    @include core-19;
    padding: em(12, 19) em(20, 19) em(9, 19) 0;

    text-align: left;
    color: $black;
    border-bottom: 1px solid $border-colour;
  }

  th {
    font-weight: 700;
    // Right align headings for numeric content
    &.numeric {
      text-align: right;
    }
  }

  // Allow a qualifying element, only table data cells should use tabular numbers
  // scss-lint:disable QualifyingElement
  td.numeric {
    @include core-16($tabular-numbers: true);
    text-align: right;
  }
}

.table-font-xsmall {

  th {
    @include bold-16;
  }

  td {
    @include core-16;
  }

  th,
  td {
    padding: em(12, 16) em(20, 16) em(9, 16) 0;
  }
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
govuk_elements_rails-3.0.0 vendor/assets/stylesheets/elements/_tables.scss
govuk_elements_rails-2.2.1 vendor/assets/stylesheets/elements/_tables.scss
govuk_elements_rails-2.2.0 vendor/assets/stylesheets/elements/_tables.scss
govuk_elements_rails-2.1.2 vendor/assets/stylesheets/elements/_tables.scss
govuk_elements_rails-2.1.1 vendor/assets/stylesheets/elements/_tables.scss
govuk_elements_rails-2.1.0 vendor/assets/stylesheets/elements/_tables.scss
govuk_elements_rails-2.0.0 vendor/assets/stylesheets/elements/_tables.scss
govuk_elements_rails-1.2.2 vendor/assets/stylesheets/elements/_tables.scss
govuk_elements_rails-1.2.1 vendor/assets/stylesheets/elements/_tables.scss
govuk_elements_rails-1.2.0 vendor/assets/stylesheets/elements/_tables.scss
govuk_elements_rails-1.1.4 vendor/assets/stylesheets/elements/_tables.scss