Django

Code

Changeset 121

Show
Ignore:
Timestamp:
07/16/05 17:19:10 (3 years ago)
Author:
wilson
Message:

Fixed formatting in admin css docs

Files:

Legend:

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

    r103 r121  
    1616 
    1717The ``.module`` class is a basic building block for grouping content in the 
    18 admin. It's generally applied to ``div``s or ``fieldset``s. It wraps the content 
     18admin. It's generally applied to a ``div`` or a ``fieldset``. It wraps the content 
    1919group in a box and applies certain styles to the elements within. An ``h2`` 
    2020within a ``div.module`` will align to the top of the ``div`` as a header for the 
     
    6969width, without using ``width="100%"`` which makes IE 5's box model cry.) 
    7070 
    71 ``'Note:``' Within a ``.flex`` page, the ``.xfull`` class will ``usually`` set 
     71**Note:** Within a ``.flex`` page, the ``.xfull`` class will ``usually`` set 
    7272to 100%, but there are exceptions and still some untested cases. 
    7373 
     
    104104    This is a custom class for blocks of inline help text explaining the 
    105105    function of form elements. It makes text smaller and gray, and when applied 
    106     to ``p``s withing ``.form-row`` elements (see Form Styles below), it will 
     106    to ``p`` elements withing ``.form-row`` elements (see Form Styles below), it will 
    107107    offset the text to align with the form field. Use this for help text, 
    108     instead of ``small quiet``. It works on ``span``s, but try to put the class 
    109     on the ``p`` whenever you can. 
     108    instead of ``small quiet``. It works on other elements, but try to put the class 
     109    on a ``p`` whenever you can. 
    110110.align-left 
    111     It aligns the text left. Only works on block elements, I think
     111    It aligns the text left. Only works on block elements containing inline elements
    112112.align-right 
    113113    Are you paying attention? 
    114114.nowrap 
    115     Keeps text from wrapping. Comes in handy for table headers you want to stay 
     115    Keeps text and inline objects from wrapping. Comes in handy for table headers you want to stay 
    116116    on one line. 
    117117 
     
    138138Example from a changelist page:: 
    139139 
    140     <ul class="object-tools"><li><a href="/stories/add/" class="addlink">Add story</a></li></ul> 
     140    <ul class="object-tools"> 
     141          <li><a href="/stories/add/" class="addlink">Add story</a></li> 
     142         </ul> 
    141143 
    142144and from a form page:: 
     
    153155--------- 
    154156 
    155 Admin forms are broken up into groups by ``fieldset``s. Each form fieldset 
    156 should have a class ``.module``. Each fieldset should have a header ``h2`` 
    157 within the fieldset at the top (except the first group in the form, and in som
    158 cases where the group of fields doesn't have a logical label). 
     157Admin forms are broken up into groups by ``fieldset`` elements. Each form fieldset 
     158should have a class ``.module``. Each fieldset should have a header ``h2`` within the 
     159fieldset at the top (except the first group in the form, and in some cases where th
     160group of fields doesn't have a logical label). 
    159161 
    160162Each fieldset can also take extra classes in addition to ``.module`` to apply 
     
    178180Each form ``label`` and field should be enclosed in a header ``h4``. Any 
    179181explanation or help text should follow this ``h4`` in a ``p`` with class 
    180 ``.help``. Form ``label``s should always precede the field, except in the case 
     182``.help``. Form labels should always precede the field, except in the case 
    181183of checkboxes and radio buttons, where the ``input`` should come first.