Bug 722758 - Print button is misaligned in the Mail & News toolbar with the Modern theme r/a=philip.chee SEAMONKEY_2_8b2_BUILD1 SEAMONKEY_2_8b2_RELEASE
authorIan Neal <iann_cvs@blueyonder.co.uk>
Mon, 06 Feb 2012 23:39:16 +0000
changeset 10164 458dad0ffd8f159c5f552b9b36a0b0f8d1449b57
parent 10163 e7a7144bdb7f78dc86451dfd5adda242bb7e9aad
child 10165 68aabd80cc59af87d824a0fa5c328a810b4f9b82
child 10167 227876aaf64da489d9eac67906d384a277536a2b
push idunknown
push userunknown
push dateunknown
bugs722758
Bug 722758 - Print button is misaligned in the Mail & News toolbar with the Modern theme r/a=philip.chee
suite/themes/modern/messenger/primaryToolbar.css
--- a/suite/themes/modern/messenger/primaryToolbar.css
+++ b/suite/themes/modern/messenger/primaryToolbar.css
@@ -260,16 +260,43 @@ toolbarpaletteitem > #button-delete {
 #button-junk:hover:active {
   -moz-image-region: rect(544px 149px 577px 100px);
 }
 
 #button-junk[disabled="true"] {
   -moz-image-region: rect(544px 199px 577px 150px) !important;
 }
 
+/* To workaround the mailnews icons are 33px tall and have no small versions */
+toolbar[iconsize="small"] > toolbarpaletteitem > #print-button,
+toolbar[iconsize="small"] > #print-button {
+  list-style-image: url("chrome://communicator/skin/icons/common.png");
+}
+
+toolbar[iconsize="small"] > toolbarpaletteitem > #print-button,
+toolbar[iconsize="small"] > #print-button,
+#print-button {
+  -moz-image-region: rect(5px 42px 38px 0);
+}
+
+toolbar[iconsize="small"] > #print-button:hover,
+#print-button:hover {
+  -moz-image-region: rect(5px 84px 38px 42px);
+}
+
+toolbar[iconsize="small"] > #print-button:hover:active,
+#print-button:hover:active {
+  -moz-image-region: rect(5px 126px 38px 84px);
+}
+
+toolbar[iconsize="small"] > #print-button[disabled="true"],
+#print-button[disabled="true"] {
+  -moz-image-region: rect(5px 168px 38px 126px) !important;
+}
+
 #button-stop {
   list-style-image: url("chrome://communicator/skin/icons/btn1.gif");
   -moz-image-region: rect(68px 49px 101px 0);
 }
 
 #button-stop:hover {
   -moz-image-region: rect(68px 99px 101px 50px);
 }