<commit_before>// ====================================================================
// Styles for data tables generated by php class `uiSelectTable`.
//
//   WARNING : old stuff!!
//
//   Cf.
//     lib/uiparts/uiSelectTable.php
//     lib/helper/templates/ui_select_table.php
//
// ====================================================================

.uiTable {
  // crude solution for horizontal scrolling on small screens
  overflow-y: auto;
  _overflow: auto;
  margin: 0 0 1em;
}

.uiTabular {
  border: 1px solid #BDBCAA;
  border-top: 1px solid #D9D8CE;
  width: 100%;


  /* thead */
  th {
    padding: 0;
    font: 13px Arial, sans-serif;
    color: #5C5B52;
    border-bottom: 1px solid #A1A1A1;
    text-align: left;
    background: #D9D6B7 url(/assets/legacy/widgets-selecttable.gif) repeat-x 0 0;
  }

  // use `<span class="is-padded">` for labels within TH that are not links
  th a,
  th .is-padded {
    display: block;
    float: left;
    padding: 6px 10px;
    text-align: left;
    text-decoration: none;
  }

  /* non-sortable */
  th a {
    color: #005CB1;
  }

  th a:hover {
    text-decoration: underline;
    color: #005CB1;
    padding-right: 12px;
    background-color: #fff;
  }

  th a.active {
    color: #000;
  }

  /* sort icon */
  th a.sort {
    padding-right: 12px;
  }

  th a.sort:hover {
    background: url(/assets/legacy/widgets-selecttable.gif) no-repeat 100% 50%;
  }

  th a.sortasc {
    padding-right: 12px;
    background: url(/assets/legacy/widgets-selecttable.gif) no-repeat 100% -37px;
  }

  th a.sortdesc {
    padding-right: 12px;
    background: url(/assets/legacy/widgets-selecttable.gif) no-repeat 100% -72px;
  }

  /* tbody */
  td {
    padding: 10px 10px;
    color: #666;
    font-size: 13px;
    line-height: 1.1em;
    border-bottom: 1px solid #E8E5CA;
  }

  tbody td {
    background-color: $--clr-tbl-bg;
    color: #5C5B52;
  }

  .odd td {
    background-color: #fff;
  }

  /* uiTable hover */
  tbody tr.hover {
    background-color: #fff;
  }
<commit_msg>(ui_select_table.scss): add modifier for compact rows (used in admin)<commit_after>// ====================================================================
// Styles for data tables generated by php class `uiSelectTable`.
//
//   OLD STUFF! (overly complex selectors, not worth fixing atm)
//
//   Cf.
//     lib/uiparts/uiSelectTable.php
//     lib/helper/templates/ui_select_table.php
//
// ====================================================================

.uiTable {
  // crude solution for horizontal scrolling on small screens
  overflow-y: auto;
  _overflow: auto;
  margin: 0 0 1em;
}

// --------------------------------------------------------------------
// DATA TABLES (as output by uiSelectTable php component)
//
//   <table class="uiTabular">
//   <table class="uiTabular is-dense">   for compact rows
//
// --------------------------------------------------------------------
.uiTabular {
  border: 1px solid #BDBCAA;
  border-top: 1px solid #D9D8CE;
  width: 100%;

  /* thead */
  th {
    padding: 0;
    font: 13px Arial, sans-serif;
    color: #5C5B52;
    border-bottom: 1px solid #A1A1A1;
    text-align: left;
    background: #D9D6B7 url(/assets/legacy/widgets-selecttable.gif) repeat-x 0 0;
  }

  // use `<span class="is-padded">` for labels within TH that are not links
  th a,
  th .is-padded {
    display: block;
    float: left;
    padding: 6px 10px;
    text-align: left;
    text-decoration: none;
  }

  /* non-sortable */
  th a {
    color: #005CB1;
  }

  th a:hover {
    text-decoration: underline;
    color: #005CB1;
    padding-right: 12px;
    background-color: #fff;
  }

  th a.active {
    color: #000;
  }

  /* sort icon */
  th a.sort {
    padding-right: 12px;
  }

  th a.sort:hover {
    background: url(/assets/legacy/widgets-selecttable.gif) no-repeat 100% 50%;
  }

  th a.sortasc {
    padding-right: 12px;
    background: url(/assets/legacy/widgets-selecttable.gif) no-repeat 100% -37px;
  }

  th a.sortdesc {
    padding-right: 12px;
    background: url(/assets/legacy/widgets-selecttable.gif) no-repeat 100% -72px;
  }

  /* tbody */
  td {
    padding: 10px 10px;
    color: #666;
    font-size: 13px;
    line-height: 1.1em;
    border-bottom: 1px solid #E8E5CA;
  }

  &.is-dense td {
    padding: 5px 10px;
  }

  tbody td {
    background-color: $--clr-tbl-bg;
    color: #5C5B52;
  }

  .odd td {
    background-color: #fff;
  }

  /* uiTable hover */
  tbody tr.hover {
    background-color: #fff;
  }

{'fraction_non_alphanumeric': 0.21854892389616154, 'fraction_numerical': 0.03660971821610828, 'mean_word_length': 2.339259259259259, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6884539', 'n_tokens_mistral': 1755, 'n_tokens_neox': 1563, 'n_words': 381}