forked from mit-teaching-systems-lab/threeflows
/
DataTable.css
180 lines (151 loc) · 3.58 KB
/
DataTable.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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
.dtm__view {
height: 100% !important;
width: calc(100% - 1em) !important;
margin: -0.5em 0.5em 0.5em 0.5em !important;
}
.dtm__header {
padding: 1.25rem 1.5rem 1.5rem 1.5rem !important;
}
.ui.fullscreen.modal.dtm__view {
width: calc(100% - 1em) !important;
}
.dtm__scroll {
height: 90vh !important;
padding: 0rem !important;
}
.dtm__scroll tbody td {
min-width: 100px;
overflow: visible !important;
overflow-wrap: break-word;
white-space: inherit !important;
text-overflow: unset !important;
}
.dt__cell-data-missing {
background-image: linear-gradient(
to top right,
transparent calc(50% - 1px),
#e0e6eb,
transparent calc(50% + 1px)
);
}
.dt__cell-truncated {
overflow: hidden !important;
white-space: nowrap !important;
text-overflow: ellipsis !important;
width: 250px;
max-width: 250px;
min-width: 250px;
}
.gridcolumn__first-child--sticky {
min-width: 40% !important;
}
.gridcolumn__first-child--sticky div:first-child {
position: sticky;
top: 0;
margin-top: 1px;
}
.dtm__grid-nowrap {
flex-wrap: nowrap !important;
}
.dt__left-col-hidden {
display: none !important;
}
.dtm__scroll .dt__scroll {
max-width: 100%;
max-height: 90vh;
overflow: scroll;
position: relative;
margin-bottom: 1rem;
padding-top: 0 !important;
}
.dt__scroll {
max-width: 100%;
max-height: 72vh;
overflow: auto;
position: relative;
margin-bottom: 1rem;
padding-top: 0 !important;
}
.dt__scroll th:last-child,
.dt__scroll td:last-child {
border-right: 1px solid rgba(34,36,38,.15) !important;
}
.dtm__view .dt__scroll {
width: unset;
overflow-y: auto !important;
overflow-x: unset !important;
}
.dt__scroll table {
table-layout: fixed;
position: relative;
border-collapse: collapse;
border: unset !important;
}
.dt__scroll td,
.dt__scroll th {
padding: .78571429em .78571429em;
min-width: 150px;
max-width: 250px;
}
.dt__scroll td:nth-child(2) {
border-left: 1px transparent !important;
}
.dt__scroll thead th {
overflow: hidden !important;
white-space: nowrap !important;
text-overflow: ellipsis !important;
width: 250px;
max-width: 250px;
min-width: 250px;
position: -webkit-sticky; /* for Safari */
position: sticky;
top: 0;
border-top: 1px solid rgba(34, 36, 38, .1) !important;
border-left: 1px solid rgba(34, 36, 38, .1) !important;
border-right: none !important;
}
.dt__scroll thead th:first-child.dt__scrollable-th,
.dt__scroll thead th.dt__scrollable-th {
overflow: unset !important;
white-space: unset !important;
text-overflow: none !important;
overflow-y: scroll !important;
width: 250px;
max-width: 250px;
min-width: 250px;
height: 200px;
vertical-align: top !important;
text-align: left !important;
}
.dt__scroll thead th:first-child {
left: 0;
z-index: 1;
vertical-align: middle !important;
text-align: center !important;
min-width: 150px;
width: 150px;
max-width: 150px;
border-right: 1px solid rgba(34, 36, 38, .1) !important;
border-left: 1px solid rgba(34, 36, 38, .1) !important;
}
.dt__scroll thead th:nth-child(2) {
border-left: none !important;
}
.dt__scroll tbody th {
position: -webkit-sticky; /* for Safari */
position: sticky;
left: 0;
vertical-align: middle;
text-align: center;
min-width: 150px;
width: 150px;
max-width: 150px;
background: rgb(249, 250, 251);
border-right: 1px solid rgba(34, 36, 38, .1) !important;
border-bottom: 1px solid rgba(34, 36, 38, 0.1);
border-left: 1px solid rgba(34, 36, 38, .1) !important;
}
.dt__scroll tbody td {
border-top: none !important;
border-bottom: 1px solid rgba(34, 36, 38, 0.1);
}