Fixed issues

This commit is contained in:
vinceliuice 2024-08-25 10:18:09 +08:00
parent 945fe727b1
commit e4a9ba7153
2 changed files with 19 additions and 7 deletions

View File

@ -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;
}

View File

@ -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;
}