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 | 70 +++++++++++++++++++++------------- 1 files changed, 43 insertions(+), 27 deletions(-) diff --git a/skins/default/mail.css b/skins/default/mail.css index 69762b6..2f83578 100644 --- a/skins/default/mail.css +++ b/skins/default/mail.css @@ -133,7 +133,7 @@ { position: absolute; bottom: 16px; - right: 30px; + right: 20px; width: 300px; height: 20px; text-align: right; @@ -163,13 +163,13 @@ position: absolute; top: 85px; left: 200px; - right: 30px; + right: 20px; bottom: 40px; border: 1px solid #999999; background-color: #F9F9F9; overflow: auto; /* css hack for IE */ - width: expression((parseInt(document.documentElement.clientWidth)-230)+'px'); + width: expression((parseInt(document.documentElement.clientWidth)-220)+'px'); height: expression((parseInt(document.documentElement.clientHeight)-125)+'px'); } @@ -178,12 +178,12 @@ position: absolute; top: 305px; left: 200px; - right: 30px; + right: 20px; bottom: 40px; border: 1px solid #999999; background-color: #F9F9F9; /* css hack for IE */ - width: expression((parseInt(document.documentElement.clientWidth)-230)+'px'); + width: expression((parseInt(document.documentElement.clientWidth)-220)+'px'); height: expression((parseInt(document.documentElement.clientHeight)-135-document.getElementById('mailcontframe').offsetHeight)+'px'); } @@ -195,7 +195,7 @@ right: 0px; bottom: 0px; /* css hack for IE */ - width: expression((parseInt(document.documentElement.clientWidth)-230)+'px'); + width: expression((parseInt(document.documentElement.clientWidth)-220)+'px'); height: expression((parseInt(document.documentElement.clientHeight)-135-document.getElementById('mailcontframe').offsetHeight)+'px'); } @@ -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 @@ -252,7 +255,7 @@ position: absolute; top: 85px; left: 20px; - width: 160px; + width: 170px; bottom: 40px; border: 1px solid #999; background-color: #F9F9F9; @@ -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; @@ -559,14 +563,14 @@ position: absolute; top: 85px; left: 200px; - right: 30px; + right: 20px; bottom: 40px; border: 1px solid #999; background-color: #FFF; overflow: auto; /* css hack for IE */ /* margin-bottom: 10px; */ - width: expression((parseInt(document.documentElement.clientWidth)-230)+'px'); + width: expression((parseInt(document.documentElement.clientWidth)-220)+'px'); height: expression((parseInt(document.documentElement.clientHeight)-125)+'px'); } @@ -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(this.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 @@ -745,12 +761,12 @@ position: absolute; top: 90px; left: 200px; - right: 40px; - bottom: 40px; + right: 25px; + bottom: 30px; padding: 0px; margin: 0px; /* css hack for IE */ - width: expression((parseInt(document.documentElement.clientWidth)-240)+'px'); + width: expression((parseInt(document.documentElement.clientWidth)-220)+'px'); height: expression((parseInt(document.documentElement.clientHeight)-130)+'px'); } -- Gitblit v1.9.1