www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 3814c9307e0c9494778a04c28cfaa88a679591ec
parent 46fc6684c1b91ddf384571b0160779ac4c57d1d5
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue,  2 Aug 2011 15:27:36 +0000

Tweak spacing in Linux QuickFormat dialog


Diffstat:
Mchrome/content/zotero-platform/unix/integration.css | 26++++++++++++++++++++++++++
Mchrome/content/zotero/integration/quickFormat.js | 2++
Mchrome/content/zotero/integration/quickFormat.xul | 38++++++++++++++++++--------------------
3 files changed, 46 insertions(+), 20 deletions(-)

diff --git a/chrome/content/zotero-platform/unix/integration.css b/chrome/content/zotero-platform/unix/integration.css @@ -0,0 +1,25 @@ +body { + line-height: 1.5em; +} + +#quick-format-search:not([multiline="true"]) { + height: 27px !important; +} + +#quick-format-search { + background: white; + padding: 1px 2px 1px 0; + border: 1px solid rgba(0, 0, 0, 0.5); + -moz-appearance: none; +} + +#quick-format-dialog { + background: transparent; + -moz-appearance: none; + padding: 0; +} + +#zotero-icon { + margin: 3px 0 0 2px; + -moz-appearance: none; +} +\ No newline at end of file diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js @@ -75,6 +75,8 @@ var Zotero_QuickFormat = new function () { keepSorted.setAttribute("checked", "true"); } } + + window.sizeToContent(); } /** diff --git a/chrome/content/zotero/integration/quickFormat.xul b/chrome/content/zotero/integration/quickFormat.xul @@ -33,7 +33,7 @@ id="quick-format-dialog" orient="vertical" title="Quick Format Citation" - width="600" height="42" + width="600" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" persist="screenX screenY" @@ -42,26 +42,24 @@ <script src="../include.js"/> <script src="quickFormat.js"/> - <vbox id="zotero-select-items-container" flex="1"> - <hbox id="quick-format-entry" ondragstart="Zotero_QuickFormat.onDragStart(this, event)"> - <hbox id="quick-format-search" flex="1" align="start"> - <toolbarbutton id="zotero-icon" type="menu"> - <menupopup> - <menuitem id="keep-sorted" label="&zotero.citation.keepSorted.label;" - oncommand="Zotero_QuickFormat.onKeepSortedCommand()" type="checkbox" - hidden="true"/> - <menuitem id="show-editor" label="&zotero.integration.showEditor.label;" - oncommand="Zotero_QuickFormat.onShowEditorCommand()" type="checkbox" - hidden="true"/> - <menuitem id="classic-view" label="&zotero.integration.classicView.label;" - oncommand="Zotero_QuickFormat.onClassicViewCommand()"/> - </menupopup> - </toolbarbutton> - <iframe id="quick-format-iframe" ondragstart="event.stopPropagation()" src="data:application/xhtml+xml,%3C!DOCTYPE%20html%20PUBLIC%20%22-//W3C//DTD%20XHTML%201.0%20Strict//EN%22%20%22http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd%22%3E%3Chtml%20xmlns=%22http://www.w3.org/1999/xhtml%22%3E%3Chead%3E%3Clink%20rel=%22stylesheet%22%20type=%22text/css%22%20href=%22chrome://zotero/skin/integration.css%22/%3E%3Clink%20rel=%22stylesheet%22%20type=%22text/css%22%20href=%22chrome://zotero-platform/content/integration.css%22/%3E%3C/head%3E%3Cbody%20contenteditable=%22true%22%20id=%22quick-format-editor%22/%3E%3C/html%3E" - tabindex="1" flex="1"/> - </hbox> + <hbox id="quick-format-entry" ondragstart="Zotero_QuickFormat.onDragStart(this, event)"> + <hbox id="quick-format-search" flex="1" align="start"> + <toolbarbutton id="zotero-icon" type="menu"> + <menupopup> + <menuitem id="keep-sorted" label="&zotero.citation.keepSorted.label;" + oncommand="Zotero_QuickFormat.onKeepSortedCommand()" type="checkbox" + hidden="true"/> + <menuitem id="show-editor" label="&zotero.integration.showEditor.label;" + oncommand="Zotero_QuickFormat.onShowEditorCommand()" type="checkbox" + hidden="true"/> + <menuitem id="classic-view" label="&zotero.integration.classicView.label;" + oncommand="Zotero_QuickFormat.onClassicViewCommand()"/> + </menupopup> + </toolbarbutton> + <iframe id="quick-format-iframe" ondragstart="event.stopPropagation()" src="data:application/xhtml+xml,%3C!DOCTYPE%20html%20PUBLIC%20%22-//W3C//DTD%20XHTML%201.0%20Strict//EN%22%20%22http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd%22%3E%3Chtml%20xmlns=%22http://www.w3.org/1999/xhtml%22%3E%3Chead%3E%3Clink%20rel=%22stylesheet%22%20type=%22text/css%22%20href=%22chrome://zotero/skin/integration.css%22/%3E%3Clink%20rel=%22stylesheet%22%20type=%22text/css%22%20href=%22chrome://zotero-platform/content/integration.css%22/%3E%3C/head%3E%3Cbody%20contenteditable=%22true%22%20id=%22quick-format-editor%22/%3E%3C/html%3E" + tabindex="1" flex="1"/> </hbox> - </vbox> + </hbox> <panel id="quick-format-reference-panel" noautofocus="true" norestorefocus="true"> <richlistbox id="quick-format-reference-list" flex="1"/> </panel>