From 9545fc93ebbd436afd6cc097b68d4b2605f25ee6 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Thu, 26 Aug 2010 02:45:25 +0200 Subject: [PATCH] improve mail header positioning, style net error buttons --- EarlyBlue/global/button.css | 11 +++++-- EarlyBlue/global/netError.css | 2 ++ EarlyBlue/install.rdf | 2 +- EarlyBlue/messenger/messageHeader.css | 43 +++++++++++++------------ LCARStrek/global/button.css | 11 +++++-- LCARStrek/global/netError.css | 2 ++ LCARStrek/install.rdf | 2 +- LCARStrek/messenger/messageHeader.css | 45 ++++++++++++--------------- 8 files changed, 63 insertions(+), 55 deletions(-) diff --git a/EarlyBlue/global/button.css b/EarlyBlue/global/button.css index 39406450..66963006 100644 --- a/EarlyBlue/global/button.css +++ b/EarlyBlue/global/button.css @@ -36,11 +36,9 @@ * ***** END LICENSE BLOCK ***** */ /* ===== button.css ===================================================== - == Styles used by the XUL button element. + == Styles used by the XUL (and XHTML in netError.xhtml) button element. ======================================================================= */ -@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); - /* :::::::::: button :::::::::: */ button { @@ -171,3 +169,10 @@ button[type="disclosure"] { button[type="disclosure"][open="true"] { list-style-image: url("chrome://global/skin/tree/twisty-open.gif"); } + +/* ::::: xhtml buttons ::::: */ + +button::-moz-focus-inner { + padding: 0px; + border: 0px none; +} diff --git a/EarlyBlue/global/netError.css b/EarlyBlue/global/netError.css index 19055400..163d4bc2 100644 --- a/EarlyBlue/global/netError.css +++ b/EarlyBlue/global/netError.css @@ -7,6 +7,8 @@ * Henrik Skupin */ +@import url("chrome://global/skin/button.css"); + html { background: #CCD0DD; } diff --git a/EarlyBlue/install.rdf b/EarlyBlue/install.rdf index 7d4f9dc6..ef220f15 100644 --- a/EarlyBlue/install.rdf +++ b/EarlyBlue/install.rdf @@ -12,7 +12,7 @@ {92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a} 2.1a3pre - 2.1a3pre + 2.1b1pre diff --git a/EarlyBlue/messenger/messageHeader.css b/EarlyBlue/messenger/messageHeader.css index 7135678f..8e692878 100644 --- a/EarlyBlue/messenger/messageHeader.css +++ b/EarlyBlue/messenger/messageHeader.css @@ -48,6 +48,7 @@ #collapsedHeaderView, #expandedHeaderView { min-width: 1px; + border-bottom: 1px solid #9999CC; } /* ::::: msg header buttons ::::: */ @@ -64,15 +65,18 @@ /* ::::: msg header captions ::::: */ -#msgHeaderView { - border-left: none; - border-right: none; +#expandedHeaders { + padding-bottom: 2px; } -#collapsedHeaderView, -#expandedHeaderView { - border-bottom: 1px solid #9999CC; - min-width: 1px; +mail-headerfield, +mail-toggle-headerfield, +mail-emailheaderfield, +mail-multi-emailHeaderField, +mail-messageids-headerfield, +mail-tagfield, +mail-urlfield { + padding-top: 2px; } .headerNameBox { @@ -82,27 +86,18 @@ .headerName { margin: 0; -moz-margin-end: .25em; - min-height: 16px; font-weight: bold; text-align: right; } .headerValue { - margin: 0 0 3px; + margin: 0; min-width: 50px; white-space: normal; color: inherit; background-color: transparent; } -.headerValueBox { - margin: 0 0 3px; -} - -.headerValueBox > .headerValue { - margin: 0; -} - .headerValueBox[singleline="true"] { overflow: hidden; } @@ -187,6 +182,10 @@ /* ::::: collapsed view styles ::::: */ +#collapsedHeaderView { + padding-top: 1px; +} + #collapsedAttachmentBox { -moz-box-pack: center; } @@ -209,20 +208,20 @@ } .collapsedHeaderDisplayName { - margin-top: 2px; - margin-bottom: 2px; + padding: 0; -moz-margin-start: .55em; -moz-margin-end: .5em; - min-height: 16px; font-weight: bold; } -.collapsedHeaderValue { +.collapsedHeaderValue, +#collapsedfromValue { background: transparent; - margin: 0; + padding: 0; } .collapsedAttachmentButton { list-style-image: url("chrome://messenger/skin/icons/message-mail-attach.gif"); + margin: 0; -moz-margin-end: .5em; } diff --git a/LCARStrek/global/button.css b/LCARStrek/global/button.css index 6616c44f..801281e1 100644 --- a/LCARStrek/global/button.css +++ b/LCARStrek/global/button.css @@ -36,11 +36,9 @@ * ***** END LICENSE BLOCK ***** */ /* ===== button.css ===================================================== - == Styles used by the XUL button element. + == Styles used by the XUL (and XHTML in netError.xhtml) button element. ======================================================================= */ -@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); - /* :::::::::: button :::::::::: */ button { @@ -184,3 +182,10 @@ button[type="disclosure"] { button[type="disclosure"][open="true"] { list-style-image: url("chrome://global/skin/tree/twisty-open.gif"); } + +/* ::::: xhtml buttons ::::: */ + +button::-moz-focus-inner { + padding: 0px; + border: 0px none; +} diff --git a/LCARStrek/global/netError.css b/LCARStrek/global/netError.css index 5678a31e..d2465caf 100644 --- a/LCARStrek/global/netError.css +++ b/LCARStrek/global/netError.css @@ -7,6 +7,8 @@ * Henrik Skupin */ +@import url("chrome://global/skin/button.css"); + html { background: #000000; } diff --git a/LCARStrek/install.rdf b/LCARStrek/install.rdf index 178db645..54d89525 100644 --- a/LCARStrek/install.rdf +++ b/LCARStrek/install.rdf @@ -12,7 +12,7 @@ {92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a} 2.1a3pre - 2.1a3pre + 2.1b1pre diff --git a/LCARStrek/messenger/messageHeader.css b/LCARStrek/messenger/messageHeader.css index e4cf6cee..3d1d5cea 100644 --- a/LCARStrek/messenger/messageHeader.css +++ b/LCARStrek/messenger/messageHeader.css @@ -68,18 +68,19 @@ /* ::::: msg header captions ::::: */ -#msgHeaderView { - border-left: none; - border-right: none; +#expandedHeaders { + padding-bottom: 2px; } -#collapsedHeaderView, -#expandedHeaderView { - border-left: none; - border-right: none; -/* border-bottom: 1px solid #9999CC; */ - min-width: 1px; - } +mail-headerfield, +mail-toggle-headerfield, +mail-emailheaderfield, +mail-multi-emailHeaderField, +mail-messageids-headerfield, +mail-tagfield, +mail-urlfield { + padding-top: 2px; +} .headerNameBox { width: 7.7em; @@ -88,27 +89,18 @@ .headerName { margin: 0; -moz-margin-end: .25em; - min-height: 16px; font-weight: bold; text-align: right; } .headerValue { - margin: 0 0 3px; + margin: 0; min-width: 50px; white-space: normal; color: inherit; background-color: transparent; } -.headerValueBox { - margin: 0 0 3px; -} - -.headerValueBox > .headerValue { - margin: 0; -} - .headerValueBox[singleline="true"] { overflow: hidden; } @@ -195,6 +187,11 @@ /* ::::: collapsed view styles ::::: */ +#collapsedHeaderView { + padding-top: 2px; + padding-bottom: 2px; +} + #collapsedAttachmentBox { -moz-box-pack: center; } @@ -222,22 +219,20 @@ } .collapsedHeaderDisplayName { - margin-top: 2px; - margin-bottom: 2px; + margin: 0; -moz-margin-start: .55em; -moz-margin-end: .5em; - min-height: 12px; font-weight: bold; } .collapsedHeaderValue, #collapsedfromValue { background: transparent; - margin: 2px 0px !important; + padding: 0; } .collapsedAttachmentButton { list-style-image: url("chrome://messenger/skin/icons/message-mail-attach.gif"); + margin: 0; -moz-margin-end: .5em; - margin-top: 1px; } -- 2.35.3