From 26f5b0935ef4d8bc01e2b8581f7d7ed3c4508fc2 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Fri, 22 Aug 2008 06:37:48 -0400
Subject: [PATCH] Fix keyboard control of the list widgets and prevent Safari from scrolling (#1485279)

---
 skins/default/mail.css |   46 +++++++++++++++++++++++++++++++---------------
 1 files changed, 31 insertions(+), 15 deletions(-)

diff --git a/skins/default/mail.css b/skins/default/mail.css
index d268e7f..2f83578 100644
--- a/skins/default/mail.css
+++ b/skins/default/mail.css
@@ -213,7 +213,10 @@
   position: absolute;
   top: 10px;
   left: 220px;
+  right: 20px;
   height: 40px;
+  /* css hack for IE */
+  width: expression((parseInt(document.documentElement.clientWidth)-240)+'px');
 }
 
 #partheader table td
@@ -277,7 +280,7 @@
 {
   font-size: 11px;
   background: url(images/icons/folder-closed.png) no-repeat;
-  background-position: 10px 1px;
+  background-position: 5px 1px;
   border-bottom: 1px solid #EBEBEB;
 }
 
@@ -309,7 +312,7 @@
 #mailboxlist li a
 {
   display: block;
-  padding-left: 32px;
+  padding-left: 25px;
   padding-top: 2px;
   padding-bottom: 2px;
   text-decoration: none;
@@ -356,7 +359,7 @@
 {
   position: absolute;
   left: 20px;
-  width: 170px;
+  width: 185px;
   bottom: 20px;
   height: 16px;
   overflow: hidden;
@@ -453,7 +456,8 @@
   vertical-align: middle;
 }
 
-#messagelist tr td.icon
+#messagelist tr td.icon,
+#messagelist tr td.flag
 {
   width: 16px;
   vertical-align: middle;
@@ -616,13 +620,13 @@
 #attachment-list
 {
   margin: 0px;
-  padding: 0px 0px 0px 68px;
-  min-height: 18px;
+  padding: 0px 0px 0px 72px;
+  min-height: 16px;
   list-style-image: none;
   list-style-type: none;
-  background: url(images/icons/attachment.png) 52px 1px no-repeat #DFDFDF;
-  /* css hack for IE */
-  height: expression(Math.min(18, parseInt(document.documentElement.clientHeight))+'px');
+  background: url(images/icons/attachment.png) 60px 2px no-repeat #DFDFDF;
+  /* IE6 hack */    
+  _height: expression(Math.min(16, parseInt(document.documentElement.clientHeight))+'px');
 }
 
 #attachment-list:after
@@ -640,7 +644,8 @@
   float: left;
   height: 18px;
   font-size: 11px;
-  padding: 2px 10px 0px 10px;
+  padding: 2px 0px 0px 15px;
+  white-space: nowrap;
 }
 
 #attachment-list li a
@@ -673,7 +678,8 @@
   border-top: 0;
 }
 
-div.message-part a
+div.message-part a,
+div.message-htmlpart a
 {
   color: #0000CC;
 }
@@ -682,9 +688,10 @@
 {
   margin: 0px;
   padding: 0px;
+  font-family: monospace;
   white-space: -moz-pre-wrap !important;
   white-space: pre;
-  font-family: monospace;
+  word-wrap: break-word; /* IE (and Safari) */
 }
 
 div.message-part blockquote
@@ -711,13 +718,22 @@
   border-right: 2px solid #bb0000;
 }
 
+body.iframe div.message-htmlpart
+{
+  margin: 8px;
+}
+
+div.message-htmlpart div.rcmBody
+{
+  margin: 8px;
+}
+
 #remote-objects-message
 {
   display: none;
-  height: 20px;
+  margin: 8px;
   min-height: 20px;
-  margin: 8px 8px 0px 8px;
-  padding: 10px 10px 6px 46px;  
+  padding: 10px 10px 6px 46px;
 }
 
 #remote-objects-message a

--
Gitblit v1.9.1