diff --git a/chrome/content/zotero-platform/mac/overlay.css b/chrome/content/zotero-platform/mac/overlay.css index 298a9216e9..b449bf6d55 100644 --- a/chrome/content/zotero-platform/mac/overlay.css +++ b/chrome/content/zotero-platform/mac/overlay.css @@ -1,8 +1,3 @@ -#zotero-pane -{ - padding: 0 !important; -} - #zotero-splitter { border-top: none; @@ -112,62 +107,87 @@ } #zotero-view-tabbox > tabs { - -moz-appearance: -moz-mac-unified-toolbar; - padding: 2px; + -moz-appearance: none; + background: -moz-linear-gradient(top, #ededed, #cccccc); + border-style: solid; + border-width: 0 0 1px 0; + border-color: #5e5e5e; + padding: 2px 0 2px 0; +} + +#zotero-view-tabbox > tabs > tab > hbox { + padding: 0; } #zotero-view-tabbox > tabs > tab > hbox > .tab-icon { display: none; } -#zotero-view-tabbox > tabs > tab > hbox .tab-text { +#zotero-pane[ignoreActiveAttribute] #zotero-view-tabbox > tabs > tab { + -moz-box-orient: vertical; + -moz-box-align: center; + -moz-appearance: toolbarbutton; + -moz-user-focus: none; + text-align: center; + margin: 0; + padding: 3px 1px 3px 1px; +} + +#zotero-pane[ignoreActiveAttribute] #zotero-view-tabbox > tabs > tab > hbox .tab-text { + font-size: 11px; + font-weight: bold; + margin: 2px 7px 2px 9px !important; + text-shadow: 0 1px rgba(255, 255, 255, .4); +} + +/* This seems to be necessary to center the tabs. Not sure why. */ +#zotero-pane[ignoreActiveAttribute] #zotero-view-tabbox > tabs > tab:last-of-type > hbox .tab-text { + margin: 2px 9px 2px 9px !important; +} + +#zotero-pane[ignoreActiveAttribute] #zotero-view-tabbox > tabs > tab[selected=true] > hbox .tab-text { + color: #FFF !important; + text-shadow: rgba(0, 0, 0, 0.4) 0 1px; +} + +/** RULES FOR FX 3.6 **/ +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > tab > hbox .tab-text { text-shadow: rgba(255, 255, 255, 0.4) 0 1px !important; font-size: 11px; font-weight: bold; } -#zotero-view-tabbox > tabs > tab:active:hover > hbox > .tab-text, -#zotero-view-tabbox > tabs > tab[selected=true] > hbox > .tab-text { +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > tab:active:hover > hbox > .tab-text, +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > tab[selected=true] > hbox > .tab-text { text-shadow: none !important; } -#zotero-view-tabbox > tabs > tab { +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > tab { -moz-box-orient: vertical; -moz-box-align: center; -moz-appearance: none; margin: 0; - padding: 3px 0 0; + padding: 3px 0 1px; background-color: transparent; border: solid transparent; border-width: 0 4px 0 5px; -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-middle.png") 0 4 0 5 repeat stretch; } -#zotero-view-tabbox > tabs > tab:active:hover { +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > tab:active:hover { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-middle-down.png") 0 4 0 5 repeat stretch; text-shadow: none !important; } -#zotero-view-tabbox > tabs > tab[selected=true] { +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > tab[selected=true] { color: #FFF !important; text-shadow: rgba(0, 0, 0, 0.4) 0 1px; -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-middle-selected.png") 0 4 0 5 repeat stretch; } -#zotero-view-tabbox > tabs > tab[selected=true]:active:hover { +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > tab[selected=true]:active:hover { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-middle-selected-down.png") 0 4 0 5 repeat stretch; } -#zotero-view-tabbox:-moz-window-inactive > tabs > * { - color: #7C7C7C !important; - -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-middle-inactive.png") 0 4 0 5 repeat stretch; -} - -#zotero-view-tabbox:-moz-window-inactive > tabs > tab[selected=true] { - color: #FFF !important; - -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-middle-selected-inactive.png") 0 4 0 5 repeat stretch; -} - -/* Since Fx < 4 doesn't recognize the -moz-window-inactive pseudoclass as valid, these have to be separate (duplicate) rules to be parsed */ :root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > * { color: #7C7C7C !important; -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-middle-inactive.png") 0 4 0 5 repeat stretch; @@ -178,58 +198,42 @@ -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-middle-selected-inactive.png") 0 4 0 5 repeat stretch; } -#zotero-view-tabbox > tabs > :first-child, -#zotero-view-tabbox > tabs > [first-visible], -#zotero-view-tabbox > tabs[chromedir=rtl] > :last-child, -#zotero-view-tabbox > tabs[chromedir=rtl] > [last-visible] { +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > :first-child, +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > [first-visible], +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > :last-child, +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > [last-visible] { border-width: 0 4px 0 6px; -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-left.png") 0 4 0 6 repeat stretch; } -#zotero-view-tabbox > tabs > :first-child:active:hover, -#zotero-view-tabbox > tabs > [first-visible]:active:hover, -#zotero-view-tabbox > tabs[chromedir=rtl] > :last-child:active:hover, -#zotero-view-tabbox > tabs[chromedir=rtl] > [last-visible]:active:hover { +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > :first-child:active:hover, +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > [first-visible]:active:hover, +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > :last-child:active:hover, +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > [last-visible]:active:hover { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-left-down.png") 0 4 0 6 repeat stretch; } -#zotero-view-tabbox > tabs > tab:first-child[selected=true], -#zotero-view-tabbox > tabs > tab[first-visible][selected=true], -#zotero-view-tabbox > tabs[chromedir=rtl] > tab:last-child[selected=true], -#zotero-view-tabbox > tabs[chromedir=rtl] > tab[last-visible][selected=true] { +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > tab:first-child[selected=true], +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > tab[first-visible][selected=true], +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab:last-child[selected=true], +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab[last-visible][selected=true] { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-left-selected.png") 0 4 0 6 repeat stretch; } -#zotero-view-tabbox > tabs > tab:first-child[selected=true]:active:hover, -#zotero-view-tabbox > tabs > tab[first-visible][selected=true]:active:hover, -#zotero-view-tabbox > tabs[chromedir=rtl] > tab:last-child[selected=true]:active:hover, -#zotero-view-tabbox > tabs[chromedir=rtl] > tab[last-visible][selected=true]:active:hover { +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > tab:first-child[selected=true]:active:hover, +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > tab[first-visible][selected=true]:active:hover, +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab:last-child[selected=true]:active:hover, +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab[last-visible][selected=true]:active:hover { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-left-selected-down.png") 0 4 0 6 repeat stretch; } -#zotero-view-tabbox:-moz-window-inactive > tabs > :first-child, -#zotero-view-tabbox:-moz-window-inactive > tabs > [first-visible], -#zotero-view-tabbox:-moz-window-inactive > tabs[chromedir=rtl] > :last-child, -#zotero-view-tabbox:-moz-window-inactive > tabs[chromedir=rtl] > [last-visible] { - -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-left-inactive.png") 0 4 0 6 repeat stretch; -} - -/* Since Fx4 doesn't recognize the -moz-window-inactive pseudoclass as valid, these have to be separate (duplicate) rules to be parsed */ - -:root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > :first-child, -:root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > [first-visible], -:root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > :last-child, -:root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > [last-visible] { +#zotero-pane:not([ignoreActiveAttribute]) :root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > :first-child, +#zotero-pane:not([ignoreActiveAttribute]) :root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > [first-visible], +#zotero-pane:not([ignoreActiveAttribute]) :root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > :last-child, +#zotero-pane:not([ignoreActiveAttribute]) :root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > [last-visible] { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-left-inactive.png") 0 4 0 6 repeat stretch; } -#zotero-view-tabbox:-moz-window-inactive > tabs > tab:first-child[selected=true], -#zotero-view-tabbox:-moz-window-inactive > tabs > tab[first-visible][selected=true], -#zotero-view-tabbox:-moz-window-inactive > tabs[chromedir=rtl] > tab:last-child[selected=true], -#zotero-view-tabbox:-moz-window-inactive > tabs[chromedir=rtl] > tab[last-visible][selected=true] { - -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-left-selected-inactive.png") 0 4 0 6 repeat stretch; -} - :root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > tab:first-child[selected=true], :root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > tab[first-visible][selected=true], :root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab:last-child[selected=true], @@ -237,46 +241,39 @@ -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-left-selected-inactive.png") 0 4 0 6 repeat stretch; } -#zotero-view-tabbox > tabs > :last-child, -#zotero-view-tabbox > tabs > [last-visible], -#zotero-view-tabbox > tabs[chromedir=rtl] > :first-child, -#zotero-view-tabbox > tabs[chromedir=rtl] > [first-visible] { +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > :last-child, +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > [last-visible], +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > :first-child, +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > [first-visible] { border-width: 0 6px 0 5px; -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-right.png") 0 6 0 5 repeat stretch; } -#zotero-view-tabbox > tabs > :last-child:active:hover, -#zotero-view-tabbox > tabs > [last-visible]:active:hover, -#zotero-view-tabbox > tabs[chromedir=rtl] > :first-child:active:hover, -#zotero-view-tabbox > tabs[chromedir=rtl] > [first-visible]:active:hover { +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > :last-child:active:hover, +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > [last-visible]:active:hover, +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > :first-child:active:hover, +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > [first-visible]:active:hover { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-right-down.png") 0 6 0 5 repeat stretch; } -#zotero-view-tabbox > tabs > tab:last-child[selected=true], -#zotero-view-tabbox > tabs > tab[last-visible][selected=true], -#zotero-view-tabbox > tabs[chromedir=rtl] > tab:first-child[selected=true], -#zotero-view-tabbox > tabs[chromedir=rtl] > tab[first-visible][selected=true] { +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > tab:last-child[selected=true], +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > tab[last-visible][selected=true], +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab:first-child[selected=true], +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab[first-visible][selected=true] { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-right-selected.png") 0 6 0 5 repeat stretch; } -#zotero-view-tabbox > tabs > tab:last-child[selected=true]:active:hover, -#zotero-view-tabbox > tabs > tab[last-visible][selected=true]:active:hover, -#zotero-view-tabbox > tabs[chromedir=rtl] > tab:first-child[selected=true]:active:hover, -#zotero-view-tabbox > tabs[chromedir=rtl] > tab[first-visible][selected=true]:active:hover { +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > tab:last-child[selected=true]:active:hover, +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > tab[last-visible][selected=true]:active:hover, +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab:first-child[selected=true]:active:hover, +#zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab[first-visible][selected=true]:active:hover { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-right-selected-down.png") 0 6 0 5 repeat stretch; } -#zotero-view-tabbox:-moz-window-inactive > tabs > :last-child, -#zotero-view-tabbox:-moz-window-inactive > tabs > [last-visible], -#zotero-view-tabbox:-moz-window-inactive > tabs[chromedir=rtl] > :first-child, -#zotero-view-tabbox:-moz-window-inactive > tabs[chromedir=rtl] > [first-visible] { - -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-right-inactive.png") 0 6 0 5 repeat stretch; -} - -:root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > :last-child, -:root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > [last-visible], -:root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > :first-child, -:root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > [first-visible] { +#zotero-pane:not([ignoreActiveAttribute]) :root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > :last-child, +#zotero-pane:not([ignoreActiveAttribute]) :root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > [last-visible], +#zotero-pane:not([ignoreActiveAttribute]) :root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > :first-child, +#zotero-pane:not([ignoreActiveAttribute]) :root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > [first-visible] { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-right-inactive.png") 0 6 0 5 repeat stretch; } @@ -286,12 +283,14 @@ #zotero-view-tabbox:-moz-window-inactive > tabs[chromedir=rtl] > tab[first-visible][selected=true] { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-right-selected-inactive.png") 0 6 0 5 repeat stretch; } + :root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > tab:last-child[selected=true], :root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs > tab[last-visible][selected=true], :root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab:first-child[selected=true], :root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) #zotero-view-tabbox > tabs[chromedir=rtl] > tab[first-visible][selected=true] { -moz-border-image: url("chrome://zotero/skin/mac/viewbutton-right-selected-inactive.png") 0 6 0 5 repeat stretch; } +/** END RULES FOR FX 3.6 **/ #zotero-collections-tree { -moz-appearance: none; diff --git a/chrome/content/zotero-platform/win/integration.css b/chrome/content/zotero-platform/win/integration.css index f466ab7f6a..38432c6c12 100644 --- a/chrome/content/zotero-platform/win/integration.css +++ b/chrome/content/zotero-platform/win/integration.css @@ -31,7 +31,7 @@ } #zotero-icon { - margin: 2px 0 0 3px; + margin: -1px 0 0 4px; -moz-appearance: none; } diff --git a/chrome/content/zotero-platform/win/itembox.css b/chrome/content/zotero-platform/win/itembox.css index e8d295155b..75cd061c55 100644 --- a/chrome/content/zotero-platform/win/itembox.css +++ b/chrome/content/zotero-platform/win/itembox.css @@ -7,7 +7,7 @@ row > vbox padding-bottom: 0 !important; } -row vbox[fieldname], +row vbox[fieldname] { margin-left: 1px; } diff --git a/chrome/content/zotero-platform/win/overlay.css b/chrome/content/zotero-platform/win/overlay.css index 2373ef4528..a2c5df7e60 100644 --- a/chrome/content/zotero-platform/win/overlay.css +++ b/chrome/content/zotero-platform/win/overlay.css @@ -48,10 +48,6 @@ padding-right: .7em; } -#zotero-pane { - padding: 0; -} - #zotero-toolbar { -moz-appearance: none !important; background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)); diff --git a/chrome/content/zotero/browser.js b/chrome/content/zotero/browser.js index b81672f224..a7d7a0287f 100644 --- a/chrome/content/zotero/browser.js +++ b/chrome/content/zotero/browser.js @@ -154,7 +154,7 @@ var Zotero_Browser = new function() { try { if (!ZoteroPane.collectionsView.editable) { Zotero_Browser.progress.changeHeadline(Zotero.getString("ingester.scrapeError")); - var desc = Zotero.getString('save.error.cannotMakeChangesToLibrary'); + var desc = Zotero.getString('save.error.cannotMakeChangesToCollection'); Zotero_Browser.progress.addDescription(desc); Zotero_Browser.progress.show(); Zotero_Browser.progress.startCloseTimer(8000); diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js index 732c51e732..1491ac0bbb 100644 --- a/chrome/content/zotero/integration/quickFormat.js +++ b/chrome/content/zotero/integration/quickFormat.js @@ -24,6 +24,7 @@ */ var Zotero_QuickFormat = new function () { + const pixelRe = /^([0-9]+)px$/ var initialized, io, qfs, qfi, qfiWindow, qfiDocument, qfe, qfb, qfbHeight, keepSorted, showEditor, referencePanel, referenceBox, referenceHeight = 0, separatorHeight = 0, currentLocator, currentLocatorLabel, currentSearchTime, dragging, panel, @@ -48,6 +49,8 @@ var Zotero_QuickFormat = new function () { document.documentElement.setAttribute("hidechrome", true); } + new WindowDraggingElement(document.getElementById("quick-format-dialog"), window); + qfs = document.getElementById("quick-format-search"); qfi = document.getElementById("quick-format-iframe"); qfb = document.getElementById("quick-format-entry"); @@ -742,10 +745,18 @@ var Zotero_QuickFormat = new function () { if(!panelFrameHeight) { panelFrameHeight = referencePanel.boxObject.height - referencePanel.clientHeight; + var computedStyle = window.getComputedStyle(referenceBox, null); + for each(var attr in ["border-top-width", "border-bottom-width"]) { + var val = computedStyle.getPropertyValue(attr); + if(val) { + var m = pixelRe.exec(val); + if(m) panelFrameHeight += parseInt(m[1], 10); + } + } } referencePanel.sizeTo(window.outerWidth-30, - numReferences*referenceHeight+numSeparators*separatorHeight+2*panelFrameHeight-1); + numReferences*referenceHeight+numSeparators*separatorHeight+panelFrameHeight); if(!panelShowing) _openReferencePanel(); } else if(panelShowing) { referencePanel.hidePopup(); diff --git a/chrome/content/zotero/integration/quickFormat.xul b/chrome/content/zotero/integration/quickFormat.xul index fb5df04eca..b82478f9d0 100644 --- a/chrome/content/zotero/integration/quickFormat.xul +++ b/chrome/content/zotero/integration/quickFormat.xul @@ -40,9 +40,10 @@ onkeypress="Zotero_QuickFormat.onKeyPress(event)">