-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
fattable.css
101 lines (100 loc) · 1.89 KB
/
fattable.css
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
/* TODO add an offset back... but beware, as it hads
some padding in the scrolling */
.fattable-h-scrollbar {
padding: 0;
background-color: transparent;
position: absolute;
height: auto;
bottom: 0px;
left: 0px;
right: 0px;
overflow-x: scroll;
overflow-y: hidden;
}
.fattable-h-scrollbar > div {
padding: 0 !important;
}
.fattable-v-scrollbar {
padding: 0;
position: absolute;
background-color: transparent;
width: auto;
top: 0px;
bottom: 0px;
right: 0px;
overflow-x: hidden;
overflow-y: scroll;
}
.fattable-v-scrollbar > div {
padding: 0 !important;
}
body {
width: 500%;
background-color: red;
}
* {
box-sizing: border-box;
-moz-box-sizing: border-box;
}
.fattable {
overflow: hidden;
}
.fattable ::-webkit-scrollbar {
width: 10px;
height: 10px;
}
.fattable ::-webkit-scrollbar-track {
-webkit-border-radius: 5px;
border-radius: 5px;
background: rgba(0, 0, 0, 0.1);
}
.fattable ::-webkit-scrollbar-thumb {
-webkit-border-radius: 5px;
border-radius: 5px;
background: rgba(0, 0, 0, 0.2);
}
.fattable ::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.4);
}
.fattable ::-webkit-scrollbar-thumb:window-inactive {
background: rgba(0, 0, 0, 0.05);
}
.fattable-moving {
cursor: move;
}
.fattable-viewport {
overflow: hidden;
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
}
.fattable-viewport > div {
padding: 2px;
position: absolute;
font-size: 12px;
font-family: sans-serif;
overflow: hidden;
text-overflow: ellipsis;
}
.fattable-body-container {
position: absolute;
overflow: hidden;
/* overflow-x:scroll;
overflow-y:scroll;*/
bottom: 0px;
width: 100%;
}
.fattable-header-container {
position: absolute;
overflow: hidden;
width: 100%;
height: 100px;
}
.fattable-header-container .fattable-viewport {
height: 100%;
}
.fattable-header-container .fattable-viewport > div {
height: 100%;
}