Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/webroot/rsrc/css/aphront/table-view.css
12241 views
1
/**
2
* @provides aphront-table-view-css
3
*/
4
5
.aphront-table-wrap {
6
overflow-x: auto;
7
-webkit-overflow-scrolling: touch;
8
}
9
10
.aphront-table-view {
11
width: 100%;
12
border-collapse: collapse;
13
background: {$page.content};
14
border: 1px solid {$lightblueborder};
15
border-bottom: 1px solid {$blueborder};
16
}
17
18
.aphront-table-view-fixed {
19
table-layout: fixed;
20
}
21
22
.aphront-table-view-fixed th {
23
box-sizing: border-box;
24
}
25
26
.aphront-table-notice {
27
padding: 12px 16px;
28
color: {$darkbluetext};
29
border-bottom: 1px solid {$thinblueborder};
30
}
31
32
.phui-two-column-view .aphront-table-notice .phui-info-view {
33
margin: 0;
34
}
35
36
.aphront-table-view tr.alt {
37
background: {$lightgreybackground};
38
}
39
40
.device-desktop .aphront-table-view tr:hover {
41
background: {$bluebackground};
42
}
43
44
.device-desktop .aphront-table-view tr.no-data:hover {
45
background: inherit;
46
}
47
48
.aphront-table-view th,
49
.aphront-table-view td.header {
50
font-weight: bold;
51
white-space: nowrap;
52
color: {$bluetext};
53
font-weight: bold;
54
text-shadow: 0 1px 0 white;
55
background-color: {$lightbluebackground};
56
}
57
58
.aphront-table-view td.row-divider {
59
background-color: {$bluebackground};
60
font-weight: bold;
61
padding: 8px 12px;
62
}
63
64
.aphront-table-view td.indent {
65
padding-left: 24px;
66
}
67
68
.aphront-table-view th {
69
border-bottom: 1px solid {$thinblueborder};
70
}
71
72
th.aphront-table-view-sortable-selected {
73
background-color: {$greybackground};
74
}
75
76
.aphront-table-view th a,
77
.aphront-table-view th a:hover,
78
.aphront-table-view th a:link {
79
color: {$bluetext};
80
text-shadow: 0 1px 0 white;
81
display: block;
82
text-decoration: none;
83
}
84
85
.aphront-table-view th a:hover {
86
text-decoration: underline;
87
color: {$darkbluetext};
88
}
89
90
.aphront-table-view td.header {
91
text-align: right;
92
border-right: 1px solid {$thinblueborder};
93
}
94
95
.aphront-table-view td {
96
white-space: nowrap;
97
vertical-align: middle;
98
color: {$darkbluetext};
99
}
100
101
.aphront-table-down-sort {
102
display: inline-block;
103
margin-top: 5px;
104
width: 0;
105
height: 0;
106
vertical-align: top;
107
border-top: 4px solid {$bluetext};
108
border-right: 4px solid transparent;
109
border-left: 4px solid transparent;
110
content: "";
111
}
112
113
.aphront-table-up-sort {
114
display: inline-block;
115
margin-top: 5px;
116
width: 0;
117
height: 0;
118
vertical-align: top;
119
border-bottom: 4px solid {$bluetext};
120
border-right: 4px solid transparent;
121
border-left: 4px solid transparent;
122
content: "";
123
}
124
125
/* - Padding -------------------------------------------------------------------
126
127
On desktops, we have more horizontal space and use it to space columns out.
128
129
On devices, we make each row slightly taller to create a larger hit target
130
for links.
131
132
*/
133
134
.aphront-table-view th {
135
padding: 8px 10px;
136
}
137
138
.aphront-table-view td {
139
padding: 8px 10px;
140
}
141
142
.device-tablet .aphront-table-view th,
143
.device-phone .aphront-table-view th {
144
overflow: hidden;
145
}
146
147
.aphront-table-view td.sorted-column {
148
background: {$lightbluebackground};
149
}
150
151
.aphront-table-view tr.alt td.sorted-column {
152
background: {$greybackground};
153
}
154
155
.aphront-table-view td.action {
156
padding-top: 1px;
157
padding-bottom: 1px;
158
}
159
160
.aphront-table-view td.larger {
161
font-size: {$biggerfontsize};
162
}
163
164
.aphront-table-view td.pri {
165
font-weight: bold;
166
color: {$darkbluetext};
167
}
168
169
.aphront-table-view td.top {
170
vertical-align: top;
171
}
172
173
/* Apply this rule to both "<th />" and "<td />" so that the header widths
174
are correct if the table has no rows. */
175
.aphront-table-view th.wide,
176
.aphront-table-view td.wide {
177
white-space: normal;
178
width: 100%;
179
}
180
181
.aphront-table-view th.right,
182
.aphront-table-view td.right {
183
text-align: right;
184
}
185
186
.aphront-table-view td.mono {
187
font-family: "Monaco", monospace;
188
font-size: {$smallestfontsize};
189
}
190
191
.aphront-table-view td.n {
192
font-family: "Monaco", monospace;
193
font-size: {$smallestfontsize};
194
text-align: right;
195
}
196
197
.aphront-table-view td.nudgeright, .aphront-table-view th.nudgeright {
198
padding-right: 0;
199
}
200
201
.aphront-table-view td.wrap {
202
white-space: normal;
203
}
204
205
.aphront-table-view td.prewrap {
206
font-family: "Monaco", monospace;
207
font-size: {$smallestfontsize};
208
white-space: pre-wrap;
209
}
210
211
.aphront-table-view td.narrow {
212
width: 1px;
213
}
214
215
.aphront-table-view td.icon, .aphront-table-view th.icon {
216
width: 1px;
217
padding: 0px;
218
}
219
220
.aphront-table-view td.icon + td.icon {
221
padding-left: 8px;
222
}
223
224
div.single-display-line-bounds {
225
width: 100%;
226
position: relative;
227
overflow: hidden;
228
}
229
230
span.single-display-line-content {
231
white-space: pre;
232
position: absolute;
233
}
234
235
.device-phone span.single-display-line-content {
236
white-space: nowrap;
237
position: static;
238
}
239
240
.aphront-table-view td.object-link {
241
white-space: nowrap;
242
word-wrap: break-word;
243
overflow: hidden;
244
text-overflow: ellipsis;
245
min-width: 320px;
246
max-width: 320px;
247
}
248
249
.aphront-table-view tr.closed td.object-link .object-name,
250
.aphront-table-view tr.alt-closed td.object-link .object-name {
251
text-decoration: line-through;
252
color: rgba({$alphablack}, 0.5);
253
}
254
255
.aphront-table-view tr.closed td.object-link a,
256
.aphront-table-view tr.alt-closed td.object-link a {
257
color: rgba({$alphablack}, 0.5);
258
}
259
260
.aphront-table-view tr.closed td.graph-status,
261
.aphront-table-view tr.alt-closed td.graph-status,
262
.object-graph-table em {
263
color: {$lightgreytext};
264
}
265
266
.aphront-table-view tr.highlighted {
267
background: #fdf9e4;
268
}
269
270
.aphront-table-view tr.alt-highlighted {
271
background: {$sh-yellowbackground};
272
}
273
274
.aphront-table-view tr.diff-removed,
275
.aphront-table-view tr.alt-diff-removed {
276
background: {$lightred}
277
}
278
279
.aphront-table-view tr.diff-added,
280
.aphront-table-view tr.alt-diff-added {
281
background: {$lightgreen}
282
}
283
284
.aphront-table-view tr.no-data td {
285
padding: 16px;
286
text-align: center;
287
color: {$lightgreytext};
288
font-style: italic;
289
}
290
291
.aphront-table-view td.thumb img {
292
max-width: 64px;
293
max-height: 64px;
294
}
295
296
.aphront-table-view td.threads {
297
font-family: monospace;
298
white-space: pre;
299
padding: 0 0 0 8px;
300
}
301
302
.aphront-table-view td.threads canvas {
303
display: block;
304
}
305
306
.aphront-table-view td.radio {
307
text-align: center;
308
padding: 2px 4px 0px;
309
}
310
311
.aphront-table-view th.center,
312
.aphront-table-view td.center {
313
text-align: center;
314
}
315
316
.device .aphront-table-view td + td.center,
317
.device .aphront-table-view th + th.center {
318
padding-left: 3px;
319
padding-right: 3px;
320
}
321
322
.device-desktop .aphront-table-view-device {
323
display: none;
324
}
325
326
.device-tablet .aphront-table-view-nodevice,
327
.device-phone .aphront-table-view-nodevice {
328
display: none;
329
}
330
331
.aphront-table-view td.link {
332
padding: 0;
333
}
334
335
.aphront-table-view td.link a {
336
display: block;
337
padding: 6px 8px;
338
font-weight: bold;
339
}
340
341
.phui-object-box .aphront-table-view {
342
border: none;
343
}
344
345
.object-graph-header {
346
padding: 8px 12px;
347
overflow: hidden;
348
background: {$lightyellow};
349
border-bottom: 1px solid {$lightblueborder};
350
vertical-align: middle;
351
}
352
353
.object-graph-header .object-graph-header-icon {
354
float: left;
355
margin-top: 10px;
356
}
357
358
.object-graph-header a.button {
359
float: right;
360
}
361
362
.object-graph-header-message {
363
margin: 8px 200px 8px 20px;
364
}
365
366
.device .object-graph-header .object-graph-header-icon {
367
display: none;
368
}
369
370
.device .object-graph-header-message {
371
clear: both;
372
margin: 0;
373
}
374
375
.device .object-graph-header a.button {
376
margin: 0 auto 12px;
377
display: block;
378
width: 180px;
379
float: none;
380
}
381
382