All files / components/data-grid DataGrid-css.ts

100% Statements 3/3
100% Branches 0/0
100% Functions 0/0
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 501x   1x                                                                                             1x
import css from "../../custom-element/helpers/css";
 
const styles = css`
:host {
    display: flex;
    flex-flow: column nowrap;
    flex: 1 1 auto;
}
 
    .th {
    display: none;
    font-weight: 700;
    background-color: #f2f2f2;
    }
 
    .th > .td {
    white-space: normal;
    justify-content: center;
    }
 
    .tr {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    }
 
    .tr:nth-of-type(even) {
    background-color: #f2f2f2;
    }
 
    .tr:nth-of-type(odd) {
    background-color: #ffffff;
    }
 
    .td {
    display: flex;
    flex-flow: row nowrap;
    flex-grow: 1;
    flex-basis: 0;
    padding: 0.5em;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0px;
    white-space: nowrap;
    border-bottom: 1px solid #d0d0d0;
    }
`;
 
export default styles;