From effdfc1adf52e05c11bbbac649cd22b672f6063e Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sat, 12 Feb 2011 23:47:08 +0000 Subject: [PATCH] item pane UI consistency tweaks --- chrome/content/zotero/bindings/itembox.xml | 3 +- .../skin/default/zotero/bindings/itembox.css | 29 +++++++++++-------- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml index 35fcce1b47..b6cce8577b 100644 --- a/chrome/content/zotero/bindings/itembox.xml +++ b/chrome/content/zotero/bindings/itembox.xml @@ -706,12 +706,12 @@ label.setAttribute("fieldname", field); label.setAttribute("onclick", "this.nextSibling.firstChild.blur()"); - var hbox = document.createElement("hbox"); var elem = this.createValueElement( Zotero.Date.multipartToStr(value), field, tabindex ); + elem.setAttribute('flex', 1); // y-m-d status indicator var datebox = document.createElement('hbox'); @@ -735,6 +735,7 @@ var hbox = document.createElement('hbox'); hbox.setAttribute('flex', 1); + hbox.className = "date-box"; hbox.appendChild(elem); hbox.appendChild(datebox); diff --git a/chrome/skin/default/zotero/bindings/itembox.css b/chrome/skin/default/zotero/bindings/itembox.css index 0f7dcce9ca..347789f9f5 100644 --- a/chrome/skin/default/zotero/bindings/itembox.css +++ b/chrome/skin/default/zotero/bindings/itembox.css @@ -48,19 +48,16 @@ row label } /* creator type menu */ + .creator-type-label, .creator-type-value { -moz-box-align: center; -moz-box-pack: end; - height: 18px !important; - min-height: 0 !important; - max-height: 18px !important; - padding-right: 2px; } .creator-type-label > label { - margin-right: 0 !important; - padding-right: 0 !important; + margin: 1px 0 1px 0 !important; + padding-right: 2px !important; } .creator-type-label > image { @@ -68,10 +65,17 @@ row label list-style-image: url('chrome://zotero/skin/arrow-down.gif'); } -/* no space between last name and comma */ -row hbox label:first-child +.comma { - margin-right: 1px; + margin: 0 !important; + padding: 0 !important; +} + +.creator-name-box > label, .date-box > label +{ + margin: 1px 0 1px 1px !important; + padding-left: 2px !important; + padding-right: 2px !important; } row > label, row > vbox[fieldname] @@ -91,14 +95,15 @@ row > vbox > description hbox.zotero-date-field-status { - margin-right: 5px; + margin-right: 7px; !important } -hbox.zotero-date-field-status label +hbox.zotero-date-field-status > label { font-weight: bold; color: #666; - margin: 0 0 0 1px; + margin: 0 0 0 1px !important; + padding: 0 1px 0 1px !important; } #item-type-menu