Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/webroot/rsrc/css/phui/phui-form-view.css
12241 views
1
/**
2
* @provides phui-form-view-css
3
*/
4
5
.phui-form-view {
6
padding: 16px;
7
}
8
9
.device-phone .phui-object-box .phui-form-view {
10
padding: 0;
11
}
12
13
.phui-form-view.phui-form-full-width {
14
padding: 0;
15
}
16
17
.phui-form-view label.aphront-form-label {
18
width: 19%;
19
height: 28px;
20
line-height: 28px;
21
float: left;
22
text-align: right;
23
font-weight: bold;
24
font-size: {$normalfontsize};
25
color: {$bluetext};
26
-webkit-font-smoothing: antialiased;
27
}
28
29
.device-phone .phui-form-view label.aphront-form-label,
30
.phui-form-full-width.phui-form-view label.aphront-form-label {
31
display: block;
32
float: none;
33
text-align: left;
34
width: 100%;
35
margin-bottom: 3px;
36
}
37
38
.aphront-form-input {
39
margin-left: 20%;
40
margin-right: 20%;
41
width: 60%;
42
}
43
44
.device-phone .aphront-form-input,
45
.device .aphront-form-input select,
46
.device .aphront-form-input pre,
47
.phui-form-full-width .aphront-form-input {
48
margin-left: 0%;
49
margin-right: 0%;
50
width: 100%;
51
}
52
53
.aphront-form-input *::-webkit-input-placeholder {
54
color:{$greytext} !important;
55
}
56
57
.aphront-form-input *::-moz-placeholder {
58
color:{$greytext} !important;
59
opacity: 1; /* Firefox nudges the opacity to 0.4 */
60
}
61
62
.aphront-form-input *:-ms-input-placeholder {
63
color:{$greytext} !important;
64
}
65
66
67
.aphront-form-error {
68
width: 18%;
69
float: right;
70
color: {$red};
71
font-weight: bold;
72
padding-top: 5px;
73
}
74
75
.aphront-form-label .aphront-form-error {
76
display: none;
77
}
78
79
.aphront-dialog-body .phui-form-view {
80
padding: 0;
81
}
82
83
.device-phone .aphront-form-error,
84
.phui-form-full-width .aphront-form-error {
85
display: none;
86
}
87
88
.device-phone .aphront-form-label .aphront-form-error,
89
.phui-form-full-width .aphront-form-label .aphront-form-error {
90
display: block;
91
float: right;
92
padding: 0;
93
width: auto;
94
}
95
96
.device-phone .aphront-form-drag-and-drop-upload {
97
display: none;
98
}
99
100
.aphront-form-required {
101
font-weight: normal;
102
color: {$lightgreytext};
103
font-size: {$smallestfontsize};
104
-webkit-font-smoothing: antialiased;
105
}
106
107
.aphront-form-input input[type="text"],
108
.aphront-form-input input[type="password"] {
109
width: 100%;
110
}
111
112
.aphront-form-cvc-input input {
113
width: 64px;
114
}
115
116
.aphront-form-input textarea {
117
display: block;
118
width: 100%;
119
box-sizing: border-box;
120
height: 12em;
121
}
122
123
.aphront-form-control {
124
padding: 4px;
125
}
126
127
.device-phone .aphront-form-control {
128
padding: 4px 8px 8px;
129
}
130
131
.phui-form-full-width .aphront-form-control {
132
padding: 4px 0;
133
}
134
135
.aphront-form-control-submit button,
136
.aphront-form-control-submit a.button,
137
.aphront-form-control-submit input[type="submit"] {
138
float: right;
139
margin: 4px 0 0 8px;
140
}
141
142
.aphront-form-control-textarea textarea.aphront-textarea-very-short {
143
height: 44px;
144
}
145
146
.aphront-form-control-textarea textarea.aphront-textarea-very-tall {
147
height: 24em;
148
}
149
150
.phui-form-view .aphront-form-caption {
151
font-size: {$smallerfontsize};
152
color: {$bluetext};
153
padding: 8px 0;
154
margin-right: 20%;
155
margin-left: 20%;
156
-webkit-font-smoothing: antialiased;
157
line-height: 16px;
158
}
159
160
.device-phone .phui-form-view .aphront-form-caption,
161
.phui-form-full-width .phui-form-view .aphront-form-caption {
162
margin: 0;
163
}
164
165
.aphront-form-instructions {
166
width: 60%;
167
margin-left: 20%;
168
padding: 12px 4px;
169
color: {$darkbluetext};
170
}
171
172
.device .aphront-form-instructions,
173
.phui-form-full-width .aphront-form-instructions {
174
width: auto;
175
margin: 0;
176
padding: 12px 8px 8px;
177
}
178
179
.aphront-form-important {
180
margin: .5em 0;
181
background: #ffffdd;
182
padding: .5em 1em;
183
}
184
.aphront-form-important code {
185
display: block;
186
padding: .25em;
187
margin: .5em 2em;
188
}
189
190
.aphront-form-control-markup .aphront-form-input {
191
font-size: {$normalfontsize};
192
padding: 3px 0;
193
}
194
195
.aphront-form-control-static .aphront-form-input {
196
line-height: 28px;
197
}
198
199
.aphront-form-control-togglebuttons .aphront-form-input {
200
padding: 2px 0 0 0;
201
}
202
203
table.aphront-form-control-radio-layout,
204
table.aphront-form-control-checkbox-layout {
205
margin-top: 4px !important;
206
font-size: {$normalfontsize};
207
}
208
209
table.aphront-form-control-radio-layout th {
210
padding-left: 8px;
211
padding-bottom: 8px;
212
font-weight: bold;
213
color: {$darkgreytext};
214
}
215
216
217
table.aphront-form-control-checkbox-layout th {
218
padding-top: 2px;
219
padding-left: 8px;
220
padding-bottom: 4px;
221
color: {$darkgreytext};
222
}
223
224
.aphront-form-control-radio-layout td input,
225
.aphront-form-control-checkbox-layout td input {
226
margin-top: 4px;
227
width: auto;
228
}
229
230
.aphront-form-control-radio-layout label.disabled,
231
.aphront-form-control-checkbox-layout label.disabled {
232
color: {$greytext};
233
}
234
235
.aphront-form-radio-caption {
236
margin-top: 4px;
237
font-size: {$smallerfontsize};
238
font-weight: normal;
239
color: {$bluetext};
240
}
241
242
.aphront-form-control-image span {
243
margin: 0 4px 0 2px;
244
}
245
246
.aphront-form-control-image .default-image {
247
display: inline;
248
width: 12px;
249
}
250
251
.aphront-form-input hr {
252
border: none;
253
background: #bbbbbb;
254
height: 1px;
255
position: relative;
256
}
257
258
.phui-form-inset {
259
margin: 12px 0;
260
padding: 8px;
261
background: #f7f9fd;
262
border: 1px solid {$lightblueborder};
263
border-radius: 3px;
264
}
265
266
.phui-form-inset h1 {
267
color: {$bluetext};
268
padding-bottom: 8px;
269
margin-bottom: 8px;
270
font-size: {$biggerfontsize};
271
border-bottom: 1px solid {$thinblueborder};
272
}
273
274
.aphront-form-drag-and-drop-file-list {
275
width: 400px;
276
}
277
278
.drag-and-drop-instructions {
279
color: {$darkgreytext};
280
font-size: {$smallestfontsize};
281
padding: 6px 8px;
282
}
283
284
.drag-and-drop-file-target {
285
border: 1px dashed #bfbfbf;
286
padding-top: 12px;
287
padding-bottom: 12px;
288
}
289
290
body .phui-form-view .remarkup-assist-textarea.aphront-textarea-drag-and-drop {
291
background: {$sh-greenbackground};
292
border: 1px solid {$sh-greenborder};
293
}
294
295
.aphront-form-crop .crop-box {
296
cursor: move;
297
overflow: hidden;
298
}
299
300
.aphront-form-crop .crop-box .crop-image {
301
position: relative;
302
top: 0px;
303
left: 0px;
304
}
305
306
.calendar-button {
307
display: inline;
308
padding: 8px 4px;
309
margin: 2px 8px 2px 2px;
310
position: relative;
311
}
312
313
.aphront-form-date-container {
314
position: relative;
315
display: inline;
316
}
317
318
.aphront-form-date-container select {
319
margin: 2px;
320
display: inline;
321
}
322
.aphront-form-date-container input.aphront-form-date-enabled-input {
323
width: auto;
324
display: inline;
325
margin-right: 8px;
326
font-size: 16px;
327
}
328
329
.aphront-form-date-container .aphront-form-time-input-container,
330
.aphront-form-date-container .aphront-form-date-input-container {
331
position: relative;
332
display: inline-block;
333
width: 7em;
334
}
335
336
.aphront-form-date-container input.aphront-form-time-input,
337
.aphront-form-date-container input.aphront-form-date-input {
338
width: 7em;
339
}
340
341
.aphront-form-time-input-container div.jx-typeahead-results a.jx-result {
342
border: none;
343
}
344
345
.phui-time-typeahead-value {
346
padding: 4px;
347
}
348
349
.fancy-datepicker {
350
position: absolute;
351
width: 240px;
352
}
353
354
.device .fancy-datepicker {
355
width: 100%;
356
}
357
358
.fancy-datepicker-core {
359
width: 240px;
360
margin: 0 auto;
361
padding: 1px;
362
font-size: {$smallerfontsize};
363
text-align: center;
364
}
365
366
.fancy-datepicker-core .month-table,
367
.fancy-datepicker-core .day-table {
368
margin: 0 auto;
369
border-collapse: separate;
370
border-spacing: 1px;
371
width: 100%;
372
}
373
374
.fancy-datepicker-core .month-table {
375
margin-bottom: 6px;
376
font-size: {$normalfontsize};
377
background-color: {$hoverblue};
378
border-radius: 2px;
379
}
380
381
.fancy-datepicker-core .month-table td.lrbutton {
382
width: 18%;
383
color: {$lightbluetext};
384
}
385
386
.fancy-datepicker-core .month-table td {
387
padding: 4px;
388
font-weight: bold;
389
color: {$bluetext};
390
}
391
392
.fancy-datepicker-core .month-table td.lrbutton:hover {
393
border-radius: 2px;
394
background: {$hoverselectedblue};
395
color: {$darkbluetext};
396
}
397
398
.fancy-datepicker-core .day-table td {
399
overflow: hidden;
400
vertical-align: center;
401
text-align: center;
402
border: 1px solid {$thinblueborder};
403
padding: 4px 0;
404
}
405
406
.fancy-datepicker .fancy-datepicker-core .day-table td.day:hover {
407
background-color: {$hoverblue};
408
border-color: {$lightblueborder};
409
}
410
411
.fancy-datepicker-core .day-table td.day-placeholder {
412
border-color: transparent;
413
background: transparent;
414
}
415
416
.fancy-datepicker-core .day-table td.weekend {
417
color: {$lightgreytext};
418
border-color: {$lightgreyborder};
419
background: {$lightgreybackground};
420
}
421
422
.fancy-datepicker-core .day-table td.day-name {
423
background: transparent;
424
border: 1px transparent;
425
vertical-align: bottom;
426
color: {$lightgreytext};
427
}
428
429
.fancy-datepicker-core .day-table td.today {
430
background: {$greybackground};
431
border-color: {$greyborder};
432
color: {$darkgreytext};
433
font-weight: bold;
434
}
435
436
.fancy-datepicker-core .day-table td.datepicker-selected {
437
background: {$lightgreen};
438
border-color: {$green};
439
color: {$green};
440
}
441
442
.fancy-datepicker-core td {
443
cursor: pointer;
444
}
445
446
.fancy-datepicker-core td.novalue {
447
cursor: inherit;
448
}
449
450
.picker-open .calendar-button .phui-icon-view {
451
color: {$sky};
452
}
453
454
.fancy-datepicker-core {
455
background-color: white;
456
border: 1px solid {$lightgreyborder};
457
box-shadow: {$dropshadow};
458
border-radius: 3px;
459
}
460
461
/* When the activation checkbox for the control is toggled off, visually
462
disable the individual controls. We don't actually use the "disabled" property
463
because we still want the values to submit. This is just a visual hint that
464
the controls won't be used. The controls themselves are still live, work
465
properly, and submit values. */
466
.datepicker-disabled select,
467
.datepicker-disabled .calendar-button,
468
.datepicker-disabled input[type="text"] {
469
opacity: 0.5;
470
}
471
472
.aphront-form-date-container.no-time .aphront-form-time-input{
473
display: none;
474
}
475
476
.login-to-comment {
477
margin: 12px;
478
}
479
480
.phui-form-divider hr {
481
height: 1px;
482
border: 0;
483
background: {$thinblueborder};
484
width: 85%;
485
margin: 15px auto;
486
}
487
488
.recaptcha_only_if_privacy {
489
display: none;
490
}
491
492
.phabricator-standard-custom-field-header {
493
font-size: 16px;
494
color: {$bluetext};
495
border-bottom: 1px solid {$lightbluetext};
496
padding: 16px 0 4px;
497
margin-bottom: 4px;
498
}
499
500
.device-desktop .text-with-submit-control-outer-bounds {
501
position: relative;
502
}
503
504
.device-desktop .text-with-submit-control-text-bounds {
505
position: absolute;
506
left: 0;
507
right: 184px;
508
}
509
510
.device-desktop .text-with-submit-control-submit-bounds {
511
text-align: right;
512
}
513
514
.device-desktop .text-with-submit-control-submit {
515
width: 180px;
516
}
517
518
.phui-form-iconset-table td {
519
vertical-align: middle;
520
padding: 4px 0;
521
}
522
523
.phui-form-iconset-table .phui-form-iconset-button-cell {
524
padding: 4px 8px;
525
}
526
527
.aphront-form-preview-hidden {
528
opacity: 0.5;
529
}
530
531
.aphront-form-error .phui-icon-view {
532
float: right;
533
color: {$lightgreyborder};
534
font-size: 20px;
535
}
536
537
.device-desktop .aphront-form-error .phui-icon-view:hover {
538
color: {$red};
539
}
540
541
.phui-form-static-action {
542
height: 28px;
543
line-height: 28px;
544
color: {$bluetext};
545
}
546
547
.phuix-form-checkbox-action {
548
padding: 4px;
549
color: {$bluetext};
550
}
551
552
.phuix-form-checkbox-action input[type=checkbox] {
553
margin: 4px 0;
554
}
555
556
.phuix-form-checkbox-label {
557
margin-left: 4px;
558
}
559
560
.phui-form-timer-icon {
561
width: 28px;
562
height: 28px;
563
padding: 4px;
564
font-size: 18px;
565
background: {$greybackground};
566
border-radius: 4px;
567
text-align: center;
568
vertical-align: middle;
569
text-shadow: 1px 1px rgba(0, 0, 0, 0.05);
570
}
571
572
.phui-form-timer-content {
573
padding: 4px 8px;
574
color: {$darkgreytext};
575
vertical-align: middle;
576
}
577
578
.mfa-form-enroll-button {
579
text-align: center;
580
}
581
582
.phui-form-timer-updated {
583
animation: phui-form-timer-fade-in 2s linear;
584
}
585
586
587
@keyframes phui-form-timer-fade-in {
588
0% {
589
background-color: {$lightyellow};
590
}
591
100% {
592
background-color: transparent;
593
}
594
}
595
596