Code coverage report for styles/sortable_table.js

Statements: 100% (8 / 8)      Branches: 100% (0 / 0)      Functions: 100% (0 / 0)      Lines: 100% (8 / 8)      Ignored: none     

All files » styles/ » sortable_table.js
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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 1481 1 1 1               1           1             1                                                                                                                                                                                                                                                     1
var _ = require('lodash');
var ButtonBase = require('./base_styles/buttons');
var IconBase = require('./base_styles/icons');
var PopupBase = require('./base_styles/popups');
 
/*
 * Styles for SortableTable.
 * Collects styles for SortableTable and TableHeader, and TableRow
 * as used by SortableTable.
 */
 
var rowBase = {
  borderTop: '1px solid #d3d3d3',
  borderBottom: '1px solid #d3d3d3',
  boxSizing: 'border-box'
};
 
var cellWrapperBase = {
  width: '60px',
  fontSize: '12px',
  verticalAlign: 'middle',
  padding: '0 10px'
};
 
var SortableTableStyles = {
  table: {
    title: {
      fontSize: '28px',
      fontWeight: 'bold',
      color: '#323232',
      paddingTop: '30px',
      paddingBottom: '0',
      textTransform: 'capitalize'
    },
    wrapper: {
      width: '1000px',
      marginBottom: '40px',
      overflow: 'hidden'
    },
    table: {
      width: '100%',
      border: '1px solid #d3d3d3',
      borderLeft: 'none',
      borderCollapse: 'collapse',
      borderSpacing: '0',
      zIndex: '550'
    },
    thead: {
      backgroundColor: '#ffffff',
      border: '1px solid #c7c7c7'
    },
    tbody: {}
  },
  head: {
    row: rowBase,
    label: {
      WebkitUserSelect: 'none',
      cursor: 'pointer',
      fontSize: '13px',
      lineHeight: '35px',
      color: '#323232',
      borderLeft: '1px solid #d3d3d3',
      overflow: 'hidden',
      whiteSpace: 'nowrap',
      paddingLeft: '10px',
      paddingRight: '10px'
    },
    button: _.extend({}, ButtonBase.base, {
      textTransform: 'capitalize'
    })
  },
  row: {
    story: _.extend({}, rowBase, {
      backgroundColor: '#e4efcf'
    }),
    task: _.extend({}, rowBase, {
      backgroundColor: '#f0f0ec'
    }),
    test: _.extend({}, rowBase, {
      backgroundColor: '#ebf7fa'
    }),
    defect: _.extend({}, rowBase, {
      backgroundColor: '#f8e6e6'
    }),
    spacer: {
      width: '100%',
      height: '4px'
    },
    expanded: {
      minHeight: '30px'
    },
    matched: {
      borderLeft: '6px solid #84b431'
    },
    nonMatching: {
      borderLeft: '6px solid #84b431',
      opacity: '0.6'
    }
  },
  cell: {
    base: {
      borderLeft: '1px solid #d3d3d3',
      boxSizing: 'border-box'
    },
    condensed: _.extend({}, cellWrapperBase, {
      lineHeight: '32px',
      whiteSpace: 'nowrap',
      textOverflow: 'ellipsis',
      overflow: 'hidden',
    }),
    expanded: _.extend({}, cellWrapperBase, {
      lineHeight: '19px',
      padding: '8px 10px'
    }),
    borderCorrection: {
      padding: '0 8px'
    },
    narrow: {
      width: '20px'
    },
    wide: {
      width: '50px'
    },
    wider: {
      width: '90px'
    },
    widest: {
      width: '375px'
    },
    link: {
      color: '#323232'
    },
    linkHover: {
      color: '#323232',
      textDecoration: 'underline'
    },
    subitemArrow: _.extend({}, IconBase.medium, {
      float: 'left',
      backgroundPosition: '0 -335px',
      marginTop: '6px'
    }),
    subitemArrowExpanded: {
      marginTop: '0'
    }
  }
};
 
module.exports = SortableTableStyles;