From eae9a4447dd06cc50b6c204acc96eccd0c7d7921 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Tue, 24 May 2022 00:46:39 -0600 Subject: [PATCH] fx-compat: Mostly fix locateManager Still many selectors to update in preferences.css, but how we do that depends on what our / replacement looks like. --- .../zotero-platform/mac/preferences.css | 7 ++-- ...{locateManager.xul => locateManager.xhtml} | 39 +++++++------------ chrome/content/zotero/locateMenu.js | 2 +- chrome/skin/default/zotero/preferences.css | 2 +- 4 files changed, 20 insertions(+), 30 deletions(-) rename chrome/content/zotero/{locateManager.xul => locateManager.xhtml} (80%) diff --git a/chrome/content/zotero-platform/mac/preferences.css b/chrome/content/zotero-platform/mac/preferences.css index e2f6430eb4..41f7eaed3a 100644 --- a/chrome/content/zotero-platform/mac/preferences.css +++ b/chrome/content/zotero-platform/mac/preferences.css @@ -114,17 +114,16 @@ groupbox { margin: 6px; } -.groupbox-title { +groupbox > label > h2 { border-bottom: #b5b5b5 1px solid; } -.groupbox-body { - -moz-appearance: groupbox; +groupbox > .groupbox-body { padding: 8px 8px 3px; margin: 0; } -caption { +groupbox > label > h2, caption { padding-inline-start: 4px; padding-bottom: 1px; font: caption; diff --git a/chrome/content/zotero/locateManager.xul b/chrome/content/zotero/locateManager.xhtml similarity index 80% rename from chrome/content/zotero/locateManager.xul rename to chrome/content/zotero/locateManager.xhtml index dc9fcbc9bc..9f6f68f2c5 100644 --- a/chrome/content/zotero/locateManager.xul +++ b/chrome/content/zotero/locateManager.xhtml @@ -42,32 +42,26 @@ To add a new preference: in Zotero.Prefs.observe() --> - + style="display: flex;"> + + + + + + - - - - - - - - - - - - - - - - - + diff --git a/chrome/content/zotero/locateMenu.js b/chrome/content/zotero/locateMenu.js index c9f9bac5a8..92c7466790 100644 --- a/chrome/content/zotero/locateMenu.js +++ b/chrome/content/zotero/locateMenu.js @@ -317,7 +317,7 @@ var Zotero_LocateMenu = new function() { * Open the locate manager */ function _openLocateEngineManager(event) { - window.openDialog('chrome://zotero/content/locateManager.xul', + window.openDialog('chrome://zotero/content/locateManager.xhtml', 'Zotero Locate Engine Manager', 'chrome,centerscreen' ); diff --git a/chrome/skin/default/zotero/preferences.css b/chrome/skin/default/zotero/preferences.css index def7db86ec..57ecf271e4 100644 --- a/chrome/skin/default/zotero/preferences.css +++ b/chrome/skin/default/zotero/preferences.css @@ -3,7 +3,7 @@ prefwindow .chromeclass-toolbar display: -moz-box !important; /* Ignore toolbar collapse button on OS X */ } -prefwindow { +window[windowtype="zotero:pref"] { min-width: 600px; }