From 7c201f5d59cf78953c6d356f4a2e15ab3fbc7dbd Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 27 Jul 2020 15:49:45 -0400 Subject: [PATCH] Big Sur style fixes - Restore active label - Fix appearance of tabs in item pane --- chrome.manifest | 5 +++++ chrome/content/scaffold/scaffold.xul | 1 + .../zotero-platform/default-version/style.css | 0 chrome/content/zotero-platform/mac-big-sur/style.css | 12 ++++++++++++ chrome/content/zotero/longTagFixer.xul | 2 ++ chrome/content/zotero/preferences/preferences.xul | 1 + chrome/content/zotero/zoteroPane.xul | 1 + 7 files changed, 22 insertions(+) create mode 100644 chrome/content/zotero-platform/default-version/style.css create mode 100644 chrome/content/zotero-platform/mac-big-sur/style.css diff --git a/chrome.manifest b/chrome.manifest index f3b05aad0d..9049d5fdfa 100644 --- a/chrome.manifest +++ b/chrome.manifest @@ -6,6 +6,11 @@ content zotero-platform chrome/content/zotero-platform/unix/ os=SunOS content zotero-platform chrome/content/zotero-platform/unix/ os=FreeBSD content zotero-platform chrome/content/zotero-platform/unix/ os=OpenBSD +content zotero-platform-version chrome/content/zotero-platform/default-version/ +# Big Sur shows up as 10.0 +content zotero-platform-version chrome/content/zotero-platform/mac-big-sur/ os=Darwin osversion=10.0 +#content zotero-platform-version chrome/content/zotero-platform/mac-big-sur/ os=Darwin + resource zotero resource/ # Keep in sync with locale.js and zotero-standalone-build:assets/multilocale.txt diff --git a/chrome/content/scaffold/scaffold.xul b/chrome/content/scaffold/scaffold.xul index 6daf6a19c3..79ff544ebb 100644 --- a/chrome/content/scaffold/scaffold.xul +++ b/chrome/content/scaffold/scaffold.xul @@ -26,6 +26,7 @@ + diff --git a/chrome/content/zotero-platform/default-version/style.css b/chrome/content/zotero-platform/default-version/style.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/chrome/content/zotero-platform/mac-big-sur/style.css b/chrome/content/zotero-platform/mac-big-sur/style.css new file mode 100644 index 0000000000..077a99cec4 --- /dev/null +++ b/chrome/content/zotero-platform/mac-big-sur/style.css @@ -0,0 +1,12 @@ +/* Use standard tab appearance for item pane tabs */ +#zotero-pane #zotero-view-tabbox > tabs > tab { + -moz-appearance: tab; +} + +/* Active tab label color in item pane and elsewhere */ +#zotero-pane tabs#zotero-editpane-tabs > tab[visuallyselected="true"][selected="true"] hbox > .tab-text, +#zotero-prefs tab[visuallyselected="true"]:not(:-moz-window-inactive), +tabs > tab[visuallyselected="true"] hbox > .tab-text { + color: black !important; + text-shadow: none; +} diff --git a/chrome/content/zotero/longTagFixer.xul b/chrome/content/zotero/longTagFixer.xul index 408dfc8a2e..2954190c4b 100644 --- a/chrome/content/zotero/longTagFixer.xul +++ b/chrome/content/zotero/longTagFixer.xul @@ -1,6 +1,8 @@ + + +