From 796fb87a9b730f4a41b9273c2219d0a29d12b88f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 30 Jun 2015 17:58:32 -0400 Subject: [PATCH] Fix some toolbar icon issues on HiDPI Linux --- .../content/zotero-platform/unix/overlay.css | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero-platform/unix/overlay.css b/chrome/content/zotero-platform/unix/overlay.css index c19a6fb01..90f546e91 100644 --- a/chrome/content/zotero-platform/unix/overlay.css +++ b/chrome/content/zotero-platform/unix/overlay.css @@ -11,7 +11,7 @@ width: 28px; } -#zotero-toolbar-main-button[cui-areatype="toolbar"] { +#zotero-toolbar-buttons[cui-areatype="toolbar"]:not([overflowedItem=true]) #zotero-toolbar-main-button { margin-right: -1px; } @@ -46,7 +46,7 @@ margin-bottom: 0; } -#zotero-toolbar-save-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker .dropmarker-icon { +#zotero-toolbar-buttons[cui-areatype="toolbar"]:not([overflowedItem=true]) #zotero-toolbar-save-button > .toolbarbutton-menubutton-dropmarker .dropmarker-icon { padding-left: 14px !important; padding-right: 3px !important; } @@ -105,10 +105,12 @@ #zotero-toolbar-buttons[overflowedItem=true] { margin-left: 0px !important; margin-bottom: 0px !important; + margin-right: 0 !important; } #zotero-toolbar-buttons[overflowedItem=true] #zotero-toolbar-main-button { padding-left: 0; + padding-right: 5px; } #zotero-toolbar-buttons[overflowedItem=true] #zotero-toolbar-main-button .toolbarbutton-icon { @@ -120,6 +122,20 @@ padding-right: 0 !important; width: 22px !important; } + +#zotero-toolbar-buttons[overflowedItem=true] #zotero-toolbar-save-button .toolbarbutton-menubutton-button { + margin-left: 0; +} + +#zotero-toolbar-buttons[overflowedItem=true] #zotero-toolbar-save-button .toolbarbutton-menubutton-dropmarker { + margin: 0; + margin-right: 2px !important; + padding-right: 5px; +} + +#zotero-toolbar-buttons[overflowedItem=true] > separator { + display: none; +} /* End toolbar buttons */