Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/webroot/rsrc/css/application/differential/phui-inline-comment.css
12242 views
1
/**
2
* @provides phui-inline-comment-view-css
3
*/
4
5
.differential-diff td.anchor-target {
6
background: {$lightyellow};
7
}
8
9
/* In the document, the anchor is positioned inside the inline comment, but
10
this makes the browser jump into the comment so the top isn't visible.
11
Instead, artificially position it a bit above the comment so we'll jump a
12
bit before the comment. This allows us to see the entire comment (and
13
generally the commented-on lines, at least in the case of one or two-line
14
comments) after the jump.
15
*/
16
.differential-inline-comment-anchor {
17
position: absolute;
18
display: block;
19
margin-top: -72px;
20
}
21
22
.differential-inline-comment-content {
23
overflow: auto;
24
}
25
26
.differential-inline-comment,
27
.differential-inline-comment-edit {
28
font: {$basefont};
29
-moz-box-sizing: border-box;
30
-webkit-box-sizing: border-box;
31
box-sizing: border-box;
32
overflow: hidden;
33
white-space: normal;
34
border-radius: 3px;
35
margin: 8px 12px;
36
background: {$page.content};
37
border: 1px solid {$blueborder};
38
}
39
40
.device .differential-inline-comment {
41
margin: 4px;
42
}
43
44
.inline-state-is-draft {
45
border: 1px dashed {$greyborder};
46
}
47
48
.differential-inline-comment-head {
49
font-weight: bold;
50
color: {$darkbluetext};
51
padding: 4px 5px 4px 8px;
52
53
background: {$lightbluebackground};
54
border-bottom: 1px solid {$blueborder};
55
}
56
57
.differential-inline-comment-content {
58
padding: 12px;
59
}
60
61
.inline-state-is-draft .differential-inline-comment-head {
62
border-bottom: 1px dashed {$lightgreyborder};
63
background-color: {$lightgreybackground};
64
}
65
66
/* Tighten up spacing on replies */
67
.differential-inline-comment.inline-comment-is-reply {
68
margin-top: 0;
69
}
70
71
.differential-inline-comment .inline-head-right {
72
float: right;
73
padding-right: 4px;
74
}
75
76
.differential-inline-comment .inline-head-right .button {
77
vertical-align: top;
78
}
79
80
.differential-inline-comment .inline-head-left {
81
float: left;
82
padding: 4px;
83
}
84
85
.device-phone .differential-inline-comment .inline-head-left {
86
float: none;
87
}
88
89
.device-phone .differential-inline-comment .inline-head-right {
90
margin: 12px 0 4px 4px;
91
}
92
93
.device-phone .differential-inline-comment .inline-head-right .mml {
94
margin: 0 4px 0 0;
95
}
96
97
98
/* - Sythetic Comment ---------------------------------------------------------
99
100
Comments left by our robot overlords.
101
102
*/
103
104
.differential-inline-comment.differential-inline-comment-synthetic {
105
border: 1px solid {$blue};
106
}
107
108
.differential-inline-comment.differential-inline-comment-synthetic
109
.differential-inline-comment-head {
110
border-bottom: 1px solid {$blueborder};
111
background-color: {$lightblue};
112
}
113
114
.differential-inline-comment.differential-inline-comment-synthetic
115
.differential-inline-comment-head {
116
padding-bottom: 4px;
117
}
118
119
/* - Ghost Comment ------------------------------------------------------------
120
121
Comments from older or newer versions of the changeset.
122
123
*/
124
125
.differential-inline-comment.inline-comment-ghost {
126
border: 1px solid {$lightgreyborder};
127
opacity: 0.75;
128
}
129
130
.differential-inline-comment.inline-comment-ghost
131
.differential-inline-comment-head {
132
border-bottom: 1px solid {$lightgreyborder};
133
background-color: {$lightgreybackground};
134
}
135
136
/* - New/Edit Inline Comment --------------------------------------------------
137
138
Styles for when you are creating or editing an inline comment.
139
140
*/
141
142
.differential-inline-comment .done-label {
143
display: inline-block;
144
color: {$sh-yellowicon};
145
padding: 4px;
146
}
147
148
.differential-inline-comment.inline-state-is-draft .done-label,
149
.differential-inline-comment.inline-comment-ghost .done-label {
150
color: {$lightgreytext};
151
}
152
153
/* - New/Edit Inline Comment --------------------------------------------------
154
155
Styles for when you are creating or editing an inline comment.
156
157
*/
158
159
.differential-inline-comment-edit-body .aphront-form-input {
160
margin: 0;
161
width: 100%;
162
}
163
164
.differential-inline-comment-edit {
165
padding: 8px;
166
}
167
168
.differential-inline-comment-edit-buttons {
169
padding: 8px 0 0 0;
170
}
171
172
.differential-inline-comment-edit-buttons button {
173
float: right;
174
margin-left: 6px;
175
}
176
177
.differential-inline-comment-edit-title {
178
font-weight: bold;
179
color: {$darkbluetext};
180
padding: 4px 0 12px;
181
font-size: {$biggerfontsize};
182
}
183
184
.differential-inline-comment-edit {
185
background-color: {$lightgreybackground};
186
border: 1px solid {$lightgreyborder};
187
}
188
189
.differential-inline-comment-edit .remarkup-assist-textarea {
190
border-left-color: {$lightgreyborder};
191
border-right-color: {$lightgreyborder};
192
border-bottom-color: {$greyborder};
193
}
194
195
.differential-inline-comment-edit .remarkup-assist-bar {
196
border-left-color: {$lightgreyborder};
197
border-right-color: {$lightgreyborder};
198
border-top-color: {$lightgreyborder};
199
}
200
201
.differential-inline-comment-edit .aphront-form-control-textarea {
202
padding: 0;
203
}
204
205
206
/* - Action Buttons -----------------------------------------------------------
207
208
Reply, Edit, Delete, View, Button Bars...
209
210
*/
211
212
.differential-inline-comment .differential-inline-done-label {
213
border-color: {$gentle.highlight.border};
214
color: {$bluetext};
215
}
216
217
.differential-inline-comment.inline-state-is-draft
218
.differential-inline-done-label,
219
.differential-inline-comment.inline-state-is-draft
220
.button.simple,
221
.differential-inline-comment.inline-comment-ghost
222
.button.simple {
223
color: {$lightgreytext};
224
}
225
226
/* - Done Button --------------------------------------------------------------
227
228
Default colors, hovers, checked styles for the Done Button.
229
230
*/
231
232
.differential-inline-done-label {
233
border: 1px solid {$sh-yellowborder};
234
border-radius: 3px;
235
display: inline-block;
236
padding: 3px 8px 4px;
237
cursor: pointer;
238
}
239
240
.differential-inline-done-label .differential-inline-done {
241
margin: 0 6px 0 0;
242
display: inline;
243
cursor: pointer;
244
}
245
246
.differential-inline-comment.inline-is-done
247
.differential-inline-done-label {
248
background-color: {$page.content};
249
border-color: {$lightblueborder};
250
color: {$sky};
251
opacity: 1;
252
}
253
254
.device-desktop .differential-inline-comment.inline-is-done
255
.differential-inline-done-label:hover {
256
background-color: {$page.content};
257
color: {$sky};
258
}
259
260
.differential-inline-comment.inline-is-done .differential-inline-comment-head
261
.button-done {
262
color: {$sky};
263
}
264
265
.differential-inline-comment.inline-is-done {
266
border-color: {$thingreyborder};
267
}
268
269
.differential-inline-comment.inline-is-done
270
.differential-inline-comment-head {
271
background-color: {$lightgreybackground};
272
border-bottom-color: {$thingreyborder};
273
}
274
275
.differential-inline-comment.inline-is-done .differential-inline-comment-head
276
.button.simple {
277
border-color: {$lightgreyborder};
278
color: {$lightgreytext};
279
}
280
281
.differential-inline-comment.inline-is-done .differential-inline-comment-head
282
.differential-inline-done-label {
283
color: {$sky};
284
background-color: {$page.content};
285
border-color: {$sky};
286
}
287
288
/* - Inline State is Draft ----------------------------------------------------
289
290
The Unsubmitted state of the comment / done checkbox styles.
291
292
*/
293
294
.differential-inline-comment .inline-draft-text {
295
display: none;
296
}
297
298
.differential-inline-comment.inline-state-is-draft .inline-draft-text {
299
display: inline-block;
300
}
301
302
.inline-state-is-draft .differential-inline-done-label {
303
border-style: dashed;
304
}
305
306
307
/* - Undo ---------------------------------------------------------------------
308
309
A wild undo box appears!
310
311
*/
312
313
.differential-inline-undo {
314
padding: 8px;
315
margin: 4px 12px;
316
text-align: center;
317
background: {$sh-yellowbackground};
318
border: 1px solid {$sh-yellowborder};
319
color: {$darkgreytext};
320
font: {$basefont};
321
font-size: {$normalfontsize};
322
border-radius: 3px;
323
}
324
325
.differential-inline-undo a {
326
font-weight: bold;
327
}
328
329
/* - Spooky Ghost UI -----------------------------------------------------------
330
331
Hide your codez.
332
333
*/
334
335
.inline-comment-ghost .differential-inline-comment-head {
336
padding-left: 40px;
337
}
338
339
.ghost-icon {
340
background: rgba({$alphagrey},.07);
341
float: left;
342
padding: 2px 4px 2px 2px;
343
position: absolute;
344
top: 0;
345
left: 0;
346
}
347
348
.ghost-icon .phui-icon-view {
349
padding: 8px 7px;
350
font-size: 16px;
351
color: {$lightbluetext};
352
}
353
354
.device-desktop .ghost-icon .phui-icon-view:hover {
355
color: {$fire};
356
}
357
358
.differential-inline-comment.inline-comment-ghost
359
.differential-inline-comment-head {
360
position: relative;
361
}
362
363
.differential-inline-comment.inline-comment-ghost
364
.differential-inline-done-label,
365
.differential-inline-comment.inline-comment-ghost {
366
border-color: {$lightgreyborder};
367
color: {$lightgreytext};
368
}
369
370
371
/* - Hiding Inlines ------------------------------------------------------------
372
*/
373
374
.reveal-inline {
375
color: {$lightbluetext};
376
margin: 4px 0;
377
display: none;
378
}
379
380
.inline-hidden .reveal-inline {
381
display: block;
382
}
383
384
.inline-hidden .differential-inline-comment {
385
display: none;
386
}
387
388
.differential-inline-summary {
389
background: {$lightgreybackground};
390
padding: 2px 16px;
391
color: {$lightgreytext};
392
display: none;
393
font: {$basefont};
394
white-space: nowrap;
395
overflow: hidden;
396
text-overflow: ellipsis;
397
}
398
399
.device .differential-inline-summary {
400
padding-left: 4px;
401
padding-right: 4px;
402
}
403
404
.inline-hidden .differential-inline-summary {
405
display: block;
406
}
407
408
.reveal-inline span.phui-icon-view {
409
color: {$lightbluetext};
410
}
411
412
.reveal-inline:hover span.phui-icon-view {
413
color: {$darkbluetext};
414
}
415
416
.inline-button-divider {
417
border-left: 1px solid rgba({$alphagrey},.25);
418
margin-left: 8px;
419
}
420
421
.differential-inline-comment-synthetic .inline-button-divider {
422
border: none;
423
}
424
425
.inline-comment-element .differential-inline-comment-head {
426
cursor: pointer;
427
}
428
429
.inline-comment-selected .inline-comment-element {
430
border-color: {$yellow};
431
background: {$gentle.highlight.background};
432
}
433
434
.inline-comment-selected .inline-comment-element
435
.differential-inline-comment-head {
436
background: {$lightyellow};
437
border-color: {$yellow};
438
}
439
440
.inline-suggestion {
441
display: none;
442
margin: 0 -8px;
443
}
444
445
.has-suggestion .inline-suggestion {
446
display: block;
447
}
448
449
.differential-inline-comment-edit-buttons button.inline-button-left {
450
float: left;
451
margin: 0 6px 0 0;
452
}
453
454
.inline-suggestion-table {
455
table-layout: fixed;
456
width: 100%;
457
margin-bottom: 8px;
458
white-space: pre-wrap;
459
background: {$greybackground};
460
border-width: 1px 0;
461
border-style: solid;
462
border-color: {$lightgreyborder};
463
}
464
465
textarea.inline-suggestion-input {
466
width: 100%;
467
height: auto;
468
max-width: 100%;
469
}
470
471
.inline-suggestion-line-cell {
472
text-align: right;
473
background: {$darkgreybackground};
474
width: 36px;
475
color: {$greytext};
476
border-right: 1px solid {$lightgreyborder};
477
}
478
479
.inline-suggestion-table td.inline-suggestion-input-cell {
480
padding: 8px 4px;
481
}
482
483
.inline-suggestion-table td.inline-suggestion-text-cell {
484
/* This is attempting to align the text in the textarea with the text on
485
the surrounding context lines. */
486
padding: 0 8px 0 11px;
487
}
488
489
.inline-suggestion-view {
490
padding: 4px 0;
491
white-space: pre-wrap;
492
background: {$lightgreybackground};
493
margin: 0 -12px 8px;
494
border-width: 1px 0;
495
border-style: solid;
496
border-color: {$lightgreyborder};
497
}
498
499
.diff-1up-simple-table {
500
width: 100%;
501
table-layout: fixed;
502
}
503
504
.diff-1up-simple-table > tbody > tr > td {
505
padding-left: 12px;
506
padding-right: 12px;
507
}
508
509