Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/webroot/rsrc/css/phui/object-item/phui-oi-list-view.css
12241 views
1
/**
2
* @provides phui-oi-list-view-css
3
*/
4
5
.phui-oi {
6
border-left-width: 0;
7
}
8
9
ul.phui-oi-list-view {
10
padding: 8px;
11
list-style: none;
12
}
13
14
.device-desktop .phui-oi-list-view {
15
padding: 16px;
16
}
17
18
.phui-oi-list-view + .phui-oi-list-view {
19
padding-top: 0;
20
}
21
22
.phui-object-box .phui-oi-list-view .phui-oi {
23
margin: 0;
24
}
25
26
.phui-oi-list-view .phui-info-view {
27
margin: 0;
28
}
29
30
.phui-object-box .phui-oi-list-view .phui-info-view {
31
color: {$greytext};
32
border: none;
33
}
34
35
.phui-oi {
36
border-style: solid;
37
border-color: {$lightgreyborder};
38
margin: 5px 0;
39
overflow: hidden;
40
background: {$page.content};
41
margin-bottom: 4px;
42
}
43
44
.phui-oi .phui-icon-view {
45
display: inline-block;
46
}
47
48
.phui-oi-frame {
49
border-color: {$lightblueborder};
50
border-width: 1px 1px 1px 0;
51
border-style: solid;
52
position: relative;
53
min-height: 33px;
54
overflow: hidden;
55
}
56
57
.phui-oi-cover-image {
58
display: none;
59
}
60
61
.phui-oi-no-bar .phui-oi-frame {
62
border-width: 1px;
63
}
64
65
.device-desktop .phui-oi {
66
margin: 0 0 4px 0;
67
}
68
69
.phui-object-box .phui-oi-list-view {
70
margin: 0;
71
}
72
73
.phui-oi-status-icon {
74
font-weight: bold;
75
padding: 3px;
76
font-size: 16px;
77
}
78
79
.phui-oi-list-view .phui-oi-col0 .phui-icon-view {
80
width: 17px;
81
text-align: center;
82
overflow: visible;
83
position: relative;
84
left: -1px;
85
}
86
87
.phui-oi-name {
88
padding: 8px 8px 0;
89
white-space: nowrap;
90
word-wrap: break-word;
91
overflow: hidden;
92
text-overflow: ellipsis;
93
font-weight: bold;
94
-webkit-font-smoothing: antialiased;
95
}
96
97
.device-phone .phui-oi-name {
98
overflow: normal;
99
white-space: normal;
100
font-weight: bold;
101
}
102
103
.phui-oi-link {
104
display: inline;
105
}
106
107
.phui-oi-objname {
108
color: {$blacktext};
109
cursor: text;
110
font-weight: bold;
111
}
112
113
.phui-oi-content {
114
margin: 4px 8px 2px 0;
115
overflow: hidden;
116
}
117
118
.phui-oi-grippable {
119
cursor: move;
120
}
121
122
.device .phui-oi-grippable {
123
cursor: normal;
124
}
125
126
.phui-oi-grip {
127
position: absolute;
128
top: 0;
129
bottom: 0;
130
left: 0;
131
width: 20px;
132
background: url('/rsrc/image/texture/grip.png') center center no-repeat;
133
}
134
135
.phui-oi-ungrippable .phui-oi-grip {
136
opacity: 0.25;
137
}
138
139
.device .phui-oi-grip {
140
display: none;
141
}
142
143
.phui-oi-has-grip .phui-oi-frame {
144
padding-left: 16px;
145
}
146
147
.device .phui-oi-grippable .phui-oi-frame {
148
padding-left: 0;
149
}
150
151
.phui-oi-list-header {
152
padding: 0 0 8px 0;
153
color: {$darkgreytext};
154
}
155
156
.phui-oi-table {
157
display: table;
158
table-layout: fixed;
159
width: 100%;
160
}
161
162
.phui-oi-table-row {
163
display: table-row;
164
}
165
166
.phui-oi-col0 {
167
width: 20px;
168
display: table-cell;
169
vertical-align: middle;
170
padding-left: 4px;
171
}
172
173
.device-phone .phui-oi-col0 {
174
vertical-align: top;
175
padding-top: 8px;
176
}
177
178
.phui-oi-col1 {
179
display: table-cell;
180
vertical-align: top;
181
}
182
183
.phui-oi-col2 {
184
width: 160px;
185
display: table-cell;
186
vertical-align: top;
187
}
188
189
.phui-oi-col2.phui-oi-side-column {
190
width: 200px;
191
}
192
193
.device-phone .phui-oi-col1,
194
.device-phone .phui-oi-col2 {
195
display: block;
196
width: auto;
197
}
198
199
/* - Item Actions --------------------------------------------------------------
200
201
Action buttons, like "Edit" and "Delete".
202
203
*/
204
205
.phui-oi-actions {
206
position: absolute;
207
right: 4px;
208
top: 4px;
209
bottom: 4px;
210
vertical-align: middle;
211
text-align: right;
212
}
213
214
.phui-oi-actions .phui-list-item-view {
215
float: right;
216
height: 100%;
217
width: 24px;
218
display: inline-block;
219
position: relative;
220
}
221
222
.phui-oi-actions .phui-list-item-href {
223
display: inline-block;
224
position: relative;
225
width: 24px;
226
height: 100%;
227
}
228
229
.device-desktop .phui-oi-actions .phui-list-item-href:hover {
230
background: {$hoverblue};
231
border-radius: 3px;
232
}
233
234
.phui-oi-actions .phui-list-item-icon {
235
width: 14px;
236
height: 14px;
237
position: absolute;
238
display: block;
239
top: 50%;
240
margin-top: -7px;
241
left: 3px;
242
}
243
244
.phui-oi-actions .phui-list-item-name {
245
display: none;
246
}
247
248
.phui-oi-with-1-actions .phui-oi-content-box {
249
margin-right: 28px;
250
overflow: hidden;
251
}
252
253
.phui-oi-with-2-actions .phui-oi-content-box {
254
margin-right: 54px;
255
overflow: hidden;
256
}
257
258
.phui-oi-with-3-actions .phui-oi-content-box {
259
margin-right: 76px;
260
overflow: hidden;
261
}
262
263
264
/* - Object Box List -----------------------------------------------------------
265
266
Tighter, stacking list when inside an Object Box
267
268
*/
269
270
.phui-object-box .phui-oi-list-view {
271
padding: 0;
272
border: none;
273
}
274
275
.phui-object-box .phui-oi-frame {
276
border-right: none;
277
}
278
279
.phui-object-box .phui-oi:last-child
280
.phui-oi-frame {
281
border-bottom: none;
282
}
283
284
285
/* - Subhead -------------------------------------------------------------------
286
287
Descriptive Text or Links under the main header, before attributes.
288
289
*/
290
291
.phui-oi-subhead {
292
color: {$greytext};
293
padding: 0 8px 6px;
294
}
295
296
.phui-oi-description {
297
display: none;
298
}
299
300
.phui-oi-description.phui-oi-description-reveal {
301
display: block;
302
}
303
304
.phui-oi-description-tag {
305
margin-left: 4px;
306
}
307
308
.phui-oi-description-tag:hover .phui-tag-core {
309
cursor: pointer;
310
background: {$darkgreybackground};
311
}
312
313
.phui-oi-description-tag .phui-tag-core {
314
border: none;
315
}
316
317
.phui-oi-description-tag.phui-tag-view .phui-icon-view {
318
margin: 2px;
319
}
320
321
322
/* - Attribute List ------------------------------------------------------------
323
324
Object attributes, commonly used to render created date, etc.
325
326
*/
327
328
.phui-oi-attributes {
329
padding: 0 8px 6px;
330
line-height: 18px;
331
min-height: 21px;
332
}
333
334
.phui-oi-attribute {
335
display: inline-block;
336
color: {$greytext};
337
vertical-align: top;
338
margin-right: 4px;
339
}
340
341
.phui-oi-attribute-spacer {
342
padding: 0 4px;
343
}
344
345
346
/* - Icons ---------------------------------------------------------------------
347
348
Icons, which show object state. On mobile, they are rendered without labels
349
to save space.
350
351
*/
352
353
.phui-object-icon-pane {
354
margin: 8px 0 4px;
355
}
356
357
.device-phone .phui-object-icon-pane {
358
margin: 0 0 4px;
359
}
360
361
.phui-oi-icons {
362
padding: 0 4px 0 0;
363
}
364
365
.device-phone .phui-oi-icons {
366
padding: 0 0 0 8px;
367
}
368
369
ul.phui-oi-icons {
370
margin: 0;
371
}
372
373
.phui-oi-icon {
374
vertical-align: middle;
375
font-size: {$smallerfontsize};
376
color: {$greytext};
377
text-align: right;
378
white-space: nowrap;
379
overflow: hidden;
380
min-height: 18px;
381
line-height: 18px;
382
}
383
384
.device-phone .phui-oi-icon {
385
text-align: left;
386
font-size: 13px;
387
}
388
389
/*
390
* Items with icon 'none' still have on mobile, thus creating a weird vertical
391
* margin for elements which follow
392
*/
393
.device-phone .phui-oi-icon .none {
394
display: none;
395
}
396
397
.phui-oi-icon-image {
398
width: 14px;
399
height: 14px;
400
font-size: 13px;
401
margin-right: 4px;
402
}
403
404
405
/* - Disabled ------------------------------------------------------------------
406
407
Disabled/inactive objects.
408
409
*/
410
411
412
.phui-oi.phui-oi-disabled .phui-oi-link,
413
.phui-oi.phui-oi-disabled .phui-oi-link a {
414
color: {$lightgreytext};
415
}
416
417
.phui-oi.phui-oi-disabled .phui-oi-frame {
418
border-color: #d7d7d7;
419
}
420
421
.phui-oi.phui-oi-disabled .phui-oi-objname {
422
color: {$greytext};
423
text-decoration: line-through;
424
}
425
426
.phui-oi.phui-oi-disabled .phui-oi-image {
427
opacity: .8;
428
-webkit-filter: grayscale(100%);
429
filter: grayscale(100%);
430
}
431
432
.phui-oi.phui-oi-disabled .phui-oi-attribute,
433
.phui-oi.phui-oi-disabled .phui-oi-attribute > .phui-icon-view {
434
color: {$lightgreytext};
435
}
436
437
438
/* - Effects -------------------------------------------------------------------
439
440
Effects like highlighted items.
441
442
*/
443
444
.phui-oi.phui-oi-highlighted {
445
background: {$sh-yellowbackground};
446
}
447
448
ul.phui-oi-list-view .phui-oi-highlighted
449
.phui-oi-frame {
450
border-color: {$sh-yellowborder};
451
}
452
453
.phui-oi-selected {
454
background: {$sh-bluebackground};
455
}
456
457
ul.phui-oi-list-view .phui-oi-selected
458
.phui-oi-frame {
459
border-color: {$sh-blueborder};
460
}
461
462
.phui-oi-forbidden {
463
background: {$sh-redbackground};
464
}
465
466
467
/* - Handle Icons --------------------------------------------------------------
468
469
Shows owners, reviewers, etc., using profile picture icons.
470
471
*/
472
473
.phui-oi-handle-icons {
474
bottom: 0;
475
right: 4px;
476
position: absolute;
477
}
478
479
.phui-oi-handle-icon {
480
width: 24px;
481
height: 24px;
482
display: inline-block;
483
background-size: 100%;
484
border-radius: 3px;
485
background-repeat: no-repeat;
486
}
487
488
489
/* - Bylines -------------------------------------------------------------------
490
491
Shows owners, authors, reviewers, etc., in text.
492
493
*/
494
495
.phui-oi-bylines {
496
padding: 0 4px 0 8px;
497
margin: 4px 0 8px;
498
font-size: {$smallerfontsize};
499
color: {$greytext};
500
text-align: right;
501
}
502
503
.phui-oi-byline {
504
white-space: nowrap;
505
text-overflow: ellipsis;
506
overflow: hidden;
507
}
508
509
.device-phone .phui-oi-bylines {
510
float: none;
511
text-align: left;
512
padding: 0 8px;
513
font-size: {$normalfontsize};
514
}
515
516
517
/* - Draggable List ------------------------------------------------------------
518
519
These classes are applied by and/or provided for use with JX.DraggableList.
520
521
*/
522
523
.drag-ghost {
524
position: relative;
525
background: {$sh-indigobackground};
526
border-radius: 3px;
527
margin-bottom: 4px;
528
border: 1px dashed {$sh-indigoborder};
529
}
530
531
.drag-dragging {
532
opacity: 0.25;
533
}
534
535
.drag-sending {
536
opacity: 0.5;
537
}
538
539
.drag-clone,
540
.drag-frame {
541
/* This allows mousewheel events to pass through the clone and frame while
542
they are being dragged. Without this, the mousewheel does not work during
543
a drag operation. */
544
pointer-events: none;
545
}
546
547
.drag-frame {
548
position: fixed;
549
overflow: hidden;
550
left: 0;
551
right: 0;
552
top: 0;
553
bottom: 0;
554
}
555
556
.drag-clone {
557
position: absolute;
558
list-style: none;
559
}
560
561
/* - Badges ---------------------------------------------------------------- */
562
563
.phui-oi-col0.phui-oi-badge {
564
width: 28px;
565
}
566
567
.phui-oi-col0.phui-oi-badge .phui-icon-view {
568
left: 0;
569
}
570
571
/* - Countdowns ------------------------------------------------------------ */
572
573
.phui-oi-col0.phui-oi-countdown {
574
width: 52px;
575
padding: 0;
576
}
577
578
.phui-oi-countdown .phui-oi-countdown-number {
579
border-right: 1px solid {$thinblueborder};
580
text-align: center;
581
color: {$bluetext};
582
}
583
584
585
/* - Dashboards ------------------------------------------------------------ */
586
587
.phui-object-box .phui-oi-list-view .phui-oi-frame {
588
border: none;
589
border-bottom: 1px solid {$thinblueborder};
590
}
591
592
.drag-clone.phui-oi-standard .phui-oi-frame {
593
border: none;
594
opacity: 0.8;
595
background: {$sh-bluebackground};
596
}
597
598
.phui-object-box .phui-oi-list-header {
599
font-size: {$normalfontsize};
600
color: {$darkbluetext};
601
border-top: 1px solid {$thinblueborder};
602
border-bottom: 1px solid {$thinblueborder};
603
padding: 8px 12px;
604
background-color: {$lightgreybackground};
605
}
606
607
.phui-object-box .phui-header-shell + .phui-oi-list-view .phui-oi-list-header,
608
.phui-object-box .phui-object-box-hidden-content + .phui-oi-list-view
609
.phui-oi-list-header,
610
.phui-object-box .phui-object-box-hidden-content + .phui-oi-list-header {
611
border-top: none;
612
}
613
614
.device-desktop .aphront-multi-column-fluid .aphront-multi-column-2-up
615
.aphront-multi-column-column-outer.third .phui-oi-col2 {
616
display: none;
617
}
618
619
620
/* - Launcher List ---------------------------------------------------------- */
621
622
.phui-oi-image-icon {
623
background: none;
624
width: 40px;
625
height: 40px;
626
margin: 8px 6px;
627
position: absolute;
628
}
629
630
.phui-oi-image-icon .phui-icon-view {
631
position: absolute;
632
width: 40px;
633
height: 40px;
634
font-size: 26px;
635
text-align: center;
636
line-height: 36px;
637
}
638
639
.phui-oi-image {
640
width: 40px;
641
height: 40px;
642
border-radius: 3px;
643
background-size: 100%;
644
margin: 8px 6px;
645
position: absolute;
646
}
647
648
.phui-oi-with-image-icon .phui-oi-frame,
649
.phui-oi-with-image .phui-oi-frame {
650
min-height: 52px;
651
}
652
653
.phui-oi-with-image-icon .phui-oi-content-box,
654
.phui-oi-with-image .phui-oi-content-box {
655
margin-left: 46px;
656
}
657
658
/* - Launcher Button -------------------------------------------------------- */
659
660
.phui-oi-col2.phui-oi-side-column {
661
text-align: right;
662
vertical-align: middle;
663
padding-right: 4px;
664
}
665
666
.device-phone .phui-oi-col2.phui-oi-side-column {
667
padding: 0 8px 8px;
668
text-align: left;
669
}
670
671
.phui-oi-col0.phui-oi-checkbox {
672
width: 28px;
673
text-align: center;
674
}
675
676
.phui-oi-selectable {
677
cursor: pointer;
678
user-select: none;
679
-webkit-user-select: none;
680
}
681
682
/* When the list selection state can be toggled on the client (as in the bulk
683
editor), keep the border color consistent to make the interaction feel more
684
robust. */
685
ul.phui-oi-list-view .phui-oi-selectable
686
.phui-oi-frame {
687
border-color: {$blueborder};
688
}
689
690
.differential-revision-size {
691
padding: 0 4px;
692
border-radius: 4px;
693
background: {$lightgreybackground};
694
cursor: pointer;
695
}
696
697
.differential-revision-size .phui-icon-view {
698
margin: 0 1px 0 1px;
699
font-size: 7px;
700
position: relative;
701
top: -2px;
702
color: {$lightbluetext};
703
}
704
705
.differential-revision-large {
706
background: {$sh-orangebackground};
707
}
708
709
/* NOTE: These are intentionally using nonstandard colors, see T13127. */
710
711
.differential-revision-large .phui-icon-view {
712
color: #e5ae7e;
713
}
714
715
.differential-revision-small {
716
background: #f2f7ff;
717
}
718
719
.differential-revision-small .phui-icon-view {
720
color: #6699ba;
721
}
722
723
.phui-oi-tail {
724
text-align: center;
725
padding: 8px 0;
726
background: linear-gradient({$lightbluebackground}, #fff 66%, #fff);
727
}
728
729
.phui-oi-menu {
730
background: {$lightbluebackground};
731
border-style: solid;
732
border-color: {$thinblueborder};
733
padding: 4px;
734
}
735
736
.device-desktop .phui-oi-menu,
737
.device-tablet .phui-oi-menu {
738
width: 200px;
739
border-width: 0 0 0 1px;
740
}
741
742
.device-phone .phui-oi-menu {
743
border-width: 1px 0 0;
744
}
745
746