Fixed bug #14379: CSS issues for Internet Explorer version 6 and 7
authorPatrick Broens <patrick@netcreators.com>
Thu, 13 May 2010 07:56:00 +0000 (07:56 +0000)
committerPatrick Broens <patrick@netcreators.com>
Thu, 13 May 2010 07:56:00 +0000 (07:56 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7585 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/install/Resources/Public/Stylesheets/ie6.css [new file with mode: 0644]
typo3/sysext/install/Resources/Public/Stylesheets/ie7.css [new file with mode: 0644]
typo3/sysext/install/mod/class.tx_install.php

index 69da622..b0a0a22 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-13  Patrick Broens  <patrick@patrickbroens.nl>
+
+       * Fixed bug #14379: CSS issues for Internet Explorer version 6 and 7 (thanks to Jigal van Hemert)
+
 2010-05-12  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Follow-up to bug #14360: htmlArea RTE: Toolbar and context menu styling needs adjustments
diff --git a/typo3/sysext/install/Resources/Public/Stylesheets/ie6.css b/typo3/sysext/install/Resources/Public/Stylesheets/ie6.css
new file mode 100644 (file)
index 0000000..562031f
--- /dev/null
@@ -0,0 +1,23 @@
+@CHARSET "UTF-8";
+
+/* IE6 only styles */
+
+/* center align for install tool */
+body {
+       text-align: center;
+}
+
+#t3-install-outer {
+       text-align: left;
+}
+
+/* fix width and position of right hand section */
+#t3-install-right {
+       width: 56em;
+       padding-left: 0px !important;
+}
+
+/* fix background image in menu */
+#t3-install-menu li {
+       height: 1%;
+}
\ No newline at end of file
diff --git a/typo3/sysext/install/Resources/Public/Stylesheets/ie7.css b/typo3/sysext/install/Resources/Public/Stylesheets/ie7.css
new file mode 100644 (file)
index 0000000..6d82301
--- /dev/null
@@ -0,0 +1,12 @@
+@CHARSET "UTF-8";
+
+/* IE7 only styles */
+
+/* fix position of right hand section */
+#t3-install-right {
+       padding-left: 0px !important;
+}
+/* fix background image in menu */
+#t3-install-menu li {
+       height: 1%;
+}
\ No newline at end of file
index e4227a6..de801d6 100755 (executable)
@@ -7635,6 +7635,26 @@ $out="
                                'sysext/install/Resources/Public/Stylesheets/general.css'
                        ) . '" />';
 
+                       // Get the browser info
+               $browserInfo = t3lib_utility_Client::getBrowserInfo(t3lib_div::getIndpEnv('HTTP_USER_AGENT'));
+
+                       // Add the stylesheet for Internet Explorer
+               if ($browserInfo['browser'] === 'msie') {
+                               // IE7
+                       if (intval($browserInfo['version']) === 7) {
+                               $this->stylesheets[] = '<link rel="stylesheet" type="text/css" href="' .
+                                       t3lib_div::createVersionNumberedFilename($this->backPath .
+                                               'sysext/install/Resources/Public/Stylesheets/ie7.css'
+                               ) . '" />';
+                               // IE6
+                       } elseif (intval($browserInfo['version']) < 7) {
+                               $this->stylesheets[] = '<link rel="stylesheet" type="text/css" href="' .
+                                       t3lib_div::createVersionNumberedFilename($this->backPath .
+                                               'sysext/install/Resources/Public/Stylesheets/ie6.css'
+                               ) . '" />';
+                       }
+               }
+
                        // Include the stylesheets based on screen
                if ($this->mode == '123') {
                        $this->stylesheets[] = '<link rel="stylesheet" type="text/css" href="' .