summaryrefslogtreecommitdiff
path: root/assets/sass/_table.sass
blob: b49e76967b484e5fc71962976b4394877124e6e9 (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
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
table
  width: 100%
  border-collapse: collapse
  border-spacing: 0
  margin-bottom: 20px

th
  border: 1px solid #eee
  padding: 0.5em 3px

td
  border: 1px solid #eee
  padding: 0.5em 3px
  vertical-align: top

th
  background: #fbfbfb
  text-align: left

td li
  margin-left: 20px

.table-small
  font-size: $text-small

th a
  text-decoration: none
  color: #333
  &:focus, &:hover
    text-decoration: underline

.table-fixed
  table-layout: fixed
  white-space: nowrap
  th
    overflow: hidden
  td
    white-space: nowrap
    overflow: hidden
    text-overflow: ellipsis

.table-stripped tr:nth-child(odd)
  background: #fefefe

.column-3
  width: 3%

.column-5
  width: 5%

.column-8
  width: 7.5%

.column-10
  width: 10%

.column-12
  width: 12%

.column-15
  width: 15%

.column-18
  width: 18%

.column-20
  width: 20%

.column-25
  width: 25%

.column-30
  width: 30%

.column-35
  width: 35%

.column-40
  width: 40%

.column-50
  width: 50%

.column-60
  width: 60%

.column-70, .column-80
  width: 70%

.draggable-row-handle
  cursor: move
  color: #dedede
  &:hover
    color: #333

tr.draggable-item-selected
  background: #fff
  border: 2px solid #666
  box-shadow: 4px 2px 10px -4px rgba(0, 0, 0, 0.55)
  td
    border-top: none
    border-bottom: none
    &:first-child
      border-left: none
    &:last-child
      border-right: none

.table-stripped tr.draggable-item-hover, tr.draggable-item-hover
  background: #FEFFF2