<commit_before>// Module: Tables
// Project: WFP UI



@mixin table {
  // Remove spacing between table cells
  border-collapse: collapse;
  border-spacing: 0;
  empty-cells: show;
  border: 0;
  width: 100%;

  caption {
    color: $text-color;
    text-align: center;
    font-style: italic;
  }

  td, th {
    border-bottom: 1px solid $grey-lighter;
    border-width: 0 0 1px;
    font-size: inherit;
    margin: 0;
    overflow: visible;
    padding: 0.5rem 1rem;
  }

  thead {
    color: $text-color;
    text-align: left;
    vertical-align: bottom;

    th {
      border-bottom: 2px solid $grey-lighter;
    }
  }
}

.wfp-table {
  @include table;
}

.wfp-table--striped {
  @include table;

  tr:nth-child(2n-1) {
    td {
      background-color: $blue-lightest;
      color: $text-color;
    }
  }
}
<commit_msg>Improve table captions<commit_after>// Module: Tables
// Project: WFP UI



@mixin table {
  // Remove spacing between table cells
  border-collapse: collapse;
  border-spacing: 0;
  empty-cells: show;
  border: 0;
  width: 100%;

  caption {
    color: $text-color;
    border-bottom: 2px solid $grey-lighter;
  }

  td, th {
    border-bottom: 1px solid $grey-lighter;
    border-width: 0 0 1px;
    font-size: inherit;
    margin: 0;
    overflow: visible;
    padding: 0.5rem 1rem;
  }

  thead {
    color: $text-color;
    text-align: left;
    vertical-align: bottom;

    th {
      border-bottom: 2px solid $grey-lighter;
    }
  }
}

.wfp-table {
  @include table;
}

.wfp-table--striped {
  @include table;

  tr:nth-child(2n-1) {
    td {
      background-color: $blue-lightest;
      color: $text-color;
    }
  }
}

{'fraction_non_alphanumeric': 0.13490623109497882, 'fraction_numerical': 0.019963702359346643, 'mean_word_length': 2.314629258517034, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5422063', 'n_tokens_mistral': 676, 'n_tokens_neox': 616, 'n_words': 148}