add tweak to show tab button when hovered over #46

This commit is contained in:
bmFtZQ 2022-07-14 23:51:11 +08:00
parent 48ca0d7875
commit d907e2233e
3 changed files with 17 additions and 3 deletions

View file

@ -294,3 +294,9 @@ browsing indicator) */
}
}
}
@supports -moz-bool-pref("uc.tweak.show-tab-close-button-on-hover") {
#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([pinned], [selected]):hover .tab-close-button {
display: -moz-box !important;
}
}

View file

@ -351,8 +351,12 @@ toolbarbutton[part="scrollbutton-down"] {
box-shadow: 0 -3px 2px -3px rgba(0, 0, 0, 0.75) inset !important;
}
#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab[selected="true"] .tab-label-container {
--tab-label-mask-size: 0.5em !important;
#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab .tab-label-container {
--tab-label-mask-size: 1em !important;
}
#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([pinned]) .tab-content {
padding-inline: calc(var(--inline-tab-padding) - 4px) 0 !important;
}
.tab-content {