From 3343ef3d5c78f57bb2b49a03618c05f31a9fca25 Mon Sep 17 00:00:00 2001 From: Vince Date: Wed, 28 Apr 2021 18:47:09 +0800 Subject: [PATCH] Fixed firefox issues --- .../WhiteSur/parts/headerbar-private-urlbar.css | 4 ---- src/other/firefox/WhiteSur/parts/popups.css | 4 ++-- src/other/firefox/WhiteSur/parts/tabsbar.css | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/other/firefox/WhiteSur/parts/headerbar-private-urlbar.css b/src/other/firefox/WhiteSur/parts/headerbar-private-urlbar.css index caedecd5..427801e6 100644 --- a/src/other/firefox/WhiteSur/parts/headerbar-private-urlbar.css +++ b/src/other/firefox/WhiteSur/parts/headerbar-private-urlbar.css @@ -34,10 +34,6 @@ } } -:root[privatebrowsingmode="temporary"] #nav-bar { - overflow: hidden; -} - #TabsToolbar .private-browsing-indicator { display: none !important; } diff --git a/src/other/firefox/WhiteSur/parts/popups.css b/src/other/firefox/WhiteSur/parts/popups.css index 2f905399..6947ba25 100644 --- a/src/other/firefox/WhiteSur/parts/popups.css +++ b/src/other/firefox/WhiteSur/parts/popups.css @@ -8,7 +8,7 @@ menupopup { -moz-appearance: none !important; background: var(--gnome-menu-background) !important; border: 1px solid var(--gnome-menu-border-color) !important; - border-radius: 8px; + border-radius: 8px !important; padding: 4px 0 !important; color: var(--gnome-toolbar-color) !important; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important; @@ -54,7 +54,7 @@ panelview { background: var(--gnome-popover-background) !important; border: 1px solid !important; border-color: var(--gnome-popover-border-color) !important; - border-radius: 9px; + border-radius: 9px !important; /* box-shadow: var(--gnome-popover-shadow) !important; */ padding: 12px !important; color: var(--gnome-toolbar-color) !important; diff --git a/src/other/firefox/WhiteSur/parts/tabsbar.css b/src/other/firefox/WhiteSur/parts/tabsbar.css index 24b62f66..c998d05c 100644 --- a/src/other/firefox/WhiteSur/parts/tabsbar.css +++ b/src/other/firefox/WhiteSur/parts/tabsbar.css @@ -115,11 +115,25 @@ tab[selected]:-moz-window-inactive { } /* Force tab favicon to the center */ +.tab-throbber, .tab-throbber-fallback, +.tabbrowser-tab:not([busy]) .tab-icon-image, .tabbrowser-tab:not([class*="identity-color-"]) .tab-icon-stack { margin-left: auto !important; } +/* If tab favicon is not present, force tab label to the center */ +.tabbrowser-tab .tab-label-container { + margin-left: 0 !important; +} +.tabbrowser-tab:not([image]):not([busy]):not([progress]) .tab-label-container { + margin-left: auto !important; +} + /* If tab close button is not present, don't force favicon to the center */ +#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([selected="true"]) .tab-throbber, +#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([selected="true"]) .tab-throbber-fallback, +#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([selected="true"]):not([busy]) .tab-icon-image, +#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([selected="true"]):not([image]) .tab-label-container, #tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([selected="true"]) .tab-icon-stackr { margin-left: 0 !important; }