Ticket #2612: admin_inlines.2.diff

File admin_inlines.2.diff, 3.5 KB (added by nathan, 16 years ago)

Admin inline float fix

  • media/css/global.css

     
    4646.quiet, a.quiet:link, a.quiet:visited { color:#999 !important;font-weight:normal !important; }
    4747.quiet strong { font-weight:bold !important; }
    4848.float-right { float:right; }
    49 .float-left { float:left; }
     49.float-left { float:left; margin-right: 20px; }
    5050.clear { clear:both; }
    5151.align-left { text-align:left; }
    5252.align-right { text-align:right; }
     
    139139
    140140/* OBJECT HISTORY */
    141141table#change-history { width:100%; }
    142 table#change-history tbody th { width:16em; }
     142table#change-history tbody th { width:16em; }
     143 No newline at end of file
  • media/css/forms.css

     
    99/* FORM LABELS */
    1010form h4 { margin:0 !important; padding:0 !important; border:none !important; }
    1111label { font-weight:normal !important; color:#666; font-size:12px; }
    12 label.inline { margin-left:20px; }
    1312.required label, label.required { font-weight:bold !important; color:#333 !important; }
    1413
    1514/* RADIO BUTTONS */
     
    1918form ul.inline li { float:left; padding-right:7px; }
    2019
    2120/* ALIGNED FIELDSETS */
    22 .aligned label { display:block; padding:0 1em 3px 0; float:left; width:8em; }
    23 .aligned label.inline { display:inline; float:none; }
     21.aligned label { display:block; padding:3px 10px 0 0; float:left; width:8em; }
    2422.colMS .aligned .vLargeTextField, .colMS .aligned .vXMLLargeTextField { width:350px; }
    2523form .aligned p, form .aligned ul { margin-left:7em; padding-left:30px; }
    2624form .aligned table p { margin-left:0; padding-left:0; }
     
    6058.module table .vPositiveSmallIntegerField { width:2.2em; }
    6159.vTextField { width:20em; }
    6260.vIntegerField { width:5em; }
     61.vForeignKeyRawIdAdminField { width: 5em; }
    6362
    64 /* x unsorted */
     63/* INLINES */
    6564.inline-group {padding:0; border:1px solid #ccc; margin:10px 0;}
    66 .inline-group .aligned label { width: 7em; }
     65.inline-group .aligned label { width: 8em; }
    6766
    6867.inline-related {position:relative;}
    6968.inline-related h3 {margin: 0; color:#666; padding:3px 5px; font-size:11px; background:#e1e1e1 url(../img/admin/nav-bg.gif) top left repeat-x; border-bottom:1px solid #ddd;}
  • media/css/widgets.css

     
    3333/* DATE AND TIME */
    3434p.datetime { line-height:20px; margin:0; padding:0; color:#666; font-size:11px; font-weight:bold; }
    3535.datetime span { font-size:11px; color:#ccc; font-weight:normal; white-space:nowrap; }
    36 .vDateField { margin-left:4px; }
    3736table p.datetime { font-size:10px; margin-left:0; padding-left:0; }
    3837
    3938/* FILE UPLOADS */
  • templates/admin/includes/fieldset.html

     
    55      <div class="form-row{% if line.errors %} errors{% endif %} {% for field in line %}{{ field.field.name }} {% endfor %} ">
    66      {{ line.errors }}
    77      {% for field in line %}
    8       <div class="float-left">
     8      <div{% if not line.fields|length_is:"1" %} class="float-left"{% endif %}>
    99          {% if field.is_checkbox %}
    1010              {{ field.field }}{{ field.label_tag }}
    1111          {% else %}
Back to Top