Blame view

static/admin/css/forms.css 6.12 KB
831eac332   zhuzhenchao   add file
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
  @import url('widgets.css');
  
  /* FORM ROWS */
  
  .form-row {
      overflow: hidden;
      padding: 8px 12px;
      font-size: 11px;
      border-bottom: 1px solid #eee;
  }
  
  .form-row img, .form-row input {
      vertical-align: middle;
  }
  
  form .form-row p {
      padding-left: 0;
      font-size: 11px;
  }
  
  .hidden {
      display: none;
  }
  
  /* FORM LABELS */
  
  form h4 {
      margin: 0 !important;
      padding: 0 !important;
      border: none !important;
  }
  
  label {
      font-weight: normal !important;
      color: #666;
      font-size: 12px;
  }
  
  .required label, label.required {
      font-weight: bold !important;
      color: #333 !important;
  }
  
  /* RADIO BUTTONS */
  
  form ul.radiolist li {
      list-style-type: none;
  }
  
  form ul.radiolist label {
      float: none;
      display: inline;
  }
  
  form ul.inline {
      margin-left: 0;
      padding: 0;
  }
  
  form ul.inline li {
      float: left;
      padding-right: 7px;
  }
  
  /* ALIGNED FIELDSETS */
  
  .aligned label {
      display: block;
      padding: 3px 10px 0 0;
      float: left;
      width: 8em;
      word-wrap: break-word;
  }
  
  .aligned ul label {
      display: inline;
      float: none;
      width: auto;
  }
  
  .colMS .aligned .vLargeTextField, .colMS .aligned .vXMLLargeTextField {
      width: 350px;
  }
  
  form .aligned p, form .aligned ul {
      margin-left: 7em;
      padding-left: 30px;
  }
  
  form .aligned table p {
      margin-left: 0;
      padding-left: 0;
  }
  
  form .aligned p.help {
      padding-left: 38px;
  }
  
  .aligned .vCheckboxLabel {
      float: none !important;
      display: inline;
      padding-left: 4px;
  }
  
  .colM .aligned .vLargeTextField, .colM .aligned .vXMLLargeTextField {
      width: 610px;
  }
  
  .checkbox-row p.help {
      margin-left: 0;
      padding-left: 0 !important;
  }
  
  fieldset .field-box {
      float: left;
      margin-right: 20px;
  }
  
  /* WIDE FIELDSETS */
  
  .wide label {
      width: 15em !important;
  }
  
  form .wide p {
      margin-left: 15em;
  }
  
  form .wide p.help {
      padding-left: 38px;
  }
  
  .colM fieldset.wide .vLargeTextField, .colM fieldset.wide .vXMLLargeTextField {
      width: 450px;
  }
  
  /* COLLAPSED FIELDSETS */
  
  fieldset.collapsed * {
      display: none;
  }
  
  fieldset.collapsed h2, fieldset.collapsed {
      display: block !important;
  }
  
  fieldset.collapsed h2 {
      background-image: url(../img/nav-bg.gif);
      background-position: bottom left;
      color: #999;
  }
  
  fieldset.collapsed .collapse-toggle {
      background: transparent;
      display: inline !important;
  }
  
  /* MONOSPACE TEXTAREAS */
  
  fieldset.monospace textarea {
      font-family: "Bitstream Vera Sans Mono",Monaco,"Courier New",Courier,monospace;
  }
  
  /* SUBMIT ROW */
  
  .submit-row {
      padding: 5px 7px;
      text-align: right;
      background: white url(../img/nav-bg.gif) 0 100% repeat-x;
      border: 1px solid #ccc;
      margin: 5px 0;
      overflow: hidden;
  }
  
  body.popup .submit-row {
      overflow: auto;
  }
  
  .submit-row input {
      margin: 0 0 0 5px;
  }
  
  .submit-row p {
      margin: 0.3em;
  }
  
  .submit-row p.deletelink-box {
      float: left;
  }
  
  .submit-row .deletelink {
      background: url(../img/icon_deletelink.gif) 0 50% no-repeat;
      padding-left: 14px;
  }
  
  /* CUSTOM FORM FIELDS */
  
  .vSelectMultipleField {
      vertical-align: top !important;
  }
  
  .vCheckboxField {
      border: none;
  }
  
  .vDateField, .vTimeField {
      margin-right: 2px;
  }
  
  .vDateField {
      min-width: 6.85em;
  }
  
  .vTimeField {
      min-width: 4.7em;
  }
  
  .vURLField {
      width: 30em;
  }
  
  .vLargeTextField, .vXMLLargeTextField {
      width: 48em;
  }
  
  .flatpages-flatpage #id_content {
      height: 40.2em;
  }
  
  .module table .vPositiveSmallIntegerField {
      width: 2.2em;
  }
  
  .vTextField {
      width: 20em;
  }
  
  .vIntegerField {
      width: 5em;
  }
  
  .vBigIntegerField {
      width: 10em;
  }
  
  .vForeignKeyRawIdAdminField {
      width: 5em;
  }
  
  /* INLINES */
  
  .inline-group {
      padding: 0;
      border: 1px solid #ccc;
      margin: 10px 0;
  }
  
  .inline-group .aligned label {
      width: 8em;
  }
  
  .inline-related {
      position: relative;
  }
  
  .inline-related h3 {
      margin: 0;
      color: #666;
      padding: 3px 5px;
      font-size: 11px;
      background: #e1e1e1 url(../img/nav-bg.gif) top left repeat-x;
      border-bottom: 1px solid #ddd;
  }
  
  .inline-related h3 span.delete {
      float: right;
  }
  
  .inline-related h3 span.delete label {
      margin-left: 2px;
      font-size: 11px;
  }
  
  .inline-related fieldset {
      margin: 0;
      background: #fff;
      border: none;
      width: 100%;
  }
  
  .inline-related fieldset.module h3 {
      margin: 0;
      padding: 2px 5px 3px 5px;
      font-size: 11px;
      text-align: left;
      font-weight: bold;
      background: #bcd;
      color: #fff;
  }
  
  .inline-group .tabular fieldset.module {
      border: none;
      border-bottom: 1px solid #ddd;
  }
  
  .inline-related.tabular fieldset.module table {
      width: 100%;
  }
  
  .last-related fieldset {
      border: none;
  }
  
  .inline-group .tabular tr.has_original td {
      padding-top: 2em;
  }
  
  .inline-group .tabular tr td.original {
      padding: 2px 0 0 0;
      width: 0;
      _position: relative;
  }
  
  .inline-group .tabular th.original {
      width: 0px;
      padding: 0;
  }
  
  .inline-group .tabular td.original p {
      position: absolute;
      left: 0;
      height: 1.1em;
      padding: 2px 7px;
      overflow: hidden;
      font-size: 9px;
      font-weight: bold;
      color: #666;
      _width: 700px;
  }
  
  .inline-group ul.tools {
      padding: 0;
      margin: 0;
      list-style: none;
  }
  
  .inline-group ul.tools li {
      display: inline;
      padding: 0 5px;
  }
  
  .inline-group div.add-row,
  .inline-group .tabular tr.add-row td {
      color: #666;
      padding: 3px 5px;
      border-bottom: 1px solid #ddd;
      background: #e1e1e1 url(../img/nav-bg.gif) top left repeat-x;
  }
  
  .inline-group .tabular tr.add-row td {
      padding: 4px 5px 3px;
      border-bottom: none;
  }
  
  .inline-group ul.tools a.add,
  .inline-group div.add-row a,
  .inline-group .tabular tr.add-row td a {
      background: url(../img/icon_addlink.gif) 0 50% no-repeat;
      padding-left: 14px;
      font-size: 11px;
      outline: 0; /* Remove dotted border around link */
  }
  
  .empty-form {
      display: none;
  }
  
  /* RELATED FIELD ADD ONE / LOOKUP */
  
  .add-another, .related-lookup {
      margin-left: 5px;
      display: inline-block;
  }
  
  .add-another {
      width: 10px;
      height: 10px;
      background-image: url(../img/icon_addlink.gif);
  }
  
  .related-lookup {
      width: 16px;
      height: 16px;
      background-image: url(../img/selector-search.gif);
  }