forked from schrodinger/fixed-data-table-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfixed-data-table-base.css
367 lines (322 loc) · 8.29 KB
/
fixed-data-table-base.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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
/**
* FixedDataTable v0.8.26
*
* Copyright Schrodinger, LLC
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
/**
* Copyright Schrodinger, LLC
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule fixedDataTableCellGroupLayout
*/
.fixedDataTableCellGroupLayout_cellGroup {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
left: 0;
overflow: hidden;
position: absolute;
top: 0;
white-space: nowrap;
}
.fixedDataTableCellGroupLayout_cellGroup > .public_fixedDataTableCell_main {
display: inline-block;
vertical-align: top;
white-space: normal;
}
.fixedDataTableCellGroupLayout_cellGroupWrapper {
position: absolute;
top: 0;
}
/**
* Copyright Schrodinger, LLC
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule fixedDataTableCellLayout
*/
.fixedDataTableCellLayout_main {
border-right-style: solid;
border-right-width: 1px;
border-width: 0 1px 0 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: block;
overflow: hidden;
position: absolute;
white-space: normal;
}
.fixedDataTableCellLayout_lastChild {
border-width: 0 1px 1px 0;
}
.fixedDataTableCellLayout_alignRight {
text-align: right;
}
.fixedDataTableCellLayout_alignCenter {
text-align: center;
}
.fixedDataTableCellLayout_wrap1 {
display: table;
}
.fixedDataTableCellLayout_wrap2 {
display: table-row;
}
.fixedDataTableCellLayout_wrap3 {
display: table-cell;
vertical-align: middle;
}
.fixedDataTableCellLayout_columnResizerContainer {
position: absolute;
right: 0px;
width: 6px;
z-index: 1;
}
.fixedDataTableCellLayout_columnResizerContainer:hover {
cursor: ew-resize;
}
.fixedDataTableCellLayout_columnResizerContainer:hover .fixedDataTableCellLayout_columnResizerKnob {
visibility: visible;
}
.fixedDataTableCellLayout_columnResizerKnob {
position: absolute;
right: 0px;
visibility: hidden;
width: 4px;
}
/**
* Copyright Schrodinger, LLC
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule fixedDataTableColumnResizerLineLayout
*/
.fixedDataTableColumnResizerLineLayout_mouseArea {
cursor: ew-resize;
position: absolute;
right: -5px;
width: 12px;
}
.fixedDataTableColumnResizerLineLayout_main {
border-right-style: solid;
border-right-width: 1px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
position: absolute;
z-index: 10;
pointer-events: none;
}
body[dir="rtl"] .fixedDataTableColumnResizerLineLayout_main {
/* the resizer line is in the wrong position in RTL with no easy fix.
* Disabling is more useful than displaying it.
* #167 (github) should look into this and come up with a permanent fix.
*/
display: none !important;
}
.fixedDataTableColumnResizerLineLayout_hiddenElem {
display: none !important;
}
/**
* Copyright Schrodinger, LLC
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule fixedDataTableLayout
*/
.fixedDataTableLayout_main {
border-style: solid;
border-width: 1px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
overflow: hidden;
position: relative;
}
.fixedDataTableLayout_header,
.fixedDataTableLayout_hasBottomBorder {
border-bottom-style: solid;
border-bottom-width: 1px;
}
.fixedDataTableLayout_footer .public_fixedDataTableCell_main {
border-top-style: solid;
border-top-width: 1px;
}
.fixedDataTableLayout_topShadow,
.fixedDataTableLayout_bottomShadow {
height: 4px;
left: 0;
position: absolute;
right: 0;
z-index: 1;
}
.fixedDataTableLayout_bottomShadow {
margin-top: -4px;
}
.fixedDataTableLayout_rowsContainer {
overflow: hidden;
position: relative;
}
.fixedDataTableLayout_horizontalScrollbar {
bottom: 0;
position: absolute;
}
/**
* Copyright Schrodinger, LLC
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule fixedDataTableRowLayout
*/
.fixedDataTableRowLayout_main {
-webkit-box-sizing: border-box;
box-sizing: border-box;
overflow: hidden;
position: absolute;
top: 0;
}
.fixedDataTableRowLayout_body {
left: 0;
position: absolute;
top: 0;
}
.fixedDataTableRowLayout_rowExpanded {
-webkit-box-sizing: border-box;
box-sizing: border-box;
left: 0;
position: absolute;
}
.fixedDataTableRowLayout_fixedColumnsDivider {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
border-left-style: solid;
border-left-width: 1px;
left: 0;
position: absolute;
top: 0;
width: 0;
}
.fixedDataTableRowLayout_columnsShadow {
position: absolute;
width: 4px;
}
.fixedDataTableRowLayout_columnsRightShadow {
right: 1px;
}
.fixedDataTableRowLayout_rowWrapper {
position: absolute;
top: 0;
}
/**
* Copyright Schrodinger, LLC
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ScrollbarLayout
*/
.ScrollbarLayout_main {
-webkit-box-sizing: border-box;
box-sizing: border-box;
outline: none;
overflow: hidden;
position: absolute;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.ScrollbarLayout_mainVertical {
bottom: 0;
right: 0;
top: 0;
width: 15px;
}
.ScrollbarLayout_mainHorizontal {
bottom: 0;
height: 15px;
left: 0;
-webkit-transition-property: background-color height;
transition-property: background-color height;
}
/* Touching the scroll-track directly makes the scroll-track bolder */
.ScrollbarLayout_mainHorizontal.public_Scrollbar_mainActive,
.ScrollbarLayout_mainHorizontal:hover {
height: 17px;
}
.ScrollbarLayout_face {
left: 0;
overflow: hidden;
position: absolute;
z-index: 1;
-webkit-transition-duration: 250ms;
transition-duration: 250ms;
-webkit-transition-timing-function: ease;
transition-timing-function: ease;
-webkit-transition-property: width;
transition-property: width;
}
/**
* This selector renders the "nub" of the scrollface. The nub must
* be rendered as pseudo-element so that it won't receive any UI events then
* we can get the correct `event.offsetX` and `event.offsetY` from the
* scrollface element while dragging it.
*/
.ScrollbarLayout_face:after {
border-radius: 6px;
content: '';
display: block;
position: absolute;
-webkit-transition: background-color 250ms ease;
transition: background-color 250ms ease;
}
.ScrollbarLayout_faceHorizontal {
bottom: 0;
left: 0;
top: 0;
}
.ScrollbarLayout_faceHorizontal:after {
bottom: 4px;
left: 0;
top: 4px;
width: 100%;
}
.ScrollbarLayout_faceHorizontal.public_Scrollbar_faceActive:after,
.ScrollbarLayout_main:hover .ScrollbarLayout_faceHorizontal:after {
bottom: calc(4px/2);
}
.ScrollbarLayout_faceVertical {
left: 0;
right: 0;
top: 0;
}
.ScrollbarLayout_faceVertical:after {
height: 100%;
left: 4px;
right: 4px;
top: 0;
}
.ScrollbarLayout_main:hover .ScrollbarLayout_faceVertical:after,
.ScrollbarLayout_faceVertical.public_Scrollbar_faceActive:after {
left: calc(4px/2);
right: calc(4px/2);
}