Skip to content

Commit

Permalink
Fixed #1318 -- Made changes to docs/admin_css.txt
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2235 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Feb 2, 2006
1 parent 8626c0f commit bd41a51
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions docs/admin_css.txt
Expand Up @@ -26,10 +26,13 @@ whole group.
Column Types Column Types
============ ============


.. admonition:: Note

In the Django development version, all admin pages (except the dashboard) are fluid-width. All fixed-width classes have been removed.

The base template for each admin page has a block that defines the column The base template for each admin page has a block that defines the column
structure for the page. This sets a class on the page content area structure for the page. This sets a class on the page content area
(``div#content``) so everything on the page knows how wide it should be. So far (``div#content``) so everything on the page knows how wide it should be. There are three column types available.
there are three options available, and one special hybrid option.


colM colM
This is the default column setting for all pages. The "M" stands for "main". This is the default column setting for all pages. The "M" stands for "main".
Expand All @@ -43,27 +46,25 @@ colMS
colSM colSM
Same as above, with the sidebar on the left. The source order of the columns Same as above, with the sidebar on the left. The source order of the columns
doesn't matter. doesn't matter.
colM superwide colM superwide (removed in Django development version)
This is for ridiculously wide pages. Doesn't really work very well for This is for ridiculously wide pages. Doesn't really work very well for
anything but colM. With superwide, you've got 1000px to work with. Don't anything but colM. With superwide, you've got 1000px to work with. Don't
waste them. waste them.
flex flex (removed in Django development version)
This is for liquid-width pages, such as changelists. Currently only works This is for liquid-width pages, such as changelists. Currently only works
with single-column pages (does not combine with ``.colMS`` or ``.colSM``). with single-column pages (does not combine with ``.colMS`` or ``.colSM``).
Form pages should never use ``.flex``. Form pages should never use ``.flex``.


For instance, you could stick this in a template to make a superwide page:: For instance, you could stick this in a template to make a two-column page with the sidebar on the right::


{% block coltype %}colM superwide{% endblock %} {% block coltype %}colMS{% endblock %}


or this to make a liquid-width page (note that ``flex`` replaces ``colM``, so
both classes are not required)::

{% block coltype %}flex{% endblock %}


Widths Widths
====== ======


**Removed in Django development version (see note above).**

There's a whole mess of classes in the stylesheet for custom pixel widths on There's a whole mess of classes in the stylesheet for custom pixel widths on
objects. They come in handy for tables and table cells, if you want to avoid objects. They come in handy for tables and table cells, if you want to avoid
using the ``width`` attribute. Each class sets the width to the number of pixels using the ``width`` attribute. Each class sets the width to the number of pixels
Expand Down

0 comments on commit bd41a51

Please sign in to comment.