commit 24ea6dbb5c06514853d0de569e91096b85f27216
parent 7d4432cc8a21f63ef5e0805b5cc739dff105d291
Author: Simon Kornblith <simon@simonster.com>
Date: Tue, 8 Sep 2009 20:53:03 +0000
Fix buttons so that they work on FF3.0
Diffstat:
3 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml
@@ -809,7 +809,7 @@
// Switch to single-field mode
if (fieldMode == 1) {
- button.style.MozBorderImage = 'url("chrome://zotero/skin/textfield-dual.png") 0 0 0 0 stretch';
+ button.style.backgroundImage = 'url("chrome://zotero/skin/textfield-dual.png")';
button.setAttribute('tooltiptext', Zotero.getString('pane.item.switchFieldMode.two'));
lastName.setAttribute('fieldMode', '1');
button.setAttribute('onclick', "document.getBindingParent(this).switchCreatorMode(Zotero.getAncestorByTagName(this, 'row'), 0)");
@@ -840,7 +840,7 @@
}
// Switch to two-field mode
else {
- button.style.MozBorderImage = 'url("chrome://zotero/skin/textfield-single.png") 0 0 0 0 stretch';
+ button.style.backgroundImage = 'url("chrome://zotero/skin/textfield-single.png")';
button.setAttribute('tooltiptext', Zotero.getString('pane.item.switchFieldMode.one'));
lastName.setAttribute('fieldMode', '0');
button.setAttribute('onclick', "document.getBindingParent(this).switchCreatorMode(Zotero.getAncestorByTagName(this, 'row'), 1)");
diff --git a/chrome/skin/default/zotero/bindings/itembox.css b/chrome/skin/default/zotero/bindings/itembox.css
@@ -152,5 +152,8 @@ hbox.zotero-date-field-status label
height: 14px;
padding: 0 !important;
margin: 0 5px 0 0 !important;
- border-width: 3px !important;
+ background-repeat: no-repeat !important;
+ background-position: center !important;
+ border-width: 0 !important;
+ -moz-border-radius: 4px !important;
}
\ No newline at end of file
diff --git a/chrome/skin/default/zotero/zotero.css b/chrome/skin/default/zotero/zotero.css
@@ -159,24 +159,29 @@ zoteromergepane {
}
.zotero-clicky[value="-"] {
- -moz-border-image: url('chrome://zotero/skin/minus.png') 0 0 0 0 stretch;
+ background-image: url('chrome://zotero/skin/minus.png') !important;
+ background-position: center !important;
+ background-repeat: no-repeat !important;
+ border: 0px !important;
}
.zotero-clicky[value="+"] {
- -moz-border-image: url('chrome://zotero/skin/plus.png') 0 0 0 0 stretch;
+ background-image: url('chrome://zotero/skin/plus.png') !important;
+ background-position: center !important;
+ background-repeat: no-repeat !important;
+ border: 0px !important;
}
.zotero-clicky[value="+"][disabled=true] {
- -moz-border-image: url('chrome://zotero/skin/plus.png') 0 0 0 0 stretch;
opacity: .5;
}
.zotero-clicky[value="+"]:not([disabled=true]):active {
- -moz-border-image: url('chrome://zotero/skin/plus-active.png') 0 0 0 0 stretch;
+ background-image: url('chrome://zotero/skin/plus-active.png') !important;
}
.zotero-clicky[value="-"]:not([disabled=true]):active {
- -moz-border-image: url('chrome://zotero/skin/minus-active.png') 0 0 0 0 stretch;
+ background-image: url('chrome://zotero/skin/minus-active.png') !important;
}
.zotero-clicky:not([disabled=true]):hover,