Ticket #1318: cssnotes.patch
File cssnotes.patch, 2.2 KB (added by , 19 years ago) |
---|
-
admin_css.txt
26 26 Column Types 27 27 ============ 28 28 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 29 33 The base template for each admin page has a block that defines the column 30 34 structure 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. 33 36 34 37 colM 35 38 This is the default column setting for all pages. The "M" stands for "main". … … 43 46 colSM 44 47 Same as above, with the sidebar on the left. The source order of the columns 45 48 doesn't matter. 46 colM superwide 49 colM superwide (removed in Django development version) 47 50 This is for ridiculously wide pages. Doesn't really work very well for 48 51 anything but colM. With superwide, you've got 1000px to work with. Don't 49 52 waste them. 50 flex 53 flex (removed in Django development version) 51 54 This is for liquid-width pages, such as changelists. Currently only works 52 55 with single-column pages (does not combine with ``.colMS`` or ``.colSM``). 53 56 Form pages should never use ``.flex``. 54 57 55 For instance, you could stick this in a template to make a superwide page::58 For instance, you could stick this in a template to make a two-column page with the sidebar on the right:: 56 59 57 {% block coltype %}colM superwide{% endblock %}60 {% block coltype %}colMS{% endblock %} 58 61 59 or this to make a liquid-width page (note that ``flex`` replaces ``colM``, so60 both classes are not required)::61 62 62 {% block coltype %}flex{% endblock %}63 64 63 Widths 65 64 ====== 66 65 66 **Removed in Django development version (see note above).** 67 67 68 There's a whole mess of classes in the stylesheet for custom pixel widths on 68 69 objects. They come in handy for tables and table cells, if you want to avoid 69 70 using the ``width`` attribute. Each class sets the width to the number of pixels