-/* ::::: primary toolbar buttons ::::: */
-
-#button-send
- {
- list-style-image : url("chrome://messenger/skin/messengercompose/send.gif");
- }
-
-#button-send[disabled="true"],
-#button-send[disabled="true"]:hover,
-#button-send[disabled="true"]:hover:active
- {
- list-style-image : url("chrome://messenger/skin/messengercompose/send-disabled.gif");
- }
-
-#button-send:hover,
-#button-send:hover:active
- {
- list-style-image : url("chrome://messenger/skin/messengercompose/send-hover.gif");
- }
-
-#button-send[offline="true"]
- {
- list-style-image : url("chrome://messenger/skin/messengercompose/sendlater.gif");
- }
-
-#button-send[offline="true"][disabled="true"],
-#button-send[offline="true"][disabled="true"]:hover,
-#button-send[offline="true"][disabled="true"]:hover:active
- {
- list-style-image : url("chrome://messenger/skin/messengercompose/sendlater-disabled.gif");
- }
-
-#button-send[offline="true"]:hover,
-#button-send[offline="true"]:hover:active
- {
- list-style-image : url("chrome://messenger/skin/messengercompose/sendlater-hover.gif");
- }
-
-#button-address
- {
- list-style-image : url("chrome://messenger/skin/messengercompose/address.gif");
- }
-
-#button-address[disabled="true"],
-#button-address[disabled="true"]:hover,
-#button-address[disabled="true"]:hover:active
- {
- list-style-image : url("chrome://messenger/skin/messengercompose/address-disabled.gif");
- }
-
-#button-address:hover,
-#button-address:hover:active
- {
- list-style-image : url("chrome://messenger/skin/messengercompose/address-hover.gif");
- }
-
-#button-attach
- {
- list-style-image : url("chrome://messenger/skin/messengercompose/attach.gif");
- }
-
-#button-attach[disabled="true"],
-#button-attach[disabled="true"]:hover,
-#button-attach[disabled="true"]:hover:active
- {
- list-style-image : url("chrome://messenger/skin/messengercompose/attach-disabled.gif");
- }
-
-#button-attach:hover,
-#button-attach:hover:active
- {
- list-style-image : url("chrome://messenger/skin/messengercompose/attach-hover.gif");
- }
-
-#button-quote
- {
- list-style-image : url("chrome://messenger/skin/messengercompose/quote.gif");
- }
-
-#button-quote[disabled="true"],
-#button-quote[disabled="true"]:hover,
-#button-quote[disabled="true"]:hover:active
- {
- list-style-image : url("chrome://messenger/skin/messengercompose/quote-disabled.gif");
- }
-
-#button-quote:hover,
-#button-quote:hover:active
- {
- list-style-image : url("chrome://messenger/skin/messengercompose/quote-hover.gif");
- }
-
-#spellingButton
- {
- list-style-image : url("chrome://editor/skin/images/spell.gif");
- }
-
-#spellingButton[disabled="true"],
-#spellingButton[disabled="true"]:hover,
-#spellingButton[disabled="true"]:hover:active
- {
- list-style-image : url("chrome://editor/skin/images/spell-disabled.gif");
- }
+#button-send[disabled="true"] {
+ -moz-image-region: rect(231px 50px 252px 25px);
+}
+
+#button-send:not([disabled="true"]):hover,
+#button-send:not([disabled="true"]):hover:active {
+ -moz-image-region: rect(231px 75px 252px 50px);
+}
+
+#button-send[offline="true"] {
+ -moz-image-region: rect(273px 25px 294px 0px);
+}
+
+#button-send[offline="true"][disabled="true"] {
+ -moz-image-region: rect(273px 50px 294px 25px);
+}
+
+#button-send[offline="true"]:not([disabled="true"]):hover,
+#button-send[offline="true"]:not([disabled="true"]):hover:active {
+ -moz-image-region: rect(273px 75px 294px 50px);
+}
+
+#button-address {
+ list-style-image: url("chrome://messenger/skin/icons/messengericons.png");
+ -moz-image-region: rect(189px 25px 210px 0px);
+}
+
+#button-address[disabled="true"] {
+ -moz-image-region: rect(189px 50px 210px 25px);
+}
+
+#button-address:not([disabled="true"]):hover,
+#button-address:not([disabled="true"]):hover:active {
+ -moz-image-region: rect(189px 75px 210px 50px);
+}
+
+#button-attach {
+ list-style-image: url("chrome://messenger/skin/icons/messengericons.png");
+ -moz-image-region: rect(210px 25px 231px 0px);
+}
+
+#button-attach[disabled="true"] {
+ -moz-image-region: rect(210px 50px 231px 25px);
+}
+
+#button-attach:not([disabled="true"]):hover,
+#button-attach:not([disabled="true"]):hover:active,
+#button-attach[open="true"] {
+ -moz-image-region: rect(210px 75px 231px 50px);
+}
+
+#spellingButton {
+ list-style-image: url("chrome://editor/skin/icons/spell.gif");
+}