Sha256: 9a15e42b9194e975da2cab7afd77397d194f5db699626f1e0ebfb7975dd75cd8

Contents?: true

Size: 874 Bytes

Versions: 4

Compression:

Stored size: 874 Bytes

Contents

%usa-table {
  @include border-box-sizing;
  @include typeset;
  border-collapse: collapse;
  border-spacing: 0;
  margin: units(2.5) 0;

  thead {
    th {
      font-weight: $theme-font-weight-bold;
    }

    th,
    td {
      background-color: color("base-lightest");
    }
  }

  th {
    text-align: left;
  }

  th,
  td {
    @include u-border(1px, "base-dark");
    background-color: color("white");
    font-weight: $theme-font-weight-normal;
    padding: units(1) units(2);
  }

  caption {
    @include u-font("body", "xs");
    font-weight: $theme-font-weight-bold;
    margin-bottom: units(1.5);
    text-align: left;
  }
}

%usa-table--borderless {
  thead {
    th {
      background-color: transparent;
      border-top: 0;
    }
  }

  th,
  td {
    border-left: 0;
    border-right: 0;
  }

  th {
    &:first-child {
      padding-left: 0;
    }
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
uswds-jekyll-5.3.0 _sass/uswds/src/core/placeholders/_table.scss
uswds-jekyll-5.2.0 _sass/uswds/src/core/placeholders/_table.scss
uswds-jekyll-5.0.1 _sass/uswds/src/core/placeholders/_table.scss
uswds-jekyll-5.0.0 _sass/uswds/src/core/placeholders/_table.scss