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

0% Statements 0/11
0% Branches 0/6
0% Functions 0/2
0% Lines 0/5

    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

     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 = styled(TableHeaderStyles)`
      padding: 3px 8px;
    `;

    export default TableHeaderStyles;