From 6bff554976998deb4728acd224d85e8cb44ed1e5 Mon Sep 17 00:00:00 2001 From: LinuxMercedes Date: Fri, 27 May 2016 19:57:29 -0500 Subject: [PATCH] Add a second horizontal layout to Zotero for small screens (#1010) --- .../content/zotero-platform/mac/overlay.css | 32 +- chrome/content/zotero/itemPane.xul | 2 +- .../preferences/preferences_general.xul | 11 + chrome/content/zotero/xpcom/zotero.js | 3 + chrome/content/zotero/zoteroPane.js | 69 +-- chrome/content/zotero/zoteroPane.xul | 425 +++++++++--------- chrome/locale/en-US/zotero/preferences.dtd | 3 + chrome/skin/default/zotero/overlay.css | 11 + defaults/preferences/zotero.js | 1 + 9 files changed, 308 insertions(+), 249 deletions(-) diff --git a/chrome/content/zotero-platform/mac/overlay.css b/chrome/content/zotero-platform/mac/overlay.css index f31f07f5f8..40995cc265 100644 --- a/chrome/content/zotero-platform/mac/overlay.css +++ b/chrome/content/zotero-platform/mac/overlay.css @@ -302,20 +302,44 @@ -moz-appearance: none; -moz-border-start: none !important; -moz-border-end: none !important; + background-color: #8b8b8b !important; +} + +#zotero-collections-splitter, #zotero-items-splitter[orient=horizontal] +{ max-width: 1px !important; min-width: 1px !important; width: 1px !important; - background-color: #8b8b8b !important; +} + +#zotero-items-splitter[orient=vertical] +{ + max-height: 1px !important; + min-height: 1px !important; + height: 1px !important; } #zotero-collections-splitter[state=collapsed], #zotero-items-splitter[state=collapsed] { border: 0 solid #d6d6d6 !important; + padding: 0; +} + +#zotero-collections-splitter[state=collapsed], #zotero-items-splitter[state=collapsed][orient=horizontal] +{ + background-image: url("chrome://zotero/skin/mac/vsplitter.png"); + background-repeat: repeat-y; max-width: 8px !important; min-width: 8px !important; width: 8px !important; - background-image: url("chrome://zotero/skin/mac/vsplitter.png"); - background-repeat: repeat-y; - padding: 0; +} + +#zotero-items-splitter[state=collapsed][orient=vertical] +{ + background-image: url("chrome://zotero/skin/mac/hsplitter.png"); + background-repeat: repeat-x; + max-height: 8px !important; + min-height: 8px !important; + height: 8px !important; } #zotero-collections-splitter[state=collapsed] { diff --git a/chrome/content/zotero/itemPane.xul b/chrome/content/zotero/itemPane.xul index c3a64a8833..19a73c323a 100644 --- a/chrome/content/zotero/itemPane.xul +++ b/chrome/content/zotero/itemPane.xul @@ -32,7 +32,7 @@