summaryrefslogtreecommitdiff
path: root/assets/sass/_table_list.sass
blob: f9d3b5e3cec5dd00b84ff566c6188c95790e90f4 (plain)
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
@import variables

.table-list
  font-size: size('compact')
  margin-bottom: 20px

.table-list-header
  background: bg-color('primary')
  border: 1px solid #e5e5e5
  border-radius: 5px 5px 0 0
  line-height: 35px
  padding-left: 3px
  padding-right: 3px
  .table-list-header-count
    color: #767676
    display: inline-block
    float: left
  .table-list-header-menu
    text-align: right

.table-list-row
  padding-left: 3px
  padding-right: 3px
  border-bottom: 1px solid #e5e5e5
  border-right: 1px solid #e5e5e5

  &.table-border-left
    border-left: 1px solid #e5e5e5

  &:nth-child(odd)
    background: bg-color('lighter')

  &:last-child
    border-radius: 0 0 5px 5px

  &:hover
    background: map-get($highlight-colors, 'background')
    border-bottom: 1px solid map-get($highlight-colors, 'border')
    border-right: 1px solid map-get($highlight-colors, 'border')

  .table-list-title
    font-weight: 500
    &.status-closed
      text-decoration: line-through
      margin-right: 10px
      a
        font-style: italic
    a
      color: color('primary')
      text-decoration: none
      &:hover, &:focus
        text-decoration: underline

  .table-list-details
    color: color('light')
    font-weight: 300
    line-height: 30px
    li
      display: inline
      list-style-type: none
      &:after
        content: ', '
      &:last-child:after
        content: ''