Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

All admin pages except the dashboard now use liquid page widths, exce…

…pt in IE5.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2192 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 233708fb683ae2c1cf3e4c00edc2e4842d99a42d 1 parent 4fd2b3e
authored January 30, 2006
3  django/contrib/admin/media/css/base.css
... ...
@@ -1,2 +1,3 @@
1 1
 @import url(global.css);
2  
-@import url(changelists.css);
  2
+@import url(changelists.css);
  3
+/*\*/ @import "patch-iewin.css"; /**/
42  django/contrib/admin/media/css/global.css
@@ -35,47 +35,31 @@ code, pre { font-family:"Bitstream Vera Sans Mono", Monaco, "Courier New", Couri
35 35
 pre.literal-block { margin:10px; background:#eee; padding:6px 8px; }
36 36
 code strong	{ color:#930; }
37 37
 hr { clear:both; color:#eee; background-color:#eee; height:1px; border:none; margin:0; padding:0; font-size:1px; line-height:1px; }
38  
-div.system-message { background: #ffc; margin: 10px; padding: 6px 8px; font-size: .8em; }
39  
-div.system-message p.system-message-title { padding:4px 5px 4px 25px; margin:0; color:red;background:#ffc url(../img/admin/icon_error.gif) 5px .3em no-repeat; }
40 38
 
41 39
 /*  PAGE STRUCTURE  */
42  
-#container { position:relative; width:100%; min-width:720px; }
43  
-#header	{ text-align:left; }
  40
+#container { position:relative; width:100%; min-width:760px; }
44 41
 #content { margin:10px 15px; }
45  
-#content-main { float:left; }
46  
-#content-related { float:right; }
  42
+#header { width:100%; }
  43
+#content-main { float:left; width:100%; }
  44
+#content-related { float:right; width:220px; position:relative; margin-right:-230px; }
47 45
 #footer	{ clear:both; padding:10px; }
48 46
 
49 47
 /*  COLUMN TYPES  */
50  
-.colMS, .colM, .colSM, .colM #content-main, .colM #content-main .xfull { width:758px; } /* master site width for fixed-width pages */
51  
-.colMS #content-main, .colSM #content-main, .colMS #content-main .xfull, .colSM #content-main .xfull { width:519px; } /* main column width for 2-column pages */
52  
-.colMS #content-related, .colSM #content-related, .colSMS #content-related { width:220px; } /* sidebar column width */
53  
-.colSM #content-related { float:left; } .colSM #content-main { float:right; } /* swaps left and right columns */
54  
-.colSMS #content-main { width:298px; }
  48
+.colMS { margin-right:245px !important; }
  49
+.colSM { margin-left:245px !important; }
  50
+.colSM #content-related { float:left; margin-right:0; margin-left:-230px; } 
  51
+.colSM #content-main { float:right; }
55 52
 .popup .colM { width:95%; }
56  
-.popup #content-main, .flex #content-main, .flex .xfull { width:100% !important; } /* main column width for liquid-width pages */
57  
-.popup .flex #content-main, .popup .colM #content-main { width:100% !important; }
58 53
 .subcol { float:left; width:46%; margin-right:15px; }
59  
-
60  
-/*  WIDTHS - DEPRECATED  */
61  
-.x50 { width:50px; }
62  
-.x75 { width:75px; }
63  
-.x100 { width:100px; }
64  
-.x150 { width:150px; }
65  
-.x200 { width:200px; }
66  
-.x250 { width:250px; }
67  
-.x300 { width:300px; }
68  
-.x400 { width:400px; }
69  
-.x500 { width:500px; }
  54
+.dashboard #content { width:500px; }
70 55
 
71 56
 /*  HEADER  */
72  
-#header	{ background:#417690; color:#ffc; min-height:2.5em; _height:2.5em; }
  57
+#header	{ background:#417690; color:#ffc; min-height:2.4em; overflow:hidden; }
73 58
 #header a:link, #header a:visited { color:white; }
74 59
 #header a:hover { text-decoration:underline; }
75  
-#branding { float:left; width:18em; }
76 60
 #branding h1 { padding:0.5em 10px 0 10px; font-size:18px; margin:0; font-weight:normal; color:#f4f379; }
77  
-#branding h2 { padding:0 10px 0.5em 10px; font-size:14px; margin:0; font-weight:normal; color:#ffc; }
78  
-#user-tools	{ padding:1.2em 10px; font-size:11px; text-align:right; }
  61
+#branding h2 { padding:0 10px 0.8em 10px; font-size:14px; margin:0; font-weight:normal; color:#ffc; }
  62
+#user-tools	{ position:absolute; top:0; right:0; padding:1.2em 10px; font-size:11px; text-align:right; }
79 63
 
80 64
 /*  SIDEBAR  */
81 65
 #content-related h3 { font-size:12px; color:#666; margin-bottom:3px; }
@@ -197,6 +181,8 @@ td ul.errorlist { margin:0 !important; padding:0 !important; }
197 181
 td ul.errorlist li { margin:0 !important; }
198 182
 .error { background:#ffc; }
199 183
 .error input, .error select { border:1px solid red; }
  184
+div.system-message { background: #ffc; margin: 10px; padding: 6px 8px; font-size: .8em; }
  185
+div.system-message p.system-message-title { padding:4px 5px 4px 25px; margin:0; color:red; background:#ffc url(../img/admin/icon_error.gif) 5px .3em no-repeat; }
200 186
 
201 187
 /*  ACTION ICONS  */
202 188
 .addlink { padding-left:12px; background:url(../img/admin/icon_addlink.gif) 0 .2em no-repeat; }
7  django/contrib/admin/media/css/patch-iewin.css
... ...
@@ -0,0 +1,7 @@
  1
+* html #container { position:static; } /* keep header from flowing off the page */
  2
+* html .colMS #content-related { margin-right:0; margin-left:10px; position:static; } /* put the right sidebars back on the page */
  3
+* html .colSM #content-related { margin-right:10px; margin-left:-115px; position:static; } /* put the left sidebars back on the page */
  4
+* html .dashboard #content { width:768px; } /* proper fixed width for dashboard in IE6 */
  5
+* html .dashboard #content-main { width:535px; } /* proper fixed width for dashboard in IE6 */
  6
+* html #content { width /**/: 768px; } /* fixed width for IE5 */
  7
+* html #content-main { width /**/: 535px; } /* fixed width for IE5 */

0 notes on commit 233708f

Please sign in to comment.
Something went wrong with that request. Please try again.