<commit_before>/* Panels don't draw borders between them */
.panel > .table > tbody:first-child td {
    border-top: 1px solid rgb(221, 221, 221);
}

/* Table headers should not generate a double border */
.panel .table thead tr th {
    border-bottom: none;
}

/* Fix panel heading alignment & mobile layout */

.panel-heading {
    align-items: center;
    background: #f5f5f5;
    display: flex;
    flex-wrap: wrap;
    /* 36px = (26px widget height) + (5px padding * 2) */
    min-height: 36px;
    padding: 5px 5px 5px 10px;
    position: relative;
    z-index: 100;
}

.panel-title {
    font: inherit;
    margin: 0;
    padding: 0;
}

.panel-title > a {
    color: var(--color-link);
    display: inline-block;
}

.panel-title > a:hover,
.panel-title > a:focus {
    color: var(--alert-info-text);
}

/* Allow children in the title to wrap */
.panel-title > h3,
.panel-title > a,
.panel-title > div,
.panel-title > span {
    flex-shrink: 1;
    word-break: break-all;
}

.panel-heading > :last-child:not(:first-child),
.panel-heading > .pull-right,
.panel-heading > .panel-heading-actions {
    flex: auto;
    text-align: right;
}

.panel-heading > .pull-right {
    /* HACK: Pull right shouldn't be used to change document order. */
    /* This CSS _also_ changes document order to replicate the float. */
    /* Solution: Fix document order when pull-right is used. */
    order: 100;
}

.panel-heading > .pull-right:first-child ~ :last-child {
    /* Undo :last-child above for cases where pull-right is used before */
    text-align: left;
}

@media screen and (max-width: 640px) {
    /* Remove _most_ of the gaps on the sides of small screens */
    /* to maximize space, but still keep the boxy panel look */
    /* (container-fluid & page-ct adds 20px, so we remove 1/2 of that) */
    .page-ct > .panel,
    .container-fluid > .panel,
    .col-md-12 > .panel {
        margin-left: -10px;
        margin-right: -10px;
    }

    .panel {
        /* Background fade */
        --hi-color: #d1d1d1;
        --hi-color2: var(--color-gray-2);
        --bg-color: var(--color-bg);
        --hi-width: 20px;
        --hi-width3: calc(var(--hi-width) * 3);
        --transparent: rgba(255,255,255,0); /* WebKit needs white transparent */
        max-width: 100vw;
        overflow-x: auto;
        position: relative;
        background-image:
          linear-gradient(to left, var(--bg-color) var(--hi-width), var(--transparent) var(--hi-width3)),
          linear-gradient(to left, var(--hi-color) 1px, var(--transparent) 2px, var(--hi-color2) 4px, var(--bg-color) var(--hi-width)),
          linear-gradient(to right, var(--bg-color) var(--hi-width), var(--transparent) var(--hi-width3)),
          linear-gradient(to right, var(--hi-color) 1px, var(--transparent) 2px, var(--hi-color2) 4px, var(--bg-color) var(--hi-width));
        background-attachment: local, scroll, local, scroll;
        background-position: right, right, left, left;
        background-repeat: no-repeat;
        background-size: var(--hi-width3) 100%;
    }

    .panel > .panel-heading {
        /* WebKit still needs -webkit- prefix for sticky */
        position: -webkit-sticky;
        position: sticky;
        left: 0;
        top: 0;
    }

    .panel .table thead th {
        white-space: nowrap;
    }

    .panel .table:not(:hover):not(:focus):not(:active) {
        background: transparent;
    }
    .panel .table thead:not(:hover):not(:focus):not(:active) {
        background: transparent;
    }
}

/*
 * Fix up table row hovering.
 *
 * When you hover over table rows it's because they're clickable.
 * Make the table row hover color match the list-group-item.
 */
.table-hover > tbody > tr > td,
.table-hover > tbody > tr > th,
.dialog-list-ct .list-group-item {
    cursor: pointer;
}
.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th,
.dialog-list-ct .list-group-item:hover:not(.active) {
    background-color: var(--color-ct-list-hover-bg);
}

/* Override patternfly to fit buttons and such */
.table > thead > tr > th,
.table > tbody > tr > td {
    padding: 8px;
}

/* Override the heavy patternfly headers */
.table > thead {
    background-image: none;
    background-color: var(--color-bg);
}

