From 4b7a1e8607ab467f3400ea4254f55f5d0a22909f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 7 Jul 2023 07:22:52 -0400 Subject: [PATCH] Get rid of some console warnings And some other unused CSS --- app/scripts/fetch_xulrunner | 2 +- scss/components/_mainWindow.scss | 36 ++------------------------------ scss/elements/_itemBox.scss | 1 - 3 files changed, 3 insertions(+), 36 deletions(-) diff --git a/app/scripts/fetch_xulrunner b/app/scripts/fetch_xulrunner index 39b774672b..90ecd8af02 100755 --- a/app/scripts/fetch_xulrunner +++ b/app/scripts/fetch_xulrunner @@ -249,7 +249,7 @@ function modify_omni { cp "$APP_ROOT_DIR/assets/multilocale.txt" res/multilocale.txt # Use Zotero URL opening in Mozilla dialogs (e.g., app update dialog) - replace_line 'function openURL\(aURL\) \{' 'function openURL(aURL) {let {Zotero} = ChromeUtils.import("chrome:\/\/zotero\/content\/include.jsm"); Zotero.launchURL(aURL); return;' chrome/toolkit/content/global/contentAreaUtils.js + replace_line 'function openURL\(aURL\) \{' 'function openURL(aURL) {let {Zotero} = ChromeUtils.import("chrome:\/\/zotero\/content\/include.jsm"); Zotero.launchURL(aURL); if (true) { return; }' chrome/toolkit/content/global/contentAreaUtils.js # # Modify Add-ons window diff --git a/scss/components/_mainWindow.scss b/scss/components/_mainWindow.scss index 1be6361fa4..6a4c01f219 100644 --- a/scss/components/_mainWindow.scss +++ b/scss/components/_mainWindow.scss @@ -65,22 +65,10 @@ -moz-box-pack: center; } - #personal-bookmarks { - -moz-window-dragging: inherit; - } - - toolbarpaletteitem { - -moz-window-dragging: no-drag; - -moz-box-pack: start; - } - .titlebar-buttonbox-container { -moz-box-ordinal-group: 1000; } - #titlebar-fullscreen-button { - -moz-appearance: -moz-mac-fullscreen-button; - } @@ -118,39 +106,19 @@ margin-left: 12px; } - .titlebar-placeholder[type="fullscreen-button"], - #titlebar-fullscreen-button { - margin-right: 7px; - margin-left: 7px; - } - - #titlebar-fullscreen-button { - -moz-appearance: -moz-mac-fullscreen-button; - } - #titlebar-buttonbox { -moz-appearance: -moz-window-button-box; } /* Fullscreen and caption buttons don't move with RTL on OS X so override the automatic ordering. */ - #titlebar-fullscreen-button:-moz-locale-dir(ltr), - #titlebar-buttonbox-container:-moz-locale-dir(rtl), - .titlebar-placeholder[type="fullscreen-button"]:-moz-locale-dir(ltr), - .titlebar-placeholder[type="caption-buttons"]:-moz-locale-dir(rtl) { + #titlebar-buttonbox-container:-moz-locale-dir(rtl) { -moz-box-ordinal-group: 1000; } - #titlebar-fullscreen-button:-moz-locale-dir(rtl), - #titlebar-buttonbox-container:-moz-locale-dir(ltr), - .titlebar-placeholder[type="caption-buttons"]:-moz-locale-dir(ltr), - .titlebar-placeholder[type="fullscreen-button"]:-moz-locale-dir(rtl) { + #titlebar-buttonbox-container:-moz-locale-dir(ltr) { -moz-box-ordinal-group: 0; } - &[sizemode="fullscreen"] .titlebar-placeholder[type="fullscreen-button"], - &[sizemode="fullscreen"] .titlebar-placeholder[type="caption-buttons"] { - display: none; - } diff --git a/scss/elements/_itemBox.scss b/scss/elements/_itemBox.scss index d72f425fd8..43e9ea40af 100644 --- a/scss/elements/_itemBox.scss +++ b/scss/elements/_itemBox.scss @@ -166,7 +166,6 @@ item-box { .creator-type-label, .creator-type-value { -moz-box-align: center; - -moz-box-pack: right; } .creator-name-box {