From e4a9ba7153c3d3b1392aedee7a594f2442613276 Mon Sep 17 00:00:00 2001 From: vinceliuice Date: Sun, 25 Aug 2024 10:18:09 +0800 Subject: [PATCH] Fixed issues --- src/other/firefox/WhiteSur/parts/tabsbar.css | 20 +++++++++++++------- src/other/firefox/WhiteSur/parts/toolbox.css | 6 ++++++ 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/other/firefox/WhiteSur/parts/tabsbar.css b/src/other/firefox/WhiteSur/parts/tabsbar.css index 400e71de..6d5d036f 100644 --- a/src/other/firefox/WhiteSur/parts/tabsbar.css +++ b/src/other/firefox/WhiteSur/parts/tabsbar.css @@ -144,12 +144,6 @@ tab[selected]:-moz-window-inactive { padding: 6px; } -/* Hide favicon when mute icon is present */ -.tabbrowser-tab:not([pinned]):is([soundplaying], [muted], [activemedia-blocked], [crashed]) .tab-icon-image:not([sharing]), -.tabbrowser-tab:not([pinned]):is([soundplaying], [muted], [activemedia-blocked], [crashed])[selected] .tab-icon-image { - display: none; -} - /* Hide secondary label about muting */ .tabbrowser-tab:is([soundplaying], [muted], [activemedia-blocked], [crashed]) .tab-secondary-label { display: none; @@ -169,11 +163,19 @@ tab[selected]:-moz-window-inactive { /* Force tab favicon to the center */ .tab-throbber, .tab-throbber-fallback, -.tabbrowser-tab:not([busy]):not([soundplaying="true"],[muted="true"]) .tab-icon-image, +.tabbrowser-tab:not([busy]):not([muted="true"]) .tab-icon-image, .tabbrowser-tab .tab-icon-stack { margin-left: auto !important; } +.tabbrowser-tab:is([pinned]) .tab-icon-stack { + margin-left: 0 !important; +} + +.tabbrowser-tab:not([busy]):not([muted="true"]) .tab-icon-stack .tab-icon-image { + margin: auto !important; +} + /* If tab favicon is not present, force tab label to the center */ .tabbrowser-tab .tab-label-container { margin-left: 0 !important; @@ -294,6 +296,10 @@ tab[selected]:-moz-window-inactive { inset-inline-end: 0 !important; } +.tabbrowser-tab:not(:hover) .tab-icon-overlay:not([crashed]):is([pinned], [sharing]) { + display: none !important; +} + .tabbrowser-tab .tab-icon-overlay:not([crashed]):is([pinned], [sharing]) { background-color: var(--gnome-tabbar-tab-background) !important; } diff --git a/src/other/firefox/WhiteSur/parts/toolbox.css b/src/other/firefox/WhiteSur/parts/toolbox.css index 24e406ec..430d7f09 100644 --- a/src/other/firefox/WhiteSur/parts/toolbox.css +++ b/src/other/firefox/WhiteSur/parts/toolbox.css @@ -69,6 +69,12 @@ findbar:-moz-window-inactive label, opacity: 0.7 !important; } +.tab-icon-overlay { + :is(:root[uidensity="compact"], #tabbrowser-tabs[secondarytext-unsupported], :root:not([uidensity="compact"]) #tabbrowser-tabs:not([secondarytext-unsupported]) .tabbrowser-tab:hover) .tab-icon-stack[indicator-replaces-favicon] > :not(&), :root:not([uidensity="compact"]) #tabbrowser-tabs:not([secondarytext-unsupported]) .tabbrowser-tab:not(:hover) &[indicator-replaces-favicon] { + opacity: 0 !important; + } +} + #toolbar-menubar:not([inactive=true]) { margin-bottom: 0 !important; }