/* Make things line up */
.table tbody tr > :first-child,
.table thead tr > :first-child {
    padding-left: 1.5rem;
}

.table tbody tr > :last-child,
.table thead tr > :last-child {
    padding-right: 1.5rem;
}

.info-table-ct > tbody > tr > th,
.info-table-ct > tr > td,
.info-table-ct > tbody > tr > td {
    line-height: 26px;
    vertical-align: baseline;
}

.info-table-ct > tr > th,
.info-table-ct > tr > td,
.info-table-ct > tbody > tr > th,
.info-table-ct > tbody > tr > td {
    padding-bottom: 0.5rem;
}

.info-table-ct > tr > td,
.info-table-ct > tbody > tr > td {
    overflow: hidden;
    padding-left: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-table-ct > tbody > tr > th,
.info-table-ct > tr > td:first-child,
.info-table-ct > tbody > tr > td:first-child {
    font-weight: 600;
    text-align: right;
}

.info-table-ct > tr > td button,
.info-table-ct > tbody > tr > td button {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-table-ct {
    width: 100%;
}

.form-table-ct td {
    padding-left: 0.75em;
    padding-top: 0.25em;
    line-height: 26px;
}


.form-table-ct td.top {
    vertical-align: top;
}

.form-table-ct td:first-child {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    width: 5px; /* will be expanded by nowrap */
}


.form-table-ct td[colspan] {
    text-align: inherit;
}

.form-table-ct td {
    height: 26px;
}

.form-table-ct td.header {
    font-weight: bold;
    text-align: left;
    color: var(--color-gray-11);
    padding: 20px 0 10px 0;
}

.form-table-ct label input[type='radio'],
.form-table-ct label input[type='checkbox'] {
    margin-right: 4px;
}
<commit_msg>lib/table: Restyle table to resemble PF4<commit_after>.panel .table {
    font-size: var(--font-size-s);
}

/* Panels don't draw borders between them */
.panel > .table > tbody:first-child td {
    border-top: 1px solid rgb(221, 221, 221);
}

/* Table headers should not generate a double border */
.panel .table thead tr th {
    border-bottom: none;
}

/* Fix panel heading alignment & mobile layout */

.panel-heading {
    align-items: center;
    background: #f5f5f5;
    display: flex;
    flex-wrap: wrap;
    /* 36px = (26px widget height) + (5px padding * 2) */
    min-height: 36px;
    padding: 5px 5px 5px 10px;
    position: relative;
    z-index: 100;
}

.panel-title {
    font: inherit;
    margin: 0;
    padding: 0;
}

.panel-title > a {
    color: var(--color-link);
    display: inline-block;
}

.panel-title > a:hover,
.panel-title > a:focus {
    color: var(--alert-info-text);
}

/* Allow children in the title to wrap */
.panel-title > h3,
.panel-title > a,
.panel-title > div,
.panel-title > span {
    flex-shrink: 1;
    word-break: break-all;
}

.panel-heading > :last-child:not(:first-child),
.panel-heading > .pull-right,
.panel-heading > .panel-heading-actions {
    flex: auto;
    text-align: right;
}

.panel-heading > .pull-right {
    /* HACK: Pull right shouldn't be used to change document order. */
    /* This CSS _also_ changes document order to replicate the float. */
    /* Solution: Fix document order when pull-right is used. */
    order: 100;
}

.panel-heading > .pull-right:first-child ~ :last-child {
    /* Undo :last-child above for cases where pull-right is used before */
    text-align: left;
}

@media screen and (max-width: 640px) {
    /* Remove _most_ of the gaps on the sides of small screens */
    /* to maximize space, but still keep the boxy panel look */
    /* (container-fluid & page-ct adds 20px, so we remove 1/2 of that) */
    .page-ct > .panel,
    .container-fluid > .panel,
    .col-md-12 > .panel {
        margin-left: -10px;
        margin-right: -10px;
    }

    .panel {
        /* Background fade */
        --hi-color: #d1d1d1;
        --hi-color2: var(--color-gray-2);
        --bg-color: var(--color-bg);
        --hi-width: 20px;
        --hi-width3: calc(var(--hi-width) * 3);
        --transparent: rgba(255,255,255,0); /* WebKit needs white transparent */
        max-width: 100vw;
        overflow-x: auto;
        position: relative;
        background-image:
          linear-gradient(to left, var(--bg-color) var(--hi-width), var(--transparent) var(--hi-width3)),
          linear-gradient(to left, var(--hi-color) 1px, var(--transparent) 2px, var(--hi-color2) 4px, var(--bg-color) var(--hi-width)),
          linear-gradient(to right, var(--bg-color) var(--hi-width), var(--transparent) var(--hi-width3)),
          linear-gradient(to right, var(--hi-color) 1px, var(--transparent) 2px, var(--hi-color2) 4px, var(--bg-color) var(--hi-width));
        background-attachment: local, scroll, local, scroll;
        background-position: right, right, left, left;
        background-repeat: no-repeat;
        background-size: var(--hi-width3) 100%;
    }

    .panel > .panel-heading {
        /* WebKit still needs -webkit- prefix for sticky */
        position: -webkit-sticky;
        position: sticky;
        left: 0;
        top: 0;
    }

    .panel .table thead th {
        white-space: nowrap;
    }

    .panel .table:not(:hover):not(:focus):not(:active) {
        background: transparent;
    }
    .panel .table thead:not(:hover):not(:focus):not(:active) {
        background: transparent;
    }
}

/*
 * Fix up table row hovering.
 *
 * When you hover over table rows it's because they're clickable.
 * Make the table row hover color match the list-group-item.
 */
.table-hover > tbody > tr > td,
.table-hover > tbody > tr > th,
.dialog-list-ct .list-group-item {
    cursor: pointer;
}
.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th,
.dialog-list-ct .list-group-item:hover:not(.active) {
    background-color: var(--color-ct-list-hover-bg);
}

/* Override patternfly to fit buttons and such */
.table > thead > tr > th,
.table > tbody > tr > td {
    padding: 0.5rem;
    vertical-align: baseline;
}

/* Override the heavy patternfly headers */
.table > thead {
    background-image: none;
    background-color: var(--color-bg);
}

/* Make things line up */
.table tbody tr > :first-child,
.table thead tr > :first-child {
    padding-left: 1rem;
}

.table tbody tr > :last-child,
.table thead tr > :last-child {
    padding-right: 1rem;
}

.info-table-ct > tbody > tr > th,
.info-table-ct > tr > td,
.info-table-ct > tbody > tr > td {
    line-height: 26px;
    vertical-align: baseline;
}

.info-table-ct > tr > th,
.info-table-ct > tr > td,
.info-table-ct > tbody > tr > th,
.info-table-ct > tbody > tr > td {
    padding-bottom: 0.5rem;
}

.info-table-ct > tr > td,
.info-table-ct > tbody > tr > td {
    overflow: hidden;
    padding-left: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-table-ct > tbody > tr > th,
.info-table-ct > tr > td:first-child,
.info-table-ct > tbody > tr > td:first-child {
    font-weight: 600;
    text-align: right;
}

.info-table-ct > tr > td button,
.info-table-ct > tbody > tr > td button {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-table-ct {
    width: 100%;
}

.form-table-ct td {
    padding-left: 0.75em;
    padding-top: 0.25em;
    line-height: 26px;
}


.form-table-ct td.top {
    vertical-align: top;
}

.form-table-ct td:first-child {
    font-size: var(--pf-global--FontSize--sm);
    margin-top: calc(var(--pf-global--FontSize--md) - var(--pf-global--FontSize--sm));
    vertical-align: baseline;
    text-align: right;
    white-space: nowrap;
    width: 5px; /* will be expanded by nowrap */
    padding-right: 1rem;
    min-height: 2.25rem;
}


.form-table-ct td[colspan] {
    text-align: inherit;
}

.form-table-ct td {
    height: 26px;
}

.form-table-ct td.header {
    font-weight: bold;
    text-align: left;
    color: var(--color-gray-11);
    padding: 20px 0 10px 0;
}

.form-table-ct label input[type='radio'],
.form-table-ct label input[type='checkbox'] {
    margin-right: 4px;
}

{'fraction_non_alphanumeric': 0.16198455725316246, 'fraction_numerical': 0.021274848036799736, 'mean_word_length': 2.4295774647887325, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 157, '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': '5405396', 'n_tokens_mistral': 4579, 'n_tokens_neox': 4326, 'n_words': 1113}