Django

Code

Changeset 2235

Show
Ignore:
Timestamp:
02/02/06 11:35:00 (3 years ago)
Author:
adrian
Message:

Fixed #1318 -- Made changes to docs/admin_css.txt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/admin_css.txt

    r1490 r2235  
    2727============ 
    2828 
     29.. admonition:: Note 
     30 
     31    In the Django development version, all admin pages (except the dashboard) are fluid-width. All fixed-width classes have been removed. 
     32 
    2933The base template for each admin page has a block that defines the column 
    3034structure for the page. This sets a class on the page content area 
    31 (``div#content``) so everything on the page knows how wide it should be. So far 
    32 there are three options available, and one special hybrid option. 
     35(``div#content``) so everything on the page knows how wide it should be. There are three column types available. 
    3336 
    3437colM 
     
    4447    Same as above, with the sidebar on the left. The source order of the columns 
    4548    doesn't matter. 
    46 colM superwide 
     49colM superwide (removed in Django development version) 
    4750    This is for ridiculously wide pages. Doesn't really work very well for 
    4851    anything but colM. With superwide, you've got 1000px to work with. Don't 
    4952    waste them. 
    50 flex 
     53flex (removed in Django development version) 
    5154    This is for liquid-width pages, such as changelists. Currently only works 
    5255    with single-column pages (does not combine with ``.colMS`` or ``.colSM``). 
    5356    Form pages should never use ``.flex``. 
    5457 
    55 For instance, you could stick this in a template to make a superwide page:: 
     58For instance, you could stick this in a template to make a two-column page with the sidebar on the right:: 
    5659 
    57     {% block coltype %}colM superwide{% endblock %} 
     60    {% block coltype %}colMS{% endblock %} 
    5861 
    59 or this to make a liquid-width page (note that ``flex`` replaces ``colM``, so 
    60 both classes are not required):: 
    61  
    62     {% block coltype %}flex{% endblock %} 
    6362 
    6463Widths 
    6564====== 
     65 
     66**Removed in Django development version (see note above).** 
    6667 
    6768There's a whole mess of classes in the stylesheet for custom pixel widths on