Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/webroot/rsrc/css/application/differential/changeset-view.css
12242 views
1
/**
2
* @provides differential-changeset-view-css
3
* @requires phui-inline-comment-view-css
4
*/
5
6
.differential-changeset {
7
position: relative;
8
overflow-x: auto;
9
10
/* Fixes what seems to be a layout bug in Firefox which causes scrollbars,
11
to appear unpredictably, see discussion in T7690. */
12
overflow-y: hidden;
13
}
14
15
.device-phone .differential-changeset {
16
overflow-x: scroll;
17
-webkit-overflow-scrolling: touch;
18
}
19
20
.differential-diff {
21
background: {$diff.background};
22
width: 100%;
23
border-top: 1px solid {$lightblueborder};
24
border-bottom: 1px solid {$lightblueborder};
25
table-layout: fixed;
26
}
27
28
.differential-diff.diff-2up {
29
min-width: 780px;
30
}
31
32
.differential-diff col.num {
33
width: 45px;
34
}
35
36
.device .differential-diff.diff-1up col.num {
37
width: 32px;
38
}
39
40
.differential-diff.diff-2up col.left,
41
.differential-diff.diff-2up col.right {
42
width: 49.25%;
43
}
44
45
.differential-diff.diff-1up col.unified {
46
width: 99.5%;
47
}
48
49
.differential-diff col.copy {
50
width: 0.5%;
51
}
52
53
.differential-diff col.cov {
54
width: 1%;
55
}
56
57
.differential-diff td {
58
vertical-align: top;
59
white-space: pre-wrap;
60
word-wrap: break-word;
61
padding: 1px 8px;
62
}
63
64
.differential-diff td.diff-flush {
65
padding-top: 0;
66
padding-bottom: 0;
67
}
68
69
.device .differential-diff td {
70
padding: 1px 4px;
71
}
72
73
.prose-diff {
74
padding: 12px 0;
75
white-space: pre-wrap;
76
color: {$greytext};
77
}
78
79
.prose-diff-frame {
80
padding: 12px;
81
}
82
83
.prose-diff span.old,
84
.prose-diff span.new {
85
padding: 0 2px;
86
}
87
88
.prose-diff span.old,
89
.prose-diff span.new {
90
color: {$darkgreytext};
91
}
92
93
.differential-changeset-immutable .differential-diff td {
94
cursor: auto;
95
}
96
97
.differential-diff td.old {
98
background: {$old-background};
99
}
100
101
.differential-diff td.new {
102
background: {$new-background};
103
}
104
105
.differential-diff td.old-rebase {
106
background: #ffeeee;
107
}
108
109
.differential-diff td.new-rebase {
110
background: #eeffee;
111
}
112
113
.differential-diff td.old span.bright,
114
.differential-diff td.old-full,
115
.prose-diff span.old {
116
background: {$old-bright};
117
}
118
119
120
.differential-diff td.new span.bright,
121
.differential-diff td.new-full,
122
.prose-diff span.new {
123
background: {$new-bright};
124
}
125
126
.differential-diff td span.depth-out,
127
.differential-diff td span.depth-in {
128
padding: 2px 0;
129
background-size: 12px 12px;
130
background-repeat: no-repeat;
131
background-position: left center;
132
position: relative;
133
left: -8px;
134
opacity: 0.5;
135
}
136
137
.differential-diff td span.depth-out {
138
background-image: url(/rsrc/image/chevron-out.png);
139
background-color: {$old-bright};
140
}
141
142
.differential-diff td span.depth-in {
143
background-position: 1px center;
144
background-image: url(/rsrc/image/chevron-in.png);
145
background-color: {$new-bright};
146
}
147
148
149
.differential-diff td.copy {
150
min-width: 0.5%;
151
width: 0.5%;
152
padding: 0;
153
background: {$lightbluebackground};
154
}
155
156
.differential-diff td.new-copy,
157
.differential-diff td.new-copy span.bright {
158
background: {$copy-background};
159
}
160
161
.differential-diff td.new-move,
162
.differential-diff td.new-move span.bright {
163
background: {$move-background};
164
}
165
166
.differential-diff td.comment {
167
background: #dddddd;
168
}
169
170
.differential-diff .inline > td {
171
padding: 0;
172
}
173
174
/* Specify line number behaviors after other behaviors because line numbers
175
should always have a boring grey background. */
176
177
.differential-diff td.n {
178
text-align: right;
179
padding: 1px 6px 1px 0;
180
vertical-align: top;
181
background: {$lightbluebackground};
182
color: {$bluetext};
183
cursor: pointer;
184
border-right: 1px solid {$thinblueborder};
185
overflow: hidden;
186
}
187
188
.differential-diff td + td.n {
189
border-left: 1px solid {$thinblueborder};
190
}
191
192
.differential-diff td.n::before {
193
content: attr(data-n);
194
}
195
196
.differential-diff td.show-context-line.n {
197
cursor: auto;
198
}
199
200
.differential-diff td.cov {
201
padding: 0;
202
}
203
204
td.cov-U {
205
background: #dd8866;
206
}
207
208
td.cov-C {
209
background: #66bbff;
210
}
211
212
td.cov-N {
213
background: #ddeeff;
214
}
215
216
td.cov-X {
217
background: #aa00aa;
218
}
219
220
td.cov-I {
221
background: {$lightgreybackground};
222
}
223
224
.differential-diff td.source-cov-C,
225
.differential-diff td.source-cov-C span.bright {
226
background: #cceeff;
227
}
228
229
.differential-diff td.source-cov-U,
230
.differential-diff td.source-cov-U span.bright {
231
background: #ffbb99;
232
}
233
234
.differential-diff td.source-cov-N,
235
.differential-diff td.source-cov-N span.bright {
236
background: #f3f6ff;
237
}
238
239
.differential-diff td.show-more,
240
.differential-diff td.show-context-line,
241
.differential-diff td.show-context,
242
.differential-diff td.differential-shield {
243
background: {$lightbluebackground};
244
padding: 12px 0;
245
border-top: 1px solid {$thinblueborder};
246
border-bottom: 1px solid {$thinblueborder};
247
}
248
249
.device .differential-diff td.show-more,
250
.device .differential-diff td.show-context-line,
251
.device .differential-diff td.show-context,
252
.device .differential-diff td.differential-shield {
253
padding: 6px 0;
254
}
255
256
.differential-diff td.show-more,
257
.differential-diff td.differential-shield {
258
font: {$basefont};
259
font-size: {$smallerfontsize};
260
white-space: normal;
261
}
262
263
.differential-diff td.show-more {
264
text-align: center;
265
color: {$bluetext};
266
}
267
268
.differential-diff td.show-context-line {
269
padding-right: 6px;
270
}
271
272
.differential-diff td.show-context-line.left-context {
273
border-right: none;
274
}
275
276
.differential-diff td.show-context {
277
padding-left: 14px;
278
}
279
280
.differential-diff td.differential-shield {
281
text-align: center;
282
}
283
284
.differential-diff td.differential-shield a {
285
font-weight: bold;
286
}
287
288
.differential-diff td.diff-image-cell {
289
background-color: transparent;
290
background-image: url(/rsrc/image/checker_light.png);
291
padding: 8px;
292
}
293
294
.device-desktop .differential-diff .diff-image-cell:hover {
295
background-image: url(/rsrc/image/checker_dark.png);
296
}
297
298
.differential-image-stage {
299
overflow: auto;
300
}
301
302
.differential-meta-notice {
303
border-top: 1px solid {$gentle.highlight.border};
304
border-bottom: 1px solid {$gentle.highlight.border};
305
background-color: {$gentle.highlight};
306
padding: 12px;
307
}
308
309
.differential-meta-notice + .differential-diff {
310
border-top: none;
311
}
312
313
.differential-changeset .differential-file-icon-header {
314
font-size: {$biggestfontsize};
315
padding: 18px 0 20px 12px;
316
margin-top: 4px;
317
line-height: 20px;
318
color: {$blacktext};
319
cursor: pointer;
320
}
321
322
.differential-changeset .differential-file-icon-header
323
.differential-changeset-path-name {
324
cursor: auto;
325
}
326
327
.device-phone .differential-changeset .differential-file-icon-header {
328
word-break: break-word;
329
margin-right: 8px;
330
}
331
332
.differential-loading {
333
border-top: 1px solid {$gentle.highlight.border};
334
border-bottom: 1px solid {$gentle.highlight.border};
335
background-color: {$gentle.highlight};
336
padding: 12px;
337
text-align: center;
338
}
339
340
.differential-file-icon-header .phui-icon-view {
341
display: inline-block;
342
margin: 0 6px 2px 0;
343
vertical-align: middle;
344
font-size: 14px;
345
}
346
347
.device-phone .differential-file-icon-header .phui-icon-view {
348
display: none;
349
}
350
351
.differential-changeset-buttons {
352
float: right;
353
margin-top: 16px;
354
margin-right: 12px;
355
}
356
357
.device-phone .differential-changeset-buttons .button .phui-button-text {
358
visibility: hidden;
359
width: 0;
360
margin-left: 8px;
361
}
362
363
.differential-property-table {
364
margin: 12px;
365
background: {$lightgreybackground};
366
border: 1px solid {$lightblueborder};
367
border-bottom: 1px solid {$blueborder};
368
}
369
370
.differential-property-table td em {
371
color: {$lightgreytext};
372
}
373
374
.differential-property-table td.oval {
375
background: #ffd0d0;
376
width: 50%;
377
}
378
379
.differential-property-table td.nval {
380
background: #d0ffd0;
381
width: 50%;
382
}
383
384
tr.differential-inline-hidden {
385
display: none;
386
}
387
388
tr.differential-inline-loading {
389
opacity: 0.5;
390
}
391
392
.differential-review-stage {
393
position: relative;
394
}
395
396
.diff-banner {
397
position: fixed;
398
top: 0;
399
left: 0;
400
right: 0;
401
background: {$page.content};
402
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
403
border-bottom: 1px solid {$lightgreyborder};
404
padding: 8px 18px;
405
vertical-align: middle;
406
font-weight: bold;
407
font-size: {$biggerfontsize};
408
line-height: 28px;
409
}
410
411
.diff-banner-path {
412
color: {$greytext};
413
}
414
415
.diff-banner-buttons .button {
416
margin-left: 8px;
417
}
418
419
.diff-banner-has-unsaved,
420
.diff-banner-has-unsubmitted,
421
.diff-banner-has-draft-done {
422
background: {$gentle.highlight};
423
}
424
425
.diff-banner-buttons {
426
float: right;
427
}
428
429
/* In Firefox, making the table unselectable and then making cells selectable
430
does not work: the cells remain unselectable. Narrowly mark the cells as
431
unselectable. */
432
433
.differential-diff.copy-l > tbody > tr > td,
434
.differential-diff.copy-r > tbody > tr > td {
435
-moz-user-select: none;
436
-ms-user-select: none;
437
-webkit-user-select: none;
438
user-select: none;
439
}
440
441
.differential-diff.copy-l > tbody > tr > td:nth-child(2) {
442
-moz-user-select: auto;
443
-ms-user-select: auto;
444
-webkit-user-select: auto;
445
user-select: auto;
446
}
447
448
.differential-diff.copy-l > tbody > tr > td.show-more:nth-child(2) {
449
-moz-user-select: none;
450
-ms-user-select: none;
451
-webkit-user-select: none;
452
user-select: none;
453
}
454
455
.differential-diff.copy-r > tbody > tr > td:nth-child(5) {
456
-moz-user-select: auto;
457
-ms-user-select: auto;
458
-webkit-user-select: auto;
459
user-select: auto;
460
}
461
462
.differential-diff.copy-l > tbody > tr.inline > td,
463
.differential-diff.copy-r > tbody > tr.inline > td {
464
-moz-user-select: none;
465
-ms-user-select: none;
466
-webkit-user-select: none;
467
user-select: none;
468
}
469
470
.changeset-content-hidden .differential-file-icon-header {
471
background: {$lightgreybackground};
472
color: {$greytext};
473
}
474
475
.changeset-selected .differential-file-icon-header {
476
background: {$lightyellow};
477
color: {$blacktext};
478
}
479
480
.differential-diff tr td.inline-hover {
481
background: {$gentle.highlight};
482
}
483
484
.differential-diff tr td.inline-hover-bright {
485
background: {$highlight.bright};
486
}
487
488
.differential-diff tr td.n.inline-hover {
489
background: {$yellow};
490
}
491
492
.inline-hover-container {
493
position: absolute;
494
color: {$lightgreytext};
495
background: {$lightyellow};
496
}
497
498
.inline-hover-text {
499
padding-top: 2px;
500
padding-bottom: 2px;
501
}
502
503
.inline-hover-text-bright {
504
color: {$blacktext};
505
background: {$highlight.bright};
506
}
507
508
.differential-diff td.inline-hover span.bright {
509
background: transparent;
510
}
511
512