diff MoinMoin/theme/__init__.py @ 1634:2161d292e1af

move IE hacks to msie.css and include it if IE
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 22 Oct 2006 03:28:33 +0200
parents 9a8fdd5a03d3
children 964fa7d0de32
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Sun Oct 22 00:31:27 2006 +0200
+++ b/MoinMoin/theme/__init__.py	Sun Oct 22 03:28:33 2006 +0200
@@ -617,7 +617,7 @@
             html.append(link % (self.stylesheetsCharset, media, csshref))
 
 
-        # tribute to the most sucking browser...
+        # tribute to the most sucking browser: MS IE6
         if self.cfg.hacks.get('ie7', False) and self.request.action != 'edit':
             # using FCKeditor and IE7 at the same time makes nices crashes in IE
             html.append("""
@@ -627,6 +627,14 @@
 <![endif]-->
 """ % prefix)
 
+        csshref = '%s/%s/css/msie.css' % (prefix, self.name)
+        html.append("""
+<!-- css only for MSIE browsers -->
+<!--[if IE]>
+   %s
+<![endif]-->
+""" % link % (self.stylesheetsCharset, 'all', csshref))
+
         # Add user css url (assuming that user css uses same charset)
         if usercss and usercss.lower() != "none":
             html.append(link % (self.stylesheetsCharset, 'all', usercss))