Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Applied contrib.admin IE CSS patches to IE6 and 7, and added simple h…

…acks to filter some rules to both and some only to IE6.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9303 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6b82c386f617fd2f0f92e3991d2d5f77ba572cd0 1 parent 5053550
authored October 31, 2008
44  django/contrib/admin/media/css/ie6.css → django/contrib/admin/media/css/ie.css
... ...
@@ -1,47 +1,51 @@
  1
+/* IE 6 & 7 */
  2
+
  3
+/* Proper fixed width for dashboard in IE6 */
  4
+
  5
+.dashboard #content {
  6
+    *width: 768px;
  7
+}
  8
+
  9
+.dashboard #content-main {
  10
+    *width: 535px;
  11
+}
  12
+
  13
+/* IE 6 ONLY */
  14
+
1 15
 /* Keep header from flowing off the page */
2 16
 
3 17
 #container {
4  
-    position: static;
  18
+    _position: static;
5 19
 }
6 20
 
7 21
 /* Put the right sidebars back on the page */
8 22
 
9 23
 .colMS #content-related {
10  
-    margin-right: 0;
11  
-    margin-left: 10px;
12  
-    position: static;
  24
+    _margin-right: 0;
  25
+    _margin-left: 10px;
  26
+    _position: static;
13 27
 }
14 28
 
15 29
 /* Put the left sidebars back on the page */
16 30
 
17 31
 .colSM #content-related {
18  
-    margin-right: 10px;
19  
-    margin-left: -115px;
20  
-    position: static;
  32
+    _margin-right: 10px;
  33
+    _margin-left: -115px;
  34
+    _position: static;
21 35
 }
22 36
 
23 37
 .form-row {
24  
-    height: 1%;
25  
-}
26  
-
27  
-/* Proper fixed width for dashboard in IE6 */
28  
-
29  
-.dashboard #content {
30  
-    width: 768px;
31  
-}
32  
-
33  
-.dashboard #content-main {
34  
-    width: 535px;
  38
+    _height: 1%;
35 39
 }
36 40
 
37 41
 /* Fix right margin for changelist filters in IE6 */
38 42
 
39 43
 #changelist-filter ul {
40  
-    margin-right: -10px;
  44
+    _margin-right: -10px;
41 45
 }
42 46
 
43 47
 /* IE ignores min-height, but treats height as if it were min-height */
44 48
 
45 49
 .change-list .filtered {
46  
-    height: 400px;
  50
+    _height: 400px;
47 51
 }
2  django/contrib/admin/templates/admin/base.html
@@ -3,7 +3,7 @@
3 3
 <head>
4 4
 <title>{% block title %}{% endblock %}</title>
5 5
 <![if gte IE 6]><link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% load adminmedia %}{% admin_media_prefix %}css/base.css{% endblock %}" /><![endif]>
6  
-<!--[if IE 6]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie6 %}{% load adminmedia %}{% admin_media_prefix %}css/ie6.css{% endblock %}" /><![endif]-->
  6
+<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie %}{% load adminmedia %}{% admin_media_prefix %}css/ie.css{% endblock %}" /><![endif]-->
7 7
 {% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% admin_media_prefix %}css/rtl.css{% endblock %}" />{% endif %}
8 8
 {% block extrastyle %}{% endblock %}
9 9
 {% block extrahead %}{% endblock %}

0 notes on commit 6b82c38

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