# All files / components/Table/styles TableHeaderStyles.js

66.67% Statements 2/3
0% Branches 0/2
0% Functions 0/1
66.67% Lines 2/3

    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

    4x

    4x

     import styled from 'styled-components';
    import get from 'extensions/themeGet';

    const TableHeaderStyles = styled.th`
      background: ${get('colors.primary.dark')};
      color: ${get('colors.text.inverted')};
      text-transform: uppercase;
      font-weight: 300;
      font-family: ${get('fonts.brand')};
      padding: ${get('spacing.small')} ${get('spacing.medium')};
      text-align: left;
      white-space: nowrap;

      cursor: ${({ sortable }) => (sortable ? 'pointer' : 'default')};

      & > a {
        color: inherit;
      }
      & > a:focus {
        color: inherit;
      }
      & > a::after {
        background: ${get('colors.text.inverted')};
      }
    `;

    TableHeaderStyles.Small = TableHeaderStyles.extend`
      padding: 3px 8px;
    `;

    export default TableHeaderStyles;