item pane UI consistency tweaks

This commit is contained in:
Simon Kornblith 2011-02-12 23:47:08 +00:00
parent 806576aacb
commit effdfc1adf
2 changed files with 19 additions and 13 deletions

View file

@ -706,12 +706,12 @@
label.setAttribute("fieldname", field); label.setAttribute("fieldname", field);
label.setAttribute("onclick", "this.nextSibling.firstChild.blur()"); label.setAttribute("onclick", "this.nextSibling.firstChild.blur()");
var hbox = document.createElement("hbox");
var elem = this.createValueElement( var elem = this.createValueElement(
Zotero.Date.multipartToStr(value), Zotero.Date.multipartToStr(value),
field, field,
tabindex tabindex
); );
elem.setAttribute('flex', 1);
// y-m-d status indicator // y-m-d status indicator
var datebox = document.createElement('hbox'); var datebox = document.createElement('hbox');
@ -735,6 +735,7 @@
var hbox = document.createElement('hbox'); var hbox = document.createElement('hbox');
hbox.setAttribute('flex', 1); hbox.setAttribute('flex', 1);
hbox.className = "date-box";
hbox.appendChild(elem); hbox.appendChild(elem);
hbox.appendChild(datebox); hbox.appendChild(datebox);

View file

@ -48,19 +48,16 @@ row label
} }
/* creator type menu */ /* creator type menu */
.creator-type-label, .creator-type-value { .creator-type-label, .creator-type-value {
-moz-box-align: center; -moz-box-align: center;
-moz-box-pack: end; -moz-box-pack: end;
height: 18px !important;
min-height: 0 !important;
max-height: 18px !important;
padding-right: 2px;
} }
.creator-type-label > label .creator-type-label > label
{ {
margin-right: 0 !important; margin: 1px 0 1px 0 !important;
padding-right: 0 !important; padding-right: 2px !important;
} }
.creator-type-label > image { .creator-type-label > image {
@ -68,10 +65,17 @@ row label
list-style-image: url('chrome://zotero/skin/arrow-down.gif'); list-style-image: url('chrome://zotero/skin/arrow-down.gif');
} }
/* no space between last name and comma */ .comma
row hbox label:first-child
{ {
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] row > label, row > vbox[fieldname]
@ -91,14 +95,15 @@ row > vbox > description
hbox.zotero-date-field-status 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; font-weight: bold;
color: #666; color: #666;
margin: 0 0 0 1px; margin: 0 0 0 1px !important;
padding: 0 1px 0 1px !important;
} }
#item-type-menu #item-type-menu