#12260: CSS class messes up ModelMultipleChoiceField in contrib.admin
--------------------------------------------------+-------------------------
 Reporter:  tiliv                                 |       Owner:  nobody    
   Status:  new                                   |   Milestone:  1.2       
Component:  django.contrib.admin                  |     Version:  SVN       
 Keywords:  css, admin, ModelMultipleChoiceField  |       Stage:  Unreviewed
Has_patch:  1                                     |  
--------------------------------------------------+-------------------------
 The admin CSS file at `trunk/django/contrib/admin/media/css/forms.css` has
 a rule definition for any HTML `label` element under an `.aligned` class
 element.

 This really messes up the `ModelMultipleChoiceField` on admin pages,
 because the checkboxes use `label` elements too.  The result is a goofy
 'step' effect, with a big waterfall of checkboxes leading across the page.

 This patch puts adds an extra CSS 2.0-compliant rule which 'undoes' the
 effect on labels which are nested in a `ul` tag.

 Simple addition:
 {{{
 .aligned ul label {
     float: none;
     width: auto;
 }
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12260>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--

You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=.


Reply via email to