|
1
|
@import url('widgets.css'); |
|
2
|
|
|
3
|
/* FORM ROWS */ |
|
4
|
|
|
5
|
.form-row { |
|
6
|
overflow: hidden; |
|
7
|
padding: 10px; |
|
8
|
font-size: 0.8125rem; |
|
9
|
border-bottom: 1px solid var(--hairline-color); |
|
10
|
} |
|
11
|
|
|
12
|
.form-row img, .form-row input { |
|
13
|
vertical-align: middle; |
|
14
|
} |
|
15
|
|
|
16
|
.form-row label input[type="checkbox"] { |
|
17
|
margin-top: 0; |
|
18
|
vertical-align: 0; |
|
19
|
} |
|
20
|
|
|
21
|
form .form-row p { |
|
22
|
padding-left: 0; |
|
23
|
} |
|
24
|
|
|
25
|
.flex-container { |
|
26
|
display: flex; |
|
27
|
} |
|
28
|
|
|
29
|
.form-multiline { |
|
30
|
flex-wrap: wrap; |
|
31
|
} |
|
32
|
|
|
33
|
.form-multiline > div { |
|
34
|
padding-bottom: 10px; |
|
35
|
} |
|
36
|
|
|
37
|
/* FORM LABELS */ |
|
38
|
|
|
39
|
label { |
|
40
|
font-weight: normal; |
|
41
|
color: var(--body-quiet-color); |
|
42
|
font-size: 0.8125rem; |
|
43
|
} |
|
44
|
|
|
45
|
.required label, label.required { |
|
46
|
font-weight: bold; |
|
47
|
} |
|
48
|
|
|
49
|
/* RADIO BUTTONS */ |
|
50
|
|
|
51
|
form div.radiolist div { |
|
52
|
padding-right: 7px; |
|
53
|
} |
|
54
|
|
|
55
|
form div.radiolist.inline div { |
|
56
|
display: inline-block; |
|
57
|
} |
|
58
|
|
|
59
|
form div.radiolist label { |
|
60
|
width: auto; |
|
61
|
} |
|
62
|
|
|
63
|
form div.radiolist input[type="radio"] { |
|
64
|
margin: -2px 4px 0 0; |
|
65
|
padding: 0; |
|
66
|
} |
|
67
|
|
|
68
|
form ul.inline { |
|
69
|
margin-left: 0; |
|
70
|
padding: 0; |
|
71
|
} |
|
72
|
|
|
73
|
form ul.inline li { |
|
74
|
float: left; |
|
75
|
padding-right: 7px; |
|
76
|
} |
|
77
|
|
|
78
|
/* FIELDSETS */ |
|
79
|
|
|
80
|
fieldset .fieldset-heading, |
|
81
|
fieldset .inline-heading, |
|
82
|
:not(.inline-related) .collapse summary { |
|
83
|
border: 1px solid var(--header-bg); |
|
84
|
margin: 0; |
|
85
|
padding: 8px; |
|
86
|
font-weight: 400; |
|
87
|
font-size: 0.8125rem; |
|
88
|
background: var(--header-bg); |
|
89
|
color: var(--header-link-color); |
|
90
|
} |
|
91
|
|
|
92
|
/* ALIGNED FIELDSETS */ |
|
93
|
|
|
94
|
.aligned label { |
|
95
|
display: block; |
|
96
|
padding: 4px 10px 0 0; |
|
97
|
min-width: 160px; |
|
98
|
width: 160px; |
|
99
|
word-wrap: break-word; |
|
100
|
} |
|
101
|
|
|
102
|
.aligned label:not(.vCheckboxLabel):after { |
|
103
|
content: ''; |
|
104
|
display: inline-block; |
|
105
|
vertical-align: middle; |
|
106
|
} |
|
107
|
|
|
108
|
.aligned label + p, .aligned .checkbox-row + div.help, .aligned label + div.readonly { |
|
109
|
padding: 6px 0; |
|
110
|
margin-top: 0; |
|
111
|
margin-bottom: 0; |
|
112
|
margin-left: 0; |
|
113
|
overflow-wrap: break-word; |
|
114
|
} |
|
115
|
|
|
116
|
.aligned ul label { |
|
117
|
display: inline; |
|
118
|
float: none; |
|
119
|
width: auto; |
|
120
|
} |
|
121
|
|
|
122
|
.aligned .form-row input { |
|
123
|
margin-bottom: 0; |
|
124
|
} |
|
125
|
|
|
126
|
.colMS .aligned .vLargeTextField, .colMS .aligned .vXMLLargeTextField { |
|
127
|
width: 350px; |
|
128
|
} |
|
129
|
|
|
130
|
form .aligned ul { |
|
131
|
margin-left: 160px; |
|
132
|
padding-left: 10px; |
|
133
|
} |
|
134
|
|
|
135
|
form .aligned div.radiolist { |
|
136
|
display: inline-block; |
|
137
|
margin: 0; |
|
138
|
padding: 0; |
|
139
|
} |
|
140
|
|
|
141
|
form .aligned p.help, |
|
142
|
form .aligned div.help { |
|
143
|
margin-top: 0; |
|
144
|
margin-left: 160px; |
|
145
|
padding-left: 10px; |
|
146
|
} |
|
147
|
|
|
148
|
form .aligned p.date div.help.timezonewarning, |
|
149
|
form .aligned p.datetime div.help.timezonewarning, |
|
150
|
form .aligned p.time div.help.timezonewarning { |
|
151
|
margin-left: 0; |
|
152
|
padding-left: 0; |
|
153
|
font-weight: normal; |
|
154
|
} |
|
155
|
|
|
156
|
form .aligned p.help:last-child, |
|
157
|
form .aligned div.help:last-child { |
|
158
|
margin-bottom: 0; |
|
159
|
padding-bottom: 0; |
|
160
|
} |
|
161
|
|
|
162
|
form .aligned input + p.help, |
|
163
|
form .aligned textarea + p.help, |
|
164
|
form .aligned select + p.help, |
|
165
|
form .aligned input + div.help, |
|
166
|
form .aligned textarea + div.help, |
|
167
|
form .aligned select + div.help { |
|
168
|
margin-left: 160px; |
|
169
|
padding-left: 10px; |
|
170
|
} |
|
171
|
|
|
172
|
form .aligned select option:checked { |
|
173
|
background-color: var(--selected-row); |
|
174
|
} |
|
175
|
|
|
176
|
form .aligned ul li { |
|
177
|
list-style: none; |
|
178
|
} |
|
179
|
|
|
180
|
form .aligned table p { |
|
181
|
margin-left: 0; |
|
182
|
padding-left: 0; |
|
183
|
} |
|
184
|
|
|
185
|
.aligned .vCheckboxLabel { |
|
186
|
padding: 1px 0 0 5px; |
|
187
|
} |
|
188
|
|
|
189
|
.aligned .vCheckboxLabel + p.help, |
|
190
|
.aligned .vCheckboxLabel + div.help { |
|
191
|
margin-top: -4px; |
|
192
|
} |
|
193
|
|
|
194
|
.colM .aligned .vLargeTextField, .colM .aligned .vXMLLargeTextField { |
|
195
|
width: 610px; |
|
196
|
} |
|
197
|
|
|
198
|
fieldset .fieldBox { |
|
199
|
margin-right: 20px; |
|
200
|
} |
|
201
|
|
|
202
|
/* WIDE FIELDSETS */ |
|
203
|
|
|
204
|
.wide label { |
|
205
|
width: 200px; |
|
206
|
} |
|
207
|
|
|
208
|
form .wide p.help, |
|
209
|
form .wide ul.errorlist, |
|
210
|
form .wide div.help { |
|
211
|
padding-left: 50px; |
|
212
|
} |
|
213
|
|
|
214
|
form div.help ul { |
|
215
|
padding-left: 0; |
|
216
|
margin-left: 0; |
|
217
|
} |
|
218
|
|
|
219
|
.colM fieldset.wide .vLargeTextField, .colM fieldset.wide .vXMLLargeTextField { |
|
220
|
width: 450px; |
|
221
|
} |
|
222
|
|
|
223
|
/* COLLAPSIBLE FIELDSETS */ |
|
224
|
|
|
225
|
.collapse summary .fieldset-heading, |
|
226
|
.collapse summary .inline-heading { |
|
227
|
background: transparent; |
|
228
|
border: none; |
|
229
|
color: currentColor; |
|
230
|
display: inline; |
|
231
|
margin: 0; |
|
232
|
padding: 0; |
|
233
|
} |
|
234
|
|
|
235
|
/* MONOSPACE TEXTAREAS */ |
|
236
|
|
|
237
|
fieldset.monospace textarea { |
|
238
|
font-family: var(--font-family-monospace); |
|
239
|
} |
|
240
|
|
|
241
|
/* SUBMIT ROW */ |
|
242
|
|
|
243
|
.submit-row { |
|
244
|
padding: 12px 14px 12px; |
|
245
|
margin: 0 0 20px; |
|
246
|
background: var(--darkened-bg); |
|
247
|
border: 1px solid var(--hairline-color); |
|
248
|
border-radius: 4px; |
|
249
|
overflow: hidden; |
|
250
|
display: flex; |
|
251
|
gap: 10px; |
|
252
|
flex-wrap: wrap; |
|
253
|
} |
|
254
|
|
|
255
|
body.popup .submit-row { |
|
256
|
overflow: auto; |
|
257
|
} |
|
258
|
|
|
259
|
.submit-row input { |
|
260
|
height: 2.1875rem; |
|
261
|
line-height: 0.9375rem; |
|
262
|
} |
|
263
|
|
|
264
|
.submit-row input, .submit-row a { |
|
265
|
margin: 0; |
|
266
|
} |
|
267
|
|
|
268
|
.submit-row input.default { |
|
269
|
text-transform: uppercase; |
|
270
|
} |
|
271
|
|
|
272
|
.submit-row a.deletelink { |
|
273
|
margin-left: auto; |
|
274
|
} |
|
275
|
|
|
276
|
.submit-row a.deletelink { |
|
277
|
display: block; |
|
278
|
background: var(--delete-button-bg); |
|
279
|
border-radius: 4px; |
|
280
|
padding: 0.625rem 0.9375rem; |
|
281
|
height: 0.9375rem; |
|
282
|
line-height: 0.9375rem; |
|
283
|
color: var(--button-fg); |
|
284
|
} |
|
285
|
|
|
286
|
.submit-row a.closelink { |
|
287
|
display: inline-block; |
|
288
|
background: var(--close-button-bg); |
|
289
|
border-radius: 4px; |
|
290
|
padding: 10px 15px; |
|
291
|
height: 0.9375rem; |
|
292
|
line-height: 0.9375rem; |
|
293
|
color: var(--button-fg); |
|
294
|
} |
|
295
|
|
|
296
|
.submit-row a.deletelink:focus, |
|
297
|
.submit-row a.deletelink:hover, |
|
298
|
.submit-row a.deletelink:active { |
|
299
|
background: var(--delete-button-hover-bg); |
|
300
|
text-decoration: none; |
|
301
|
} |
|
302
|
|
|
303
|
.submit-row a.closelink:focus, |
|
304
|
.submit-row a.closelink:hover, |
|
305
|
.submit-row a.closelink:active { |
|
306
|
background: var(--close-button-hover-bg); |
|
307
|
text-decoration: none; |
|
308
|
} |
|
309
|
|
|
310
|
/* CUSTOM FORM FIELDS */ |
|
311
|
|
|
312
|
.vSelectMultipleField { |
|
313
|
vertical-align: top; |
|
314
|
} |
|
315
|
|
|
316
|
.vCheckboxField { |
|
317
|
border: none; |
|
318
|
} |
|
319
|
|
|
320
|
.vDateField, .vTimeField { |
|
321
|
margin-right: 2px; |
|
322
|
margin-bottom: 4px; |
|
323
|
} |
|
324
|
|
|
325
|
.vDateField { |
|
326
|
min-width: 6.85em; |
|
327
|
} |
|
328
|
|
|
329
|
.vTimeField { |
|
330
|
min-width: 4.7em; |
|
331
|
} |
|
332
|
|
|
333
|
.vURLField { |
|
334
|
width: 30em; |
|
335
|
} |
|
336
|
|
|
337
|
.vLargeTextField, .vXMLLargeTextField { |
|
338
|
width: 48em; |
|
339
|
} |
|
340
|
|
|
341
|
.flatpages-flatpage #id_content { |
|
342
|
height: 40.2em; |
|
343
|
} |
|
344
|
|
|
345
|
.module table .vPositiveSmallIntegerField { |
|
346
|
width: 2.2em; |
|
347
|
} |
|
348
|
|
|
349
|
.vIntegerField { |
|
350
|
width: 5em; |
|
351
|
} |
|
352
|
|
|
353
|
.vBigIntegerField { |
|
354
|
width: 10em; |
|
355
|
} |
|
356
|
|
|
357
|
.vForeignKeyRawIdAdminField { |
|
358
|
width: 5em; |
|
359
|
} |
|
360
|
|
|
361
|
.vTextField, .vUUIDField { |
|
362
|
width: 20em; |
|
363
|
} |
|
364
|
|
|
365
|
/* INLINES */ |
|
366
|
|
|
367
|
.inline-group { |
|
368
|
padding: 0; |
|
369
|
margin: 0 0 30px; |
|
370
|
} |
|
371
|
|
|
372
|
.inline-group thead th { |
|
373
|
padding: 8px 10px; |
|
374
|
} |
|
375
|
|
|
376
|
.inline-group .aligned label { |
|
377
|
width: 160px; |
|
378
|
} |
|
379
|
|
|
380
|
.inline-related { |
|
381
|
position: relative; |
|
382
|
} |
|
383
|
|
|
384
|
.inline-related h4, |
|
385
|
.inline-related:not(.tabular) .collapse summary { |
|
386
|
margin: 0; |
|
387
|
color: var(--body-medium-color); |
|
388
|
padding: 5px; |
|
389
|
font-size: 0.8125rem; |
|
390
|
background: var(--darkened-bg); |
|
391
|
border: 1px solid var(--hairline-color); |
|
392
|
border-left-color: var(--darkened-bg); |
|
393
|
border-right-color: var(--darkened-bg); |
|
394
|
} |
|
395
|
|
|
396
|
.inline-related h3 span.delete { |
|
397
|
float: right; |
|
398
|
} |
|
399
|
|
|
400
|
.inline-related h3 span.delete label { |
|
401
|
margin-left: 2px; |
|
402
|
font-size: 0.6875rem; |
|
403
|
} |
|
404
|
|
|
405
|
.inline-related fieldset { |
|
406
|
margin: 0; |
|
407
|
background: var(--body-bg); |
|
408
|
border: none; |
|
409
|
width: 100%; |
|
410
|
} |
|
411
|
|
|
412
|
.inline-group .tabular fieldset.module { |
|
413
|
border: none; |
|
414
|
} |
|
415
|
|
|
416
|
.inline-related.tabular fieldset.module table { |
|
417
|
width: 100%; |
|
418
|
overflow-x: scroll; |
|
419
|
} |
|
420
|
|
|
421
|
.last-related fieldset { |
|
422
|
border: none; |
|
423
|
} |
|
424
|
|
|
425
|
.inline-group .tabular tr.has_original td { |
|
426
|
padding-top: 2em; |
|
427
|
} |
|
428
|
|
|
429
|
.inline-group .tabular tr td.original { |
|
430
|
padding: 2px 0 0 0; |
|
431
|
width: 0; |
|
432
|
_position: relative; |
|
433
|
} |
|
434
|
|
|
435
|
.inline-group .tabular th.original { |
|
436
|
width: 0px; |
|
437
|
padding: 0; |
|
438
|
} |
|
439
|
|
|
440
|
.inline-group .tabular td.original p { |
|
441
|
position: absolute; |
|
442
|
left: 0; |
|
443
|
height: 1.1em; |
|
444
|
padding: 2px 9px; |
|
445
|
overflow: hidden; |
|
446
|
font-size: 0.5625rem; |
|
447
|
font-weight: bold; |
|
448
|
color: var(--body-quiet-color); |
|
449
|
_width: 700px; |
|
450
|
} |
|
451
|
|
|
452
|
.inline-group div.add-row, |
|
453
|
.inline-group .tabular tr.add-row td { |
|
454
|
color: var(--body-quiet-color); |
|
455
|
background: var(--darkened-bg); |
|
456
|
padding: 8px 10px; |
|
457
|
border-bottom: 1px solid var(--hairline-color); |
|
458
|
} |
|
459
|
|
|
460
|
.inline-group .tabular tr.add-row td { |
|
461
|
padding: 8px 10px; |
|
462
|
border-bottom: 1px solid var(--hairline-color); |
|
463
|
} |
|
464
|
|
|
465
|
.inline-group div.add-row a, |
|
466
|
.inline-group .tabular tr.add-row td a { |
|
467
|
font-size: 0.75rem; |
|
468
|
} |
|
469
|
|
|
470
|
.empty-form { |
|
471
|
display: none; |
|
472
|
} |
|
473
|
|
|
474
|
/* RELATED FIELD ADD ONE / LOOKUP */ |
|
475
|
|
|
476
|
.related-lookup { |
|
477
|
margin-left: 5px; |
|
478
|
display: inline-block; |
|
479
|
vertical-align: middle; |
|
480
|
background-repeat: no-repeat; |
|
481
|
background-size: 14px; |
|
482
|
} |
|
483
|
|
|
484
|
.related-lookup { |
|
485
|
width: 1rem; |
|
486
|
height: 1rem; |
|
487
|
background-image: url(../img/search.svg); |
|
488
|
} |
|
489
|
|
|
490
|
form .related-widget-wrapper ul { |
|
491
|
display: inline-block; |
|
492
|
margin-left: 0; |
|
493
|
padding-left: 0; |
|
494
|
} |
|
495
|
|
|
496
|
.clearable-file-input input { |
|
497
|
margin-top: 0; |
|
498
|
} |
|
499
|
|