From 51001e58b574edac90f2bf8193da351ae0287ea7 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Fri, 13 May 2011 04:35:17 -0400 Subject: [PATCH] - Fix IE8 issue on folders list in folder manager --- skins/default/iehacks.css | 230 ++++++++++++++++++++++++++++++++++---------------------- 1 files changed, 139 insertions(+), 91 deletions(-) diff --git a/skins/default/iehacks.css b/skins/default/iehacks.css index 82c9e99..1b77797 100644 --- a/skins/default/iehacks.css +++ b/skins/default/iehacks.css @@ -1,4 +1,3 @@ -/* CSS hacks for IE versions <= 7 */ input, textarea { @@ -8,61 +7,94 @@ background-color: expression(this.type=='checkbox' || this.type=='radio' ? 'transparent' : '#ffffff'); } +#login-form form +{ + margin-top: 0; +} + +.pagenav a.buttonPas +{ + filter: alpha(opacity=35); +} + #message { filter: alpha(opacity=85); } -#markmessagemenu, -#searchmenu, -#messagemenu +.popupmenu { - filter: alpha(opacity=90); + background-color: #ffffff; } -#tabsbar +#tabsbar, +#partheader { width: expression((parseInt(document.documentElement.clientWidth)-240)+'px'); } -#userprefs-box +#mainscreen, +#directorylistbox, +#addressscreen { - height: expression((parseInt(document.documentElement.clientHeight)-155)+'px'); + height: expression((parseInt(document.documentElement.clientHeight)-105)+'px'); +} + +#mainscreen, +#messagepartcontainer +{ width: expression((parseInt(document.documentElement.clientWidth)-40)+'px'); -} - -.userprefs-block -{ - width: expression(Math.min(520, parseInt(document.documentElement.clientWidth))+'px'); -} - -#folder-manager -{ - height: expression((parseInt(document.documentElement.clientHeight)-235)+'px'); -} - -#identities-list -{ - height: expression((parseInt(document.documentElement.clientHeight)-155)+'px'); } #messagetoolbar { - width: expression((parseInt(document.documentElement.clientWidth)-400)+'px'); + width: expression((parseInt(document.documentElement.clientWidth)-215)+'px'); + z-index: 240; } -#mainscreen +#messagetoolbar select.mboxlist { - width: expression((parseInt(document.documentElement.clientWidth)-40)+'px'); - height: expression((parseInt(document.documentElement.clientHeight)-125)+'px'); + margin: 0 8px; + top: 8px; } -#directorylist +#abooktoolbar a.buttonPas { - height: expression((parseInt(document.documentElement.clientHeight)-125)+'px'); + filter: alpha(opacity=35); + background-image: url(images/abook_toolbar.gif); } -#addresslist +#messagetoolbar a.buttonPas +{ + filter: alpha(opacity=35); + background-image: url(images/mail_toolbar.gif); +} + +#listcontrols a.buttonPas +{ + filter: alpha(opacity=35); +} + +#quicksearchbar +{ + z-index: 250; +} + +#addresslist, +#sectionslist, +#identities-list, +#mailleftcontainer, +#mailrightcontainer, +#compose-container, +#compose-attachments, +#mailcontframe, +#mailboxlist-container, +#mailrightcontent, +#messageframe, +#identity-details, +#contacts-box, +#prefs-box, +#folder-box { height: expression(parseInt(this.parentNode.offsetHeight)+'px'); } @@ -70,66 +102,51 @@ #mailrightcontainer { width: expression((parseInt(this.parentNode.offsetWidth)-170)+'px'); - height: expression(parseInt(this.parentNode.offsetHeight)+'px'); } #messagepartcontainer { - width: expression((parseInt(document.documentElement.clientWidth)-40)+'px'); - height: expression((parseInt(document.documentElement.clientHeight)-100)+'px'); + height: expression((parseInt(document.documentElement.clientHeight)-90)+'px'); } -#mailcontframe +#mailrightcontent { - height: expression(parseInt(this.parentNode.offsetHeight)+'px'); + width: 100%; } -#mailpreviewframe +#compose-div { - height: expression((parseInt(this.parentNode.offsetHeight)-205)+'px'); + height: expression((parseInt(this.parentNode.offsetHeight)-1-parseInt(document.getElementById('compose-headers').offsetHeight))+'px'); } -#partheader +#messagelist { - width: expression((parseInt(document.documentElement.clientWidth)-240)+'px'); + width: inherit; + *width: auto; /* IE6/7 conditional hack */ + border-collapse: collapse; } -#mailboxlist-container +#messagelist thead tr td, +#messagelist tbody tr td { - height: expression(parseInt(this.parentNode.offsetHeight)+'px'); + height: 18px; } -#mailfooter +#messagelist tbody tr.unroot td.subject { - width: expression((parseInt(document.documentElement.clientWidth)-40)+'px'); -} - -#messagelist, -#subscription-table -{ - width: auto; + text-decoration: underline; } #messageframe { - width: expression((parseInt(this.parentNode.offsetWidth)-170)+'px'); - height: expression((parseInt(this.parentNode.offsetHeight))+'px'); + width: expression((parseInt(this.parentNode.offsetWidth)-180)+'px'); + overflow: hidden; } -#messagecanvas +#countcontrols { - width: expression((parseInt(this.parentNode.offsetWidth)-20)+'px'); -} - -#printmessageframe -{ - width: expression((parseInt(document.documentElement.clientWidth)-220)+'px'); - height: expression((parseInt(document.documentElement.clientHeight)-125)+'px'); -} - -#attachment-list -{ - height: expression(Math.min(16, parseInt(document.documentElement.clientHeight))+'px'); + width: 24em; + padding-right: 10px; } body.iframe @@ -137,28 +154,16 @@ width: expression((parseInt(document.documentElement.clientWidth))+'px'); } -#compose-container +div.message-part pre, +div.message-htmlpart pre, +div.message-part div.pre { - width: expression((parseInt(document.documentElement.clientWidth)-210)+'px'); - height: expression((parseInt(document.documentElement.clientHeight)-120)+'px'); -} - -#compose-body, -#compose-headers td textarea, -#compose-headers td input -{ - width: 99%; + word-wrap: break-word; } #addressscreen { - width: expression((parseInt(document.documentElement.clientWidth)-220)+'px'); - height: expression((parseInt(document.documentElement.clientHeight)-125)+'px'); -} - -#importbox -{ - height: expression((parseInt(document.documentElement.clientHeight)-135)+'px'); + width: expression((parseInt(document.documentElement.clientWidth)-245)+'px'); } #contacts-table @@ -166,29 +171,72 @@ width: expression(document.getElementById('addresslist').clientWidth); } -#contacts-box +#contacts-box, +#prefs-box, +#folder-box { - height: expression(parseInt(this.parentNode.offsetHeight)+'px'); width: expression((parseInt(this.parentNode.offsetWidth)-555)+'px'); -} - -#identity-details -{ - width: expression((parseInt(document.documentElement.clientWidth)-470)+'px'); - height: expression((parseInt(document.documentElement.clientHeight)-155)+'px'); + overflow: hidden; } #rcmdraglayer { - filter: alpha(opacity=70); + filter: alpha(opacity=82); + padding-left: 20px; } +div.draglayercopy +{ + border-color: #00cc00; + background: url(images/messageactions.png) 0 -125px no-repeat #fff; +} + +html.ie8 .draglayercopy:before +{ + content: ""; + display: none; +} + +ul.toolbarmenu +{ + margin: 0 0 -4px 0; +} + +.popupmenu ul li, ul.toolbarmenu li { min-width: auto; } +.popupmenu ul li a, ul.toolbarmenu li a { min-height: auto; -} \ No newline at end of file +} + +#console +{ + filter: alpha(opacity=80); +} + +table.records-table thead tr td +{ + height: 19px; +} + +#listmenu fieldset +{ + margin: 0 4px; + padding: 0.8em; +} + +#listcontrols input +{ + margin-top: 2px; +} + +.contactfieldgroup legend +{ + padding: 0 0 0.5em 0; + margin-left: -4px; +} -- Gitblit v1.9.1