From 9efe10a9e0dcc8b7313f04cd7caa681999ab6f19 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 5 Jan 2007 10:27:04 +0000 Subject: [PATCH] Fixes #326, Icons are stretched (wider) on Linux Also fixes some issues with the search textboxes on the toolbar and in the tag selector, including compression of the search cancel button --- .../default/zotero/bindings/tagselector.css | 19 ++++++++++++------- chrome/skin/default/zotero/overlay.css | 18 ++++++++++++++++-- 2 files changed, 28 insertions(+), 9 deletions(-) diff --git a/chrome/skin/default/zotero/bindings/tagselector.css b/chrome/skin/default/zotero/bindings/tagselector.css index 0f602e04c..2021239c3 100644 --- a/chrome/skin/default/zotero/bindings/tagselector.css +++ b/chrome/skin/default/zotero/bindings/tagselector.css @@ -2,6 +2,7 @@ groupbox { overflow: auto; min-height: 130px; + padding-bottom: 2px; } #tags-toggle @@ -52,12 +53,21 @@ groupbox > hbox -moz-box-pack: center; } +textbox +{ + margin: 3px 0 2px; + font-size: 11px !important; /* Keep font size in Linux within reason */ +} + #search-cancel { - margin: 0px; - padding: 0px; + width: 0; + height: 0; + margin: 0; + padding: 0; cursor: default; list-style-image: url('chrome://zotero/skin/search-cancel.png'); + -moz-appearance: none !important; /* Fix rendering problems on Linux */ } groupbox > hbox > hbox @@ -73,8 +83,3 @@ toolbarbutton.zotero-clicky padding:1px; height:1em; } - -textbox -{ - margin: 3px 0 1px; -} diff --git a/chrome/skin/default/zotero/overlay.css b/chrome/skin/default/zotero/overlay.css index a52cf82b2..feabdedcc 100644 --- a/chrome/skin/default/zotero/overlay.css +++ b/chrome/skin/default/zotero/overlay.css @@ -95,7 +95,17 @@ list-style-image: url(chrome://zotero/skin/tag-selector.png); } +/* Hard-code this to fix toolbar icon compression on Linux */ +#zotero-pane toolbar +{ + height: 32px !important; +} +/* Remove extra padding on Linux */ +#zotero-pane { + padding-top: 0; + padding-bottom: 0; +} /* These fix a rendering bug in Fx2.0b2 */ #zotero-pane toolbarbutton .toolbarbutton-text @@ -180,6 +190,7 @@ #zotero-tb-search { + font-size: 11px !important; /* Keep font size in Linux within reason */ width: 150px; } @@ -190,10 +201,13 @@ #zotero-tb-search-cancel { - margin: 0px; - padding: 0px; + width: 10px; + height: 10px; + margin: 0; + padding: 0; cursor: default; list-style-image: url('chrome://zotero/skin/search-cancel.png'); + -moz-appearance: none !important; /* Fix rendering problems on Linux */ } #zotero-tb-search-cancel:hover:active