From 474417aebfd868066465c05196f0b39ea9e45e7f Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Thu, 18 Sep 2003 18:30:50 +0000 Subject: [PATCH] Bug #219591 --> Don't bring in button.css from classic\themes. This brings in a bunch of old style rules for toolbar buttons which don't apply anymore including a style that forces a 47 pixel width on toolbar buttons. Add style rules to add 2pixels of padding to small toolbar icons. --- mail/base/skin/communicator.css | 1 - mail/base/skin/primaryToolbar.css | 32 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/mail/base/skin/communicator.css b/mail/base/skin/communicator.css index 9b26ac0c86c5..021b2bf78db7 100644 --- a/mail/base/skin/communicator.css +++ b/mail/base/skin/communicator.css @@ -41,7 +41,6 @@ @import url("chrome://global/skin/"); @import url("chrome://communicator/content/communicator.css"); -@import url("chrome://communicator/skin/button.css"); @import url("chrome://communicator/skin/formatting.css"); @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); diff --git a/mail/base/skin/primaryToolbar.css b/mail/base/skin/primaryToolbar.css index 71f6eea872db..7201a314b382 100644 --- a/mail/base/skin/primaryToolbar.css +++ b/mail/base/skin/primaryToolbar.css @@ -404,6 +404,38 @@ toolbar[iconsize="small"] #button-previous:hover { toolbar[iconsize="small"] #button-previous[disabled] { -moz-image-region: rect(40px 260px 60px 240px) !important; } + +/* Smaller padding on small toolbar buttons */ + +toolbar[iconsize="small"] .toolbarbutton-1 { + padding: 2px; +} + +toolbar[iconsize="small"] .toolbarbutton-1:hover:active, +toolbar[iconsize="small"] .toolbarbutton-1[open="true"] { + padding: 3px 1px 1px 3px; +} + +toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"], +toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"]:hover, +toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"]:hover:active, +toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"][open="true"] { + padding: 2px; +} + +toolbar[iconsize="small"] .toolbarbutton-1[checked="true"] { + padding: 3px 1px 1px 3px !important; +} + +toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"], +toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"]:hover, +toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"]:hover:active, +toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][open="true"], +toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][disabled="true"], +toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][disabled="true"]:hover, +toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][disabled="true"]:hover:active { + padding: 0; +} /* ::::: end small primary toolbar buttons ::::: */